
/* --- Global Styles & Variables --- */
:root {
    --bg-main: #fdfaf6;
    --bg-accent: #f4f1ea;
    --text-dark: #403d39;
    --text-light: #fdfaf6;
    --primary-color: #2d6a4f;
    --secondary-color: #bc6c25;
    --border-color: #ddd8cf;
    --font-family: 'Merriweather', serif;
    --header-height: 80px;
    --border-radius: 6px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

a:hover {
    color: var(--secondary-color);
}

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.25rem; }

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--header-height);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

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

.main-nav ul {
    display: flex;
    list-style-type: none;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--text-light);
    padding: 10px;
    position: relative;
    opacity: 0.9;
    transition: opacity 0.2s ease-in-out;
}
.main-nav a:hover, .main-nav a.active {
    opacity: 1;
}
.main-nav a.active {
    border-bottom: 2px solid var(--secondary-color);
}


/* --- Main Content Layout --- */
main.container {
    padding-top: 40px;
    padding-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

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

.main-content-full {
    grid-column: 1 / -1;
}

/* --- Homepage Specific --- */
.hero-section {
    padding: 2rem 0;
}
.hero-section h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
}

.articles-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr;
}

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

.article-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}
.article-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.article-card p {
    flex-grow: 1;
    color: #555;
}
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    align-self: flex-start;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: 700;
}

.btn:hover {
    background-color: #a05c22;
    border-color: #a05c22;
    color: var(--text-light);
    transform: translateY(-2px);
}

/* --- Sidebar --- */
.sidebar-widget {
    background-color: var(--bg-accent);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}
.sidebar-widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.2rem;
    color: var(--primary-color);
}
.sidebar-widget ul {
    list-style-type: none;
}
.sidebar-widget ul li {
    margin-bottom: 10px;
}
.sidebar-widget ul a::before {
    content: '🌿 ';
    color: var(--primary-color);
}
.promo-widget {
    background-color: #fff;
    border: 2px solid var(--primary-color);
    text-align: center;
}

/* --- Article Page --- */
.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.article-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
}
.article-meta {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}
.article-content h2 {
    margin-top: 2.5rem;
    color: var(--primary-color);
}
.article-content h3 {
    margin-top: 2rem;
    color: var(--secondary-color);
}
.article-content ul {
    list-style-position: inside;
    margin-left: 1rem;
    margin-bottom: 1rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}
.cta-box {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--bg-accent);
    border-left: 5px solid var(--secondary-color);
    text-align: center;
    border-radius: var(--border-radius);
}
.cta-box p {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.5;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 40px;
}
.site-footer p {
    margin: 0;
    opacity: 0.8;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    body { font-size: 16px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .site-header .container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    .site-header {
        height: auto;
        position: static;
    }
    .site-title {
        margin-bottom: 10px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 5px;
    }
    .main-nav li {
        margin: 5px;
    }
    .main-nav a.active {
        border-bottom-width: 2px;
    }

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