/* ==========================================================================
   SECTION BANNER (port từ Next.js banner.model.css)
   ========================================================================== */

.banner {
    height: 48.91rem;
    position: relative;
    overflow: hidden;

    /* === Entrance animation (thay framer-motion) === */
    opacity: 0;
    transform: translateY(-50px);
    animation: bannerEnter 0.3s ease forwards;
}

@keyframes bannerEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-content {
    transition: opacity 0.4s ease-in-out;
    z-index: 20; 
    pointer-events: none;
}

.banner-content a {
    pointer-events: auto;
}

.banner .banner-container {
    height: 100%;
}

.banner .banner-container .swiper-slide .banner-media,
.banner .banner-container .swiper-slide img,
.banner .banner-container .swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner .banner-container .swiper-slide video {
    background-color: #041821;
}

.banner .swiper-pagination {
    position: absolute;
    bottom: 1rem;
    left: 0 !important;
    right: 0 !important;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.banner .swiper-pagination-bullet {
    width: 3rem;
   height: 0.125rem;

    border-radius: 4px;
    background-color: #041821;
    opacity: 0.32;
    transition: all 0.3s ease-in-out;
    margin: 0 4px !important;
    cursor: pointer;
}

.banner .swiper-pagination:hover .swiper-pagination-bullet:hover {
    opacity: 1;
    background-color: #fff !important;
}

.banner .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #fff;
}

/* ===== Autoplay progress ring + play/pause ===== */
.banner .banner-autoplay {
    position: absolute;
    right: 3.75rem;
    bottom: 3.75rem;
    z-index: 12;
    width: 3.125rem;
    height: 3.125rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1.23px);
    border-radius: 50%;
    pointer-events: none;
}

.banner-autoplay__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3.125rem;
    height: 3.125rem;
    transform: translate(-50%, -50%) rotate(-90deg);
    pointer-events: none;
    --progress: 1;
}

.banner-autoplay__ring circle {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 125.664;
    stroke-dashoffset: calc(125.664px * (1 - var(--progress, 1)));
    transition: stroke 0.2s ease;
}

.banner-autoplay-toggle {
    width: 3.125rem;
    height: 3.125rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 1;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.banner-autoplay-toggle__icon[hidden] {
    display: none;
}

.banner-autoplay-toggle svg {
    max-width: 0.55rem;
}

/* ===== Content overlay ===== */
.banner-content {
    position: absolute;
    top: 20.41rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.8rem;
    width: 100%;
    padding: 0 1rem;
}

.banner-content h1 {
    color: #fff;
    text-align: center;
    font-size: 2.625rem;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: -0.02625rem;
    margin: 0;
}

@media (max-width: 640px) {
    .banner .banner-autoplay {
        width: 1.5625rem;
        height: 1.5625rem;
        right: 0.63rem;
        bottom: 0.58rem;
    }

    .banner-autoplay__ring {
        width: 1.5625rem;
        height: 1.5625rem;
    }

    .banner-autoplay-toggle {
        width: 1.5625rem;
        height: 1.5625rem;
    }

    .banner-autoplay-toggle svg {
        max-width: 0.35rem;
    }

    .banner {
        height: 14.38rem;
    }

    .banner .swiper-pagination-bullet {
        width: 2rem;
    }

    .banner-content {
        gap: 1rem;
        width: 100%;
        top: 60%;
        display: none;
    }

    .banner-content h1 {
        font-size: 1rem;
    }
}
