﻿/* Banner ngang của khoa*/
.banner {
    position: relative;
    width: 100%;
    min-height: 50vh;
    overflow: hidden;
}
/* Kích thước Ảnh */
.banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
/*Thanh cuộn nhấn để tư vấn ngay*/
#floatingPopup {
    position: fixed;
    /* ÉP SÁT BIÊN PHẢI */
    right: 12px; /* có thể đổi 8–16px tùy ý */
    left: auto;
    /* Vị trí dọc */
    top: 50vh;
    transform: translateY(-50%);
    padding: clamp(12px, 1.6vw, 18px) clamp(18px, 2.2vw, 26px);
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: red;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 14px 34px rgba(30,136,229,0.4);
    z-index: 9998;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.35s ease;
    animation: softPulse 4s ease-in-out infinite;
    animation: blinkNew 1s infinite; /*Hiệu ứng chớp nháy*/
    z-index: 2;
}
/* Hiệu ứng chớp nháy */
@keyframes blinkNew {
    0% {
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    60% {
        opacity: 0.25;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}


    /* Hover tinh tế */
    #floatingPopup:hover {
        transform: scale(1.05);
        box-shadow: 0 20px 44px rgba(21,101,192,0.55);
    }
/* Ánh sáng nhẹ */
@keyframes softPulse {
    0%,100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.12);
    }
}
/*Hết thanh nhấn để tư vấn ngay*/
/* ===== Thanh liên hệ cuối trang ===== */
.contact-bar {
    position: fixed;
    bottom: 5%;
    right: 20px;
    z-index: 9998;
    display: flex;
    gap: 12px;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.35s ease;
}
    .contact-bar.hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px);
    }
    /* Nút chung */
    .contact-bar a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 11px 16px;
        border-radius: 28px;
        font-weight: 600;
        font-size: 14px;
        color: #fff;
        text-decoration: none;
        box-shadow: 0 10px 22px rgba(0,0,0,0.25);
        animation: shake 1.3s infinite;
    }
/* ===== Thanh liên hệ cố định ===== */
.contact-bar {
    position: fixed;
    right: 12px; /* Áp sát lề phải */
    bottom: 5%; /* Cách đáy trang */
    display: flex;
    flex-direction: column; /* XẾP DỌC */
    align-items: flex-end; /* Canh phải */
    gap: 10px; /* Khoảng cách nút trên – dưới */
    z-index: 9998;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.35s ease;
}
    /* Ẩn khi cần */
    .contact-bar.hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px);
    }
    /* ===== Nút chung ===== */
    .contact-bar a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px; /* kích thước nút zalo, điện thoại */
        padding: 11px 16px;
        border-radius: 999px;
        font-weight: 600;
        font-size: 14px;
        color: #ffffff;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: 0 10px 22px rgba(0,0,0,0.25);
        animation: shake 1.3s infinite;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

        /* Hover nhẹ */
        .contact-bar a:hover {
            transform: translateX(-4px) scale(1.04);
            box-shadow: 0 16px 36px rgba(0,0,0,0.35);
        }

/* ===== Zalo ===== */
.contact-zalo {
    background: #0068ff;
}

    .contact-zalo img {
        width: 10px;
        height: 10px;
    }

/* ===== Gọi điện ===== */
.contact-phone {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

/* ===== Hiệu ứng rung ===== */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(0);
    }
}

/*@media (max-width: 991px) {
    .contact-bar {
        display: none !important;
    }
}*/

