
/* ========================================================= * HERO SECTION * ========================================================= */ 
#sec-banner-slider { 
    width: 100%; 
    position: relative; 
    overflow: hidden; 
} 

/* * Container mengikuti rasio 16:9. * * Contoh: * 1920px -> 1080px * 1600px -> 900px * 1440px -> 810px * 1366px -> 768px * 1280px -> 720px * 1024px -> 576px * 768px -> 432px * 430px -> 242px * 390px -> 219px * 375px -> 211px */ 
.hero-swiper { 
    width: 100%; 
    height: auto; 
    /* aspect-ratio: 16 / 9;  */
    overflow: hidden; 
} 
.hero-swiper .swiper-wrapper { 
    height: 100%; 
} 
.hero-slide { 
    padding:0;
    position: relative; 
    width: 100%; 
    height: auto; 
    /* * Pastikan setiap slide mengikuti 16:9 */ 
    aspect-ratio: 4096 / 2134; 
    display: flex; 
    align-items: center; 
    /* * Jarak konten dari kiri */ 
    padding-left: clamp(30px, 10vw, 180px); 
    /* * Background image */ 
    background-size: contain; 
    background-position: center center; 
    background-repeat: no-repeat; 
    overflow: hidden; 
    object-fit: contain;
    justify-content: center;
} 

/* ========================================================= * YOUTUBE / VIDEO * ========================================================= */ 
/* * Bootstrap .ratio-16x9 tetap didukung. */ 
.hero-slide .ratio { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    max-width: 100%; 
    max-height: 100%;
} 
.hero-slide .ratio iframe { 
    width: 100%; 
    height: 100%; 
    display: block; 
    border: 0; 
} 

/* ========================================================= * LOCAL VIDEO * ========================================================= */ 
.hero-banner-video { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    min-width: 0; 
    min-height: 0; 
    display: block; 
    /* * Video memenuhi area 16:9 */ 
    object-fit: cover; 
    object-position: center center; 
    transform: none; 
} 

/* ========================================================= * HERO CONTENT * ========================================================= */ 
.hero-content { 
    position: relative; 
    z-index: 2; 
    color: #ffffff; 
    /* * Lebar maksimum agar teks tidak terlalu melebar */ 
    width: min(90%, 900px); 
} 
.hero-content h1 { 
    margin: 0; 
    /* * Responsive otomatis: * * desktop besar -> ~64px * desktop kecil -> ~48px * tablet -> ~36px * mobile -> ~24px */ 
    font-size: clamp(1.5rem, 3.5vw, 4rem); 
    font-weight: 800; 
    line-height: 1.1; 
    overflow-wrap: break-word; 
} 
.hero-content h1 span { 
    color: var(--primary-red); 
} 
.hero-content p { 
    margin-top: 15px; 
    font-size: clamp( 0.85rem, 1.2vw, 1.25rem ); 
    line-height: 1.5; 
} 

/* ========================================================= * PAGINATION * ========================================================= */ 
.hero-pagination { 
    position: absolute; 
    bottom: clamp(12px, 2vw, 30px) !important; 
    left: 50% !important; 
    transform: translateX(-50%); 
    z-index: 10; 
    width: auto !important; 
} 
.swiper-pagination-bullet { 
    width: clamp(8px, 0.7vw, 12px); 
    height: clamp(8px, 0.7vw, 12px); 
    margin: 0 4px !important; 
    background: #ffffff; 
    opacity: 0.6; 
    transition: width 0.25s ease, opacity 0.25s ease; 
} 
.swiper-pagination-bullet-active { 
    width: clamp(20px, 2vw, 30px); 
    border-radius: 10px; 
    background: var(--primary-red); 
    opacity: 1; 
} 

/* ========================================================= * LARGE DESKTOP * 1920 × 1080 * 1600 × 900 * 1440 × 900 * ========================================================= */ 
@media (min-width: 1441px) { 
    .hero-slide { 
        padding-left: clamp( 80px, 10vw, 180px ); 
    } 
} 

/* ========================================================= * DESKTOP * 1280 × 720 * 1366 × 768 * ========================================================= */ 
@media (min-width: 1025px) and (max-width: 1440px) { 
    .hero-slide { 
        padding-left: clamp( 50px, 8vw, 120px ); 
    } 
    .hero-content { 
        width: min(80%, 750px); 
    } 
} 

