/* ---
Theme: GreenSoul
Font: Merriweather
Tone: Friendly & Casual
--- */

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

/* --- Base & Variables --- */
:root {
    --bg-color: #f9f7f4;
    --surface-color: #ffffff;
    --primary-color: #4CAF50;
    --primary-dark-color: #388E3C;
    --text-color: #333333;
    --text-muted-color: #757575;
    --border-color: #e0e0e0;
    --font-family: 'Merriweather', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 17px;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

h1, h2, h3, h4 {
    margin-bottom: 0.8em;
    font-weight: 700;
    line-height: 1.3;
    color: #212121;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5em;
}

ul, ol {
    margin-bottom: 1.5em;
    padding-left: 25px;
}

li {
    margin-bottom: 0.6em;
}

/* --- Utility Classes --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease;
    font-family: sans-serif; /* Use sans-serif for button text for clarity */
}

.btn:hover {
    background-color: var(--primary-dark-color);
    text-decoration: none;
    color: #ffffff;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--surface-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

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

.main-nav a {
    font-weight: 700;
    font-family: sans-serif;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    color: var(--text-color);
}

.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 {
    width: 100%;
}

/* --- Main Layout --- */
.main-content-area {
    padding: 2.5rem 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--surface-color);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
}

.hero h1 {
    margin-bottom: 0.5em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted-color);
    max-width: 750px;
    margin: 0 auto 1.5rem;
}

/* --- Blog Articles Section --- */
.articles-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
}

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

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

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

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

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

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

.article-card-content p {
    color: var(--text-muted-color);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* --- Sidebar --- */
.sidebar-widget {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

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

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

.sidebar-widget li a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget li a:hover {
    text-decoration: none;
    color: var(--primary-color);
}

.sidebar-widget .logo {
    width: 80px;
    height: 30px;
    object-fit: contain;
}

.promo-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted-color);
}

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

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-header h1 {
    font-size: 3rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    font-family: sans-serif;
}

.article-meta span {
    margin: 0 10px;
}

.article-content img.article-image {
    margin: 2.5rem 0;
}

.cta-section {
    background-color: #e8f5e9; /* Light green background */
    border: 1px solid #c8e6c9;
    padding: 2.5rem;
    text-align: center;
    border-radius: 8px;
    margin: 2.5rem 0;
}

.cta-section h3 {
    color: var(--primary-dark-color);
}

/* --- Sub-pages (Offers, About, Contact) --- */
.page-header {
    text-align: center;
    padding: 3.5rem 0;
    background-color: var(--surface-color);
    border-radius: 8px;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
}

.page-content {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.country-section {
    margin-bottom: 2.5rem;
}

.country-section h2 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.supermarket-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.supermarket-list li {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--surface-color);
    color: var(--text-muted-color);
    padding: 2.5rem 0;
    margin-top: 2.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

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

.footer-links a {
    font-family: sans-serif;
    font-weight: 600;
}

/* --- Media Queries --- */

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

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

    h1 { font-size: 3.2rem; }
}