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

:root {
    --accent-color: #5c8d7b;
    --accent-color-hover: #4a7164;
    --background-color: #f9f9f7;
    --surface-color: #ffffff;
    --text-color: #3d403a;
    --heading-color: #2c2f2a;
    --border-color: #e0e2d9;
    --subtle-text-color: #7d807a;
    --font-primary: 'Poppins', sans-serif;
    --shadow: 0 4px 15px rgba(0,0,0,0.04);
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    font-weight: 300;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

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

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style-type: none;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: transparent;
    padding: 2.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.site-title-link {
    color: var(--heading-color);
}
.site-title-link:hover {
    color: var(--accent-color);
}

.site-tagline {
    font-size: 0.9rem;
    color: var(--subtle-text-color);
    margin-top: 0.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    color: var(--text-color);
    font-weight: 400;
    border-radius: 4px;
}

.main-nav a:hover {
    color: var(--accent-color);
    background-color: #f0f1ec;
    text-decoration: none;
}
.main-nav a.active {
    font-weight: 600;
    color: var(--accent-color);
}


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

.intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.intro h2 {
    font-size: 2.5rem;
}

/* --- Articles Grid (Homepage) --- */
.articles-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

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

.article-card {
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    background-color: var(--surface-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
}

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

.article-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

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

.read-more {
    font-weight: 600;
    align-self: flex-start;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 40px;
    align-self: start;
}

.widget {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.widget-title {
    margin-top: 0;
    padding-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.widget-list li {
    padding: 0.6rem 0;
}

.widget-list li:not(:last-child) {
    border-bottom: 1px solid #f0f1ec;
}

.widget-list a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
}

.promo-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--subtle-text-color);
}

/* --- Full Article/Page Content --- */
.page-content {
    background-color: var(--surface-color);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

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

.article-meta {
    font-size: 0.8rem;
    color: var(--subtle-text-color);
    margin-top: -0.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.article-content {
    max-width: 750px;
    margin: 0 auto;
}

.article-content h2,
.article-content h3 {
    margin-top: 2.5rem;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.5rem 1.5rem;
    list-style-position: outside;
}
.article-content li {
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.cta-section {
    background-color: #f6f7f2;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
}

.cta-section p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--heading-color);
    font-weight: 400;
}

.cta-link {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 5px;
}

.cta-link:hover {
    background-color: var(--accent-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

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

.footer-widgets {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-widget h4 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

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

.footer-widget a {
    color: var(--subtle-text-color);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.copyright {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}


/* --- Responsive Design --- */
@media (min-width: 992px) {
    .main-grid {
        grid-template-columns: 2.5fr 1fr;
    }
    
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .page-content { padding: 1.5rem; }
    .footer-widgets { text-align: center; }
}