/* ========================================================= * TABLET LANDSCAPE * 1024 × 768 * ========================================================= */ 
@media (min-width: 769px) and (max-width: 1024px) { 
    .hero-slide { 
        padding-left: 6vw; 
        padding-right: 6vw; 
        align-items: center; 
    } 
    .hero-content { 
        width: 85%; 
    } 
    .hero-content h1 { 
        font-size: clamp( 2rem, 4.5vw, 3rem ); 
    } 
} 

/* ========================================================= * TABLET PORTRAIT * 768 × 1024 * ========================================================= */ 
@media (min-width: 481px) and (max-width: 768px) { 
    .hero-slide { 
        padding-left: 5vw; 
        padding-right: 5vw; 
        /* * Tetap center. */ 
        align-items: center; 
    } 
    .hero-content { 
        width: 90%; 
    } 
    .hero-content h1 { 
        font-size: clamp( 1.8rem, 5vw, 2.5rem ); 
    } 
    .hero-content p { 
        font-size: 0.95rem; 
    } 
    .hero-pagination { 
        bottom: 12px !important; 
    } 
} 

/* ========================================================= * MOBILE * 430 × 932 * 390 × 844 * 375 × 812 * ========================================================= */ 
@media (max-width: 480px) { 
    /* * Tetap 16:9. * * Jangan menggunakan height: 100vh. */ 
    #sec-banner-slider { 
        width: 100%; 
        height: auto; 
    } 
    .hero-swiper { 
        width: 100%; 
        height: auto; 
        /* aspect-ratio: 16 / 9;  */
        min-height: 0; 
    } 
    .hero-slide { 
        width: 100%; 
        height: 100%; 
        /* aspect-ratio: 16 / 9;  */
        padding: 20px; 
        align-items: flex-end; 
        background-position: center center; 
        background-repeat: no-repeat; 
        overflow: hidden; 
        object-fit: contain;
        justify-content: center;
    } 
    
    /* * Konten mobile */ 
    .hero-content { 
        width: 100%; 
        max-width: 100%; 
        padding-bottom: 30px; 
    } 
    .hero-content h1 { 
        font-size: clamp( 1.25rem, 6vw, 1.8rem ); 
        line-height: 1.15; 
    } 
    .hero-content p { 
        margin-top: 8px; 
        font-size: clamp( 0.75rem, 3vw, 0.95rem ); 
        line-height: 1.4; 
    } 
    
    /* * Video tetap memenuhi 16:9 */ 
    .hero-banner-video { 
        position: absolute; 
        inset: 0; width: 100%; 
        height: 100%; 
        object-fit: cover; 
        transform: none; 
    } 
    
    /* * YouTube */ 
    .hero-slide .ratio { 
        position: absolute; 
        inset: 0; width: 100%; 
        height: 100%; 
    } 
    
    /* * Pagination */ 
    .hero-pagination { 
        bottom: 8px !important; 
    } 
    .swiper-pagination-bullet { 
        width: 7px; 
        height: 7px; 
        margin: 0 3px !important; 
    } 
    .swiper-pagination-bullet-active { 
        width: 18px; 
    } 
} 

/* ========================================================= * VERY SMALL MOBILE * 390 × 844 * 375 × 812 * ========================================================= */ 
@media (max-width: 390px) { 
    .hero-slide { 
        padding: 15px; 
    } 
    .hero-content { 
        padding-bottom: 25px; 
    } 
    .hero-content h1 { 
        font-size: 1.2rem; 
    } 
    .hero-content p { 
        font-size: 0.72rem; 
    } 
    .hero-pagination { 
        bottom: 6px !important; 
    } 
} 

/* ========================================================= * EXTRA SMALL * ========================================================= */ 
@media (max-width: 360px) { 
    .hero-slide { 
        padding: 12px; 
    } 
    .hero-content { 
        padding-bottom: 20px; 
    } 
    .hero-content h1 { 
        font-size: 1.1rem; 
    } 
    .hero-content p { 
        font-size: 0.7rem; 
    } 
} 

/* ========================================================= * ACCESSIBILITY * ========================================================= */ 
@media (prefers-reduced-motion: reduce) { 
    .swiper-pagination-bullet { 
        transition: none; 
    } 
} 