/* Import Google Fonts - Oswald (Headlines) & Open Sans (Body) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Open+Sans:wght@400;600&display=swap');

/* --- 1. Consolidated Color Variables --- */
:root {
    /* New Palette */
    --color-primary: #c3314e; /* Primary Accent: Crimson/Red (H1, Main Hover, Hamburger) */
    --color-secondary: #7bc9f7; /* Secondary Accent: Light Blue (Links, H2 Border, Buttons) */
    --color-nav-bg: #4db67e; /* NAV BACKGROUND: Deep Green (Both Bars) */

    /* Core Colors */
    --color-background-main: #ffffff; /* Pure White (MAIN PAGE BACKGROUND) */
    --color-text-dark: #222222; /* Dark Text (Body Text, Dropdown Background) */
    --color-text-light: #ffffff; /* White Text */
    --color-alert-yellow: #FAD02C; /* Sparingly Used Alert / NEW TOP LINK COLOR */

    /* FOOTER SPECIFIC PALETTE - Adapted to new scheme */
    --color-footer-bg: var(--color-nav-bg); /* Deep Green Footer Background */
    --color-footer-heading: var(--color-primary); /* Crimson for Headings */
    --color-footer-links: var(--color-text-light); /* White for Links */
    
    /* Footer Button Styles */
    --color-button-email: var(--color-primary); /* Crimson for Email Button (New Style) */
    --color-button-tickets: var(--color-secondary); /* Light Blue for Tickets Button */
}

/* --- Global Body & Base Typography --- */
body {
    background-color: var(--color-background-main); 
    color: var(--color-text-dark);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden; 
    -webkit-text-size-adjust: 100%;
}


/* --- 2. Mobile-First Header & Navigation (STATIC POSITIONING) --- */
.header-bar {
    /* RETAIN GREEN BACKGROUND for Top Bar */
    background-color: var(--color-nav-bg); 
    padding: 15px 20px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    z-index: 1001; 
}

/* Added to prevent hamburger overflow on mobile */
.header-bar > * {
    min-width: 0; 
}

/* Allow logo to shrink if necessary on small screens */
.logo-container {
    flex-shrink: 1; 
}

/* --- LOGO SIZING FIX --- */
.desktop-logo { display: none; }
.mobile-logo { display: block; height: 40px; max-width: 100%; }
.logo-container img { height: 40px; max-width: 100%; }

/* --- Menu Button & Hamburger Icon --- */
.menu-toggle {
    display: block;
    background: none; border: none; cursor: pointer; padding: 0;
    width: 30px; height: 30px; position: relative; z-index: 1002;
    margin-right: 0; 
}

/* MOBILE FIX: Hamburger positioning relative to its container (.menu-toggle) */
.hamburger { position: absolute; top: 50%; left: 0; transform: translateY(-50%); }
.hamburger::before, .hamburger::after, .hamburger {
    content: ''; display: block; width: 30px; height: 3px;
    background-color: var(--color-primary); 
    border-radius: 5px; transition: all 0.3s ease;
}
.hamburger::before { position: absolute; top: -8px; }
.hamburger::after { position: absolute; top: 8px; }

/* --- Mobile Menu Container (Dark Background) --- */
.nav-menu {
    display: none; /* Hidden by default on mobile */
    position: absolute;
    top: 70px; /* Assuming header height is around 70px */
    left: 0;
    width: 100%;
    background-color: var(--color-text-dark); /* Keep dark for mobile background contrast */
    padding: 10px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    z-index: 999;
}

/* NEW: Wrapper for the 50% centered nav menu. Hidden on mobile. */
.nav-menu-wrapper {
    display: none; 
}

/* Mobile Menu Links (stacked vertically) */
.nav-menu.is-open { display: block; }
.nav-menu a {
    display: block; padding: 10px 30px; margin: 0;
    text-align: left; text-decoration: none;
    color: var(--color-text-light); 
    transition: background-color 0.2s;
}
.nav-menu a:hover {
    background-color: var(--color-primary); 
    color: var(--color-text-light);
}

/* --- Mobile Dropdown Expansion Rules --- */
.nav-menu .dropdown-content {
    display: none;
    background-color: rgba(0, 0, 0, 0.1); 
}
.nav-menu .dropdown-content.is-active {
    display: block;
}
.nav-menu .dropdown-content a {
    padding: 10px 45px; 
    background-color: transparent; 
}
.nav-menu .dropdown-content a:hover {
    background-color: var(--color-primary); 
    color: var(--color-text-light);
}

/* --- 3. Custom Link & Button Styles --- */
.cta-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    padding: 8px 15px;
    border: 1px solid var(--color-alert-yellow); 
    color: var(--color-alert-yellow); 
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
    margin-top: 0 !important; 
    margin-bottom: 0 !important;
}
.cta-link:hover {
    background-color: var(--color-alert-yellow); 
    color: var(--color-text-dark); 
}

