:root {
    --vmu-blue: #0E3FB5;
    --vmu-blue-2: #082B7E;
    --vmu-blue-3: #061E5A;
    --vmu-blue-50: #EEF2FF;
    --vmu-blue-100: #DCE3FE;
    --vmu-red: #E20613;
    --vmu-red-2: #B30410;
    --vmu-red-50: #FFEBED;
    --vmu-gold: #FFC107;
    --ink: #0B1330;
    --ink-2: #2A3358;
    --ink-3: #5A6488;
    --ink-4: #8C95B5;
    --line: #E4E8F4;
    --line-2: #EEF1F8;
    --bg: #F6F8FD;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ────────── FLOATING CONNECT BAR (right side, all pages) ────────── */
.connect-bar {
    position: fixed;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 40;
    align-items: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 99px;
    box-shadow: 0 10px 28px -10px rgba(11, 19, 48, .18);
}

.connect-bar .rail-title {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--vmu-blue);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 4px 0 2px;
    display: flex;
    align-items: center;
    gap: 6px
}

.connect-bar .rail-title::after {
    content: "";
    width: 2px;
    height: 18px;
    background: var(--vmu-red);
    border-radius: 2px
}

.connect-bar .cbtn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    border: none;
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    position: relative;
    transition: transform .2s var(--ease)
}

.connect-bar .cbtn:hover {
    transform: scale(1.08)
}

.connect-bar .cbtn.call {
    background: linear-gradient(135deg, #21BA45 0%, #1B5E20 100%)
}

.connect-bar .cbtn.mail {
    background: linear-gradient(135deg, #FF6F00 0%, #E65100 100%)
}

.connect-bar .cbtn.fb {
    background: linear-gradient(135deg, #1877F2 0%, #0D47A1 100%)
}

.connect-bar .cbtn.chat {
    background: linear-gradient(135deg, #0068FF 0%, #003C9A 100%)
}

.connect-bar .cbtn .ind {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--vmu-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 99px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff
}

.connect-bar .cbtn .label {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all .2s var(--ease);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .2)
}

.connect-bar .cbtn .label::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--ink)
}

.connect-bar .cbtn:hover .label {
    opacity: 1;
    transform: translateY(-50%) translateX(0)
}

.connect-bar .cbtn .ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: .5;
    animation: cbtn-ping 2.4s var(--ease) infinite
}

@keyframes cbtn-ping {
    0% {
        transform: scale(1);
        opacity: .5
    }

    100% {
        transform: scale(1.6);
        opacity: 0
    }
}



.contact-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-btn {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    line-height: 1.1;
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    margin-top: 30px;
}

.contact-btn:hover {
    transform: translateY(-4px);
    color: white;
}

.contact-btn .icon {
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-btn .text {
    text-align: center;
}

.zalo {
    background-color: #028fe3;
}

.facebook {
    background: linear-gradient(135deg, #1877f2, #4ea1ff);
}

.hotline {
    background: linear-gradient(135deg, #16c047, #27d35b);
}

.messenger {
    background: linear-gradient(135deg, #8b3dff, #d04cff);
}

.person-name {
    font-size: 16px;
    margin-top: 10px;
}

.person-title {
    font-size: 12px;
    color: red;
}

.parent-box {
    height: 500px;
    /* hoặc chiều cao bất kỳ */
    display: flex;
    flex-direction: column;
}

.msedu-card {
    margin-top: auto;
}

h5 {
    font-size: 11px;
}

p,
span,
a {
    font-size: 14px;
}

.fs-section-title2 {
    display: flex;
    align-items: center;
    gap: 5px;
    padding
}

.fs-line2 {
    width: 24px;
    height: 2px;
    background: #ff1e1e;
}

.fs-text2 {
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.menu-footer {
    gap: 10px;
    padding-top: 20px;
    color: #ffffff;
}

.menu-footer :hover {
    color: #ff1e1e;
}

.star-rating span:before {
    color: #FFC107;
    font-size: 16px;
}

.khoa-hoc .box-text a {
    font-size: 18px;
}

.course-category a {
    font-size: 11px !important;
}

.zalo-group {
    position: relative;
}

.zalo-main {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
}

.zalo-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zalo-sub-menu {
    position: absolute;
    right: 60px;
    top: 0;

    display: flex;
    flex-direction: column;
    gap: 10px;

    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);

    transition: .3s;
}

.zalo-group:hover .zalo-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.zalo-item {
    position: relative;
    display: flex;
    align-items: center;
}

.zalo-item img {
    width: 35px;
    height: 35px;
}

/* Ẩn label mặc định */
.zalo-item .label {
    position: absolute;
    right: 55px;

    opacity: 0;
    transform: translateX(15px);

    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease;

    white-space: nowrap;
}


/* Hover từng Zalo con mới hiện label */
.zalo-item:hover .label {
    opacity: 1;
    transform: translateX(0);
}

.cfb-mobile-toggle {
    display: none;
}

@media (max-width:768px) {

    .cfb-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;

        position: fixed;
        right: 0px;
        bottom: 0px;

        width: 48px;
        height: 48px;

        border: none;
        border-radius: 50%;

        background: #e20613;
        color: #fff;

        cursor: pointer;
        z-index: 99999;

        font-size: 22px;

        box-shadow: 0 6px 16px rgba(0, 0, 0, .18);

        transition: transform .2s ease;
    }

    @keyframes cfbPulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.08);
        }

        100% {
            transform: scale(1);
        }
    }

    .cfb-mobile-toggle {
        animation: cfbPulse 1.5s infinite;
    }

    .cfb-mobile-toggle::before {
        content: "";
        position: absolute;
        inset: 0;

        border-radius: 50%;

        background: rgba(248, 0, 0, 0.226);

        animation: cfbPing 1.8s infinite;
    }

    @keyframes cfbPing {
        0% {
            transform: scale(1);
            opacity: .8;
        }

        100% {
            transform: scale(1.8);
            opacity: 0;
        }
    }

    .cfb-mobile-toggle {
        overflow: visible;
    }

    .cfb-mobile-toggle i {
        transition: .3s;
    }

    .cfb-mobile-toggle.cfb-open i {
        transform: rotate(45deg);
    }

    .connect-bar {

        position: fixed;

        right: 15px;
        bottom: 85px;

        opacity: 0;
        visibility: hidden;

        transform: translateY(20px);

        transition: .3s;
    }

    .connect-bar.cfb-open {

        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .connect-bar .rail-title {
        display: none;
    }

}