
/*
Theme: ModernChronicle
Font: Montserrat
Tone: Informative & Straightforward
*/

/* --- VARIABLES & BASE STYLES --- */
:root {
    --primary-color: #0d47a1; /* Deep Blue */
    --secondary-color: #1565c0; /* Lighter Blue */
    --accent-color: #4caf50; /* Green */
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    --font-family: 'Montserrat', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style-position: inside;
    padding-left: 1rem;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    background-color: var(--card-background);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.logo a:hover {
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
}

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    text-decoration: none;
}

/* --- HERO SECTION (HOMEPAGE) --- */
.hero-section {
    background: linear-gradient(rgba(13, 71, 161, 0.8), rgba(13, 71, 161, 0.8)), url('https://picsum.photos/1200/400?grayscale') no-repeat center center/cover;
    color: var(--light-text-color);
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    color: var(--light-text-color);
    font-size: 3rem;
}

.hero-section .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}


/* --- SITE CONTENT LAYOUT --- */
.site-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 992px) {
    .site-content {
        grid-template-columns: 2fr 1fr;
    }
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* --- ARTICLES GRID --- */
.articles-section .section-title {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}
.card h3 a {
    color: var(--primary-color);
}
.card h3 a:hover {
    text-decoration: underline;
}

.card p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 700;
    color: var(--secondary-color);
}
.read-more:hover {
    color: var(--primary-color);
}

/* --- SIDEBAR --- */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.widget-list {
    list-style: none;
    padding: 0;
}

.widget-list li {
    margin-bottom: 0.75rem;
}

.widget-list li a {
    font-weight: 600;
}

.promo-widget {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.promo-widget h3 {
    color: var(--light-text-color);
}

.promo-widget a {
    color: var(--light-text-color);
    text-decoration: underline;
}
.promo-widget a:hover {
    opacity: 0.9;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #45a049;
    color: var(--light-text-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- FOOTER --- */
.site-footer {
    background-color: #212529;
    color: var(--light-text-color);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-footer h4 {
    color: var(--light-text-color);
    font-size: 1.1rem;
}
.site-footer ul {
    list-style: none;
    padding: 0;
}
.site-footer li {
    margin-bottom: 0.5rem;
}
.site-footer a {
    color: #adb5bd;
}
.site-footer a:hover {
    color: var(--light-text-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid #495057;
    padding-top: 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #adb5bd;
}


/* --- ARTICLE & PAGE STYLES --- */
.page-header-image, .article-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2rem;
    max-height: 400px;
    object-fit: cover;
}
.article-full, .page-content {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
@media (min-width: 768px) {
    .article-full, .page-content {
        padding: 2.5rem;
    }
}
.article-header {
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-category {
    background-color: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.article-body h2 {
    margin-top: 2.5rem;
}
.article-body h3 {
    margin-top: 2rem;
}
.article-body ul {
    margin-bottom: 1.2rem;
}
.article-body li {
    margin-bottom: 0.5rem;
}
.cta-box {
    background-color: #e3f2fd;
    border-left: 5px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.supermarket-logos-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.supermarket-logo-article {
    max-height: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
}

/* --- OFFERS PAGE --- */
.offers-grid .country-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.country-card {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.country-card h3 {
    margin-top: 1rem;
}
.country-card p {
    flex-grow: 1;
}
.country-card .supermarket-logo {
    max-height: 30px;
    margin-bottom: 0.5rem;
}

/* --- CONTACT PAGE --- */
.contact-card {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        justify-content: center;
        width: 100%;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    .hero-section h1 {
        font-size: 2.25rem;
    }
}
