/* =================================================================ations */
:root {
    --pure-white: #ffffff;
    --brand-primary: #0B4F9C;         /* Deep Royal Blue */
    --brand-primary-hover: #083b77;   
    --brand-primary-glow: 0 0 0 0.25rem rgba(11, 79, 156, 0.15);
    --brand-light: #F4F7FC;           
    --brand-warm: #FEF9EB;            
    --brand-dark: #0A192F;            /* Dark Navy */
    --brand-accent: #E5A912;          /* Gold / Amber Yellow */
    --secondary-color: #D61A26;       /* Vibrant Red */
    --primary-color: #0B4F9C;
    --primary-hover: #083b77;
    --accent-color: #D61A26;
    --hover-bg: #f1f5f9;
}

/* =================================================================
   Header Base Styling
================================================================ */
.site-header {
    background-color: var(--pure-white);
    z-index: 1040;
}

/* =================================================================
   Mega Navigation Bar
================================================================ */
.mega-navigation {
    position: relative;
    background-color: var(--brand-primary) !important;
}

.dropdown-parent {
    position: static;
}

.mega-dropdown-menu,
.simple-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--pure-white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
    z-index: 1050;
    border-top: 3px solid var(--brand-primary) !important;
}

.mega-dropdown-menu { width: 100%; }
.simple-dropdown-menu { min-width: 240px; }

@media (min-width: 992px) {
    .dropdown-parent:hover .mega-dropdown-menu,
    .dropdown-parent:hover .simple-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.mega-navigation .nav-link:not(.btn):hover {
    color: var(--brand-accent) !important;
}

.mega-navigation .nav-link:not(.btn):hover .small-chevron {
    color: var(--brand-accent) !important;
}

.dropdown-item:hover {
    background-color: var(--hover-bg);
    color: var(--brand-primary);
}

.small-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.dropdown-parent:hover .small-chevron {
    transform: rotate(180deg);
}

/* =================================================================
   Mobile Drawer Modal & Scrollable Body
================================================================ */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 25, 47, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1080;
}

.mobile-drawer-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100dvh; /* Uses dynamic viewport height for mobile browsers */
    background-color: var(--pure-white);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1090;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Locks outer modal window from bouncing */
}

body.drawer-open {
    overflow: hidden; /* Prevents background page scrolling */
}

body.drawer-open .mobile-drawer-overlay {
    opacity: 1;
    visibility: visible;
}

body.drawer-open .mobile-drawer-modal {
    right: 0;
}

/* Fixed Header Inside Modal */
.drawer-header {
    flex-shrink: 0;
}

/* Independent Scrollable Body Container */
.drawer-body {
    position: relative;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling for iOS */
    padding: 1rem;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #edf2f7;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 600;
}

/* Sliding Submenu fixed to fill drawer body smoothly */
.mobile-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-color: var(--pure-white);
    transition: left 0.3s ease;
    padding: 0.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 2;
}

.mobile-submenu.active {
    left: 0;
}