/* DESKTOP TOP BAR LINK STYLES (New Requirements) */
.top-nav-link {
    /* NEW COLOR: Yellow for the links */
    color: var(--color-alert-yellow); 
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    white-space: nowrap;
    font-size: 0.9em;
    padding: 5px 0;
}
.top-nav-link:hover {
    /* NEW HOVER: Light Blue text */
    color: var(--color-secondary);
}

.top-nav-link-highlight {
    /* NEW COLOR: White for the links */
    color: var(--color-text-light); 
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    white-space: nowrap;
    font-size: 0.9em;
    padding: 5px 0;
}
.top-nav-link-highlight:hover {
    /* NEW HOVER: Light Blue text */
    color: var(--color-secondary);
}

.nav-link-style {
    color: var(--color-text-light); 
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
a {
    color: var(--color-secondary); 
    text-decoration: underline;
    transition: color 0.2s;
}
a:hover {
    color: var(--color-primary); 
}
.myBtn {
    display: inline-block;
    background-color: var(--color-secondary); 
    color: var(--color-text-light);
    padding: 10px 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    margin: 0 5px; 
    transition: background-color 0.3s, transform 0.1s;
    border: none;
}
.myBtn:hover {
    background-color: var(--color-primary); 
    transform: translateY(-1px);
    color: var(--color-text-light);
}
.myBtn.smaller {
    font-size: 0.9em;
    padding: 8px 15px;
}


/* --- 4. Main Content Layout & Typography --- */
.main-content { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 30px 20px; 
}

h1 { 
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase; 
    font-weight: 500;
    color: var(--color-primary); 
    font-size: 2.5em;
    border-bottom: 3px solid var(--color-primary); 
    padding-bottom: 10px;
    margin-top: 40px; margin-bottom: 15px;
}
h2 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase; 
    font-weight: 500;
    color: var(--color-text-dark); 
    font-size: 1.8em;
    border-bottom: 2px solid var(--color-secondary); 
    padding-bottom: 5px;
    margin-top: 40px; margin-bottom: 15px;
}
ul { list-style: none; padding-left: 0; }
ul li { padding-left: 1.5em; position: relative; margin-bottom: 5px; }
ul li::before {
    content: '★';
    color: var(--color-secondary); 
    position: absolute; left: 0; font-size: 0.9em;
}
.mentor { color: var(--color-primary); font-weight: 700; } 
.mentor::before {
    content: '⭐';
    color: var(--color-alert-yellow); 
}
.officer { color: var(--color-primary); font-weight: 700; } 
.officer::before {
    content: '⭐';
    color: var(--color-alert-yellow); 
}
.volunteer-corps-list { columns: 1; list-style: none; padding: 0; }
.yellow-note {
    background-color: var(--color-alert-yellow);
    padding: 15px;
    border-radius: 5px;
    color: var(--color-text-dark);
    font-weight: 600;
    margin: 20px 0;
}
.yellow-note span {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    margin-right: 5px;
}

.board-list { columns: 1; list-style: none; padding: 0; }

.tech-spec-list { columns: 1; list-style: none; padding: 0; }

