/* --- 1. Global Setup & Background --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}


/* --- 1. Global Setup & Background --- */
body {
    background: url('../background/background2.jpg') no-repeat center center fixed;
    background-size: cover;
    padding-left: 0; /* Changed from 60px to 0 to remove the left overlap */
    color: white;
    min-height: 100vh;
    scroll-behavior: smooth;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 37, 62, 0.0);
    z-index: -1;
}

.hamburger {
    display: none;
}

/* --- 2. Header & Navigation --- */
header {
    background: #11253E;
    /* This creates the full-width gold line */
    border-bottom: 2px solid #ceb888;
    position: fixed; /* CHANGED: Fixed for desktop */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.navbar {
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.mobile-logo-link {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #b88c5c;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 10px 12px;
    transition: 0.3s;
    white-space: nowrap;
}
.nav-links li a:not(.adv-btn):hover {
    background-color: darkblue;
    color: lightskyblue;
    border-radius: 5px;
}
.logo-inline {
    height:80px;
    width: auto;
    transition: 0.3s;
    display: block;
}

.logo-inline:hover {
    transform: scale(1.05);
}

.nav-logo-item a:hover {
    background-color: transparent !important;
}

/* --- 3. Search Bar --- */
.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(184, 140, 92, 0.4);
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.3s ease; /* Transition for the glow */
}

/* The Gold Glow Effect on Focus */
.search-form:focus-within {
    border-color: #ceb888;
    box-shadow: 0 0 15px rgba(206, 184, 136, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 5px;
    outline: none;
    width: 250px; /* Bigger Desktop Width */
    font-size: 1rem;
}

.search-btn {
    background: transparent;
    border: none;
    color: #b88c5c;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Mobile Search Adjustment (1/3 smaller) */
@media (max-width: 768px) {
    .search-input {
        width: 85px;
        font-size: 0.9rem;
    }
    .search-form {
        padding: 5px 12px;
    }
}
/* --- 4. CLICK-ONLY DROPDOWNS & MEGA MENU --- */
.dropdown {
    position: relative;
}

/* Standard Dropdown Hidden by default */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #11253e;
    min-width: 200px;
    box-shadow: 0px 12px 24px rgba(0,0,0,0.5);
    border-radius: 8px;
    top: 100%;
    left: 0;
    z-index: 1001;
    border: 1px solid rgba(184, 140, 92, 0.2);
}

/* --- Districts Mega Menu - Glassmorphism Update --- */
.districts-mega {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(17, 37, 62, 0.9); /* Transparent Navy matching your header */
    backdrop-filter: blur(15px);        /* Frosted glass effect */
    border: 2px solid #ceb888;          /* Gold border */
    border-radius: 15px;                /* Rounded corners */
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    z-index: 6000;
    overflow: hidden;
    margin-top: 5px;
    min-width: 650px;
}
/* THE CLICK TOGGLE CLASS */
.districts-mega.active {
    display: flex !important; /* Shows the menu when 'active' class is added via JS */
}

.mega-wrapper {
    display: flex;
    height: 400px;
    background: transparent; /* Allows backdrop-filter to work through the wrapper */
}

/* Sidebar styling - Transparent & Bordered */
.district-sidebar {
    width: 200px;
    background: rgba(13, 27, 46, 0.4); /* Subtle transparent dark side */
    border-right: 1px solid rgba(206, 184, 136, 0.2);
    padding: 10px 0;
}

.district-item {
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

/* Hover & Active States - Using your gold theme */
.district-item:hover {
    background: rgba(206, 184, 136, 0.1);
    color: #ceb888;
}

.district-item.active-district {
    background: rgba(206, 184, 136, 0.15);
    color: #ceb888;
    border-left: 3px solid #ceb888
}

/* /* RIGHT TOWN DISPLAY area - Glassmorphism Update */
.town-display {
    flex: 1;
    padding: 25px;
    background: transparent;/* Removes the solid #11253E background */
    overflow-y: auto;
    backdrop-filter: blur(5px); /* Softens the background image further */
}

/* Individual Town Links */
.town-grid a {
    color: #ffffff;
    opacity: 0.9;
    /* Soft glass tile effect for each town */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(206, 184, 136, 0.2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
}

/* Town Link Hover State */
.town-grid a:hover {
    background: #ceb888; /* Gold background on hover */
    color: #11253e;      /* Dark navy text for contrast */
    border-color: #ceb888;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(206, 184, 136, 0.3);
}

/* District Hub Link (Top of the town list) */
.district-hub-link {
    display: inline-block;
    color: #ceb888;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ceb888;
    text-decoration: none;
    transition: 0.3s;
}

.district-hub-link:hover {
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Animation */
@keyframes slideOutMenu {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.town-group.active-group {
    display: block !important;
    animation: slideOutMenu 0.4s ease-out forwards;
}
/* --- 4. Dropdowns & Mega Menu --- */
.dropdown {
    position: relative;
}

/* 4a. Standard Dropdown (Help, Legal, etc.) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #11253e;
    min-width: 200px;
    box-shadow: 0px 12px 24px rgba(0,0,0,0.5);
    border-radius: 8px;
    top: 100%;
    left: 0;
    z-index: 1001;
    border: 1px solid rgba(184, 140, 92, 0.2);
}

/* 4b. Districts Menu - Reconfigured to be Vertical for Desktop */
.districts-mega {
    display: none;
    position: absolute;
    top: 90px;
    left: 0; /* Aligns to the left of the Districts link */
    width: 250px; /* Thinner width for a vertical list */
    background-color: #11253e;
    padding: 10px 0; /* Vertical padding for the list */
    flex-direction: column; /* FORCES VERTICAL STACKING */
    box-shadow: 0px 15px 35px rgba(0,0,0,0.6);
    border-radius: 8px;
    border: 1px solid rgba(184, 140, 92, 0.3);
    border-top: 3px solid #b88c5c; /* Gold top accent bar */
    z-index: 1001;
}

/* --- 4c. CLICK-ONLY TRIGGERS (Replaces Hover) --- */

/* Remove the hover triggers that were here previously */
.dropdown:hover .dropdown-content:not(.sticky-open),
.dropdown:hover .districts-mega:not(.sticky-open) {
    display: none;
}

/* Use a unified 'show' class for standard dropdowns */
.dropdown-content.show {
    display: block !important;
    animation: fadeInSimple 0.2s ease-in-out;
}

/* Use a unified 'show' class for the Mega Menu */
.districts-mega.show {
    display: flex !important;
    animation: fadeInSimple 0.2s ease-in-out;
    border-top: 3px solid #ceb888;
    box-shadow: 0px 20px 50px rgba(0,0,0,0.8);
}

/* Optional: Keep the parent link gold when menu is open */
.dropdown.is-active > a {
    color: red !important;
    background-color: rgba(206, 184, 136, 0.2);
    border-radius: 5px;
}

@keyframes fadeInSimple {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}




/* Mobile Slide-Down & Responsiveness */
@media (max-width: 768px) {
    .footer-container { flex-direction: column; gap: 10px; }

    .footer-links {
        position: relative;
        max-height: 0;
        display: block;
        opacity: 0;
        transform: none;
    }

    .footer-column.active .footer-links {
        max-height: 300px;
        opacity: 1;
        padding: 10px 0;
    }

    .footer-bottom { margin-top: 40px; }
}
/* --- 8. MOBILE RESPONSIVENESS (Logo Left, Hamburger Right) --- */
@media (max-width: 768px) {
    body {
        padding-left: 0;
        padding-bottom: 80px;
    }

    .navbar {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        min-height: auto;
    }

    /* Allows LI items to be ordered directly by .navbar flexbox */
    .nav-links {
        display: contents;
    }

    /* Order 1: Logo (Top Left) */
    .mobile-logo-link {
        display: block;
        order: 1;
        margin: 0;
    }

    .logo-mobile {
        height: 60px; /* Forced smaller height to keep logo and hamburger on one line */
        width: auto;
    }

    /* Order 2: Hamburger (Top Right) */
    .hamburger {
        display: block !important;
        order: 2;
        margin: 0;
        font-size: 2rem;
        color: #b88c5c;
        cursor: pointer;
    }

    /* Order 3: Search Bar (Full Width Below) */
    .search-container {
        display: block !important;
        order: 3;
        width: 100%;
        margin: 10px 0;
    }

    .search-form {
        width: 100%;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.15);
        display: flex !important;
        justify-content: space-between;
    }

    .search-input {
        width: 100%;
        font-size: 0.9rem;
    }

    /* Order 4: The Dropdown Menu Links */
    .nav-links li:not(.search-container):not(.nav-logo-item) {
        display: none; /* Hidden until hamburger clicked */
        width: 100%;
        text-align: center;
        background: #11253E;
        padding: 15px 0;
        order: 4;
        border-bottom: 1px solid rgba(184, 140, 92, 0.2);
    }

    /* When mobile menu is open */
    .nav-links.active li:not(.nav-logo-item) {
        display: block;
    }

    /* Vertical Dropdown Menu Fix */
    .dropdown-content.districts-mega {
        position: static; /* Removes absolute floating */
        display: none;
        flex-direction: column; /* Vertical stack */
        width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        transform: none;
        padding: 0;
    }

    .dropdown-content.districts-mega.show {
        display: flex !important;
    }

    .dropdown-item {
        width: 100%;
        padding: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-item img {
        display: none; /* Hide images in vertical mobile menu to save space */
    }

    .desktop-only {
        display: none !important;
    }

    .social-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        width: 100%;
        height: 60px;
        flex-direction: row;
        justify-content: space-around;
        background-color: #0a1625;
        border-top: 2px solid #b88c5c;
        padding: 0 10px;
        z-index: 999;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* ADDED: Reset header position for mobile only */
    header {
        position: static !important;
    }
    body {
        padding-top: 0 !important;
    }
}

/* --- MEGA MENU FIX: STOPS JUMPING & ANCHORS TO LINK --- */
.mega-dropdown {
    position: relative; /* This is the anchor */
}

.districts-mega {
    display: none; /* JS toggles this to 'block' */
    position: absolute;
    top: 220%;
    left: 0;    /* Aligns exactly to the 'S' in 'Search Places' */
    width: 550px;
    background-color: #11253e;
    padding: 25px;
    box-shadow: 0px 15px 35px rgba(0,0,0,0.6);
    border: 1px solid rgba(184, 140, 92, 0.3);
    border-top: 3px solid #b88c5c;
    border-radius: 0 0 10px 10px;
    z-index: 2001;
}

/* Internal Town Grid */
.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mega-column h4 {
    color: #ceb888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(184, 140, 92, 0.2);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.mega-column a {
    display: block;
    color: #f4f4f4 !important;
    padding: 5px 0 !important;
    font-size: 0.95rem !important;
    text-decoration: none;
    transition: 0.2s;
}

.mega-column a:hover {
    color: #ceb888 !important;
    padding-left: 5px;
}
.category-badge {
    background: rgba(206, 184, 136, 0.15);
    color: #ceb888;
    border: 1px solid rgba(206, 184, 136, 0.3);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 8px;
}

.districts-mega {
    min-width: 650px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(206, 184, 136, 0.3);
}

.mega-wrapper {
    display: flex;
    height: 400px;
}

/* --- MEGA MENU LAYOUT --- */
.districts-mega {
    min-width: 650px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(206, 184, 136, 0.3); /* Gold tinted border */
    background: #11253E; /* Matches site theme */
}

.mega-wrapper {
    display: flex;
    height: 350px; /* Fixed height for consistent look */
}

/* --- SHARED THEME --- */
:root {
    --bg-dark: #0d1b2e;       /* The deep navy you chose */
    --gold: #ceb888;          /* Your signature gold */
    --text-faded: rgba(255, 255, 255, 0.7);
}

/* Apply the same background to both containers */
.district-sidebar, .town-display {
    background-color: var(--bg-dark) !important;
}

/* --- LEFT DISTRICT SIDEBAR --- */
.district-sidebar {
    width: 200px;
    border-right: 1px solid rgba(206, 184, 136, 0.2);
    padding: 15px 10px; /* Added some padding to breathe */
}

.district-item {
    padding: 12px 15px;
    color: var(--text-faded);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;

    /* ADDED: Full Border instead of just left */
    border: 1px solid rgba(206, 184, 136, 0.2);
    border-radius: 8px;
    margin-bottom: 8px; /* Space between the boxed districts */
    background: rgba(255, 255, 255, 0.02);
}

/* Hover state */
.district-item:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(206, 184, 136, 0.05);
}

/* --- THE "OBVIOUS" ACTIVE STATE --- */
.district-item.active-district {
    background: rgba(206, 184, 136, 0.2) !important;
    color: var(--gold) !important;
    /* ADDED: Thicker, solid gold border for the selected one */
    border: 2px solid var(--gold) !important;
    box-shadow: 0 0 10px rgba(206, 184, 136, 0.2);
}

.active-district i {
    color: var(--gold);
    opacity: 1;
}

/* --- RIGHT TOWN DISPLAY AREA --- */
.town-display {
    flex: 1;
    padding: 25px;
    background: transparent !important;
    overflow-y: auto;
}

/* Ensure these classes match your JavaScript logic */
.town-group {
    display: none;
}

.town-group.active-group {
    display: block;
}

.district-hub-link {
    display: inline-block;
    display: block;            /* Changed from inline-block to take up full width */
    text-align: center;        /* Centers the text inside the block */
    max-width: fit-content;    /* Keeps the border tight to the text... */
    margin-left: auto;         /* ...while these two lines center the... */
    margin-right: auto;        /* ...entire box within the town-display area */
    color: #ceb888;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding: 10px 20px; /* Increased padding for the box feel */

    /* CHANGED: From border-bottom to full border */
    border: 2px solid #ceb888;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
    background: rgba(206, 184, 136, 0.1); /* Subtle fill */
}

.town-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.town-grid a {
    color: #ffffff;
    opacity: 0.7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
}

.town-grid a:hover {
    color: var(--white);
    opacity: 1;
}
body {
    /* CHANGED: Offset content so it's not hidden behind the fixed header on desktop */
    padding-top: 85px;
}

/* This ensures that when you click a link to an ID,
   it doesn't get hidden behind the header */
#mainGrid,
#advertise,
#join-form {
    scroll-margin-top: 275px; /* Header height + some extra breathing room */
}

/* Optional: Smooth scrolling for a premium feel */
html {
    scroll-behavior: smooth;
}
/* Styling for the Orange Advertise button - Standard Case */
.nav-links li a.adv-btn {
    background-color: #ff8c00; /* Deep Orange */
    color: #ffffff !important; /* Pure White text */
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600; /* Slightly bold for visibility */

    /* This ensures it follows "Advertise" instead of "ADVERTISE" */
    text-transform: none;

    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
}

.nav-links li a.adv-btn:hover {
    background-color: #e67e00; /* Darker orange on hover */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}
.districts-mega.sticky-open {
    display: flex !important;
}
/* Apply 80px top padding only for desktop screens */
@media (min-width: 769px) {
    section[style*="display: flex"] {
        padding-top: 80px !important;
    }
 }

/* --- Desktop Only: Restoring Original 3-Column Layout --- */
@media (min-width: 769px) {
    /* 1. Reset Body Padding to match original header height */
    body {
        padding-top: 80px !important;
    }

    /* 2. Fix Header Height */
    header {
        height: 80px;
        display: flex;
        align-items: center;
    }

    /* 3. Re-implement the Centering Wrapper */
    .navbar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 40px;
    }

    /* Use the container wrapper from your original headerdesktop.css */
    .nav-container-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Pushes left and right apart */
        width: 100%;
    }

    /* Ensure side menus take up equal space so center is true center */
    .nav-left, .nav-right {
        flex: 1;
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 30px; /* Matching original gap */
    }

    .nav-right {
        justify-content: flex-end;
    }

    /* Logo stays centered and sized correctly */
    .nav-logo-centered {
        flex: 0 0 auto;
        text-align: center;
        padding: 0 20px;
    }

    .logo-inline {
        height: 80px;
        width: auto;
    }

    /* 4. Restore the original link styles */
    .nav-links li a {
        color: #ceb888; /* Original gold */
        font-size: 1.1rem;
        font-weight: bold;
        text-transform: none;
    }

    /* Reduce the gap on your custom Automotive section if it feels too low */
    section[style*="display: flex"] {
        padding-top: 20px !important;
    }
}
/* Top Logo/Hamburger Row */
    .nav-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 70px;
        padding: 0 20px;
        background: #11253E; /* Matches your header color */
    }
/* --- CUSTOM GOLD SCROLLBARS --- */

/* 1. The width and height of the scrollbar */
::-webkit-scrollbar {
    width: 10px;  /* Vertical scrollbar width */
    height: 10px; /* Horizontal scrollbar height */
}

/* 2. The track (the background of the scrollbar) */
::-webkit-scrollbar-track {
    background: #0d1b2e; /* Matches your --bg-dark navy */
    border-radius: 10px;
}

/* 3. The thumb (the part you grab and move) */
::-webkit-scrollbar-thumb {
    background: #ceb888; /* Your signature Gold */
    border: 2px solid #0d1b2e; /* Creates a small gap around the gold thumb */
    border-radius: 10px;
}

/* 4. The thumb on hover */
::-webkit-scrollbar-thumb:hover {
    background: #eecb8c; /* A slightly brighter gold on hover */
}

/* Specific fix for the town-display area to ensure it stays consistent */
.town-display::-webkit-scrollbar {
    width: 8px;
}

/* --- STABLE VERTICAL MENU & TOWN GRID --- */
.vertical-menu {
    display: none;
    position: absolute;
    background: #11253E;
    border: 1px solid #ceb888;
    min-width: 260px;
    top: 100%;
    left: 0;
    z-index: 9999;
}

.vertical-menu.open {
    display: block !important;
}

.dist-item {
    padding: 15px 20px;
    color: #ceb888;
    cursor: pointer;
    border-bottom: 1px solid rgba(206,184,136,0.1);
    display: flex;
    justify-content: space-between;
}

/* --- UPDATED TOWN LIST GRID (2 PER LINE) --- */
.town-list {
    display: none;
    padding: 15px 10px;
    background: #0d1b2e;
    flex-wrap: wrap;
    flex-direction: row !important; /* Force side-by-side */
    justify-content: flex-start !important;
    gap: 10px !important;
}

.town-list.open-list {
    display: flex !important;
}

/* Gold Hub Link (Full line top) */
.town-list a.hub-link,
.town-list a[style*="font-weight:bold"] {
    flex: 0 0 100% !important; /* Occupy full row */
    margin-bottom: 10px !important;
    border: 2px solid #ceb888 !important;
    padding: 10px !important;
    border-radius: 25px !important;
    color: #ceb888 !important;
    font-weight: bold;
    text-align: center;
    display: block !important;
}

/* Village Links (2 per line) */
.town-list a:not(.hub-link):not([style*="font-weight:bold"]) {
    /* calc(50% width minus half of the 10px gap) */
    flex: 0 0 calc(50% - 5px) !important;

    border: 1px solid white !important;
    padding: 8px 5px !important;
    border-radius: 25px !important;
    color: white !important;
    text-align: center;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
}

.town-list a:hover {
    background: rgba(206, 184, 136, 0.2);
}

@media (max-width: 768px) {
    .vertical-menu {
        position: static !important;
        width: 100% !important;
        border: none !important;
    }
}
/* --- CUSTOM GOLD SCROLLBARS --- */

/* 1. Set the width and height of the scrollbar */
::-webkit-scrollbar {
    width: 10px;  /* Vertical scrollbar width */
    height: 10px; /* Horizontal scrollbar height */
}

/* 2. The Track (The background area) */
::-webkit-scrollbar-track {
    background: #0d1b2e; /* Deep navy to match your theme */
    border-radius: 10px;
}

/* 3. The Thumb (The part you grab) */
::-webkit-scrollbar-thumb {
    background: #ceb888; /* Your signature gold */
    border: 2px solid #0d1b2e; /* Creates a small gap to make the gold pop */
    border-radius: 10px;
}

/* 4. The Thumb on Hover (Brighter gold) */
::-webkit-scrollbar-thumb:hover {
    background: #eecb8c;
}

/* Specific fix for Firefox (Limited support compared to Webkit) */
* {
    scrollbar-width: thin;
    scrollbar-color: #ceb888 #0d1b2e;
}
/* --- THE BIG GAP FIX --- */

/* 1. Reduce the gap at the top of the page content */
body {
    padding-top: 0px !important; /* Matches your header height */
}

/* 2. Remove the extra padding on sections that is pushing content down */
section[style*="display: flex"],
#mainGrid,
#advertise {
    padding-top: 10px !important; /* Reduced from 80px */
    margin-top: 0 !important;
}

/* 3. Fix the Mega Menu position so it sits right under the header */
.districts-mega {
    top: 100% !important; /* Changed from 220% to sit flush */
    margin-top: 0 !important;
}

/* 4. Adjust scroll margin so anchor links don't hide under the header */
#mainGrid,
#advertise,
#join-form {
    scroll-margin-top: 100px !important;
}
/* Hide elements specifically on Mobile */
@media screen and (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* Ensure it stays visible on Desktop */
@media screen and (min-width: 769px) {
    .hide-on-mobile {
        display: block; /* or flex, depending on your layout */
    }
}