/* =========================================================
   MOBILE NAV — compact vertical side panel
   992px and below
   ========================================================= */

@media (max-width: 991.98px) {
    .header_section .navbar {
        position: relative;
    }

    /* Hamburger */
    .header_section .navbar-toggler {
        position: relative;
        z-index: 1002;
        border: 0;
        box-shadow: none !important;
        background: transparent;
    }

    .header_section .navbar-toggler:hover,
    .header_section .navbar-toggler:focus,
    .header_section .navbar-toggler:active {
        background: transparent !important;
        box-shadow: none !important;
    }

    .header_section .navbar-toggler:hover span {
        background: var(--brand-orange);
    }

    /* Vertical side panel */
    .header_section .nav-coll {
        position: absolute;
        top: calc(100% + 8px);
        right: -16px;
        left: auto;
        z-index: 1001;
        display: block !important;
        width: 250px;
        max-height: calc(100vh - 90px);
        margin: 0;
        padding: 10px;
        overflow-y: auto;
        overflow-x: hidden;
        background: var(--brand-navy) !important;
        opacity: 1;
        backdrop-filter: none;
        border: none;
        border-radius: 0 0 0 16px;
        box-shadow: 0 14px 34px rgba(14, 46, 101, .13);
        box-sizing: border-box;
    }

    /* Open/close animation: panel feels attached to the right side */
    .header_section .nav-coll.collapse:not(.show) {
        display: block !important;
        visibility: hidden;
        opacity: 0;
        transform: translateX(18px);
        pointer-events: none;
    }

    .header_section .nav-coll.collapse.show {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .header_section .nav-coll.collapsing {
        display: block !important;
        height: auto !important;
        overflow: hidden;
        visibility: visible !important;
        opacity: 1;
        transform: translateX(18px);
        pointer-events: none;
    }

    .header_section .nav-coll {
        transition: opacity .22s ease, transform .22s ease, visibility 0s linear 0s;
    }

    .header_section .nav-coll .navbar-nav {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1px;
    }

    .header_section .nav-coll .nav-item {
        width: 100%;
    }

    .header_section .nav-coll .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 42px;
        padding: 8px 13px;
        border-radius: 9px;
        color: #ffffff !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.5;
        box-sizing: border-box;
        border-right: 3px solid transparent;
        transition: color .2s ease, background .2s ease, border-color .2s ease;
    }

    .header_section .nav-coll .nav-link:hover,
    .header_section .nav-coll .nav-link:focus {
        color: #ffffff !important;
        background: rgba(255, 255, 255, .08) !important;
        border-right-color: var(--brand-orange);
        box-shadow: none !important;
    }

    /* No default active highlight */
    .header_section .nav-coll .nav-link.active,
    .header_section .nav-coll .nav-link[aria-current="page"] {
        color: #ffffff !important;
        background: transparent !important;
        box-shadow: none !important;
        font-weight: 600 !important;
    }

    /* Account separator + compact CTA */
    .header_section .nav-coll .navbar-nav .nav-item:last-child {
        margin-top: 5px;
        padding-top: 5px;
        border-top: 1px solid rgba(14, 46, 101, .12);
    }

    .header_section .nav-coll .mobile-nav-footer {
        margin-top: 7px;
        padding-top: 0;
        border-top: 0;
    }

    .header_section .nav-coll .mobile-nav-footer a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 42px;
        min-height: 42px;
        padding: 0 14px !important;
        border-radius: 9px;
        font-size: 13px;
        line-height: 1;
        font-weight: 600 !important;
        box-shadow: none !important;
        box-sizing: border-box;
    }

    /* Dropdowns remain inside the panel */
    .header_section .nav-coll .dropdown-menu {
        position: static !important;
        width: 100%;
        margin: 2px 0 4px;
        border: 0;
        border-radius: 9px;
        box-shadow: none;
        background: #f8fafc;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .header_section .nav-coll {
        width: 250px;
        padding: 12px;
        border-radius: 0 0 0 17px;
    }

    .header_section .nav-coll .nav-link {
        min-height: 44px;
        padding-inline: 15px;
        font-size: 14px;
    }

    .header_section .nav-coll .mobile-nav-footer a {
        height: 43px;
        min-height: 43px;
        font-size: 13px;
    }
}

@media (max-width: 767.98px) {
    .header_section .nav-coll {
        top: calc(100% + 6px);
        right: -14px;
        width: 220px;
        padding: 8px;
        border-radius: 0 0 0 14px;
    }

    .header_section .nav-coll .nav-link {
        min-height: 39px;
        padding: 7px 11px;
        border-radius: 8px;
        font-size: 13px;
    }

    .header_section .nav-coll .mobile-nav-footer {
        margin-top: 6px;
        padding-top: 7px;
    }

    .header_section .nav-coll .mobile-nav-footer a {
        height: 39px;
        min-height: 39px;
        padding-inline: 11px !important;
        border-radius: 8px;
        font-size: 11px;
    }
}

@media (max-width: 575.98px) {
    .header_section .nav-coll {
        top: calc(100% + 5px);
        right: -10px;
        width: 190px;
        padding: 7px;
        border-radius: 0 0 0 12px;
    }

    .header_section .nav-coll .nav-link {
        min-height: 36px;
        padding: 6px 9px;
        font-size: 12px;
    }

    .header_section .nav-coll .mobile-nav-footer a {
        height: 36px;
        min-height: 36px;
        border-radius: 7px;
        font-size: 10px;
    }
}
