/* ===================================================
   SMK KHAIR TECH - Hero Berita Sinematik & Slider Styles
   Full-Bleed Cover, Floating Typography & Right Thumbnails
   Matches Reference Image media_1793951429110_fabce190.jpg
   =================================================== */

.hero-slider-section {
    position: relative;
    width: 100%;
    background-color: #061527;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    scroll-margin-top: 85px;
}

#beranda {
    scroll-margin-top: 85px;
}

/* ===================================================
   HERO IMAGE RATIO – THEMA 1
   Desktop/Tablet: Rasio 2.57:1
   Mobile (< 768px): Rasio 16:9
   =================================================== */
.hero-slider-container {
    position: relative;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2.57 / 1 !important;
    min-height: unset !important;
    max-height: unset !important;
    display: block;
    overflow: hidden;
    background-color: #061527;
}

@media (max-width: 767.98px) {
    .hero-slider-section .hero-slider-container {
        aspect-ratio: 16 / 9 !important;
    }
}

/* Main Slide Stage (Full Width & Height of 2.57:1 Container) */
.hero-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: none;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: none;
    z-index: 2;
}

/* FIXED HERO IMAGE: Full Bleed Cover (2.57:1) - Khusus Slider */
.hero-slider-container .hero-image,
.hero-slider-container .hero-bg-img,
.hero-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.hero-slide.active .hero-bg-img,
.hero-slide.active .hero-image,
.hero-slide.active img {
    transform: none !important;
}

/* Hilangkan gradasi hitam dibelakang text judul sesuai permintaan user */
.hero-overlay {
    display: none !important;
}

/* ===================================================
   FULL-BLEED HERO WITH TOP-CENTER METADATA & FLOATING TITLE (NO CAPSULE)
   AND CENTERED CTA WITH 50% OPACITY SHAPE KAPSUL
   =================================================== */

/* Block Penampung Terpusat di Atas (Metadata + Title + Excerpt) */
/* Ujung Metadata 0 margin TOP di bawah running text header, Center */
.hero-top-centered-block {
    position: absolute;
    top: clamp(8px, 1.4vh, 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: max-content;
    max-width: 94vw;
    pointer-events: none;
}

/* 2. CENTERED METADATA (Tengah Atas Hero, Fluid Kapsul) */
.hero-meta-centered {
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 14px);
    background: rgba(11, 37, 69, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 3px clamp(12px, 1.6vw, 18px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    width: max-content;
    max-width: 94vw;
    pointer-events: auto;
}

.hero-meta-centered .hero-category-badge {
    background: #f59e0b;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.68rem, 0.85vw, 0.78rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px clamp(8px, 1.2vw, 14px);
    border-radius: 50px;
    display: inline-block;
}

.hero-meta-centered .hero-featured-badge {
    background: #ef4444;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.68rem, 0.85vw, 0.78rem);
    font-weight: 700;
    padding: 4px clamp(8px, 1.2vw, 14px);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-meta-centered .hero-date {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.72rem, 0.85vw, 0.82rem);
    color: #ffffff;
    font-weight: 500;
}

/* 3. FLOATING TITLE TEPAT DIBAWAH METADATA TANPA KAPSUL, HANYA TEXT */
/* Judul panjang atau pendek buat satu baris */
.hero-floating-title {
    font-family: 'Roboto', sans-serif !important;
    font-size: clamp(1.2rem, 2.4vw, 1.85rem) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 5px 0 0 0 !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: max-content !important;
    max-width: 90vw !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75) !important;
    pointer-events: auto;
}

/* Link judul berita: Pada tampilan Web NON-AKTIF karena sudah ada tombol Selengkapnya di bawah */
.hero-title-link {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-block;
    max-width: 100%;
    cursor: default !important;
    pointer-events: none !important;
}

.hero-title-link:hover,
.hero-title-link:focus,
.hero-title-link:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Ringkasan / Isi Berita: satu baris beberapa kalimat ujungnya ...... */
.hero-floating-excerpt {
    font-family: 'Roboto', sans-serif !important;
    font-size: clamp(0.78rem, 1.05vw, 0.92rem) !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 3px 0 0 0 !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: max-content !important;
    max-width: 88vw !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7) !important;
    pointer-events: auto;
}

