.home-banner {
    position: relative;
    height: 100vh;
    min-height: 480px;
    overflow: hidden;
    background: #1c1c1c;
}

.banner-slides {
    position: absolute;
    inset: 0;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.banner-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ảnh: zoom kiểu Ken Burns chạy liên tục (vào/ra xen kẽ), không phụ thuộc thời điểm tải trang */
.banner-slide.is-active img.banner-media {
    animation: banner-zoom 8s ease-in-out infinite alternate;
}

@keyframes banner-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.12);
    }
}

/* Video: đã có chuyển động riêng, chỉ thêm hiệu ứng xuất hiện mờ dần + thu nhẹ về đúng cỡ */
video.banner-media {
    opacity: 0;
    transform: scale(1.04);
}

.banner-slide.is-active video.banner-media {
    animation: banner-video-in 1.2s ease-out forwards;
}

@keyframes banner-video-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Lớp phủ tối để chữ trắng và header trong suốt luôn đọc được, đậm hơn ở vùng header */
.banner-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.18) 28%, rgba(0, 0, 0, 0.22));
}

.banner-slide--placeholder {
    background: linear-gradient(135deg, #d95d39 0%, #f4a261 100%);
}

.banner-caption {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 0 48px;
}

.banner-caption h2 {
    margin: 0;
    color: #fff;
    font-size: 65px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(24px);
}

.banner-slide.is-active .banner-caption h2 {
    animation: banner-fade-up 0.9s ease-out 0.3s forwards;
}

.banner-slide.is-active .banner-btn {
    opacity: 0;
    transform: translateY(24px);
    animation: banner-fade-up 0.9s ease-out 0.55s forwards;
}

@keyframes banner-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 48em) {
    .banner-caption h2 {
        font-size: 36px;
    }
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.banner-btn:hover {
    background: rgba(0, 0, 0, 0.55);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.banner-arrow:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.45);
}

.banner-arrow--prev {
    left: 24px;
}

.banner-arrow--next {
    right: 24px;
}

.banner-dots {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.banner-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 720px) {
    .home-banner {
        min-height: 360px;
    }

    .banner-arrow {
        width: 40px;
        height: 40px;
    }

    .banner-arrow--prev {
        left: 12px;
    }

    .banner-arrow--next {
        right: 12px;
    }
}
