/* =========================
   BASE
========================= */
body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font, Arial, sans-serif);
    background: #ffffff;
    color: #111;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
main, aside {
    margin: 0;
    padding: 0;
}
/* =========================
   SITE BANNER (NEW)
========================= */
.site-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: block;
   /* 2. EMBED IMAGE: Replace the path below with your actual image file name */
    background: #111111 url('/images/banner-background.jpg') no-repeat center center;
    background-size: cover; /* Stretches and scales the image seamlessly */
/*    background: #111111; /* Sleek dark charcoal/black background */
    color: #ffffff;      /* High contrast crisp white text */
    padding: 50px 20px;
    text-align: center;
    box-sizing: border-box;
    border-bottom: 3px solid #6b7a4d; /* Subtle warm green accent strip matching your menu buttons */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    color: #ffffff;
}

.mission-statement {
    font-family: Georgia, serif;
    font-size: 16px;
    font-style: italic;
    color: #cccccc; /* Muted soft grey for the description text */
    margin: 0;
}

/* =========================
   MOBILE HEADER
========================= */

.mobile-header,
#mobile-menu {
    display: none;
}

/* =========================
   MAIN LAYOUT (DESKTOP)
========================= */

.layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1600px) 220px;
/*    grid-template-columns: 180px 1fr 240px;
    max-width: 1800px; */
    padding: 10px;
    gap: 16px;
    margin: 0 auto;
    margin-top: 140px;
    min-height: calc(100vh - 140px);
    align-items: start;
}

/* columns */
.left-column {
    position: sticky;
    top: 150px;
    align-self: start;
    background: #1877f2;
    min-height: calc(100vh - 170px);
    padding: 10px;
    font-size: 14px;
    box-sizing: border-box;
}
.left-column a {
    display: block;
    background: #111111;
    color: white;
    text-decoration: none;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.left-column a:hover {
    background: #666;
}

.right-column {
    position: sticky;
    top: 150px;
    align-self: start;
    background: #f7f7f7;
    padding: 10px;
    font-size: 14px;
    box-sizing: border-box;
    width: 100%;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
}
.right-column h2 {
    background: #4a4a4a;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 15px;
}
.right-column .card {
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 8px;
    margin-bottom: 12px;
}
.right-column .card img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
    border-radius: 4px;
}


.left-column h2 {
    text-align: center;
}

.main-column {
    background: #000000;
    min-width: 0;
    padding: 30px;
    background: #fff;
    font-size: 18px;
    line-height: 1.7;

    /* CRITICAL FIX */
}
.main-column p {
    max-width: 100%;
}
/* =========================
   RIGHT SIDEBAR RELATED FEED
========================= */
/* =========================
   SIDEBAR FILTER BUTTONS
========================= */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 5px;
}

.filter-btn {
    width: 100%;
    text-align: left;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    color: #333333;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover {
    background: #f0f0f0;
    color: #111111;
    border-color: #cccccc;
    padding-left: 16px; /* Subtle offset sliding animation effect */
}

.filter-btn.active {
    background: #111111; /* Matches your dark menu button header aesthetic */
    color: #ffffff;
    border-color: #111111;
}
/* =========================
   SIDEBAR COPYRIGHT UNIT
========================= */
.sidebar-copyright {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid #d1d5db; /* Light divider line above text */
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
    color: #ffffff !important; /* Muted subtle grey text */
}

.sidebar-copyright p {
    margin: 4px 0;
}

/* Override the block button appearance for copyright links */
.left-column .sidebar-copyright a {
    display: inline !important;
    background: none !important;
    color: #4b5563 !important;
    padding: 0 !important;
    font-weight: normal !important;
    text-decoration: underline !important;
}

.left-column .sidebar-copyright a:hover {
    color: #ffffff !important;
}