/* -------------------------------------------------------------------------- */
/* --- DESKTOP MENU STYLES (Screen size >= 768px) --- */
/* -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    /* --- Logo & Top Bar Layout --- */
    .desktop-only { display: block !important; }
    .desktop-logo { display: block; height: 50px; }
    .mobile-logo { display: none; }
    .logo-container img { height: 50px; }
    
    .menu-toggle { display: none; }

    /* FIX 1: The nav-left-group is in the header-bar, we need it visible. */
    .nav-left-group {
        display: block !important; /* MAKE THE LOGO CONTAINER VISIBLE */
        flex-shrink: 0;
    }

    /* NEW: HEADER BAR (LINE 1 - Green Top Bar) LAYOUT */
    .header-bar {
        background-color: var(--color-nav-bg); 
        height: 60px; /* Made slightly taller to fit the logo nicely */
        padding: 0 30px;
        /* FIX 2: Use space-between to push logo left and links right */
        justify-content: space-between; 
        align-items: center; 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
        z-index: 1001;
    }
    
    /* NEW: Top Bar content container (contains the yellow links/CTAs) */
    .nav-right-container {
        display: flex;
        align-items: center;
        gap: 20px;
        justify-content: flex-end; 
        height: 100%; 
    }

    /* NEW: TOP LINE CTA BAR STYLING - This contains the simple links (STAY UPDATED, LOGIN) */
    .top-cta-bar {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 0; 
        margin: 0;
        flex-direction: row; 
        height: 100%; 
    }
    
    /* HIDE THE BUTTONS */
    .top-cta-bar .cta-link {
        display: none; 
    }
    
    /* --------------------------------------------------------- */
    /* FIX: FULL-WIDTH WRAPPER (The solid green bar) */
    /* --------------------------------------------------------- */
    .nav-menu-wrapper {
        display: block; /* Make the wrapper visible on desktop */
        background-color: var(--color-nav-bg); /* Apply the full-width green background here */
        height: 40px; /* Apply the bar height here */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        width: 100%; /* Ensure it spans the full width */
        margin: 0;
        padding: 0;
    }

    /* NEW: MAIN NAVIGATION (LINE 2 - The 50% Center Menu) */
    .nav-menu {
        display: flex !important;
        position: static;
        /* Constrain the inner menu element to 50% width */
        max-width: 50vw;
        /* Center the inner menu element within the full-width wrapper */
        margin-left: auto;
        margin-right: auto;
        
        /* Remove background/height from the inner nav since the wrapper has it */
        background: none; 
        height: 100%; /* Take the height of the wrapper (40px) */
        padding: 0 30px; /* Keep padding for content spacing */
        
        align-items: center;
        justify-content: center; /* Center the links inside */
        flex-direction: row; /* Ensure links are side-by-side */
    }

    /* ADJUSTMENT: Main navigation links (for the second line - now centered) */
    .nav-menu a {
        display: flex;
        align-items: center;
        /* Keep spacing between links */
        margin-left: 20px; 
        margin-right: 0; 
        padding: 0 5px;
        height: 100%;
        background: none;
        text-decoration: none;
        color: var(--color-text-light);
        white-space: nowrap;
        font-weight: 600;
    }
    
    /* ... (Rest of the desktop CSS remains the same: Dropdown, Content, etc.) ... */

    /* --- Dropdown Styles (Hover) --- */
    .dropdown {
        position: relative;
        display: inline-block;
        height: 100%;
    }
    .dropbtn {
        height: 100%;
        display: flex !important;
        align-items: center;
    }
    
    /* Dropdown Container: Forced Solid Dark Background */
    .dropdown-content {
        display: none;
        position: absolute;
        /* Adjusted top to match the new 40px bottom bar height */
        top: 40px; 
        left: 0;
        right: auto;
        min-width: 220px;
        background-color: var(--color-text-dark) !important;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
        z-index: 998;
    }
    .dropdown:hover .dropdown-content {
        display: block;
    }

    /* Inner Links: Forced Light Text and Hover Effects */
    .dropdown-content a {
        color: var(--color-text-light) !important;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
        height: auto;
        line-height: normal;
        margin: 0;
        background-color: var(--color-text-dark) !important;
    }
    .dropdown-content a:hover {
        background-color: var(--color-primary) !important;
        color: var(--color-text-light) !important;
    }
    
    /* Content adjustments for desktop */
    .volunteer-corps-list {
        columns: 3;
    }
    .board-list {
        columns: 3;
    }

    .tech-spec-list {
        columns: 3;
    }

    /* --- Nested Dropdown Styles --- */
    .nested-dropdown {
        position: relative;
        display: block; 
    }
    .nested-dropbtn {
        color: var(--color-text-light) !important;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
        height: auto;
        line-height: normal;
        margin: 0;
        background-color: var(--color-text-dark) !important;
        transition: background-color 0.2s, color 0.2s;
    }

    .nested-dropbtn:hover {
        background-color: var(--color-primary) !important;
        color: var(--color-text-light) !important;
    }

    .nested-dropdown-content {
        display: none;
        position: absolute;
        left: 100%;
        top: 0; 
        min-width: 220px;
        background-color: var(--color-text-dark) !important;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
        z-index: 997; 
    }
    
    .nested-dropdown:hover .nested-dropdown-content {
        display: block;
    }

    .nested-dropdown-content a {
        color: var(--color-text-light) !important;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
        margin: 0;
        background-color: var(--color-text-dark) !important;
    }

    .nested-dropdown-content a:hover {
        background-color: var(--color-primary) !important;
        color: var(--color-text-light) !important;
    }

    .nested-dropdown:hover > .nested-dropbtn {
            background-color: var(--color-primary) !important;
    }
}

/* -------------------------------------------------------------------------- */
/* --- MOBILE MENU STYLES (Applies to max-width: 767px) --- */
/* -------------------------------------------------------------------------- */

/* Adjust the padding for the *nested* links on mobile */
.nav-menu .nested-dropdown-content a {
    /* Increase padding to show hierarchy: 10px top/bottom, 60px left */
    padding: 10px 60px;
    background-color: rgba(0, 0, 0, 0.2); /* Slightly lighter/different shade */
}

