/* Hero banner — .hero-panel + .hero-glass */

.hero-panel {
    background: url('/image/banner.png') center center / cover no-repeat;
    min-height: 35rem;
    display: flex;
    align-items: stretch;
}

    .hero-panel > .container {
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        width: 100%;
    }

.banner-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    padding: 3.75rem 0;
    color: #ffffff;
}

/* --- CHỮ TIÊU ĐỀ (không background) --- */
.hero-panel .subtitle {
    margin: 0 0 5px;
    color: #0c3375;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: right;
    background: none;
}

.hero-panel .title {
    margin: 0 0 10px;
    color: #0c3375;
    text-shadow: 0 2px 8px rgba(0,0,0,.15);
    font-size: clamp(1.375rem, 2.2vw + 0.5rem, 24px);
    font-weight: 700;
    line-height: 1.4;
    text-align: right;
    text-transform: uppercase;
    background: none;
    background-color: transparent;
}

.hero-glass {
    word-wrap: break-word;
    background: rgba(0, 92, 197, 0.65);
    background-clip: border-box;
    border: 1px solid #ffffff;
    border-radius: 10px;
    flex-direction: column;
    min-width: 0;
    display: flex;
    width: 85%;
    max-width: 450px;
    padding: 15px 25px;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: right;
}

/* --- CTA --- */
.hero-panel .cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-end;
    margin-bottom: 1.75rem;
}

.hero-panel .banner-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-panel .banner-content .btn-policy {
    background: rgba(0, 92, 197, 0.7);
}

.hero-panel .banner-content .btn-register {
    background: rgba(0, 92, 197, 0.7);
}

.hero-panel .banner-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    filter: brightness(1.08);
}

/* Thống kê */
.hero-stats {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0 1.75rem;
    text-align: right;
}

    .stat-item:first-child {
        padding-left: 0;
    }

    .stat-item:last-child {
        padding-right: 0;
    }

.stat-divider {
    flex-shrink: 0;
    width: 1px;
    height: 2.25rem;
    background: rgba(12, 51, 117, 0.18);
}

.stat-number {
    font-size: clamp(1.5rem, 2vw + 0.5rem, 1.75rem);
    font-weight: 700;
    line-height: 1;
    color: #0c3375;
    letter-spacing: -0.02em;
}

.stat-label {
    margin-top: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0c3375;
    line-height: 1.25;
}

@media (max-width: 991.98px) {
    .hero-panel {
        min-height: 32rem;
        background-position: center 40%;
    }

    .banner-content {
        padding: 2rem 0;
    }

    .hero-glass {
        width: min(85%, 600px);
    }
}

@media (max-width: 767.98px) {
    .hero-panel {
        min-height: auto;
        background-position: center 35%;
        align-items: center;
    }

    .hero-panel > .container {
        justify-content: center;
        align-items: center;
    }

    .banner-content {
        align-items: center;
        padding: 1.75rem 0;
    }

    .hero-panel .subtitle,
    .hero-panel .title {
        width: 100%;
        text-align: center;
    }

    .hero-glass {
        width: 100%;
    }

    .hero-panel .cta-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

        .hero-panel .cta-group .btn {
            width: 100%;
        }

    .hero-stats {
        justify-content: space-between;
        gap: 0.5rem;
    }

    .stat-item {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 0.5rem;
        align-items: center;
        text-align: center;
    }

        .stat-item:first-child,
        .stat-item:last-child {
            padding-left: 0;
            padding-right: 0;
        }

    .stat-divider {
        display: none;
    }
}

@media (min-width: 1400px) {
    .hero-panel .title {
        font-size: 32px;
    }
}
/* ===== Video nổi bật (trang chủ) ===== */
.video-section {
    background: #ffffff;
}

/* ----- Carousel trượt ngang ----- */
.hv-carousel {
    position: relative;
}

.hv-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 4px 16px;            /* chừa chỗ cho hover lift + shadow */
    scrollbar-width: none;             /* Firefox */
    -ms-overflow-style: none;          /* IE/Edge cũ */
}

.hv-track::-webkit-scrollbar {
    display: none;                     /* Chrome/Safari */
}

.hv-slide {
    flex: 0 0 calc((100% - 3 * 24px) / 4);   /* 4 thẻ/khung trên desktop */
    scroll-snap-align: start;
}

.hv-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.hv-nav:hover {
    background: #005cc5;
    color: #fff;
}

.hv-prev {
    left: -10px;
}

.hv-next {
    right: -10px;
}

.hv-nav[disabled] {
    opacity: 0.35;
    cursor: default;
}

.hv-nav[disabled]:hover {
    background: #fff;
    color: #0f172a;
}

@media (max-width: 991.98px) {
    .hv-slide {
        flex-basis: calc((100% - 24px) / 2);  /* 2 thẻ/khung trên tablet */
    }
}

@media (max-width: 575.98px) {
    .hv-slide {
        flex-basis: 82%;                      /* 1 thẻ + ló mép thẻ kế trên mobile */
    }

    .hv-nav {
        display: none;                        /* mobile: vuốt tay */
    }
}

.hv-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #0f172a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hv-card:hover,
.hv-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    outline: none;
}

.hv-poster {
    position: absolute;
    inset: 0;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.hv-card:hover .hv-poster {
    transform: scale(1.05);
    filter: brightness(0.85);
}

/* Lớp phủ tối nhẹ để chữ và nút Play nổi bật */
.hv-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

/* Nút Play tam giác kiểu YouTube */
.hv-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    transition: transform 0.2s ease;
}

.hv-play svg {
    display: block;
    width: 60px;
    height: auto;
}

.hv-play .hv-play-bg {
    fill: rgba(15, 23, 42, 0.75);
    transition: fill 0.2s ease;
}

.hv-card:hover .hv-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.hv-card:hover .hv-play .hv-play-bg {
    fill: #005cc5;
}

.hv-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 14px 16px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ===== Lightbox "Tắt đèn" ===== */
.hv-no-scroll {
    overflow: hidden;
}

.hv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 8, 14, 0.94);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hv-lightbox.show {
    opacity: 1;
    visibility: visible;
}

.hv-stage {
    width: min(1100px, 92vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hv-stage video {
    width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.hv-stage-title {
    margin: 16px 0 0;
    color: #e2e8f0;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
}

.hv-close {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hv-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

@media (max-width: 575.98px) {
    .hv-play svg {
        width: 56px;
    }

    .hv-title {
        font-size: 0.95rem;
        padding: 14px 16px;
    }
}
