html, body {
    overflow: visible !important;
}

/* Container chính */
.banner-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

/* Video nền */
.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: fadeInVideo 2s forwards;
}

@keyframes fadeInVideo {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Lớp phủ làm tối video để dễ đọc nội dung */
.banner-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInOverlay 1.5s forwards 1s;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Nội dung hiển thị */
.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    max-width: 600px;
    opacity: 0;
    animation: fadeInContent 1.5s forwards 1.5s;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Tiêu đề chính */
.banner-title {
    font-size: 28px;
    font-weight: bold;
    background: rgba(255, 193, 7, 0.9);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: zoomEffect 1s infinite alternate ease-in-out;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
}

.item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* Đảm bảo tất cả video có cùng chiều cao */
.gallery-video {
    width: 100%;
    height: 200px; /* Đặt chiều cao cố định */
    object-fit: cover; /* Cắt video để vừa khung */
    border-radius: 12px;
}

/* Ẩn nút WhatsApp mặc định */
.video-action-btn {
    position: absolute;
    bottom: 15px;
    /* left: 50%; */
    right: 15px;
    /* transform: translateX(-50%); */
    background: #25D366;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, background 0.3s ease;
    opacity: 0; /* Ẩn ban đầu */
    pointer-events: none; /* Ngăn người dùng nhấn vào khi chưa hover */
}

/* Khi hover vào video thì hiển thị nút */
.item:hover .video-action-btn {
    opacity: 1;
    pointer-events: auto; /* Cho phép nhấn */
}

.video-action-btn:hover {
    background: #1ebe5d;
}



.text-header {
    font-size: 28px;
    font-weight: bold;
    color: #d4af37; /* Màu vàng sang trọng */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

/* Hiệu ứng gạch chân */
.text-header::after {
    content: "";
    display: block;
    width: 1px; /* Bắt đầu từ 1px */
    height: 4px;
    background: #d4af37; /* Màu vàng */
    margin: 8px auto 0;
    border-radius: 2px;

    /* Animation chạy ngang */
    animation: underlineExpand 2s infinite alternate ease-in-out;
}

@keyframes underlineExpand {
    0% {
        width: 1px;
    }
    100% {
        width: 100%; /* Mở rộng đến full width */
    }
}

.massage-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.massage-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.massage-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.massage-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    background-color: #25d366;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.massage-item:hover .massage-image {
    transform: scale(1.05);
    cursor: pointer;
}

.massage-item:hover .massage-btn {
    opacity: 1;
}

.massage-item:hover .contact-btn {
    opacity: 1;
}

.review-section {
    text-align: center;
    padding: 50px 20px;
}

.review-title, .package-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.review-subtitle, .package-subtitle {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 16px;
    color: #666;
}

.review-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 350px;
    text-align: center;
    position: relative;
}

.review-img {
    position: relative;
    display: inline-block;
}

.review-img img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 24px;
    color: #007bff;
    font-weight: bold;
    background: white;
    border-radius: 50%;
    padding: 5px;
}

.review-text {
    font-size: 14px;
    color: #333;
    margin: 15px 0;
}

.review-name {
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

.review-role {
    font-size: 14px;
    color: #777;
}

.package-title {
    margin-top: 40px;
}

.toastify {
    width: 300px !important;  /* Tăng chiều rộng toast */
    min-height: 80px;  /* Đảm bảo không bị nhỏ quá */
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
}

.toast-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-avatar {
    width: 50px !important; /* Tăng kích thước avatar */
    height: 50px !important;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid #25D366;
}

.toast-text {
    font-size: 16px;
    color: black;
}

.telegram-btn {
    background-color: #0088cc; /* Màu xanh Telegram */
}

.massage-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.contact-btn {
    position: absolute;
    bottom: 20px;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
}

/* Căn chỉnh vị trí */
.btn-whatsapp {
    right: 15px; /* Đưa ra ngoài bên trái */
    background-color: #25D366;
    border-radius: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: zoomContact 3s infinite alternate ease-in-out;
}

@keyframes zoomContact {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }
}

.img-custom{
    aspect-ratio: 0.9;
    height: auto;
    width: 100%;
    object-fit: cover;
}

.card-img-overlay{
    background-color: #0000007a;
    height: fit-content;
}

.stats-section {
    background-color: #000;
    color: #fff;
    padding: 50px 0;
}
.stat-box {
    text-align: center;
    border-right: 1px solid #555;
    padding: 10px;
}
.stat-box:last-child {
    border-right: none;
}
.stat-number {
    font-size: 40px;
    font-weight: bold;
    color: orange;
}

.rating-container {
    position: absolute;
    top: 5px;
    right: 12px;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
}

.rating-score {
    margin-left: 8px;
    font-weight: bold;
    color: gold;
}

.text-warning {
    color: gold;
}

.text-muted {
    color: lightgray;
}

 /* Tooltip */
 /* .rating-container::after {

    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
} */

/* Hiển thị tooltip khi hover */

.text-gioithieu{
    font-size: 20px;
}

@media (max-width: 768px) {
    .massage-gallery {
        grid-template-columns: repeat(2, 1fr); /* Chuyển thành 2 cột */
    }
}

.img-banner{
    aspect-ratio: 2;
    height: auto;
    width: 100%;
    object-fit: cover;
}
/* Khi màn hình nhỏ hơn 480px (Mobile) */
@media (max-width: 480px) {
    .banner-title {
        font-size: 20px;
    }
    .massage-gallery {
        grid-template-columns: repeat(2, 2fr); /* Chuyển thành 1 cột */
    }
    .whatsapp-btn {
        font-size: 14px;
    }
    .img-custom{
        aspect-ratio: 0.6;
    }
    .logo-web{
        width: 150px !important;
    }
    .text-gioithieu{
        font-size: 14px;
    }
    .img-banner{
        aspect-ratio: 0.6 !important;
    }
    .banner-content{
        width: 400px;
    }
    .card-title{
        font-size: 16px;
    }
    .card-text{
        font-size: 14px;
    }
    .toast-container {
        gap: 3px !important;
    }
    .toastify {
        padding: 4px !important;
    }
    .toast-text {
        font-size: 13px !important;
    }

    .toast-avatar {
        width: 38px !important;
        height: 38px !important;
    }
    .toastify-right {
        bottom: 45px !important;
    }
}


.tooltip-custom {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 5px 10px;
    top: 50px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    white-space: nowrap;
    pointer-events: none;
}

.rating-container:hover > .tooltip-custom {
    
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s;
}

.logo-web {
    width: 300px; /* Ensure the image maintains its desired width */
    animation: gentle-shake 1s ease-in-out infinite; /* Trigger the animation */
}

@keyframes gentle-shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px); /* Move left slightly */
    }
    50% {
        transform: translateX(2px); /* Move right slightly */
    }
    75% {
        transform: translateX(-2px); /* Move left slightly */
    }
}


.contact-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
}

.whatsapp-btn, .phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: white; */
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.whatsapp-btn img, .phone-btn img {
    width: 40px;
    height: 40px;
}

.phone-btn {
    background-color: red;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: zoomEffect 1s infinite alternate ease-in-out;
}

.phone-btn span {
    margin-left: 10px;
    font-weight: bold;
    font-size: 14px;
}

.phone-btn:hover{
    color: white;
}
