/* ==========================================================================
   1. CORE VARIABLES & DOCUMENT RESET
   ========================================================================== */
   :root {
    --primary-color: #0c4da2; /* Rivaansh Deep Blue */
    --accent-color: #000000;  /* Retro border line accent */
    --text-muted: #333333;
    --light-color: #ffffff;
    --transition-speed: 0.2s;
    --navbar-height: 90px;
    --font-primary: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    /* GLOBAL FIX: Pushes the body text down globally so banners never slip under the header */
    padding-top: var(--navbar-height) !important; 
}

/* ==========================================================================
   2. DESKTOP NAVIGATION BAR
   ========================================================================== */
.custom-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    height: var(--navbar-height);
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    box-sizing: border-box;
}

/* Logo Alignment & Scaling */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.logo-icon {
    height: 45px; 
    width: auto;
    object-fit: contain;
}

.navbar-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 0.85;
    font-family: "Black Ops One", sans-serif; /* Applied font here */
}

.brand-top {
    color: #005A9C;
    font-size: 26px;
    letter-spacing: 1.5px;
}

.brand-bottom {
    color: #231F20;
    font-size: 18px;
    letter-spacing: 0.5px;
}

/* Navigation Links Layout Setup */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
    gap: 15px; 
}

.nav-links > li {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Boxed Style Links with Exact Height Constraints */
.nav-links > li > a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0 20px;       /* Horizontal inner spacing */
    height: 42px;          /* Locked box height constraint */
    border: 1.5px solid transparent;
    transition: all var(--transition-speed) ease;
    display: inline-flex;  /* Flex centering for baseline text align */
    align-items: center;   /* Centers text perfectly vertically */
    justify-content: center;
    white-space: nowrap;
}

/* Active & Hover States: Minimalist Box Shadow Drop */
.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-links > li.dropdown:hover > a {
    color: var(--accent-color);
    border: 1.5px solid var(--accent-color);
    background: var(--light-color);
    box-shadow: 3px 3px 0px var(--accent-color);
}

/* Dropdown Arrow/Chevron Alignment Fixes */
.chevron-icon {
    margin-left: 6px;
    display: inline-block;
    align-self: center;
    transition: transform var(--transition-speed) ease;
}

.dropdown:hover .chevron-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   3. HORIZONTAL WIDE MEGA-DROPDOWN
   ========================================================================== */
.dropdown {
    position: static; 
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 25px 6%;
    display: flex; 
    flex-wrap: wrap;
    gap: 25px;
    justify-content: flex-start;
    
    /* Animation behaviors */
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity var(--transition-speed) ease, 
                transform var(--transition-speed) ease, 
                visibility var(--transition-speed);
    border-top: 1px solid #eeeeee;
    border-bottom: 3px solid var(--accent-color);
    border-left: none;
    border-right: none;
    border-radius: 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: #555555;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 14px;
    transition: color var(--transition-speed) ease;
    height: auto;
    display: inline-block;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    background: none;
    text-decoration: underline;
}

/* Hamburger Responsive Menu Trigger */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-menu span {
    width: 100%;
    height: 2.5px;
    background-color: var(--accent-color);
}

/* ==========================================================================
   4. MOBILE RESPONSIVE BREAKPOINT (< 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }
}

/* ==========================================================================
   5. BOOTSTRAP OFFCANVAS DRAWER OVERRIDES
   ========================================================================== */
.custom-mobile-drawer {
    width: 300px !important;
}

.custom-mobile-drawer .offcanvas-header {
    height: var(--navbar-height);
    padding: 0 24px;
}

.mobile-nav-links {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.mobile-nav-links a.active, 
.mobile-nav-links a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.mobile-trigger[aria-expanded="true"] .chevron-icon-ms {
    transform: rotate(180deg);
}

.chevron-icon-ms {
    transition: transform var(--transition-speed) ease;
}

.mobile-submenu-box {
    background-color: #f8f9fa;
    padding: 6px 0;
}

.mobile-submenu-box a {
    padding: 10px 24px 10px 40px;
    font-size: 0.9rem;
    color: #666666;
}