/* Button-styled section header */
.sidebar-header-button {
    background: #4a4a4a;
    color: #ffffff;
    padding: 10px 12px;
    text-align: center;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Individual card stack block container */
.sidebar-card-stacked {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Image scaling inside stack block */
.sidebar-card-img {
    width: 100%;
    height: 120px;       /* Constrained height so it doesn't map overly long */
    object-fit: cover;   /* Crops elegantly automatically */
    border-radius: 3px;
    margin-bottom: 8px;
}

/* Stacked title rules */
.sidebar-card-title {
    font-size: 15px;
    line-height: 1.3;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.sidebar-card-link {
    text-decoration: none;
    color: #111111;
}

.sidebar-card-link:hover .sidebar-card-title {
    color: #6b7a4d; /* Matches the green theme accent color on hover */
}

/* 10-word constraint typography text layout space */
.sidebar-card-excerpt {
    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 1.4;
    color: #444444;
    margin: 0;
}

.no-related {
    font-size: 13px;
    font-style: italic;
    color: #777777;
    text-align: center;
    padding: 10px;
}


/* =========================
   HERO
========================= */
.postit-title-box {
    background: #fef08a;              /* Classic soft pastel post-it yellow */
    padding: 24px 30px;               /* Generous inner breathing room for long titles */
    display: inline-block;            /* Shrinks the box width to wrap naturally around the text */
    max-width: 90%;                   /* Prevents the note from touching grid edges */
    margin-bottom: 25px;              /* Space before the hero banner image underneath */
    
    /* Post-it structural details */
    border-left: 5px solid #facc15;   /* Slightly darker yellow accent stripe simulating a binder lip */
    box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.08); /* Organic soft shadow lifting it off the page */
    transform: rotate(-0.5deg);       /* Subtle organic tilt making it look hand-placed */
}

/* Override the default H1 typography inside this new container box */
.postit-title-box h1 {
    font-size: 38px;
    line-height: 1.3;
    margin: 0;                        /* Clears outer margin collapse artifacts */
    font-weight: 700;
}
/* Ensure the link inside your post-it box reads cleanly on light yellow */
.postit-title-box h1 a {
    text-decoration: none;
    color: #1c1917;                   /* Deep dark charcoal/stone font for crisp contrast */
    transition: color 0.15s ease;
}

.postit-title-box h1 a:hover {
    color: #a16207;                   /* Warm amber hover highlight tone */
}
.hero {
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero h1 a {
    text-decoration: none;
    color: #111;
}

.hero-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    margin-bottom: 15px;
}

.hero-excerpt {
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
    color: #000;
}

/* =========================
   FEATURED GRID
========================= */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.featured-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 10px;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 a {
    text-decoration: none;
    color: #111;
}

.card-excerpt {
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.5;
    color: #000;
    margin-top: 8px;
}
/* If the sidebar-feed has an H2 heading but absolutely no card divs following it, hide it */
.sidebar-feed:not(:has(.sidebar-card-stacked)):not(:has(.no-related)) {
    display: none !important;
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3 {
    font-family: var(--heading-font, Arial, sans-serif);
    color: #111;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    /* 1. HIDE THE STICKY BANNER ON MOBILE DEVICES */
    .site-banner {
        display: none !important;
    }

    /* 2. OVERRIDE THE TOP MARGIN */
    /* On mobile, we remove the 195px gap because the banner is gone */
    .layout {
        display: block;
        margin-top: 0 !important; 
        padding: 10px;
    }

    .left-column,
    .right-column {
        display: none;
    }

    .main-column {
        width: 100%;
        padding: 15px;
    }

    /* mobile header */
    .mobile-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 15px;
        background: #f8f8f8;
        border-bottom: 1px solid #ddd;
    }

    #menu-toggle {
        font-size: 28px;
        border: none;
        background: none;
        cursor: pointer;
    }

    .site-title {
        font-size: 20px;
        font-weight: bold;
    }

    #mobile-menu {
        padding: 10px;
        background: #f5f5f5;
    }

    #mobile-menu.open {
        display: block;
    }

    #mobile-menu a {
        display: block;
        padding: 10px 0;
        text-decoration: none;
        color: #111;
    }

    /* hero scaling */
    .hero h1 {
        font-size: 34px;
    }

    .hero-excerpt {
        font-size: 18px;
    }

    /* featured becomes vertical */
    .featured-grid {
        display: block;
    }

    .card {
        margin-bottom: 20px;
    }

    .card-excerpt {
        display: none;
    }

}
