/* =====================================================
   Hero Feature Slider — visual fitur unggulan di hero
   Gambar: images/hero/slide-*.jpg (1586x992, 16:10)
   ===================================================== */

.hfs {
    position: relative;
    width: 100%;
}

.hfs-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 30px 60px -24px rgba(15, 23, 42, 0.28),
        0 12px 28px -14px rgba(34, 197, 94, 0.35);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.hfs-viewport {
    position: relative;
    aspect-ratio: 1586 / 992;
    overflow: hidden;
    touch-action: pan-y;
}

.hfs-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.8s ease;
    pointer-events: none;
}

.hfs-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hfs-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Progress bar autoplay */
.hfs-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
    z-index: 2;
}

/* Teks untuk pembaca layar saja */
.hfs-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hfs-frame { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .hfs-slide { transition: none; }
    .hfs-progress { display: none; }
}
