/* Reusable public navigation only. */
.cb-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    min-height: 76px;
    padding: 16px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: var(--bv-navy-800);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.10);
}

.cb-logo,
.cb-nav .cb-logo {
    flex: 0 0 auto;
    color: #ffffff !important;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}

.cb-logo span,
.cb-nav .cb-logo span {
    color: var(--bv-blue-500) !important;
}

.cb-nav-links {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}

.cb-nav-links > li {
    position: relative;
}

.cb-nav .cb-nav-links > li > a,
.cb-nav-links > li > a {
    padding: 12px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: nowrap;
}

.cb-nav .cb-nav-links > li > a:hover,
.cb-nav .cb-nav-links > li > a:focus,
.cb-nav-links > li > a:hover,
.cb-nav-links > li > a:focus {
    color: #a9c2ff !important;
}

.mega-parent {
    margin: -18px 0;
    padding: 18px 0;
}

.mega-parent > a::after {
    content: "⌄";
    margin-left: 3px;
    font-size: 13px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.mega-parent:hover > a::after,
.mega-parent:focus-within > a::after {
    transform: rotate(180deg);
}

.cb-nav-cta {
    padding: 11px 18px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--bv-blue-600);
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}

.cb-nav-cta:hover,
.cb-nav-cta:focus {
    background: var(--bv-blue-700);
    color: #ffffff !important;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 99999;
    width: min(1180px, calc(100vw - 48px));
    max-height: calc(100vh - 120px);
    padding: 28px;
    overflow-y: auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--bv-shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    -webkit-overflow-scrolling: touch;
}

.mega-parent:hover .mega-menu,
.mega-parent:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
}

.mega-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    background: #f8fafc;
}

.mega-panel h4 {
    margin: 0 0 14px;
    color: #0f172a !important;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

.mega-panel a {
    padding: 9px 10px;
    display: block;
    border-radius: 10px;
    color: #475569 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none !important;
}

.mega-panel a:hover,
.mega-panel a:focus {
    background: #ffffff;
    color: var(--bv-blue-600) !important;
}

.mega-panel.dark,
.mobile-subsection.dark {
    border: 0;
    background: linear-gradient(135deg, var(--bv-navy-950), #1e3a8a);
    color: #ffffff;
}

.mega-panel.dark h4,
.mobile-subsection.dark h4 {
    color: #ffffff !important;
}

.mega-panel .mega-desc,
.mobile-subsection p {
    margin: 0 0 14px;
    color: #64748b !important;
    font-size: 14px;
    line-height: 1.55;
}

.mega-panel.dark p,
.mega-panel.dark .mega-desc,
.mobile-subsection.dark p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 14px;
    line-height: 1.55;
}

.mega-panel.dark a,
.mega-cta {
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

.mega-panel.dark a:hover,
.mega-panel.dark a:focus,
.mega-cta:hover,
.mega-cta:focus {
    background: #ffffff;
    color: #1e3a8a !important;
}

.mobile-btn {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
}

.mobile-panel {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    z-index: 99998;
    max-height: calc(100vh - 100px);
    padding: 14px;
    display: none;
    overflow-y: auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.22);
    -webkit-overflow-scrolling: touch;
}

.mobile-panel.active {
    display: block;
}

.mobile-group {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mobile-group:last-child {
    border-bottom: 0;
}

.mobile-group-btn {
    width: 100%;
    padding: 16px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase !important;
    cursor: pointer;
}

.mobile-group-btn .chevron {
    transition: transform 0.2s ease;
}

.mobile-group.open .chevron {
    transform: rotate(180deg);
}

.mobile-submenu {
    padding: 0 0 14px;
    display: none;
}

.mobile-group.open .mobile-submenu {
    display: block;
}

.mobile-subsection {
    margin: 10px 0;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.mobile-subsection h4 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.mobile-subsection a,
.mobile-direct-link {
    display: block;
    color: #475569 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.mobile-subsection a {
    padding: 9px 0;
}

.mobile-direct-link {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: #111827 !important;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase !important;
}

.mobile-direct-link.cta-link {
    margin-top: 12px;
    border-bottom: 0;
    border-radius: 14px;
    background: var(--bv-blue-600);
    color: #ffffff !important;
    text-align: center;
}

@media (max-width: 1280px) {
    .cb-nav {
        padding: 16px 28px;
    }

    .cb-nav-links {
        gap: 15px;
    }

    .cb-nav .cb-nav-links > li > a {
        font-size: 14px;
    }
}

@media (max-width: 1160px) {
    .cb-nav-links {
        display: none;
    }

    .mobile-btn {
        display: inline-flex;
    }

    .cb-nav {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .cb-nav {
        padding: 14px;
    }

    .cb-logo {
        font-size: 24px;
    }

    .mobile-panel {
        top: 72px;
        right: 10px;
        left: 10px;
        max-height: calc(100vh - 88px);
    }
}





.mobile-account-links {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

    .mobile-account-links form {
        margin: 0;
    }

.mobile-logout-button {
    width: 100%;
    border: 0;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
