/* ══════════════════════════════════════════════════════════════════
   Hero slider beranda — components/hero-slider.blade.php + js/components/hero-slider.js
   Variabel dari Blade: --hs-h / --hs-hm (vh desktop / HP), --hs-max, --hs-min,
   --hs-speed (transisi), per slide --hs-dur, per caption --hs-as (durasi anim
   layer), --hs-ad (delay awal), --hs-st (jeda antar layer), per layer --i.
   ══════════════════════════════════════════════════════════════════ */
.hm-hero.hs {
    --hs-hdr: var(--nvb-header-height, 0px);
    position: relative; z-index: 0; overflow: hidden; isolation: isolate;
    height: calc(var(--hs-h, 75) * 1vh + var(--hs-hdr));
    min-height: calc(var(--hs-min, 450px) + var(--hs-hdr));
    max-height: calc(var(--hs-max, 760px) + var(--hs-hdr));
    background: #0b1120; color: #fff;
    -webkit-user-select: none; user-select: none; touch-action: pan-y;
}
.hm-hero.hs.hs-full { height: calc(100svh); max-height: none; }
.hs:focus { outline: none; }
.hs:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: -3px; }
.hs .hs-caption, .hs .hs-caption * { -webkit-user-select: text; user-select: text; }

.hs-track { position: absolute; inset: 0; }
.hs-slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; z-index: 0; }
.hs-slide.is-active { visibility: visible; z-index: 2; }
.hs-slide.is-leaving { visibility: visible; z-index: 1; }

/* ── Latar ─────────────────────────────────────── */
.hs-bg { position: absolute; inset: 0; overflow: hidden; transform: translate3d(0, var(--hs-py, 0px), 0); will-change: transform; }
.hs-bg picture, .hs-bg img { display: block; width: 100%; height: 100%; }
.hs-bg img { object-fit: cover; object-position: var(--hs-fp, center); transform-origin: center; }
.hs.hs-parallax-on .hs-bg { inset: -8% 0; }
@media (max-width: 767.98px) { .hs-bg img { object-position: var(--hs-fpm, center); } }

/* Ken Burns: jalan selama slide tampil (durasi slide + transisi) */
.hs-slide.is-play .hs-kb-zoom-in img   { animation: hsKbZoomIn   calc(var(--hs-dur) + var(--hs-speed) * 2) linear both; }
.hs-slide.is-play .hs-kb-zoom-out img  { animation: hsKbZoomOut  calc(var(--hs-dur) + var(--hs-speed) * 2) linear both; }
.hs-slide.is-play .hs-kb-pan-left img  { animation: hsKbPanLeft  calc(var(--hs-dur) + var(--hs-speed) * 2) linear both; }
.hs-slide.is-play .hs-kb-pan-right img { animation: hsKbPanRight calc(var(--hs-dur) + var(--hs-speed) * 2) linear both; }
.hs-slide.is-play .hs-kb-pan-up img    { animation: hsKbPanUp    calc(var(--hs-dur) + var(--hs-speed) * 2) linear both; }
.hs-kb-zoom-out img { transform: scale(1.16); }
.hs-kb-pan-left img, .hs-kb-pan-right img, .hs-kb-pan-up img { transform: scale(1.14); }
@keyframes hsKbZoomIn   { from { transform: scale(1); }    to { transform: scale(1.16); } }
@keyframes hsKbZoomOut  { from { transform: scale(1.16); } to { transform: scale(1); } }
@keyframes hsKbPanLeft  { from { transform: scale(1.14) translateX(4%); }  to { transform: scale(1.14) translateX(-4%); } }
@keyframes hsKbPanRight { from { transform: scale(1.14) translateX(-4%); } to { transform: scale(1.14) translateX(4%); } }
@keyframes hsKbPanUp    { from { transform: scale(1.14) translateY(4%); }  to { transform: scale(1.14) translateY(-4%); } }

.hs-overlay { position: absolute; inset: 0; pointer-events: none; }