/* 4. CENTERED CTA (Bawah Tengah) PADA TAMPILAN WEB: OPACITY SHAPE KAPSUL 50% */
.hero-actions-centered {
    position: absolute;
    bottom: clamp(18px, 3.5vw, 34px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 14px);
    white-space: nowrap;
}

.hero-actions-centered .btn-hero-readmore {
    background: rgba(245, 158, 11, 0.50) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.90) !important;
    color: #ffffff !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: clamp(0.78rem, 1.05vw, 0.92rem);
    padding: clamp(6px, 0.8vw, 9px) clamp(14px, 1.8vw, 24px);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 8px);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

.hero-actions-centered .btn-hero-readmore:hover {
    background: rgba(245, 158, 11, 0.80) !important;
    color: #ffffff !important;
    border-color: #f59e0b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.hero-actions-centered .btn-hero-register {
    background: rgba(11, 37, 69, 0.50) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: clamp(0.78rem, 1.05vw, 0.92rem);
    padding: clamp(6px, 0.8vw, 9px) clamp(14px, 1.8vw, 24px);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 8px);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

.hero-actions-centered .btn-hero-register:hover {
    background: rgba(11, 37, 69, 0.80) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 37, 69, 0.5);
}

/* Tampilkan / sembunyikan sidebar panel thumbnails dikontrol via database $show_hero_cards */
@media (min-width: 768px) {
    .hero-thumbnails-sidebar {
        display: block;
    }
}

/* Bottom Navigation Controls: Arrows at bottom left & right edges */
.hero-nav-arrow {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0b2545;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.25s ease;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.hero-nav-arrow:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
    transform: scale(1.08);
}

.hero-nav-prev {
    bottom: 25px;
    left: 28px;
    top: auto;
    transform: none;
}

.hero-nav-prev:hover {
    transform: scale(1.08);
}

.hero-nav-next {
    bottom: 25px;
    right: 28px;
    top: auto;
    transform: none;
}

.hero-nav-next:hover {
    transform: scale(1.08);
}

/* Floating News Queue Cards (Right Side over Photo) */
.hero-thumbnails-sidebar {
    position: absolute;
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
    width: 375px;
    max-width: calc(100% - 64px);
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0;
    pointer-events: auto;
}

.hero-thumb-header {
    display: none !important; /* Hilangkan panel header hitam */
}

.hero-thumb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 6px;
    margin: 0;
    max-height: calc(var(--max-visible-cards, 4) * 86px - 10px + 8px);
    overflow-y: hidden;
    scroll-behavior: smooth;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-thumb-list::-webkit-scrollbar {
    display: none;
}

.hero-thumb-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(11, 37, 69, 0.25) !important; /* Opacity 25% */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.hero-thumb-item:hover {
    background: rgba(11, 37, 69, 0.38) !important;
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateX(-4px);
}

/* Active Card: High-contrast cyan/electric blue border */
.hero-thumb-item.active {
    background: rgba(11, 37, 69, 0.40) !important;
    border: 2px solid #00d2ff !important;
    box-shadow: 0 0 18px rgba(0, 210, 255, 0.45), inset 0 0 10px rgba(0, 210, 255, 0.15);
    transform: translateX(-6px);
}

.hero-thumb-img-wrap {
    width: 74px;
    height: 54px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #061527;
}

.hero-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-thumb-content {
    flex: 1;
    min-width: 0;
}

