/* --- 1. CORE LAYOUT --- */
* { box-sizing: border-box; }

a {color:#0984e3;}
a:hover {color: #888;}

body {
    background-color: #302101; /* Your signature deep brown */
    font-family: 'Lato', sans-serif;
    color: #2d3436;
    line-height: 1.8;
    margin: 0;
}

.site-container {
    max-width: 1100px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* --- 2. HEADER & NAVIGATION --- */
.site-header {
    padding: 0 40px;
    background-color: #319a54;
}

.site-title a {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff; /* Gardening Green */
    text-decoration: none;
    letter-spacing: -1px;
    font-family: 'Lato', sans-serif;
    
    /* THE FORCE FIXES */
    text-transform: none !important; 
    font-variant-caps: normal !important;
    font-variant: normal !important;
}

.nav-primary {
    background: #302101;
    color: #fff;
}

.genesis-nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0 40px;
}

.menu-item a {
    color: #fff;
    padding: 18px 25px;
    display: block;
    text-decoration: none;
    text-transform: none; 
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.menu-item a:hover {
    background: #319a54;
    color: #fff;
}

/* --- 3. TWO-COLUMN & FULL-WIDTH LOGIC --- */
.content-sidebar-wrap {
    display: flex;
    padding: 50px 40px;
    gap: 60px;
}

.content {
    flex: 2;
    min-width: 0;
}

.sidebar {
    flex: 1;
    border-left: 1px solid #edf2f7;
    padding-left: 40px;
}

/* Full-width overrides (For Homepage) */
.full-width-content .content {
    flex: 1 1 100%;
}

.full-width-content .content-sidebar-wrap {
    display: block; 
}

/* --- 4. TYPOGRAPHY & POSTS --- */
.entry-title {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #1e272e;
}

.entry-meta {
    font-size: 0.9rem;
    color: #636e72;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f2f6;
}

.entry-modified {
    color: #319a54;
    font-weight: 600;
}

/* --- 5. TABLE OF CONTENTS --- */
.table-of-contents {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #319a54;
    padding: 30px;
    margin: 40px 0;
    border-radius: 4px;
}

.table-of-contents h4 {
    margin: 0 0 15px 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #319a54;
    letter-spacing: 1px;
}

/* --- 6. SIDEBAR WIDGETS --- */
.widget-title {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d3436;
    border-bottom: 2px solid #2d3436;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- 7. HOMEPAGE GRID (3-COLUMNS) --- */
.post-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.post-item {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #0984e3;
}

.post-item a {
    font-size: 1.3rem; 
    font-weight: 700;
    color: #2d3436;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 10px;
    display: block;
}

/* Inner card meta (date) */
.post-item .entry-meta {
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto; 
    padding: 15px 0 0 0;
    border-top: 1px solid #f7fafc;
    border-bottom: none; /* Remove the line from post-pages */
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 800px) {
    /* 1. Stack Content and Sidebar */
    .content-sidebar-wrap {
        flex-direction: column; /* This drops the sidebar below content */
        padding: 30px 20px;     /* Tighter padding for small screens */
        gap: 40px;
    }

    /* 2. Reset Sidebar Border and Padding */
    .sidebar {
        border-left: none;      /* Remove the vertical line */
        border-top: 1px solid #edf2f7; /* Add a horizontal separator instead */
        padding-left: 0;        /* Reset the desktop padding */
        padding-top: 40px;      /* Add space above sidebar after it drops */
    }

    /* 3. Navigation Menu - Allow scrolling if too many items */
    .genesis-nav-menu {
        padding: 0 20px;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* 4. Homepage Grid - Stack to 1 column */
    .post-list {
        grid-template-columns: 1fr;
    }

    /* 5. Container - Remove margins so it fills the phone screen */
    .site-container {
        margin: 0;
        border-radius: 0;
    }

    /* 6. Typography - Shrink titles slightly for small screens */
    .site-title a { font-size: 1.8rem; }
    .entry-title { font-size: 2rem; }
}

/* --- 8. FOOTER --- */
.site-footer {
    background-color: #302101; /* Light grey to separate from content */
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #edf2f7;
    margin-top: 40px;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
}

.site-footer a {
    color: #319a54; /* Using your gardening green */
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #0984e3; /* Modern blue hover */
    text-decoration: underline;
}
.post-excerpt {
    font-size: 0.95rem;
    color: #636e72;
    line-height: 1.5;
    margin: 10px 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Cuts off text after 3 lines for clean look */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #319a54;
    margin-bottom: 40px;
    font-weight: 800;
}