/* css/menu-2026.css */

/* Core Variables & Resets for Menu */
:root {
    --menu-blue: #004b87;
    --menu-border: #ddd;
    --menu-text: #44444;
    --menu-hover: #004b87;

}

.new-header-container {
    top: 0;
}


.menu-2026 {
    width: 100%;
    margin: 0;
    background-color: #ffffff;
    position: relative;
    z-index: 999;
    box-shadow: none !important;
    font-family: var(--font-primary) !important;
    font-weight: 500;
}

.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 15px;
}

/* Base line under menu */
.menu-2026-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 10px 0 0px 0px;
    position: relative;
    justify-content: center;
}

.menu-2026-list::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    height: 3px;

    z-index: 1;
}

.menu-item {
    position: relative;
    z-index: 2;
    margin-right: 5px;
}

.menu-link {
    display: block;
    padding: 12px 20px;
    font-size: 22px;
    font-weight: 800;
    color: var(--menu-text);
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background-color: transparent;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.menu-link:hover,
.menu-link:focus {
    text-decoration: none;
    color: var(--menu-text);
}

.menu-link .caret-down {
    font-size: 10px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}

/* Mobile Toggle Hidden on Desktop */
.menu-2026-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* ========================================
   Desktop Hover Styles & Mega Dropdown
   ======================================== */
@media (min-width: 1200px) {


    /* Hover state for tab */
    .menu-item.has-dropdown:hover .menu-link,
    .menu-item.active .menu-link {
        background-color: #fff;
        border-color: var(--menu-border);
    }

    /* Tab overlaps blue line and connects to dropdown */
    .menu-item.has-dropdown:hover .menu-link::after {
        content: '';
        position: absolute;
        bottom: -3px;
        /* Extend over the blue line */
        left: 0;
        right: 0;
        height: 5px;
        background: #fff;
        z-index: 3;
    }

    /* Dropdown container bounds */
    .mega-dropdown {
        position: absolute;
        top: 100%;
        background-color: #fff;
        border: 1px solid var(--menu-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 25px 30px;
        min-width: 250px;
        z-index: 1000;

        /* Smooth Animation */
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    /* Alignments */
    .menu-item.align-left .mega-dropdown {
        left: 0;
        border-radius: 0 8px 8px 8px;
    }

    .menu-item.align-right .mega-dropdown {
        right: 0;
        border-radius: 8px 0 8px 8px;
    }

    /* Reveal */
    .menu-item:hover .mega-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Internal Dropdown Layout */
    .dropdown-container {
        display: flex;
        gap: 50px;
    }

    .dropdown-col {
        min-width: 250px;
    }

    .dropdown-col .col-title {
        font-family: var(--font-primary);
        font-weight: bold !important;
        font-size: 18px;
        margin: 0 0 25px 0;
        line-height: 1.2;
        letter-spacing: 0.5px;
        font-weight: 600;
    }

    .dropdown-col ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .dropdown-col ul li {
        margin-bottom: 10px;

    }

    .dropdown-col ul li:last-child {
        margin-bottom: 0;
    }

    .dropdown-col ul li a {
        color: #333;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
        font-size: 18px !important;
        line-height: 1.7;
    }

    .dropdown-col ul li a:hover {
        color: var(--menu-hover);
        text-decoration: underline;
    }
}

/* ========================================
   Desktop Tweaks (1200px to 1380px)
   ======================================== */
@media (min-width: 1200px) and (max-width: 1350px) {
    .menu-link {
        font-size: 18px;
        padding: 12px 20px;
    }

    .menu-link .caret-down {
        margin-left: 4px;
    }

    .mega-dropdown {
        padding: 20px;
        min-width: 200px;
    }

    .dropdown-container {
        gap: 20px;
    }

    .dropdown-col {
        min-width: 180px;
    }

    .dropdown-col .col-title {
        font-size: 16px;
    }

    .dropdown-col ul li a {
        font-size: 16px !important;
    }
}

/* ========================================
   Mobile & Tablet Styles (< 1200px)
   ======================================== */
@media (max-width: 1199px) {
    .menu-2026 {
        margin-top: 0;
        background-color: transparent !important;
        border: none;
        height: 0;
    }

    .menu-link {
        display: block;
        padding: 12px 10px;
        font-size: 21px;
    }

    .menu-container {
        display: block;
        padding: 0;
        height: 0;
    }

    .menu-2026-list::after {
        display: none;
        /* No blue line on mobile */
    }

    .menu-2026-mobile-toggle {
        display: block;
        z-index: 1002;
    }

    /* Hamburger Icon Styling */
    .hamburger-box {
        width: 30px;
        height: 24px;
        display: block !important;
        position: relative;
    }

    .hamburger-inner {
        display: block;
        top: 50%;
        margin-top: -2px;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        width: 30px;
        height: 3px;
        background-color: #ffffff;
        /* White icon for blue background */
        position: absolute;
        border-radius: 4px;
        transition: transform 0.2s ease, background-color 0.2s ease;
        display: block !important;
    }

    .hamburger-inner::before,
    .hamburger-inner::after {
        content: "";
        display: block;
    }

    .hamburger-inner::before {
        top: -8px;
    }

    .hamburger-inner::after {
        bottom: -8px;
    }

    /* Mobile Menu Drawer */
    .menu-2026-list {
        position: fixed;
        top: 100px;
        /* Anchor directly below the 100px blue header */
        left: 0;
        width: 100%;
        height: calc(100vh - 100px);
        /* Fill remaining device screen exactly without overflowing */
        overflow-y: auto;
        /* Enable native scrolling of the open menu */
        background: #fff;
        flex-direction: column;
        border-top: 1px solid #ddd;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);

        display: none;
        /* Hidden by default via JS fade/slide */
        padding: 15px 0;
    }

    .menu-item {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu-item:last-child {
        border-bottom: none;
    }

    .menu-link {
        padding: 15px 20px;
        border-radius: 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        /* Reduced from 18px */
    }

    /* Default mobile dropdown is hidden */
    .mega-dropdown {
        display: none;
        background-color: #f9f9f9;
        padding: 0;
        /* Padding moved to inner container to prevent jQuery slide jumps */
    }

    .dropdown-container {
        padding: 20px 25px;
        flex-direction: column;
        gap: 25px;
    }

    .dropdown-col .col-title {
        font-family: var(--font-primary) !important;
        font-weight: 600;
        font-size: 16px;
        /* Reduced from 20px */
        margin: 0 0 15px 0;
        letter-spacing: 0.5px;
    }

    .dropdown-col ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .dropdown-col ul li {
        margin-bottom: 12px;
    }

    .dropdown-col ul li a {
        color: #222;
        text-decoration: none;
        font-size: 15px !important;
        /* Reduced from 17/18px */
        font-weight: 400;
        display: inline-block;
        padding: 5px 0;
    }

    /* Active States */
    .menu-item.mobile-active .mega-dropdown {
        display: block;
        /* Toggled via JS slideDown */
    }

    .menu-item.mobile-active .caret-down {
        transform: rotate(180deg);
        transition: transform 0.3s;
    }
}