
/* --- Zenith Theme --- */
/* --- Tone: Informative & Straightforward --- */
/* --- Font: Inter --- */

:root {
    --primary-color: #007BFF; /* A strong, clear blue */
    --primary-hover-color: #0056b3;
    --background-color: #F8F9FA;
    --card-background-color: #FFFFFF;
    --text-color: #212529;
    --heading-color: #1a202c;
    --muted-text-color: #6c757d;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --font-family: 'Inter', sans-serif;
    --header-height: 70px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

#container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
    padding-left: 20px;
}
ul { list-style-type: disc; }
ol { list-style-type: decimal; }

/* --- Header & Navigation --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-background-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
}

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

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* --- Main Layout --- */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

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

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

/* --- Hero Section --- */
.hero-section {
    background-color: var(--card-background-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.hero-section h1 {
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--muted-text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Articles Grid --- */
.articles-section h2 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

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

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

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

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow-color);
}

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

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

.card-content h3 {
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--muted-text-color);
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    margin-top: 1rem;
    align-self: flex-start;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

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

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

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

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

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li a {
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
}
.widget ul li a:hover {
    color: var(--primary-hover-color);
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--muted-text-color);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Article Page Specifics --- */
.article-full {
    background: var(--card-background-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.article-header h1 {
    font-size: 3rem;
}
.article-meta {
    margin-top: 1rem;
    color: var(--muted-text-color);
    font-size: 0.9rem;
}
.article-meta span {
    margin: 0 0.5rem;
}

.article-content h2, .article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-content .supermarket-logo {
    display: block;
    max-width: 150px;
    height: auto;
    margin: 1rem 0;
}

.article-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}
.cta-section h3 {
    color: white;
    border: none;
}
.cta-section a.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s, color 0.3s;
}
.cta-section a.cta-button:hover {
    background-color: #f0f0f0;
    color: var(--primary-hover-color);
}


/* --- Other Pages (About, Contact, Offers) --- */
.page-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.page-content {
    background: var(--card-background-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-height: 400px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}
.offer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.offer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow-color);
}
.offer-item img {
    max-width: 100px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 1rem;
}
.offer-item span {
    font-weight: 600;
    text-align: center;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .site-header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    .logo { margin-bottom: 1rem; }
    .main-nav ul { gap: 1rem; }
    .main-nav a { font-size: 0.9rem; }
    
    .main-content {
        padding-top: 1rem;
    }
    .hero-section {
        padding: 2rem 1.5rem;
    }
    .article-header h1 {
        font-size: 2.4rem;
    }
    .article-full, .page-content {
        padding: 1.5rem;
    }
}
