/* =====================================================
   Trung Tâm Cảnh Báo - Full-Width Hero Slider CSS (1440x496px)
   Theme: product_s1 / nss_v1
   ===================================================== */

:root {
    --hero-primary: #8a0009;
    --hero-primary-hover: #b3000c;
    --hero-accent: #3eaed5;
    --hero-ratio: calc(1440 / 496);
}

.hero-fullwidth-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0b0f19;
}

/* Chiều cao chuẩn 550px trên máy tính (Desktop) */
.hero-fullwidth-swiper {
    width: 100%;
    height: 550px;
    max-height: 550px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-fullwidth-swiper {
        height: 550px !important;
        max-height: 550px !important;
        min-height: 550px !important;
    }
}

.hero-fullwidth-swiper .swiper-wrapper {
    display: flex !important;
    height: 100%;
}

.hero-slide-item {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    overflow: hidden;
}

/* Image Slide */
.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide-item:hover .hero-slide-img {
    transform: scale(1.02);
}

/* YouTube Video Slide Cover Mode (1440x496) - Phủ kín 100% màn hình */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
}

.hero-video-container iframe,
#hero_yt_player_slot,
.hero-video-iframe {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100vw !important;
    height: 56.25vw !important; /* Tỷ lệ 16:9 của 100vw */
    min-width: 100% !important;
    min-height: 100% !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none !important;
    border: none !important;
    max-width: none !important;
    max-height: none !important;
}

/* Khi màn hình dọc hoặc hẹp hơn 16:9 */
@media (max-aspect-ratio: 16/9) {
    .hero-video-container iframe,
    #hero_yt_player_slot,
    .hero-video-iframe {
        width: 177.78vh !important;
        height: 100vh !important;
    }
}

.hero-slide-link-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: transparent;
    text-decoration: none;
}

/* Caption Overlay */
.hero-slide-caption-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(11, 15, 25, 0.85) 0%, rgba(11, 15, 25, 0.45) 45%, rgba(11, 15, 25, 0) 100%);
    padding: 1.5rem 0;
}

.hero-caption-card {
    max-width: 680px;
}

.hero-caption-badge {
    background: rgba(138, 0, 9, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-caption-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    line-height: 1.25;
}

.hero-caption-desc {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    color: #e2e8f0;
}

.hero-cta-btn {
    background: var(--hero-primary);
    color: #ffffff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(138, 0, 9, 0.35);
}

.hero-cta-btn:hover {
    background: var(--hero-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(138, 0, 9, 0.5);
}

/* Navigation Buttons (Sử dụng SVG sắc nét, hover màu #3eaed5) */
.hero-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    padding: 0;
    outline: none;
}

.hero-swiper-btn:after {
    display: none !important; /* Triệt tiêu hoàn toàn icon mặc định của Swiper */
}

.hero-swiper-btn svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: #ffffff;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.hero-swiper-prev {
    left: 24px;
}

.hero-swiper-next {
    right: 24px;
}

.hero-swiper-prev:hover svg {
    transform: translateX(-2px);
}

.hero-swiper-next:hover svg {
    transform: translateX(2px);
}

/* Hover chuyển sang màu #3eaed5 theo đúng yêu cầu */
.hero-swiper-btn:hover {
    background: #ffffff;
    border-color: #3eaed5;
    color: #3eaed5 !important;
    box-shadow: 0 8px 24px rgba(62, 174, 213, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.hero-swiper-btn:hover svg {
    stroke: #3eaed5 !important;
}

.hero-swiper-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Nút luôn luôn hoạt động và không bị mờ ở đầu/cuối */
.hero-swiper-btn.swiper-button-disabled {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Nút Bật / Tắt Âm Thanh Video (Sound Toggle Button) */
.hero-sound-btn {
    position: absolute;
    bottom: 20px;
    right: 24px;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.hero-sound-btn:hover {
    background: #3eaed5;
    border-color: #3eaed5;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(62, 174, 213, 0.5);
    transform: translateY(-2px);
}

.hero-sound-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    display: block;
}

/* Pagination Dots */
.hero-swiper-pagination {
    bottom: 16px !important;
    z-index: 20;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 9999px;
    margin: 0 4px;
    cursor: pointer;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    width: 32px;
    border-radius: 6px;
    background: #3eaed5;
    box-shadow: 0 0 12px rgba(62, 174, 213, 0.9);
}

/* Tablet & Mobile Adjustments */
@media (max-width: 991px) {
    .hero-fullwidth-swiper {
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 16 / 9;
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .hero-fullwidth-swiper {
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 16 / 9;
        min-height: 200px;
    }

    .hero-swiper-btn {
        width: 36px;
        height: 36px;
    }

    .hero-swiper-btn svg {
        width: 16px;
        height: 16px;
    }

    .hero-swiper-prev {
        left: 10px;
    }

    .hero-swiper-next {
        right: 10px;
    }

    .hero-sound-btn {
        bottom: 12px;
        right: 10px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .hero-caption-card {
        padding: 0.5rem 1rem;
    }

    .hero-caption-title {
        font-size: 1.125rem !important;
    }
}