/* Mobile: Display the nested content when the nested-dropbtn is clicked */
.nav-menu .nested-dropdown-content.is-active {
    display: block;
}

/* --- Mobile Fixes (Screen size < 768px) --- */
@media (max-width: 767px) {
    /* Original Mobile Fixes */
    .desktop-only {
        display: none !important;
    }
    .header-bar {
        justify-content: space-between;
    }
}

/* --- UPDATED IMAGE BANNER STYLES (Showing only middle horizontal third) --- */
.image-banner {
    width: 100vw; 
    position: relative; 
    left: 50%; 
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    height: 450px; 
    
    background-image: url('https://community-amplified.neocities.org/Volunteer%20Hero.png'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    margin-top: .5px;
}

.main-content {
    max-width: 900px; 
    margin: 0 auto; 
    padding: 30px 20px; 
}


/* --- FOOTER STYLES (REVISED with New Palette) --- */

/* Base Footer Container */
.main-footer {
    background-color: var(--color-footer-bg); 
    color: var(--color-text-light);
    padding-top: 40px;
    font-family: 'Open Sans', sans-serif;
    text-align: center; 
}

/* Content Wrapper (Centers the content and enables Flexbox on Desktop) */
.footer-content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 30px; 
    display: flex;
    flex-direction: column; 
    gap: 30px;
}
.footer-section {
    flex: 1; 
}
.footer-logo-cta-section {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 15px;
    margin-bottom: 20px;
    text-align: center;
}
.footer-primary-logo {
    max-width: 150px; 
    height: auto;
    margin-bottom: 15px;
}
.footer-address-text {
    margin: 0;
    line-height: 1.4;
    color: var(--color-footer-links); 
    font-size: 0.95em;
}
.footer-heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    color: var(--color-footer-heading); 
    margin-bottom: 15px;
    border-bottom: none; 
    padding-bottom: 0;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 5px; 
}
.footer-links a {
    color: var(--color-footer-links); 
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--color-secondary); 
    text-decoration: none; 
}
.footer-buttons-wrap {
    display: flex;
    flex-direction: column; 
    width: 100%;
    max-width: 250px; 
    margin: 0 auto;
    gap: 10px;
}
.footer-btn {
    display: block; 
    padding: 10px 15px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.2s, border-color 0.2s;
    width: 100%; 
    box-sizing: border-box;
    text-align: center;
}
.footer-btn.email-style {
    background-color: var(--color-button-email); 
    border: 2px solid var(--color-button-email);
    color: var(--color-text-light);
}
.footer-btn.email-style:hover {
    background-color: transparent;
    border-color: var(--color-button-email);
    color: var(--color-button-email);
}
.footer-btn.cta-style {
    background-color: var(--color-button-tickets); 
    border: 2px solid var(--color-button-tickets);
    color: var(--color-text-light);
}
.footer-btn.cta-style:hover {
    background-color: var(--color-primary); 
    border-color: var(--color-primary);
}
.social-icons {
    display: flex;
    justify-content: center; 
    gap: 15px;
    margin-bottom: 20px;
}
.social-icons a {
    color: var(--color-text-light); 
    font-size: 24px;
    transition: color 0.2s;
}
.social-icons a:hover {
    color: var(--color-secondary); 
}
.footer-sponsor-column {
    background-color: var(--color-footer-bg); 
    color: var(--color-text-light);
    padding: 0; 
    text-align: center;
    margin-top: 0; 
    font-size: 0.9em;
}
.footer-sponsor-block p {
    margin: 5px 0;
    color: var(--color-footer-links); 
}
.sponsor-logo {
    max-width: 150px;
    height: auto;
    margin: 10px auto;
    display: block;
}