.hero-thumb-category {
    font-family: 'Roboto', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.hero-thumb-title {
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-thumb-item.active .hero-thumb-title {
    font-weight: 700;
    color: #ffffff;
}

/* Navigation Controls: Dots (Jarak renggang nyaman & tidak rapat) */
.hero-dots-container {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    width: 26px;
    height: 8px;
    border-radius: 10px;
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* Visual Progress Bar: Gradasi Biru ke Kuning Emas */
.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #0284c7 45%, #f59e0b 85%, #fbbf24 100%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
    width: 0%;
    z-index: 25;
    transition: width 0.1s linear;
}

/* ===================================================
   RESPONSIVE DESIGN (HP & TABLET)
   Atur ulang posisi card, teks, dan tombol agar tetap nyaman digunakan
   =================================================== */

@media (max-width: 1199.98px) {
    .hero-thumbnails-sidebar {
        width: 320px;
        right: 20px;
    }
    .hero-thumb-item {
        padding: 9px 12px;
        border-radius: 14px;
    }
    .hero-thumb-img-wrap {
        width: 65px;
        height: 48px;
    }
    .hero-thumb-title {
        font-size: 0.78rem;
    }
}

@media (max-width: 991.98px) {
    .hero-overlay {
        display: none !important;
    }

    /* On mobile/tablet: Top-centered block */
    .hero-top-centered-block {
        top: 8px;
        width: max-content;
        max-width: 95vw;
        pointer-events: auto !important;
    }

    /* 1. Metadata di HP */
    .hero-meta-centered {
        padding: 3px clamp(8px, 2.5vw, 12px) !important;
        gap: clamp(4px, 1.5vw, 8px) !important;
        background: rgba(11, 37, 69, 0.45) !important;
        max-width: 94vw !important;
    }

    .hero-meta-centered .hero-category-badge {
        font-size: clamp(0.58rem, 1.8vw, 0.68rem) !important;
        padding: 2px clamp(6px, 1.5vw, 10px) !important;
    }

    .hero-meta-centered .hero-featured-badge {
        font-size: clamp(0.58rem, 1.8vw, 0.68rem) !important;
        padding: 2px clamp(6px, 1.5vw, 10px) !important;
    }

    .hero-meta-centered .hero-date {
        font-size: clamp(0.60rem, 1.8vw, 0.70rem) !important;
    }

    /* 2. Judul Berita di HP: Tengah, Tanpa Kapsul, 1 Baris, Menjadi Link Menuju Berita */
    .hero-floating-title {
        font-size: clamp(0.95rem, 3.6vw, 1.25rem) !important;
        margin: 4px 0 0 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        white-space: nowrap !important;
        max-width: 92vw !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85) !important;
        pointer-events: auto !important;
    }

    .hero-title-link {
        pointer-events: auto !important;
        cursor: pointer !important;
        display: inline-block !important;
        color: #ffffff !important;
        -webkit-tap-highlight-color: rgba(245, 158, 11, 0.4);
    }

    .hero-title-link:hover,
    .hero-title-link:active {
        color: #f59e0b !important;
    }

    /* Ringkasan isi berita di HP: 1 baris beberapa kalimat ujungnya ...... */
    .hero-floating-excerpt {
        font-size: clamp(0.68rem, 2.4vw, 0.80rem) !important;
        margin: 2px 0 0 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        white-space: nowrap !important;
        max-width: 90vw !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85) !important;
    }

    /* 3. Tombol CTA di HP: Tersembunyi agar tidak menutupi kartu atau dots */
    .hero-actions-centered {
        display: none !important;
    }

    /* 5. Pagination Dots & Arrows di HP */
    .hero-dots-container {
        gap: 12px !important;
        bottom: 10px !important;
    }

    .hero-nav-arrow {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.75rem !important;
        bottom: 8px !important;
    }

    .hero-nav-prev {
        left: 12px !important;
    }

    .hero-nav-next {
        right: 12px !important;
    }

    /* 6. Floating News Queue Cards di HP */
    .hero-thumbnails-sidebar {
        display: block !important;
        position: absolute;
        top: auto;
        bottom: 42px;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        z-index: 10;
    }

    .hero-thumb-list {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .hero-thumb-list::-webkit-scrollbar {
        display: none;
    }

    .hero-thumb-item {
        min-width: 180px;
        max-width: 200px;
        padding: 5px 8px;
        border-radius: 12px;
        flex-shrink: 0;
        background: rgba(11, 37, 69, 0.28) !important; /* 25-28% Opacity */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .hero-thumb-item.active {
        transform: none;
        background: rgba(11, 37, 69, 0.40) !important;
        border: 2px solid #00d2ff !important;
        box-shadow: 0 0 14px rgba(0, 210, 255, 0.5);
    }

    .hero-thumb-img-wrap {
        width: 44px;
        height: 32px;
        border-radius: 6px;
    }

    .hero-thumb-category {
        font-size: 0.58rem;
        margin-bottom: 1px;
    }

    .hero-thumb-title {
        font-size: 0.66rem;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }

    /* Navigation Arrows di tepi bawah */
    .hero-nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
        background: #0b2545;
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .hero-nav-prev {
        bottom: 8px;
        left: 12px;
    }

    .hero-nav-next {
        bottom: 8px;
        right: 12px;
    }
}



/* ===================================================
   HEADER 2 LAPIS & RUNNING TEXT (ANNOUNCEMENT BAR)
   Sesuai Referensi Gambar media_1793961679574_ca64b969.png
   Membentang selebar layar 100% tanpa container pembatas
   =================================================== */
.site-header-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
}

.running-text-wrapper {
    width: 100%;
    background: #f59e0b;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    padding: 7px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1020;
}

.running-text-inner {
    width: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.running-text-wrapper {
    background: #ffc107 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.running-text-badge {
    flex-shrink: 0;
    background: #0d2b5c !important;
    color: #ffffff !important;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 700;
    margin-right: 18px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
}

.running-text-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.running-text-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a1a !important;
    animation: runningMarqueeAnimation var(--running-speed, 30s) linear infinite;
}

.running-text-content:hover {
    animation-play-state: paused;
    cursor: pointer;
}

.running-text-sep {
    margin: 0 20px;
    opacity: 0.85;
    font-size: 0.90rem;
    color: #1a1a1a !important;
    font-weight: 800;
}

@keyframes runningMarqueeAnimation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 767.98px) {
    .running-text-wrapper {
        padding: 5px 0;
    }
    .running-text-inner {
        padding: 0 10px;
    }
    .running-text-badge {
        font-size: 0.65rem;
        padding: 3px 9px;
        margin-right: 8px;
    }
    .running-text-content {
        font-size: 0.78rem;
        animation-duration: calc(var(--running-speed, 30s) * 0.75);
    }
}

