/* ---
Theme: Nature Inspired
Font: Merriweather
Tone: Friendly & Casual
--- */

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

/* --- CSS Variables --- */
:root {
    --bg-color: #F9F6F1;
    --surface-color: #FFFFFF;
    --primary-color: #4A6C4D; /* Earthy Green */
    --text-color: #3C3633; /* Dark Brown/Gray */
    --text-muted-color: #7D7463; /* Lighter Brown */
    --border-color: #E4E0D8;
    --font-family-main: 'Merriweather', serif;
    --container-width: 1200px;
    --border-radius: 12px;
    --transition-speed: 0.3s ease;
    --box-shadow: 0 4px 15px rgba(60, 54, 51, 0.07);
}

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

html {
    scroll-behavior: smooth;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.9rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.6rem; }

p {
    margin-bottom: 1.5rem;
}

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

a:hover, a:focus {
    color: #38523a;
    text-decoration: underline;
}

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

/* --- Layout & Container --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 3rem 0;
}

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

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

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(249, 246, 241, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

.main-nav a {
    color: var(--text-muted-color);
    font-weight: 400;
    font-size: 1.05rem;
    padding-bottom: 0.5rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-speed), border-color var(--transition-speed);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

/* --- Blog Article Card --- */
.articles-section h2 {
    text-align: center;
    margin-bottom: 3.5rem;
}

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

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

@media (min-width: 1200px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

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

.article-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-align: center;
    margin-top: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.read-more-btn:hover {
    background-color: #38523a;
    color: #fff;
    text-decoration: none;
}

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

.sidebar-widget h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}

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

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

.sidebar-widget ul li a {
    color: var(--text-color);
}

/* --- Article Page & Content Pages --- */
.article-full, .content-page {
    background-color: var(--surface-color);
    padding: 3.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

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

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

.article-meta {
    font-size: 0.95rem;
    color: var(--text-muted-color);
}

.cta-section {
    border: 2px solid var(--primary-color);
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
    border-radius: var(--border-radius);
    background-color: #F4F8F4;
}

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

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-muted-color);
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--text-color);
}