:root {
    --primary-color: #4CAF50; /* Vibrant Green */
    --secondary-color: #8D6E63; /* Earthy Brown */
    --background-color: #F9F9F7; /* Soft Cream */
    --surface-color: #FFFFFF;
    --text-color: #4E4E4E;
    --heading-color: #2E7D32; /* Darker Green */
    --border-color: #E0E0E0;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1100px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

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

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

p {
    margin-bottom: 1.25rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.site-title a {
    color: inherit;
}

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

.main-nav a {
    font-weight: 500;
    padding: 0.5rem 0;
    color: var(--text-color);
    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 */
.container {
    max-width: var(--container-width);
    margin: 3rem auto;
    padding: 0 1.5rem;
    display: grid;
    gap: 2.5rem;
}

/* Main Content */
.main-content {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.intro-section {
    padding: 3rem 1.5rem;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('https://www.toptal.com/designers/subtlepatterns/uploads/leaf.png');
    border-radius: var(--border-radius);
    margin: -2.5rem -2.5rem 2.5rem -2.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.article-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    align-self: flex-start;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.read-more-btn:hover {
    background-color: var(--heading-color);
    transform: translateY(-2px);
}

/* Sidebar */
.sidebar {
    padding: 2rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.widget {
    margin-bottom: 2.5rem;
}
.widget:last-child { margin-bottom: 0; }

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

.widget ul { list-style: none; padding: 0; }
.widget ul li { margin-bottom: 0.75rem; border-left: 3px solid var(--border-color); padding-left: 1rem; transition: border-color 0.3s ease;}
.widget ul li:hover { border-left-color: var(--primary-color); }
.widget ul li a { font-weight: 500; }

/* Footer */
.site-footer {
    background-color: #333;
    color: #f0f0f0;
    padding: 3rem 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-container a { color: #f0f0f0; font-weight: 500; }
.footer-container a:hover { color: var(--primary-color); }
.footer-links { margin-top: 1rem; }

/* Article/Page Specifics */
.article-full .main-content, .page-content .main-content {
    padding: 3rem;
}

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

.article-full .article-meta { color: var(--secondary-color); font-size: 0.9rem; }

.article-full .article-content h2,
.article-full .article-content h3 {
    margin-top: 2.5rem;
    color: var(--heading-color);
}

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

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: #fff;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.contact-form button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background-color: var(--heading-color);
    transform: translateY(-2px);
}

/* Media Queries */
@media (min-width: 768px) {
    .container {
        grid-template-columns: 2.5fr 1fr;
    }
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }
}