/* --- DESKTOP FOOTER ADJUSTMENTS (Screen size >= 768px) --- */
@media (min-width: 768px) {
    .footer-content-wrap {
        flex-direction: row; 
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
    .footer-logo-cta-section {
        flex-basis: 300px; 
        align-items: flex-start; 
        margin-bottom: 0; 
        text-align: left;
    }
    .footer-buttons-wrap {
        flex-direction: row; 
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .footer-section {
        flex: 1;
        padding-left: 30px; 
    }
    .footer-section:first-of-type {
        padding-left: 0;
    }
    .footer-btn {
        width: auto;
        flex: 1; 
    }
    .footer-sponsor-column {
        width: 100%;
        padding: 20px 0;
        text-align: center;
    }
    .social-links {
        display: none; 
    }
    .social-icons {
        justify-content: flex-start; 
        font-size: 30px; 
    }
}

/* --- NEW STYLES FOR THE WHITE SPONSOR BLOCK --- */
.footer-sponsor-promo {
    margin-top: 30px; 
    text-align: center; 
}
.sponsor-promo-heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    color: var(--color-footer-heading); 
    margin-bottom: 15px;
}
.footer-sponsor-block-white-bg {
    background-color: var(--color-background-main); 
    color: var(--color-text-dark); 
    padding: 15px 20px;
    border-radius: 5px; 
    display: inline-block; 
    max-width: 250px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}
.footer-sponsor-block-white-bg .sponsor-logo {
    max-width: 180px; 
    height: auto;
    margin: 0 auto 10px auto; 
    display: block; 
}
.sponsor-promo-text {
    margin: 0; 
    line-height: 1.4;
    font-size: 0.9em;
    color: var(--color-text-dark); 
}

/* DESKTOP ADJUSTMENTS for the sponsor block */
@media (min-width: 768px) {
    .footer-sponsor-promo {
        text-align: left; 
    }
    .footer-sponsor-block-white-bg {
        max-width: 280px; 
        padding: 20px 25px;
    }
}

/* --- NEW STYLE FOR HEADING *INSIDE* THE WHITE BOX --- */
.sponsor-promo-heading-white {
    color: var(--color-text-dark); 
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    margin: 0 0 5px 0; 
}

/* --- Adjustments for Footer Button Size --- */
.main-footer .footer-btn {
    padding: 8px 12px; 
    font-size: 0.9em; 
}
@media (min-width: 768px) {
    .main-footer .footer-buttons-wrap {
        align-items: center; 
        gap: 8px; 
    }
}


/* Google Map Responsiveness */

.google-map {
    padding-bottom: 50%;
    position: relative;
}

.google-map iframe {
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    position: absolute;
}


/* FAQ */

/* 1. Basic Container Styling */
.faq-container {
    max-width: 700px;
    margin: 30px auto;
}

/* 2. Styling the overall question item */
.faq-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden; /* Ensures borders look clean */
}

/* 3. Styling the clickable question (the summary element) */
.faq-question {
    display: block; /* Allows full-width styling */
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    
    /* CRITICAL: Remove the default browser marker */
    list-style: none;
    list-style-type: none; 
    
    /* Setting up for a custom arrow/icon */
    position: relative;
    padding-right: 40px; /* Space for the icon */
}

/* 4. Adding a custom PLUS (+) icon */
.faq-question::after {
    content: '+'; /* The plus sign */
    font-size: 1.5em;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    transition: transform 0.2s;
}

/* 5. Changing the icon to a MINUS (-) when the answer is open */
details[open] .faq-question::after {
    content: '–'; /* A minus sign */
}

/* 6. Styling the answer content */
.faq-answer {
    padding: 10px 20px 15px;
    background-color: #fff;
    border-top: 1px solid #eee; /* Separator line */
}

.faq-answer p {
    margin: 0; /* Remove default paragraph margins inside the answer */
    line-height: 1.6;
    color: #555;
}

/* --- 6. Staff Card Styles (FIXED Mobile Grid) --- */
.staff-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
    padding: 20px;
    /* FIX: Force a single column if the viewport is very narrow to prevent overflow */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.staff-card {
    background-color: var(--color-background-main);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(195, 49, 78, 0.3); 
}