/* ===================================================
   QUICK HIGHLIGHTS SECTION
   Sesuai Referensi Gambar media_1793963889455_aa032246.jpg
   =================================================== */
.quick-highlights-section {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-highlight-card {
    transition: all 0.2s ease;
}

.quick-highlight-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.quick-highlight-icon.icon-akreditasi,
.quick-highlight-icon.icon-akreditasi i {
    background-color: #e0f2fe !important;
    color: #f59e0b !important;
}

.quick-highlight-icon.icon-biaya,
.quick-highlight-icon.icon-biaya i {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
}

.quick-highlight-icon.icon-jurusan,
.quick-highlight-icon.icon-jurusan i {
    background-color: #e0f2fe !important;
    color: #0284c7 !important;
}

.quick-highlight-icon.icon-yatim,
.quick-highlight-icon.icon-yatim i {
    background-color: #fef2f2 !important;
    color: #ef4444 !important;
}

.qh-svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .qh-svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 767.98px) {
    .quick-highlight-card {
        padding: 3px 2px !important;
        gap: 5px !important;
    }
    .quick-highlight-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .quick-highlight-text h6 {
        font-size: 0.72rem !important;
        font-weight: 700;
        line-height: 1.2;
        color: #0f172a;
    }
    .quick-highlight-text small {
        font-size: 0.58rem !important;
        line-height: 1.15;
        display: block;
        color: #64748b !important;
    }
}

/* ========================================================
   BOTTOM NAVIGATION BAR WITH INTEGRATED CTA
   Ketika Card Berita disembunyikan (show_hero_cards == '0')
   ======================================================== */

