.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 40, 84, .14);
    border-radius: 999px;
    background: #fff;
    color: #16366f;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.mobile-menu-overlay[hidden],
.mobile-menu[hidden] {
    display: none !important;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 4900;
    background: rgba(7, 19, 35, .58);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 5000;
    width: min(86vw, 360px);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px;
    background: #fff;
    color: #071323;
    transform: translateX(100%);
    transition: transform .24s ease;
    box-shadow: -24px 0 50px rgba(7, 19, 35, .22);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e4eaf3;
}

.mobile-menu-head img {
    width: 158px;
    height: auto;
}

.mobile-menu-close {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce4ef;
    border-radius: 999px;
    background: #f7faff;
    color: #16366f;
    cursor: pointer;
    font-size: 18px;
}

.mobile-menu-nav,
.mobile-menu-actions {
    display: grid;
    gap: 10px;
}

.mobile-menu-nav {
    flex: 1 1 auto;
}

.mobile-menu-actions {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e4eaf3;
}

.mobile-menu-nav a,
.mobile-menu-actions a:not(.mobile-menu-cta) {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid #e4eaf3;
    border-radius: 14px;
    background: #f8fbff;
    color: #0f2854;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

/* Shared public footer styling. Kept here because every public page already loads this file. */
.footer,
.site-footer {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(90deg, #123a68 0%, #0f315b 52%, #154273 100%) !important;
    color: #fff !important;
    padding: 76px 0 42px !important;
}

.footer-inner,
.footer-main,
.site-footer .footer-main {
    width: min(1200px, calc(100% - clamp(36px, 9vw, 112px))) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1.25fr .9fr .9fr !important;
    gap: 56px !important;
    align-items: start !important;
}

.footer-logo-img,
.site-footer .footer-logo-img {
    width: 190px !important;
    height: auto !important;
    margin: 0 0 18px !important;
}

.footer p,
.footer a,
.footer small,
.site-footer p,
.site-footer a,
.site-footer small {
    color: rgba(255,255,255,.78) !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    text-decoration: none !important;
}

.footer h3,
.site-footer h3 {
    color: #fff !important;
    font-size: 15px !important;
    margin: 0 0 16px !important;
}

.footer-links,
.support,
.site-footer .footer-links,
.site-footer .support {
    display: grid !important;
    grid-template-columns: none !important;
    gap: 9px !important;
}

.footer-about,
.site-footer .footer-about {
    margin-top: 18px !important;
    max-width: 420px !important;
    color: rgba(255,255,255,.78) !important;
}

.footer-bottom,
.site-footer .footer-bottom {
    width: min(1200px, calc(100% - clamp(36px, 9vw, 112px))) !important;
    margin: 30px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 18px !important;
    color: rgba(255,255,255,.7) !important;
    font-size: 12px !important;
}

.footer .policies,
.site-footer .policies {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 18px 38px !important;
}

.mobile-menu-nav i,
.mobile-menu-actions i {
    width: 18px;
    text-align: center;
    color: #1c4d8d;
}

.mobile-menu-cta {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 4px;
    border-radius: 8px;
    background: #0f2854;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(15, 40, 84, .22);
}

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

body.mobile-menu-open .mobile-menu {
    transform: translateX(0);
}

@media (max-width: 1100px) {
    .topbar .nav {
        display: none !important;
    }

    .topbar .top-actions {
        display: none !important;
    }

    .mobile-menu-toggle,
    .mobile-menu-toggle[hidden] {
        display: inline-flex !important;
    }
}

@media (max-width: 720px) {
    .topbar {
        min-height: 74px !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 14px !important;
        padding: 12px 16px !important;
    }

    .topbar .brand {
        width: auto !important;
        flex: 0 1 auto !important;
    }

    .topbar .brand img {
        width: auto !important;
        max-width: 172px !important;
        max-height: 58px !important;
    }

    .topbar .top-actions {
        display: none !important;
    }

    .mobile-menu {
        width: min(92vw, 360px);
        padding: 18px;
    }

    .mobile-menu-head {
        padding-bottom: 14px;
    }

    .mobile-menu-head img {
        width: 148px;
    }

    .mobile-menu-nav a,
    .mobile-menu-actions a:not(.mobile-menu-cta) {
        min-height: 46px;
        border-radius: 12px;
        font-size: 14px;
    }

    .footer-inner,
    .footer-main,
    .site-footer .footer-main,
    .footer-bottom,
    .site-footer .footer-bottom {
        width: min(100% - 32px, 1180px) !important;
    }

    .footer-inner,
    .footer-main,
    .site-footer .footer-main {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .footer-bottom,
    .site-footer .footer-bottom {
        flex-direction: column !important;
    }
}