.profile-img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid var(--color-secondary);
    margin-bottom: 16px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.staff-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.staff-title {
    color: var(--color-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.staff-contact {
    display: flex;
    align-items: center;
    color: var(--color-text-dark);
    font-size: 0.9em;
}

.staff-contact i {
    margin-right: 8px;
    color: var(--color-secondary);
}
        
/* --- 7. Faculty Bio Styles --- */
.faculty-bio-section {
    text-align: left; 
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    width: 100%;
}
.faculty-bio-section p {
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--color-text-dark); 
    margin: 0; 
}

/* --- 8. Staff Card Specific Mobile Adjustment (Very Narrow Screens) --- */
@media (max-width: 400px) {
    .staff-grid {
        /* Reduce side padding for maximum space */
        padding: 15px 10px;
    }
    .staff-card {
        /* FIX: Ensure card is centered and doesn't push the viewport */
        max-width: 100%; 
        margin-left: auto;
        margin-right: auto;
        /* Ensure content doesn't break out of the card */
        box-sizing: border-box;
    }
    .staff-name {
        /* Slightly reduce font size for very small screens */
        font-size: 1.3rem;
    }
}

.accordion-header {
    /* Set header background to the secondary accent color (Light Blue) */
    background-color: var(--color-nav-bg); 
    
    /* Set the text color to the dark text for readability */
    color: var(--color-text-dark);
    
    cursor: pointer;
    padding: 15px; /* Increase padding for a larger click target */
    
    /* Use the primary color for a subtle border bottom */
    border-bottom: 2px solid var(--color-secondary); 
    margin-top: 5px;
    
    /* Ensure the text is bold to act as a button/heading */
    font-weight: bold; 
    
    /* Smooth transition for hover effect */
    transition: background-color 0.2s ease; 
}

/* Hover effect: use the primary accent color to indicate interactivity */
.accordion-header:hover {
    background-color: var(--color-alert-yellow); 
    color: var(--color-text-dark); /* Switch text to dark for contrast on yellow */
    cursor: pointer;
}

/* Styling for the content panel */
.accordion-content {
    display: none; /* Keep this to hide it initially */
    padding: 20px; 
    border: 1px solid var(--color-text-dark); 
    border-top: none;
    background-color: var(--color-background-main); 
}

/* Optional: Clean up lists inside the content */
.accordion-content ul {
    margin-left: 20px;
}

.media-container {
    display: flex; /* Enables flex layout */
    gap: 20px;     /* Adds space between the image and the content */ 
    align-items: center;
    margin-bottom: 20px; /* Space below the entire section */
}

/* Optional: To place the image on the right */
.media-container.right-aligned {
    flex-direction: row-reverse;
}

.media-image {
    /* Limit the width of the image element */
    width: 30%; 
    flex-shrink: 0; /* Prevents the image from shrinking too much */
    height: auto;
}

.media-content {
    /* Allows the text content to take up the remaining space */
    width: 70%; 
}

/* --- Media Query for Mobile --- */
@media (max-width: 768px) {
    .media-container,
    .media-container.right-aligned {
        /* Force the items to stack vertically */
        flex-direction: column; 
    }

    .media-image,
    .media-content {
        /* Allow both to take up the full width when stacked */
        width: 100%;
    }
}

.indented-block {
    /* Moves the entire block 40 pixels inward from the left edge */
    padding-left: 40px; 
    /* You might also want a top/bottom margin for spacing */
    margin-bottom: 15px;
}

/* --- NEW SECTION: Event Card Grid Styles (Styled like Staff Cards) --- */

/* 1. GRID LAYOUT CONTAINER (Reuses the event-grid layout from before) */
.event-grid {
    display: grid;
    /* This ensures a 1-column layout on mobile, 2 columns on medium, 3 on large */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px; /* Matches staff-grid gap */
    margin-top: 20px;
}

/* 2. INDIVIDUAL CARD STYLING (Adapted from .staff-card) */
.event-card-styled {
    background-color: var(--color-background-main);
    border-radius: 12px; /* Soft rounded corners */
    padding: 24px; /* Padding around content */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Box shadow is used instead of a border for a cleaner look */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    overflow: hidden; /* Contains the image */
}

.event-card-styled:hover {
    /* Uses the primary color for the prominent hover shadow */
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(195, 49, 78, 0.3); /* Uses --color-primary */
}

/* 3. EVENT IMAGE STYLING (Rectangular version of the profile picture area) */
.event-image-container {
    width: 100%; /* Image area spans the card width */
    max-width: 300px; /* Limit max size on very large monitors */
    margin-bottom: 16px;
    border-radius: 8px; /* Slightly rounded image corners */
    border: 4px solid var(--color-secondary); /* Matches staff card border color */
    overflow: hidden;
}

.event-image-square {
    width: 100%;
    /* Use a fixed aspect ratio for visual consistency across all events */
    aspect-ratio: 3 / 2; 
    object-fit: cover;
    display: block;
}

/* 4. EVENT TEXT INFO (Container for name/date/button) */
.event-info-block {
    padding: 0; /* Remove default padding */
    width: 100%;
}

/* Event Title Styling (Adapted from .staff-name) */
.event-name-style {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary); /* Matches staff-name color */
    margin-bottom: 4px;
    margin-top: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Event Date/Time Styling (Adapted from .staff-title) */
.event-detail-style,
.event-time-style {
    color: var(--color-secondary); /* Matches staff-title color */
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 4px 0;
}

/* Button Placement */
.event-card-button {
    margin-top: 15px;
    width: 100%; /* Full width button inside the card padding */
}

/* 1. Wrapper to control the aspect ratio */
.video-container {
    position: relative; /* Essential for positioning the iframe */
    width: 100%;       /* Takes full width of its parent */
    padding-top: 56.25%; /* 16:9 aspect ratio (9 / 16 = 0.5625) */
    overflow: hidden;    /* Hides anything that spills out */
    margin: 0;           /* Ensures it is flush with the edges */
}

/* 2. Style the iframe to fill the wrapper */
.video-container iframe {
    position: absolute; /* Allows it to ignore normal flow */
    top: 0;
    left: 0;
    width: 100%;        /* Fills the calculated width */
    height: 100%;       /* Fills the calculated height */
    border: 0;          /* Removes any default iframe border */
}

/* 3. Optional: Add a break to ensure the video sits below the injected header */
/* You may need this if you see the video overlapping the navigation */
/* (Assuming your injection script places the header directly before the video) */
.header-bar + .video-container, 
.nav-menu-wrapper + .video-container {
    margin-top: 0; /* Adjust this if you need space */
}

/* --- FEATURED EVENT SECTION --- */

.featured-event-section {
    max-width: 900px; /* Constrain its overall width, similar to main-content */
    margin: 40px auto; /* Center it with top/bottom margin */
    padding: 0 20px; /* Add some side padding on smaller screens */
}

.featured-event-card {
    background-color: var(--color-background-main);
    border-radius: 12px;
    /* This line is the clean, non-hover shadow/border for the card */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    /* The transition line for hover effects is REMOVED */
}

/* The :hover block for the card is REMOVED */

.featured-event-image-container {
    width: 100%; 
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    flex-shrink: 0; 
}

.featured-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.featured-event-details {
    padding: 25px; 
    flex-grow: 1; 
    width: 100%; 
    box-sizing: border-box; 
}

.featured-event-date {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 5px;
    display: inline-block; 
}

.featured-event-time {
    font-size: 0.9em;
    color: var(--color-text-dark);
    margin: 0 0 15px 0;
    font-weight: 400;
}

.featured-event-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2em; 
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.featured-event-description {
    font-size: 1.1em;
    color: var(--color-text-dark);
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.featured-event-buttons {
    display: flex;
    flex-direction: column; 
    gap: 15px; 
    margin-top: 20px;
    width: 100%; 
    max-width: 300px; 
    margin-left: auto;
    margin-right: auto;
}

.featured-btn {
    display: block; 
    padding: 12px 25px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent; 
    box-sizing: border-box; 
}

.featured-btn.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

.featured-btn.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.featured-btn.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    border-color: var(--color-secondary);
}

.featured-btn.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}


