﻿/* ==========================================================================
           Hero Section Background & Overlay Styles
           ========================================================================== */
.hero.section {
    position: relative;
    /* Replace with the relative path to your actual hero image */
    background: url('../img/BOC_main.png') center center / cover no-repeat;
    padding: 120px 0 100px 0;
    color: #ffffff;
    overflow: hidden;
}

    /* Semi-transparent dark overlay to ensure text contrast */
    .hero.section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.55); /* Adjust opacity (0.55) as needed */
        z-index: 1;
    }

/* Ensure content sits above the overlay */
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* White text overrides for hero content over dark background */
.hero-content h1 {
    /*color: #ffffff !important;*/
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-content p {
    color: #f8f9fa;
    font-size: 1.25rem;
}

/* Announcement Bar Contrast Fix */
.hero .announcement {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 50px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

    .hero .announcement p {
        margin: 0;
        font-size: 0.95rem;
        color: #ffffff;
    }

.hero .announcement-badge {
    background-color: #6f42c1;
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}
/* Target header and its container/navbar wrappers 
#header,
header.header,
.header.fixed-top,
.header:not(.scrolled) {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

*/
/* Ensure the main page body doesn't add top padding pushing the hero down 
body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
*/
/* Ensure Top-Level Navigation Links remain bright white */
.navmenu > ul > li > a,
.navmenu > ul > li > a:focus {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); /* Subtle shadow for readability over light images */
}
/* --- Mobile Menu Override --- */
/* When mobile menu is active, override white text with solid color */
body.mobile-nav-active .navmenu > ul > li > a,
body.mobile-nav-active .navmenu > ul > li > a:focus,
body.mobile-nav-active .navmenu > ul > li > a:hover {
    /*color: #0d6efd !important;*/ /* Change #0d6efd to your desired blue color hex code */
    color: #2b388f !important; /* Change #0d6efd to your desired blue color hex code */
    text-shadow: none !important; /* Remove text shadow for cleaner look on white background */
}

/* CRITICAL: Keep Dropdown Sub-Menus Solid White with Dark Text */
.navmenu .dropdown ul {
    background-color: #ffffff !important;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25) !important;
}

    .navmenu .dropdown ul li a {
        color: #212529 !important;
        text-shadow: none !important;
    }

        .navmenu .dropdown ul li a:hover {
            color: #6f42c1 !important;
        }

/* ==========================================================================
   1. Pull Main Content / Form / Hero to the Top Edge
   ========================================================================== */

/* Remove default browser & body spacing */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Clear top padding on ASP.NET Form / Master wrappers */
form,
#form1,
main,
#main,
.main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure the hero section starts at the absolute top of the viewport */
#hero,
.hero.section {
    margin-top: 0 !important;
    position: relative !important;
    top: 0 !important;
    /* Increase top padding so your text/heading clears the floating header */
    padding-top: 160px !important;
    padding-bottom: 100px !important;
}

/* ==========================================================================
   2. Ensure Header Layers OVER the Top of the Hero
   ========================================================================== */

#header,
header.header {
    position: fixed !important; /* Forces header to float over the hero */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.darkbluetitle {
    color: darkblue !important;
}
/* ==========================================================================
           3. Header: Scrolled State (Past Hero Section)
========================================================================== */
#header.scrolled {
    background-color: #6f42c1 !important; /* Solid Purple when scrolled */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15) !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* White links when scrolled ONLY on desktop */
@media (min-width: 1200px) {
    #header.scrolled .navmenu > ul > li > a {
        color: #ffffff !important;
        text-shadow: none !important;
    }
}

/* Blue links inside the mobile white drawer (scrolled or not) */
@media (max-width: 1199px) {
    #header.scrolled .navmenu > ul > li > a,
    .navmenu > ul > li > a {
        color: #2b388f !important; /* Replace with your Sapphire blue hex code */
        text-shadow: none !important;
    }
}
