/*
   Mobile menu only.
   The open/close and submenu states are controlled by JS/MuiNe-header.js;
   this file only styles those existing states.
*/

.dt-mobile-menu.dt-menu-ready {
    display: block !important;
    position: fixed;
    z-index: 10000;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    background: rgba(7, 35, 70, .58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    -webkit-transition: opacity .28s ease, visibility .28s ease;
    transition: opacity .28s ease, visibility .28s ease;
}

    .dt-mobile-menu.dt-menu-ready.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .dt-mobile-menu.dt-menu-ready .my-menu-container {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        display: flex;
        flex-direction: column;
        width: min(392px, calc(100% - 20px));
        height: 100vh;
        height: 100dvh;
        max-height: none;
        margin: 0;
        padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        border-radius: 28px 0 0 28px;
        border-left: 1px solid rgba(255, 255, 255, .8);
        background: linear-gradient(160deg, #f1fbfd 0%, #f5fbff 52%, #edf8f3 100%);
        box-shadow: -18px 0 45px rgba(4, 36, 75, .22);
        -webkit-transform: translate3d(100%, 0, 0);
        transform: translate3d(100%, 0, 0);
        -webkit-transition: -webkit-transform .42s cubic-bezier(.22, .8, .22, 1);
        transition: transform .42s cubic-bezier(.22, .8, .22, 1);
        will-change: transform;
        background: url(/Design/img/TieuHocMuiNe2/a.jpg) no-repeat;
        background-size: cover;
        background-position: left;
    }

    .dt-mobile-menu.dt-menu-ready.show .my-menu-container {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    /* Small decorative bubbles keep the panel lively without adding assets. */

    .dt-mobile-menu.dt-menu-ready .my-menu-container::before {
        position: absolute;
        z-index: 0;
        display: block;
        content: "" !important;
        pointer-events: none;
        border-radius: 50%;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .dt-mobile-menu.dt-menu-ready .my-menu-container::before {
        top: 92px;
        right: -66px;
        width: 190px;
        height: 190px;
        background: radial-gradient(circle at 35% 35%, rgba(255, 214, 75, .42), rgba(255, 214, 75, 0) 68%);
    }

    .dt-mobile-menu.dt-menu-ready .my-menu-container > * {
        position: relative;
        z-index: 1;
    }

    .dt-mobile-menu.dt-menu-ready .my-menu-top {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 86px;
        margin: 0 0 7px;
        padding: 3px 8px 3px 8px;
        border: 1px solid rgba(255, 255, 255, .72);
        box-shadow: 0 10px 24px rgba(8, 112, 181, .18);
        background-image: url(/Design/img/TieuHocMuiNe2/header.jpg);
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-position: 100% 100%;
    }

    .dt-mobile-menu.dt-menu-ready .my-menu-logo {
        display: block;
        margin: 0;
        overflow: hidden;
    }

        .dt-mobile-menu.dt-menu-ready .my-menu-logo img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

    .dt-mobile-menu.dt-menu-ready .dt-menu-close {
        position: absolute;
        top: 50%;
        right: 10px;
        display: grid !important;
        width: 36px;
        height: 36px;
        margin: 0;
        padding: 0;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, .72);
        border-radius: 14px;
        background: #fdde51;
        color: #fff;
        font: 400 22px/1 Arial, sans-serif;
        cursor: pointer;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        -webkit-transition: background .2s ease, -webkit-transform .2s ease;
        transition: background .2s ease, transform .2s ease;
    }

        .dt-mobile-menu.dt-menu-ready .dt-menu-close:hover,
        .dt-mobile-menu.dt-menu-ready .dt-menu-close:focus-visible {
            background: #fff0b9;
            -webkit-transform: translateY(-50%) scale(1.05);
            transform: translateY(-50%) scale(1.05);
        }

    .dt-mobile-menu.dt-menu-ready .rs-nav-list {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .dt-mobile-menu.dt-menu-ready .rs-nav-item {
        position: relative;
        display: block;
        margin: 0;
        border-bottom: 1px solid rgba(143, 176, 201, .22);
        opacity: 1;
    }

    .dt-mobile-menu.dt-menu-ready.show .rs-nav-item {
        -webkit-animation: dt-mobile-menu-item-in .46s both;
        animation: dt-mobile-menu-item-in .46s both;
    }

        .dt-mobile-menu.dt-menu-ready.show .rs-nav-item:nth-child(2) {
            -webkit-animation-delay: .025s;
            animation-delay: .025s;
        }

        .dt-mobile-menu.dt-menu-ready.show .rs-nav-item:nth-child(3) {
            -webkit-animation-delay: .05s;
            animation-delay: .05s;
        }

        .dt-mobile-menu.dt-menu-ready.show .rs-nav-item:nth-child(4) {
            -webkit-animation-delay: .075s;
            animation-delay: .075s;
        }

        .dt-mobile-menu.dt-menu-ready.show .rs-nav-item:nth-child(5) {
            -webkit-animation-delay: .1s;
            animation-delay: .1s;
        }

        .dt-mobile-menu.dt-menu-ready.show .rs-nav-item:nth-child(6) {
            -webkit-animation-delay: .125s;
            animation-delay: .125s;
        }

        .dt-mobile-menu.dt-menu-ready.show .rs-nav-item:nth-child(7) {
            -webkit-animation-delay: .15s;
            animation-delay: .15s;
        }

    .dt-mobile-menu.dt-menu-ready .rs-nav-link {
        display: flex;
        align-items: center;
        min-height: 38px;
        margin: 3px 0;
        padding: 4px 48px 4px 9px;
        gap: 6px;
        border-radius: 14px;
        color: #0c2997 !important;
        background: transparent !important;
        font: 600 15px/1.45 Montserrat-SemiBold, Montserrat, Arial, sans-serif;
        text-decoration: none;
        -webkit-transition: color .2s ease, background .2s ease, -webkit-transform .2s ease;
        transition: color .2s ease, background .2s ease, transform .2s ease;
    }

        .dt-mobile-menu.dt-menu-ready .rs-nav-link:hover,
        .dt-mobile-menu.dt-menu-ready .rs-nav-link:focus-visible,
        .dt-mobile-menu.dt-menu-ready .rs-nav-item.active > .rs-nav-link {
            color: #0755a5 !important;
            background: linear-gradient(90deg, rgba(17, 148, 160, .12), rgba(255, 214, 75, .16)) !important;
            -webkit-transform: translateX(3px);
            transform: translateX(3px);
        }

        .dt-mobile-menu.dt-menu-ready .rs-nav-link img {
            flex: 0 0 21px;
            object-fit: contain;
        }

    .dt-mobile-menu.dt-menu-ready .btn-drop:not(.none) {
        position: absolute;
        z-index: 2;
        top: 3px;
        right: 4px;
        display: grid;
        width: 31px;
        height: 31px;
        place-items: center;
        border: 1px solid rgba(7, 85, 165, .08);
        border-radius: 12px;
        background: #edf6fc !important;
        color: #0755a5 !important;
        cursor: pointer;
        -webkit-transition: color .22s ease, background .22s ease, -webkit-transform .28s ease;
        transition: color .22s ease, background .22s ease, transform .28s ease;
    }

    .dt-mobile-menu.dt-menu-ready .rs-nav-item.active > .btn-drop {
        background: #fff2bd !important;
        color: #8f6900 !important;
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }

    .dt-mobile-menu.dt-menu-ready .rs-nav-drop {
        display: block;
        visibility: hidden;
        max-height: 0;
        margin: 0 0 0 5px;
        padding: 0 8px;
        overflow: hidden;
        border-radius: 13px;
        background: rgba(231, 246, 255, .75);
        opacity: 0;
        -webkit-transform: translateY(-6px);
        transform: translateY(-6px);
        -webkit-transition: max-height .32s ease, opacity .22s ease, visibility .22s ease, -webkit-transform .32s ease, padding .32s ease;
        transition: max-height .32s ease, opacity .22s ease, visibility .22s ease, transform .32s ease, padding .32s ease;
    }

    .dt-mobile-menu.dt-menu-ready .rs-nav-item.active > .rs-nav-drop {
        visibility: visible;
        max-height: 1200px;
        margin-bottom: 10px;
        padding-top: 5px;
        padding-bottom: 5px;
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    .dt-mobile-menu.dt-menu-ready .rs-nav-drop a {
        display: flex;
        align-items: center;
        min-height: 43px;
        padding: 6px 7px;
        border-radius: 9px;
        color: #0c2997;
        font: 500 14px/1.45 Montserrat, Arial, sans-serif;
        text-decoration: none;
        -webkit-transition: color .2s ease, background .2s ease, padding-left .2s ease;
        transition: color .2s ease, background .2s ease, padding-left .2s ease;
    }

        .dt-mobile-menu.dt-menu-ready .rs-nav-drop a:hover,
        .dt-mobile-menu.dt-menu-ready .rs-nav-drop a:focus-visible {
            padding-left: 11px;
            color: #0755a5;
            background: rgba(255, 255, 255, .82);
        }

    .dt-mobile-menu.dt-menu-ready .dt-submenu-icon {
        flex: 0 0 21px;
        width: 21px;
        color: #0c2997;
        text-align: center;
    }

    .dt-mobile-menu.dt-menu-ready .dt-submenu-label {
        min-width: 0;
    }

    .dt-mobile-menu.dt-menu-ready .header-bottom-hotline {
        display: flex;
        align-items: center;
        justify-content: center;
        width: max-content;
        min-height: 43px;
        margin: auto;
        margin-top: 18px;
        padding: 6px 10px;
        gap: 4px;
        border: 1px solid rgba(17, 148, 160, .12);
        border-radius: 50px;
        background: #0c2997;
        color: #fff !important;
        box-shadow: 0 9px 18px rgba(8, 112, 181, .18);
        font: 500 13px/1.4 Montserrat, Arial, sans-serif;
        text-decoration: none;
        -webkit-transition: box-shadow .2s ease, -webkit-transform .2s ease;
        transition: box-shadow .2s ease, transform .2s ease;
    }

        .dt-mobile-menu.dt-menu-ready .header-bottom-hotline:hover,
        .dt-mobile-menu.dt-menu-ready .header-bottom-hotline:focus-visible {
            box-shadow: 0 12px 24px rgba(8, 112, 181, .28);
            -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
        }

        .dt-mobile-menu.dt-menu-ready .header-bottom-hotline .icon {
            flex: 0 0 27px;
            width: 27px;
            height: 27px;
            border-radius: 50%;
            background: rgba(255, 255, 255, .18);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

    .dt-mobile-menu.dt-menu-ready :focus-visible {
        outline: 3px solid rgba(255, 190, 37, .86);
        outline-offset: 2px;
    }

@-webkit-keyframes dt-mobile-menu-item-in {
    from {
        opacity: 0;
        -webkit-transform: translateX(12px);
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

@keyframes dt-mobile-menu-item-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 420px) {
    .dt-mobile-menu.dt-menu-ready .my-menu-container {
        width: calc(100% - 30px);
        border-radius: 22px 0 0 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dt-mobile-menu.dt-menu-ready,
    .dt-mobile-menu.dt-menu-ready .my-menu-container,
    .dt-mobile-menu.dt-menu-ready .rs-nav-item,
    .dt-mobile-menu.dt-menu-ready .rs-nav-link,
    .dt-mobile-menu.dt-menu-ready .btn-drop,
    .dt-mobile-menu.dt-menu-ready .rs-nav-drop,
    .dt-mobile-menu.dt-menu-ready .rs-nav-drop a,
    .dt-mobile-menu.dt-menu-ready .header-bottom-hotline,
    .dt-mobile-menu.dt-menu-ready .dt-menu-close {
        -webkit-animation: none !important;
        animation: none !important;
        -webkit-transition: none !important;
        transition: none !important;
    }
}