/* --- DESKTOP LAYOUT FOR FEATURED EVENT --- */
@media (min-width: 768px) {
    .featured-event-card {
        flex-direction: row; 
        text-align: left; 
    }

    .featured-event-image-container {
        width: 40%; 
        aspect-ratio: unset; 
        max-width: none;
    }
    
    .featured-event-image {
        width: 100%;
        height: 100%;
    }

    .featured-event-details {
        padding: 30px; 
        width: 60%; 
    }
    
    .featured-event-date {
        display: block; 
    }

    .featured-event-buttons {
        flex-direction: row; 
        max-width: none; 
        margin-left: 0;
        margin-right: 0;
    }

    .featured-btn {
        flex: 1; 
        max-width: 200px; 
    }
}

/* --- SPONSOR CAROUSEL SECTION --- */

.sponsor-section {
    padding: 40px 0;
    text-align: center;
    background-color: var(--color-background-main); /* Match your card background or set to white */
}

.sponsor-header {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 25px;
}

.sponsor-carousel-container {
    /* Hides the duplicate set of images until they scroll into view */
    overflow: hidden; 
    white-space: nowrap; /* Forces all images onto a single line */
    max-width: 1200px; /* Optional: limit the carousel width */
    margin: 0 auto;
}

.sponsor-track {
    display: flex;
    /* Apply the animation to the track */
    animation: scroll-sponsors 30s linear infinite; 
    width: fit-content; /* Ensure the track is wide enough to hold ALL images */
}

.sponsor-logo {
    /* Define the size and spacing for each logo */
    height: 80px; /* Fixed height for consistency */
    max-width: 180px; /* Max width to keep large logos in check */
    width: auto;
    object-fit: contain;
    margin: 0 40px; /* Spacing between logos */
    flex-shrink: 0; /* Prevents logos from shrinking below their defined size */
    opacity: 0.7; /* Optional: slightly desaturate logos */
    transition: opacity 0.3s;
}

.sponsor-logo:hover {
    opacity: 1; /* Restore opacity on hover */
}


/* --- CSS KEYFRAME ANIMATION --- */