/* 1. Mode Web / Desktop (>= 992px): 
      - CTA Berdampingan di Tengah di Atas Dots (.hero-actions-centered)
      - Panah < di kiri (left: 28px) & panah > di kanan (right: 28px)
      - Dots di tengah bawah (bottom: 12px; left: 50%)
      - Tombol kapsul samping panah disembunyikan
   ======================================================== */
@media (min-width: 992px) {
    .hero-bottom-controls-bar.has-cta-nav {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 15;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-nav-group-left,
    .hero-bottom-controls-bar.has-cta-nav .hero-nav-group-right {
        display: contents;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-cta-pill {
        display: none !important;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-nav-arrow {
        position: absolute !important;
        bottom: 25px !important;
        pointer-events: auto !important;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-nav-prev {
        left: 28px !important;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-nav-next {
        right: 28px !important;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-dots-container {
        position: absolute !important;
        bottom: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        pointer-events: auto !important;
        gap: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero-actions-centered {
        display: flex !important;
        position: absolute !important;
        bottom: 34px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 12 !important;
        align-items: center !important;
        gap: 14px !important;
    }
}

/* 2. Mode Mobile & Tablet (< 992px):
      - Bilah bawah 1 baris mengapit panah
      - < [ Baca Selengkapnya -> ] ...dots... [ + Daftar Sekarang ] >
      - CTA Tengah di-hide
   ======================================================== */
@media (max-width: 991.98px) {
    .hero-bottom-controls-bar.has-cta-nav {
        position: absolute;
        bottom: clamp(6px, 1.8vw, 12px) !important;
        left: 0;
        right: 0;
        width: 100%;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 clamp(6px, 1.8vw, 14px) !important;
        z-index: 15;
        pointer-events: none;
        box-sizing: border-box;
    }

    .hero-bottom-controls-bar.has-cta-nav * {
        pointer-events: auto;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-nav-group-left,
    .hero-bottom-controls-bar.has-cta-nav .hero-nav-group-right {
        display: inline-flex !important;
        align-items: center;
        gap: clamp(3px, 1vw, 6px) !important;
        flex-shrink: 0;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-nav-arrow {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        flex-shrink: 0;
        width: clamp(26px, 4vw, 32px) !important;
        height: clamp(26px, 4vw, 32px) !important;
        font-size: clamp(0.65rem, 1.2vw, 0.78rem) !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-dots-container {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 0 clamp(2px, 1vw, 8px) !important;
        padding: 0 !important;
        flex-shrink: 1;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: clamp(3px, 1vw, 8px) !important;
        overflow: hidden;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-dot {
        width: clamp(5px, 1vw, 8px) !important;
        height: clamp(5px, 1vw, 8px) !important;
        flex-shrink: 0;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-dot.active {
        width: clamp(14px, 2.5vw, 24px) !important;
        height: clamp(5px, 1vw, 8px) !important;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-cta-pill {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        height: clamp(26px, 4.2vw, 34px) !important;
        padding: 0 clamp(8px, 2vw, 15px) !important;
        font-size: clamp(0.62rem, 1.8vw, 0.80rem) !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .hero-actions-centered {
        display: none !important;
    }
}

/* Teks Adaptif untuk Kapsul Navigasi:
   - Layar < 576px (HP Mobile): Sembunyikan kata tambahan agar kedua tombol muat tanpa terpotong
   - Layar >= 576px (Tablet/Desktop): Tampilkan kata lengkap
======================================================== */
@media (max-width: 575.98px) {
    .hero-bottom-controls-bar.has-cta-nav .cta-text-extra {
        display: none !important;
    }
    
    .hero-bottom-controls-bar.has-cta-nav .hero-cta-pill {
        padding: 0 clamp(6px, 2vw, 10px) !important;
        font-size: clamp(0.62rem, 2.4vw, 0.72rem) !important;
    }
    
    .hero-bottom-controls-bar.has-cta-nav .hero-dots-container {
        gap: clamp(3px, 1vw, 5px) !important;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-dot {
        width: 5px !important;
        height: 5px !important;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-dot.active {
        width: 14px !important;
        height: 5px !important;
    }
}

@media (min-width: 576px) {
    .hero-bottom-controls-bar.has-cta-nav .cta-text-extra {
        display: inline !important;
    }
}

/* CTA Pill Buttons Base Styling */
.hero-cta-pill {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 7px 20px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    height: 38px;
    box-sizing: border-box;
}

/* Tombol Baca Selengkapnya: Warna Amber / Emas Kapsul */
.hero-cta-readmore {
    background: rgba(245, 158, 11, 0.50) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.90) !important;
    color: #ffffff !important;
}

.hero-cta-readmore:hover {
    background: rgba(245, 158, 11, 0.85) !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Tombol Daftar Sekarang: Warna Navy Blue Gelap Kapsul */
.hero-cta-register {
    background: rgba(11, 37, 69, 0.55) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
}

.hero-cta-register:hover {
    background: rgba(11, 37, 69, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.90) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 37, 69, 0.5);
}

/* Responsif Layar Sangat Kecil (max-width: 360px) */
@media (max-width: 360px) {
    .hero-bottom-controls-bar.has-cta-nav {
        bottom: 5px !important;
        padding: 0 3px !important;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-nav-group-left,
    .hero-bottom-controls-bar.has-cta-nav .hero-nav-group-right {
        gap: 3px !important;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-nav-arrow {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.60rem !important;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-cta-pill {
        height: 24px !important;
        padding: 0 5px !important;
        font-size: 0.58rem !important;
        letter-spacing: -0.2px;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-dots-container {
        gap: 3px !important;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-dot {
        width: 4px !important;
        height: 4px !important;
    }

    .hero-bottom-controls-bar.has-cta-nav .hero-dot.active {
        width: 10px !important;
        height: 4px !important;
    }
}

/* ========================================================
   THEMA 2: YOUTUBE STYLE HERO SLIDER
   - Layout Video Player 16:9 + Sidebar Playlist Berita
   - Sesuai Referensi Gambar YouTube Watch Page
   ======================================================== */
/* ========================================================
   THEMA 2: HERO BERITA YOUTUBE WATCH STYLE (CANVAS SKY BLUE)
   Sesuai Referensi Gambar media_1794208556735_0cfeb0d6.jpg
   ======================================================== */
.hero-youtube-section {
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 35%, #e0f2fe 75%, #ffffff 100%) !important;
    position: relative;
    overflow: hidden;
    padding-top: 2rem !important;
    padding-bottom: 5.5rem !important;
}

/* Ornamen Background Canvas (Dot Grid, Curved Wave Ribbons) */
.hero-bg-ornament {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hero-ornament-left-dots {
    top: 40px;
    left: clamp(10px, 2vw, 36px);
    width: 80px;
    height: 130px;
    background-image: radial-gradient(#60a5fa 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.8;
}

.hero-ornament-right-dots {
    top: 25px;
    right: clamp(10px, 2vw, 36px);
    width: 80px;
    height: 120px;
    background-image: radial-gradient(#60a5fa 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.7;
}

/* Pita Lengkung Abstrak di Latar Sisi Kiri & Kanan Sesuai Mockup */
.hero-ornament-left-ribbon {
    top: 35%;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 30px solid transparent;
    border-right-color: #ffc107;
    border-top-color: #2563eb;
    transform: rotate(40deg);
    opacity: 0.9;
    filter: blur(0.5px);
}

.hero-ornament-right-ribbon {
    top: 6%;
    right: -50px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 35px solid transparent;
    border-left-color: #60a5fa;
    border-bottom-color: #2563eb;
    transform: rotate(-30deg);
    opacity: 0.8;
    filter: blur(0.5px);
}

/* Layer Gelombang Bawah (Bottom Fluid Waves) */
.hero-bottom-wave-wrap {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 90px;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-bottom-wave {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

/* Penyesuaian Responsif Ornamen Background Hero agar Tampilan Mobile Sama dengan Web */
@media (max-width: 991.98px) {
    .hero-youtube-section {
        padding-top: 1.25rem !important;
        padding-bottom: 4.5rem !important;
    }

    .hero-ornament-left-dots {
        top: 20px;
        left: 6px;
        width: 48px;
        height: 95px;
        background-size: 11px 11px;
        opacity: 0.65;
    }

    .hero-ornament-right-dots {
        top: 15px;
        right: 6px;
        width: 48px;
        height: 90px;
        background-size: 11px 11px;
        opacity: 0.6;
    }

    .hero-ornament-left-ribbon {
        top: 32%;
        left: -48px;
        width: 130px;
        height: 130px;
        border-width: 18px;
        opacity: 0.85;
    }

    .hero-ornament-right-ribbon {
        top: 5%;
        right: -45px;
        width: 140px;
        height: 140px;
        border-width: 20px;
        opacity: 0.75;
    }

    .hero-bottom-wave-wrap {
        height: 65px;
    }
}

@media (max-width: 575.98px) {
    .hero-youtube-section {
        padding-top: 1rem !important;
        padding-bottom: 4rem !important;
    }

    .hero-ornament-left-dots {
        top: 10px;
        left: 3px;
        width: 38px;
        height: 80px;
        background-size: 10px 10px;
        opacity: 0.55;
    }

    .hero-ornament-right-dots {
        top: 8px;
        right: 3px;
        width: 38px;
        height: 75px;
        background-size: 10px 10px;
        opacity: 0.5;
    }

    .hero-ornament-left-ribbon {
        top: 35%;
        left: -42px;
        width: 108px;
        height: 108px;
        border-width: 15px;
        opacity: 0.85;
    }

    .hero-ornament-right-ribbon {
        top: 3%;
        right: -38px;
        width: 115px;
        height: 115px;
        border-width: 16px;
        opacity: 0.75;
    }

    .hero-bottom-wave-wrap {
        height: 52px;
    }
}

/* Video Player Frame 16:9 dengan Border Putih 4px & Sudut Membulat 20px */
.yt-player-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #0f2744;
    position: relative;
    border: 4px solid #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 40px rgba(13, 71, 161, 0.14) !important;
    overflow: hidden;
    z-index: 1;
}

.yt-player-frame .hero-slider-container {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    height: 100% !important;
    position: relative;
    overflow: hidden;
}

.yt-player-frame .hero-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.yt-player-frame .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    pointer-events: none;
}

.yt-player-frame .hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.yt-player-frame .yt-player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yt-player-watermark {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    pointer-events: none;
}

/* YouTube Progress Bar (Gradasi Biru ke Kuning Emas) */
.hero-progress-bar.yt-progress-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 5px !important;
    background: linear-gradient(90deg, #1e40af 0%, #0284c7 45%, #ffc107 85%, #f59e0b 100%) !important;
    z-index: 25 !important;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.8) !important;
}

/* YouTube Watch Info Styling */
.yt-video-title {
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    line-height: 1.35;
    color: #0f172a;
    font-weight: 800 !important;
}

.yt-channel-avatar {
    object-fit: cover;
    background-color: #ffffff;
}

/* Tombol CTA Player Sesuai Mockup */
.btn-yt-readmore {
    background: #ffffff !important;
    border: 1.5px solid #1976d2 !important;
    color: #1976d2 !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 8px 22px !important;
    font-size: 0.88rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s ease !important;
}

.btn-yt-readmore:hover {
    background: #eff6ff !important;
    color: #0d47a1 !important;
    border-color: #0d47a1 !important;
    transform: translateY(-2px);
}

.btn-yt-register {
    background: #ffc107 !important;
    color: #0a1e3b !important;
    font-weight: 800 !important;
    border-radius: 50px !important;
    padding: 8px 24px !important;
    border: none !important;
    font-size: 0.88rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.45) !important;
    transition: all 0.25s ease !important;
}

.btn-yt-register:hover {
    background: #ffb300 !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.6) !important;
}

/* Kotak Deskripsi / Ringkasan Berita Bergaya Kapsul Putih Memanjang */
.yt-description-box {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

/* YouTube Playlist Sidebar: Kartu Putih Melengkung Lebar */
.yt-playlist-sidebar {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 16px 40px rgba(13, 71, 161, 0.08) !important;
    position: relative;
    z-index: 1;
}

.yt-playlist-list {
    max-height: 580px;
    overflow-y: auto;
    padding-right: 4px;
}

.yt-playlist-list::-webkit-scrollbar {
    width: 6px;
}
.yt-playlist-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Playlist Card Item */
.yt-playlist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-decoration: none !important;
}

.yt-playlist-item:hover {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(2px);
}

/* Item Aktif dengan Border Biru Royal 2px dan Latar Biru Lembut */
.yt-playlist-item.active {
    background-color: #f0f7ff !important;
    border: 2px solid #2563eb !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12) !important;
}

.yt-thumb-box {
    width: 125px;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.yt-thumb-img {
    transition: transform 0.3s ease;
}

.yt-playlist-item:hover .yt-thumb-img {
    transform: scale(1.05);
}

.yt-badge-mini {
    font-size: 9px !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    letter-spacing: 0.2px;
    background: #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.yt-badge-date {
    font-size: 10px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.yt-thumb-title {
    font-size: 0.85rem;
    line-height: 1.35;
    color: #0f172a;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yt-playlist-item.active .yt-thumb-title {
    color: #1d4ed8;
}

.yt-thumb-channel {
    font-size: 0.74rem;
}

.yt-thumb-category {
    font-size: 0.72rem;
}

/* ========================================================
   THEMA 2: MOBILE BEHAVIOR
   - Pada layar mobile (< 992px), thumbnail playlist hanya tampil 1 saja
   - Hanya menampilkan judul saja (channel & kategori di-hide)
   - Berganti-ganti secara otomatis mengikuti urutan rotasi slide
   ======================================================== */
@media (max-width: 991.98px) {
    .yt-playlist-sidebar {
        padding: 12px 14px;
    }

    .yt-playlist-list {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }

    /* Pada layar HP (< 992px): sembunyikan semua item playlist... */
    .yt-playlist-item {
        display: none !important;
    }

    /* ...HANYA tampilkan 1 kartu: yaitu kartu antrean BERIKUTNYA (.is-next), 
       BUKAN yang sedang diputar di player atas */
    .yt-playlist-item.is-next {
        display: flex !important;
        align-items: center;
        background-color: #ffffff;
        border: 2px solid #2563eb !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12) !important;
        padding: 8px 10px;
        animation: ytSlideFade 0.35s ease;
        transition: all 0.2s ease;
    }

    .yt-playlist-item.is-next:hover,
    .yt-playlist-item.is-next:active {
        background-color: #f0f7ff;
    }

    /* Pada thumbnail di HP: Hanya judul & badge berikutnya saja (sembunyikan channel & kategori) */
    .yt-playlist-item .yt-thumb-channel,
    .yt-playlist-item .yt-thumb-category {
        display: none !important;
    }

    .yt-playlist-item .yt-thumb-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .yt-playlist-item .yt-thumb-title {
        font-size: clamp(0.85rem, 3.1vw, 0.95rem) !important;
        line-height: 1.35 !important;
        color: #0f172a !important;
        margin-bottom: 0 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .yt-thumb-box {
        width: clamp(105px, 28vw, 120px) !important;
        aspect-ratio: 16 / 9;
        flex-shrink: 0;
    }
}

@keyframes ytSlideFade {
    from {
        opacity: 0.4;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Single Card Frame Optimization */
@media (max-width: 991.98px) {
    .yt-video-title {
        font-size: 1.05rem !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }
    .btn-yt-readmore, .btn-yt-register {
        padding: 6px 16px !important;
        font-size: 0.80rem !important;
    }
    .yt-description-box {
        padding: 8px 16px !important;
        border-radius: 14px !important;
        font-size: 0.82rem !important;
    }
}
