   /* ========== NAV DROPDOWN BASE ========== */
.nav-links {
    position: relative;
}

/* Container for items that have submenus */
.nav-item-has-submenu {
    position: relative;
    display: inline-block;
}

/* Toggle button (desktop + mobile) */
.nav-submenu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background .2s ease, color .2s ease;
}

.nav-submenu-toggle:hover {
    background: rgba(6, 27, 69, .06);
}

.submenu-arrow {
    position: relative;
    width: 10px;
    height: 10px;
    transition: transform .2s ease;
}

/* Simple down arrow using borders */
.submenu-arrow::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

/* Rotate arrow when open */
.nav-submenu-toggle[aria-expanded="true"] .submenu-arrow {
    transform: rotate(180deg);
}

/* Submenu panel */
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    min-width: 210px;
    padding: 8px 0;
    margin-top: 6px;
    border: 1px solid #e5ebf3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(6, 27, 69, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

/* Show submenu on hover (desktop) */
@media (min-width: 992px) {
    .nav-item-has-submenu:hover .nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Always hidden by default; shown via JS on mobile */
.nav-submenu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu links */
.nav-submenu a {
    display: block;
    padding: 9px 14px;
    color: #15284b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

.nav-submenu a:hover {
    background: #f3f6fa;
    color: #1264e8;
}

/* Active link styling (optional) */
.nav-submenu a.active {
    background: #eef5ff;
    color: #1264e8;
}

/* ========== MOBILE MENU ADJUSTMENTS ========== */
@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 70px; /* adjust if your header height differs */
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        padding: 20px 20px 40px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .25s ease;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links a,
    .nav-submenu-toggle {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 14px;
        border-radius: 10px;
    }

    .nav-item-has-submenu {
        display: block;
        width: 100%;
    }

    .nav-submenu {
        position: static;
        box-shadow: none;
        border: 1px solid #eef2f7;
        margin-top: 8px;
        display: none;
    }

    .nav-submenu.is-open {
        display: block;
    }
}