/* ── Konten / caption ──────────────────────────── */
.hs-content {
    position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column;
    padding: calc(56px + var(--hs-hdr)) 0 88px;
}
.hs-v-top { justify-content: flex-start; }
.hs-v-middle { justify-content: center; }
.hs-v-bottom { justify-content: flex-end; }
.hs-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; display: flex; }
.hs-h-start .hs-container { justify-content: flex-start; }
.hs-h-center .hs-container { justify-content: center; }
.hs-h-end .hs-container { justify-content: flex-end; }
.hs-caption { display: flex; flex-direction: column; align-items: flex-start; text-align: start; max-width: 900px; color: #fff; }
.hs-h-center .hs-caption { align-items: center; text-align: center; }
.hs-h-end .hs-caption { align-items: flex-end; text-align: end; }
.hs-w-sm { max-width: 520px; } .hs-w-md { max-width: 720px; } .hs-w-lg { max-width: 900px; } .hs-w-xl { max-width: 1120px; }

.hs-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hs-kc, #fff); }
.hs-kicker-pill { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hs-kicker-line::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: currentColor; }
.hs-h-center .hs-kicker-line::after { content: ""; width: 34px; height: 2px; border-radius: 2px; background: currentColor; }
.hs-title { margin: 0 0 16px; font-size: var(--hs-ts, clamp(1.75rem, 4vw, 3.25rem)); line-height: 1.12; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.hs-desc { margin: 0 0 26px; max-width: 640px; font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,.86); display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.hs-h-center .hs-desc { margin-inline: auto; }
.hs-shadow .hs-title { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hs-shadow .hs-desc, .hs-shadow .hs-kicker-plain, .hs-shadow .hs-kicker-line { text-shadow: 0 1px 12px rgba(0,0,0,.4); }

.hs-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hs-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; line-height: 1; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; border: 1.5px solid transparent; }
.hs-btn i { transition: transform .2s; }
.hs-btn:hover i { transform: translateX(4px); }
[dir="rtl"] .hs-btn:hover i { transform: translateX(-4px); }
.hs-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hs-btn-light { background: #fff; color: #0f172a; box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.hs-btn-light:hover { background: var(--accent, #2563eb); color: #fff; transform: translateY(-2px); }
.hs-btn-primary { background: var(--accent, #2563eb); color: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.hs-btn-primary:hover { filter: brightness(1.1); color: #fff; transform: translateY(-2px); }
.hs-btn-outline { border-color: rgba(255,255,255,.85); color: #fff; }
.hs-btn-outline:hover { background: #fff; color: #0f172a; }
.hs-btn-glass { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hs-btn-glass:hover { background: rgba(255,255,255,.26); color: #fff; }
.hs-btn-link { padding: 0 4px; min-height: 40px; color: #fff; border-radius: 4px; }
.hs-btn-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s; padding-bottom: 3px; }
.hs-btn-link:hover { color: #fff; } .hs-btn-link:hover span { background-size: 100% 2px; }

/* ── Animasi layer (hanya bila JS aktif: .is-js) ── */
.hs.is-js .hs-layer { opacity: 0; }
.hs.is-js .hs-a-none .hs-layer { opacity: 1; }
.hs-slide.is-play .hs-layer { animation: var(--hs-anim, hsLFadeUp) var(--hs-as, 800ms) cubic-bezier(.16, .84, .3, 1) calc(var(--hs-ad, 0ms) + var(--i, 0) * var(--hs-st, 140ms)) both; }
.hs-a-fade-up    { --hs-anim: hsLFadeUp; }
.hs-a-fade-down  { --hs-anim: hsLFadeDown; }
.hs-a-fade-left  { --hs-anim: hsLFadeLeft; }
.hs-a-fade-right { --hs-anim: hsLFadeRight; }
.hs-a-zoom-in    { --hs-anim: hsLZoom; }
.hs-a-blur-in    { --hs-anim: hsLBlur; }
.hs-a-mask-up    { --hs-anim: hsLMask; }
.hs-a-fade       { --hs-anim: hsLFade; }
.hs-slide.is-play .hs-a-none .hs-layer { animation: none; }
[dir="rtl"] .hs-a-fade-left { --hs-anim: hsLFadeRight; }
[dir="rtl"] .hs-a-fade-right { --hs-anim: hsLFadeLeft; }
@keyframes hsLFadeUp    { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes hsLFadeDown  { from { opacity: 0; transform: translateY(-34px); } to { opacity: 1; transform: none; } }
@keyframes hsLFadeLeft  { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes hsLFadeRight { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes hsLZoom      { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes hsLBlur      { from { opacity: 0; filter: blur(14px); transform: scale(1.04); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes hsLMask      { from { opacity: 1; clip-path: inset(0 0 100% 0); transform: translateY(24px); } to { opacity: 1; clip-path: inset(0 0 -20% 0); transform: none; } }
@keyframes hsLFade      { from { opacity: 0; } to { opacity: 1; } }

/* ── Transisi antar slide (--dir: 1 maju, -1 mundur; dibalik untuk RTL oleh JS) ── */
.hs-slide.is-entering, .hs-slide.is-leaving { animation-duration: var(--hs-speed); animation-timing-function: cubic-bezier(.77, 0, .18, 1); animation-fill-mode: both; }
.hs-t-slide .is-entering, .hs-t-parallax .is-entering { animation-name: hsSlideIn; }
.hs-t-slide .is-leaving { animation-name: hsSlideOut; }
.hs-t-parallax .is-leaving { animation-name: hsParallaxOut; }
@keyframes hsSlideIn { from { transform: translateX(calc(var(--dir) * 100%)); } to { transform: none; } }
@keyframes hsSlideOut { from { transform: none; } to { transform: translateX(calc(var(--dir) * -100%)); } }
@keyframes hsParallaxOut { from { transform: none; filter: brightness(1); } to { transform: translateX(calc(var(--dir) * -35%)); filter: brightness(.45); } }

.hs-t-fade .is-entering { animation-name: hsFadeIn; animation-timing-function: ease; }
.hs-t-fade .is-leaving { animation-name: hsHold; }
@keyframes hsFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hsHold { from { opacity: 1; } to { opacity: 1; } }

.hs-t-zoom-in .is-entering { animation-name: hsZoomInIn; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
.hs-t-zoom-in .is-leaving { animation-name: hsZoomInOut; animation-timing-function: ease-in; }
@keyframes hsZoomInIn { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: none; } }
@keyframes hsZoomInOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.92); } }
.hs-t-zoom-out .is-entering { animation-name: hsZoomOutIn; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
.hs-t-zoom-out .is-leaving { animation-name: hsZoomOutOut; animation-timing-function: ease-in; }
@keyframes hsZoomOutIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes hsZoomOutOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.12); } }

.hs-t-slide-up .is-entering { animation-name: hsUpIn; }
.hs-t-slide-up .is-leaving { animation-name: hsUpOut; }
@keyframes hsUpIn { from { transform: translateY(calc(var(--dir) * 100%)); } to { transform: none; } }
@keyframes hsUpOut { from { transform: none; } to { transform: translateY(calc(var(--dir) * -30%)); filter: brightness(.5); } }

.hs-t-wipe .is-entering { animation-name: hsWipeIn; }
.hs-t-wipe .is-leaving { animation-name: hsWipeOut; }
.hs-t-wipe .is-entering.is-rev { animation-name: hsWipeInRev; }
@keyframes hsWipeIn { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes hsWipeInRev { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hsWipeOut { from { transform: none; } to { transform: translateX(calc(var(--dir) * -12%)); filter: brightness(.6); } }

.hs-t-blur .is-entering { animation-name: hsBlurIn; animation-timing-function: ease; }
.hs-t-blur .is-leaving { animation-name: hsBlurOut; animation-timing-function: ease; }
@keyframes hsBlurIn { from { opacity: 0; filter: blur(24px); transform: scale(1.06); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes hsBlurOut { from { opacity: 1; filter: blur(0); } to { opacity: 0; filter: blur(16px); } }

/* ── Navigasi ──────────────────────────────────── */
.hs-arrow { position: absolute; top: 50%; z-index: 6; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-top: calc(var(--hs-hdr) / 2 - 26px); padding: 0; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, transform .2s, opacity .3s; }
.hs-arrow:hover { background: rgba(255,255,255,.3); }
.hs-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hs-prev { inset-inline-start: 24px; } .hs-next { inset-inline-end: 24px; }
.hs-arrows-circle .hs-arrow { border-radius: 50%; }
.hs-arrows-square .hs-arrow { border-radius: 10px; }
.hs-arrows-minimal .hs-arrow { background: none; border: 0; width: 44px; font-size: 30px; -webkit-backdrop-filter: none; backdrop-filter: none; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hs-arrows-minimal .hs-arrow:hover { background: none; transform: scale(1.15); }
@media (hover: hover) and (min-width: 768px) {
    .hs:not(:hover):not(:focus-within) .hs-arrow { opacity: .55; }
}

.hs-bar { position: absolute; z-index: 6; inset-inline: 0; bottom: 28px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 24px; pointer-events: none; }
.hs-bar > * { pointer-events: auto; }
.hs-counter { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.hs-counter b { font-size: 18px; color: #fff; }
.hs-ind { display: flex; align-items: center; gap: 8px; }
.hs-ind button { position: relative; padding: 0; border: 0; cursor: pointer; overflow: hidden; color: #fff; transition: width .3s, background .3s, opacity .3s, transform .3s; }
.hs-ind button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hs-ind-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: #fff; }
[dir="rtl"] .hs-ind-fill { transform-origin: right; }
.hs-ind-dots .hs-ind button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); }
.hs-ind-dots .hs-ind button.is-active { background: #fff; transform: scale(1.25); }
.hs-ind-lines .hs-ind button { width: 30px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); }
.hs-ind-lines .hs-ind button.is-active { width: 56px; }
.hs-ind-lines .hs-ind button.is-active .hs-ind-fill { animation: hsFill var(--hs-cur-dur, 6000ms) linear both; animation-play-state: var(--hs-ps, running); }
.hs-ind-lines.hs-ind-static .hs-ind button.is-active .hs-ind-fill, .hs:not(.is-auto) .hs-ind-lines .hs-ind button.is-active .hs-ind-fill { animation: none; transform: none; }
@keyframes hsFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hs-ind-numbers .hs-ind { gap: 4px; }
.hs-ind-numbers .hs-ind button { min-width: 38px; height: 32px; background: none; font-size: 13px; font-weight: 700; opacity: .55; font-variant-numeric: tabular-nums; border-bottom: 2px solid transparent; border-radius: 0; }
.hs-ind-numbers .hs-ind button.is-active { opacity: 1; border-bottom-color: #fff; }
.hs-ind-numbers .hs-ind button .hs-ind-fill, .hs-ind-dots .hs-ind button .hs-ind-fill, .hs-ind-thumbs .hs-ind button .hs-ind-fill { display: none; }
.hs-ind-thumbs .hs-ind button { width: 76px; height: 46px; border-radius: 8px; background: rgba(0,0,0,.3); opacity: .6; outline: 2px solid transparent; }
.hs-ind-thumbs .hs-ind button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-ind-thumbs .hs-ind button.is-active { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; transform: translateY(-3px); }
.hs-play { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 15px; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hs-play:hover { background: rgba(255,255,255,.28); }
.hs-play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hs-progress { position: absolute; z-index: 6; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.18); }
.hs-progress span { position: absolute; inset: 0; background: var(--accent, #fff); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .hs-progress span { transform-origin: right; }
.hs.is-auto .hs-progress span.is-run { animation: hsFill var(--hs-cur-dur, 6000ms) linear both; animation-play-state: var(--hs-ps, running); }

.hs-scroll { position: absolute; z-index: 6; bottom: 26px; inset-inline-end: 32px; width: 28px; height: 46px; padding: 0; border: 2px solid rgba(255,255,255,.7); border-radius: 16px; background: none; cursor: pointer; }
.hs-scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hsScroll 1.8s ease-in-out infinite; }
@keyframes hsScroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.hs.is-paused { --hs-ps: paused; }

/* Fallback (tanpa slide) */
.hs-fallback { background: linear-gradient(135deg, #1e3a8a, #0f172a); }

/* ── HP ────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .hm-hero.hs {
        height: calc(var(--hs-hm, 60) * 1vh + var(--hs-hdr));
        min-height: calc(min(var(--hs-min, 450px), 380px) + var(--hs-hdr));
        max-height: calc(var(--hs-max, 760px) + var(--hs-hdr));
    }
    .hm-hero.hs.hs-full { height: 100svh; max-height: none; }
    .hs-content { padding: calc(28px + var(--hs-hdr)) 0 64px; }
    .hs-vm-top { justify-content: flex-start; }
    .hs-vm-middle { justify-content: center; }
    .hs-vm-bottom { justify-content: flex-end; }
    .hs-hm-start .hs-container { justify-content: flex-start; }
    .hs-hm-center .hs-container { justify-content: center; }
    .hs-hm-end .hs-container { justify-content: flex-end; }
    .hs-hm-start .hs-caption { align-items: flex-start; text-align: start; }
    .hs-hm-center .hs-caption { align-items: center; text-align: center; }
    .hs-hm-end .hs-caption { align-items: flex-end; text-align: end; }
    .hs-caption { max-width: 100%; }
    .hs-kicker { font-size: 11px; margin-bottom: 10px; }
    .hs-kicker-pill { padding: 5px 11px; }
    .hs-title { font-size: var(--hs-tsm, clamp(1.45rem, 6.6vw, 2rem)); margin-bottom: 10px; }
    .hs-desc { font-size: 14px !important; line-height: 1.6; margin-bottom: 18px; }
    .hs-btns { gap: 8px; }
    .hs-btn { min-height: 42px; padding: 0 18px; font-size: 13px; }
    .hs-arrow { display: none; }
    .hs-arrows-m .hs-arrow { display: inline-flex; width: 38px; height: 38px; font-size: 16px; margin-top: -19px; }
    .hs-prev { inset-inline-start: 10px; } .hs-next { inset-inline-end: 10px; }
    .hs-bar { bottom: 18px; gap: 10px; }
    .hs-ind-thumbs .hs-ind button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); outline: 0; }
    .hs-ind-thumbs .hs-ind button img { display: none; }
    .hs-ind-thumbs .hs-ind button.is-active { background: #fff; transform: scale(1.2); outline: 0; }
    .hs-ind-lines .hs-ind button { width: 20px; } .hs-ind-lines .hs-ind button.is-active { width: 38px; }
    .hs-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hs-slide.is-play .hs-layer { animation: none !important; opacity: 1 !important; }
    .hs.is-js .hs-layer { opacity: 1; }
    .hs-slide.is-play [class*="hs-kb-"] img { animation: none !important; }
    .hs-slide.is-entering, .hs-slide.is-leaving { animation-name: hsFadeIn !important; animation-duration: 300ms !important; }
    .hs-slide.is-leaving { animation-name: hsHold !important; }
    .hs-scroll span { animation: none; }
}
