/* Digitifive mobile experience — clean, original and cache-busted. */

.d5-mobile-action-bar {
    display: none;
}

@media only screen and (max-width: 1023px) {
    .main-header .nav-toggle-btn {
        display: none !important;
    }

    .main-header .header-lower {
        position: relative;
        z-index: 100;
        background: #ffffff;
        border-bottom: 1px solid #e9eef5;
        box-shadow: 0 8px 26px rgba(13, 42, 80, 0.07);
    }

    .main-header .header-lower .inner-container {
        min-height: 76px;
    }

    .main-header .logo-box {
        padding: 10px 0 !important;
    }

    .main-header .logo-box .logo img {
        width: 138px !important;
        max-width: 138px !important;
        height: auto !important;
    }

    .main-header .nav-outer {
        margin-left: auto;
    }

    .main-header .nav-outer .mobile-nav-toggler,
    .main-header .sticky-header .mobile-nav-toggler {
        width: 44px;
        height: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
        color: #ffffff;
        background: #004aad;
        border: 0;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 74, 173, 0.22);
        line-height: 1;
    }

    .main-header .nav-outer .mobile-nav-toggler i,
    .main-header .sticky-header .mobile-nav-toggler i {
        font-size: 20px;
    }

    .main-header .sticky-header .logo {
        padding: 0 !important;
    }

    .main-header .sticky-header .logo img {
        width: 126px !important;
        height: auto !important;
        padding: 12px 0 !important;
    }

    .mobile-menu {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100%;
        padding: 0;
        visibility: hidden;
        z-index: 999999;
    }

    .mobile-menu .menu-backdrop {
        position: fixed;
        inset: 0;
        width: 100% !important;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        background: rgba(4, 24, 51, 0.58);
        backdrop-filter: blur(4px);
        transform: none !important;
        transition: opacity .3s ease, visibility .3s ease;
    }

    .mobile-menu-visible .mobile-menu .menu-backdrop {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    .mobile-menu .menu-box {
        position: absolute;
        top: 0;
        right: 0;
        left: auto !important;
        width: min(90vw, 390px);
        max-width: 390px;
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        padding: 0;
        color: #15233a;
        background: #ffffff;
        border-radius: 0;
        box-shadow: -24px 0 60px rgba(0, 31, 75, 0.22);
        transform: translateX(105%);
        transition: transform .35s cubic-bezier(.2,.75,.25,1);
    }

    .mobile-menu-visible .mobile-menu .menu-box {
        right: 0;
        left: auto !important;
        transform: translateX(0);
        transition-delay: 0s;
    }

    .mobile-menu .mCustomScrollBox,
    .mobile-menu .mCSB_container {
        min-height: 100%;
        margin-right: 0 !important;
    }

    .mobile-menu .mCSB_container {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu .mCSB_scrollTools {
        display: none !important;
    }

    .d5-mobile-menu-top {
        min-height: 78px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 16px 22px;
        border-bottom: 1px solid #e8edf4;
    }

    .mobile-menu .nav-logo {
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .mobile-menu .nav-logo img {
        width: 132px;
        max-width: 132px;
        height: auto;
        filter: none;
    }

    .mobile-menu .close-btn,
    .mobile-menu-visible .mobile-menu .close-btn {
        position: static;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: #163b68;
        background: #eef5ff;
        border: 0;
        border-radius: 11px;
        box-shadow: none;
        font-family: inherit;
        font-size: 18px;
        line-height: 1;
        transform: none;
        transition: background .2s ease, color .2s ease;
    }

    .main-header .mobile-menu .close-btn:hover {
        color: #ffffff;
        background: #004aad;
        opacity: 1;
    }

    .d5-mobile-menu-heading {
        padding: 24px 22px 10px;
    }

    .d5-mobile-menu-heading span {
        display: block;
        margin-bottom: 5px;
        color: #004aad;
        font-family: 'Inter', sans-serif;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }

    .d5-mobile-menu-heading strong {
        display: block;
        color: #12233d;
        font-family: 'Outfit', sans-serif;
        font-size: 25px;
        font-weight: 750;
        line-height: 1.12;
    }

    .mobile-menu .menu-outer {
        padding: 4px 22px 18px;
    }

    /* Protect against an older cached script injecting the desktop menu. */
    .mobile-menu .menu-outer > .navbar-collapse,
    .mobile-menu .menu-outer > .navigation,
    .mobile-menu .menu-outer > nav,
    .mobile-menu .menu-outer > div:not(.d5-mobile-navigation) {
        display: none !important;
    }

    .d5-mobile-navigation {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .d5-mobile-navigation li {
        margin: 0;
        border-bottom: 1px solid #e8edf4;
    }

    .d5-mobile-navigation li:last-child {
        border-bottom: 0;
    }

    .d5-mobile-navigation a {
        min-height: 53px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 3px;
        color: #203451;
        font-family: 'Inter', sans-serif;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.25;
        text-decoration: none;
        text-transform: none;
    }

    .d5-mobile-navigation a i {
        color: #7f91a9;
        font-size: 11px;
        transition: transform .2s ease, color .2s ease;
    }

    .d5-mobile-navigation a:hover,
    .d5-mobile-navigation a[aria-current="page"] {
        color: #004aad;
    }

    .d5-mobile-navigation a:hover i,
    .d5-mobile-navigation a[aria-current="page"] i {
        color: #004aad;
        transform: translateX(3px);
    }

    .d5-mobile-menu-footer {
        margin-top: auto;
        padding: 18px 22px calc(22px + env(safe-area-inset-bottom));
        color: #ffffff;
        background: #073d7e;
    }

    .d5-mobile-menu-footer > span {
        display: block;
        margin-bottom: 7px;
        color: rgba(255,255,255,.68);
        font-family: 'Inter', sans-serif;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 1.2px;
        text-transform: uppercase;
    }

    .d5-mobile-menu-footer div {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .d5-mobile-menu-footer div i {
        width: 3px;
        height: 3px;
        background: rgba(255,255,255,.45);
        border-radius: 50%;
    }

    .d5-mobile-menu-footer a {
        color: #ffffff;
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
    }
}

@media only screen and (max-width: 767px) {
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
        -webkit-font-smoothing: antialiased;
    }

    .main-header .header-lower .inner-container {
        min-height: 72px;
    }

    .main-header .logo-box .logo img {
        width: 132px !important;
        max-width: 132px !important;
    }

    .main-header .outer-box {
        display: none !important;
    }

    .d5-mobile-action-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100000;
        height: calc(64px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        background: #ffffff;
        border-top: 1px solid #dfe7f1;
        box-shadow: 0 -10px 30px rgba(8, 39, 77, 0.12);
    }

    .d5-mobile-action-bar a,
    .d5-mobile-action-bar button {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin: 0;
        padding: 4px 3px;
        color: #27425f;
        background: transparent;
        border: 0;
        border-radius: 11px;
        font-family: 'Inter', sans-serif;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .35px;
        line-height: 1;
        text-align: center;
        text-transform: uppercase;
    }

    .d5-mobile-action-bar a.primary {
        color: #ffffff;
        background: #004aad;
        box-shadow: 0 6px 16px rgba(0, 74, 173, .2);
    }

    .d5-mobile-action-bar i {
        font-size: 17px;
    }

    .d5-homepage .d5-home-whatsapp-btn {
        display: none !important;
    }

    .d5-homepage .d5-home-hero-actions {
        grid-template-columns: 1fr !important;
    }

    .d5-homepage .d5-home-primary-btn {
        width: 100%;
        border-radius: 12px !important;
    }
}

@media only screen and (max-width: 390px) {
    .mobile-menu .menu-box {
        width: 94vw;
    }

    .d5-mobile-menu-footer a {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu .menu-box,
    .mobile-menu .menu-backdrop,
    .d5-mobile-navigation a i {
        transition: none !important;
    }
}