/* Calculates the distance needed to scroll to see the duplicate set.
  -50% is the correct value because the track is made up of two equal groups of images. 
*/
@keyframes scroll-sponsors {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Optional: Pause the animation when the user hovers over the carousel */
.sponsor-carousel-container:hover .sponsor-track {
    animation-play-state: paused;
}



/* --- UPCOMING SHOWS SECTION --- */
.upcoming-shows-section {
    padding: 60px 20px;
    background-color: var(--color-background-main); /* Match background */
    text-align: center;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    font-weight: 800;
    color: var(--color-primary); /* Use a strong color for the title */
    margin-bottom: 40px;
}

.shows-grid {
    display: grid;
    /* 4 columns on desktop, ensuring they take equal space */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; /* Space between the cards */
    max-width: 1400px; /* Limit the max width of the grid */
    margin: 0 auto;
}

/* Mobile Responsiveness: Stack cards on smaller screens */
@media (max-width: 1024px) {
    .shows-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}
@media (max-width: 600px) {
    .shows-grid {
        grid-template-columns: 1fr; /* 1 column on phones */
    }
}


/* --- INDIVIDUAL SHOW CARD STYLING --- */
.show-card {
    display: block; /* Make the whole card a clickable link */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    background-color: #000; /* Ensure the background is dark for contrast */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.show-card-image {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.8); /* Slightly dim the image for text contrast */
    transition: filter 0.5s ease;
    /* --- FIX: Set position and z-index to explicitly put the image on layer 5 --- */
    position: relative;
    z-index: 5; 
}

/* --- STATIC INFO (Date and Title) --- */
.show-card-info-static {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex; /* Flexbox for date and title side-by-side */
    align-items: flex-end; /* Align title to the bottom of the date box */
    color: #fff;
    pointer-events: none; /* Allows clicks to pass through to the parent link */
    z-index: 10; /* Higher than the image (5) but lower than the overlay (20) */
}

.show-date-large {
    line-height: 1;
    text-align: center;
    padding-right: 15px;
    border-right: 2px solid #fff; /* Separator line next to date */
    flex-shrink: 0; /* Prevents date from wrapping */
}

.show-date-large .day, 
.show-date-large .month {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
}

.show-date-large .num {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 2.8em; /* Large number for the date */
    font-weight: 700;
}

.show-title-static {
    padding-left: 15px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
}


/* --- HOVER OVERLAY EFFECT (The hidden panel) --- */
.show-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Dark semi-transparent background */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease;
    z-index: 20; /* This is the highest z-index, ensuring it sits on top */
    /* Center the hover content */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

/* 1. Show the overlay on hover */
.show-card:hover .show-card-overlay {
    opacity: 1;
}

/* 2. Remove the filter on the image when hovering */
.show-card:hover .show-card-image {
    filter: brightness(1); /* Set brightness to 1 (normal) */
}

/* 3. Hide the static info when overlay is visible */
.show-card:hover .show-card-info-static {
    opacity: 0;
    transition: opacity 0.2s;
}

/* --- HOVER DETAILS AND BUTTONS --- */
.show-details-hover {
    color: #fff;
    max-width: 80%;
}

.hover-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.hover-subtitle {
    font-size: 0.9em;
    font-weight: 400;
    margin-bottom: 20px;
}

.hover-btn {
    display: inline-block;
    padding: 10px 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px 5px;
    transition: background-color 0.3s, color 0.3s;
}

.hover-btn.btn-primary {
    background-color: var(--color-secondary); /* Use your secondary color for the primary CTA */
    color: #fff;
}

.hover-btn.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}


/* --- SEE MORE SHOWS LINK --- */
.see-more-link-container {
    padding: 30px 0 0;
    text-align: right; /* Align to the bottom right, as in the example */
    max-width: 1400px; 
    margin: 0 auto;
}

.see-more-shows {
    color: var(--color-primary);
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.see-more-shows:hover {
    color: var(--color-secondary);
}

.arrow-right {
    font-weight: 800;
    margin-left: 5px;
}


        /* ------------------------------------------------------- */
        /* --- NEW CSS FOR THE HISTORY/TODAY/FUTURE SECTION --- */
        /* ------------------------------------------------------- */

        /* 1. Grid Override: Switch from 4 columns to 3 columns */
        .history-grid {
            grid-template-columns: repeat(3, 1fr);
        }

        /* 2. Static Label Override: Since we don't have dates, we center the title */
        .history-static-label {
            width: 100%;
            display: block; /* Override flex */
            text-align: center;
            padding: 0;
            border-top: 4px solid var(--color-primary); /* Nice accent bar */
            padding-top: 15px;
        }

        .history-static-label .show-title-static {
            padding-left: 0;
            text-align: center;
            font-size: 1.5em; /* Slightly larger than show titles */
            letter-spacing: 1px;
        }

        /* 3. Specific colors for the "Call to Action" box */
        .cta-card .show-title-static {
            color: var(--color-secondary); /* Make "Support Us" blue */
        }
        .cta-card .history-static-label {
            border-color: var(--color-secondary);
        }

        /* Responsive Adjustments for the 3-column grid */
        @media (max-width: 1024px) {
            .history-grid {
                grid-template-columns: repeat(2, 1fr); /* 2 cols on tablet */
            }
            /* Make the last item span 2 cols on tablet for balance */
            .history-grid .show-card:last-child {
                grid-column: span 2;
            }
        }

        @media (max-width: 600px) {
            .history-grid {
                grid-template-columns: 1fr; /* Stack on mobile */
            }
            .history-grid .show-card:last-child {
                grid-column: span 1;
            }
        }