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

:root {
    --primary-bg: #f4f1ea;
    --secondary-bg: #e9e4d9;
    --card-bg: #ffffff;
    --header-bg: rgba(244, 241, 234, 0.85);
    --primary-text: #3a3a3a;
    --secondary-text: #6b6b6b;
    --accent-color: #4a7c59;
    --accent-hover: #6a9c79;
    --border-color: #dcd6c9;
    --font-family-body: 'Merriweather', serif;
    --font-family-heading: 'Montserrat', sans-serif;
    --container-width: 1200px;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--primary-text);
    text-decoration: none;
    font-family: var(--font-family-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

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

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

main h1, main h2, main h3 {
    font-family: var(--font-family-heading);
    color: var(--primary-text);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

main h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
}

main h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

main h3 {
    font-size: 1.5rem;
    color: var(--accent-hover);
}

main p {
    margin-bottom: 1.5rem;
    color: var(--secondary-text);
}

main a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

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

.page-intro {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

/* --- Blog Articles Section --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

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

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

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.card-content h3 a {
    color: inherit;
    font-weight: normal;
    text-decoration: none;
}

.card-content h3 a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

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

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-family-heading);
    align-self: flex-start;
}

.read-more:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* --- Article Page --- */
.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 1rem;
    font-family: var(--font-family-heading);
}

.article-meta span {
    margin-right: 1.5rem;
}

.article-content ul {
    list-style-position: outside;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.cta-box {
    background: var(--secondary-bg);
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.cta-box p {
    margin: 0;
    font-style: italic;
}

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

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

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

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

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

.sidebar-widget a {
    color: var(--secondary-text);
    text-decoration: none;
    font-weight: normal;
}

.sidebar-widget a:hover {
    color: var(--accent-color);
}

.promo-text {
    background: var(--accent-color);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    font-family: var(--font-family-heading);
}

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