/* --- 1. THEME VARIABLES --- */
:root {
    --primary-color: #1A4D2E;       /* Deep Forest */
    --bg-color: #E8F5E9;            /* Morning Sage */
    --accent-color: #D4A373;        /* Golden Earth */
    --card-bg: #FFFFFF;             /* White */
    --text-color: #2C3329;          /* Dark Loam */
    --text-light: #666;
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Inter', sans-serif;
    --max-width: 1200px;
}

/* --- 2. GLOBAL RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--primary-color); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- 3. HEADER --- */
header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-serif);
    color: var(--primary-color);
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a:hover { color: var(--accent-color); }

.search-box {
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* --- 4. HERO SECTION --- */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 2rem;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content { flex: 1.2; }
.hero-content h1 { color: white; font-size: 3rem; margin-bottom: 1rem; }
.hero-content p { margin-bottom: 2rem; font-size: 1.1rem; opacity: 0.9; }

.hero-image { flex: 0.8; text-align: center; }
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    /* This makes your transparent PNG look professional */
    filter: drop-shadow(10px 10px 20px rgba(0,0,0,0.2));
}

.btn-main {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-main:hover { background-color: #bfa588; transform: translateY(-2px); }

/* --- 5. MAIN CONTENT & SIDEBAR --- */
.main-container {
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.section-title { margin-bottom: 2rem; border-bottom: 2px solid var(--accent-color); display: inline-block; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); }

.card-img { height: 180px; width: 100%; }
.card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }

.category-tag { font-size: 0.7rem; text-transform: uppercase; color: var(--accent-color); font-weight: bold; letter-spacing: 1px; }
.post-excerpt { font-size: 0.9rem; color: var(--text-light); margin: 0.5rem 0 1.5rem 0; }
.read-more { color: var(--primary-color); font-weight: bold; margin-top: auto; }

/* --- 6. SIDEBAR --- */
.sidebar-widget {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- 7. FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .main-container { grid-template-columns: 1fr; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
}