/* =========================================================
   Slider beranda (partials/slider.blade.php + js/app.js)
   Memakai variabel tema (--blue, --hl, --radius) sehingga ikut berganti
   saat template atau palet diubah.
   ========================================================= */
.slider { position: relative; overflow: hidden; background: var(--blue-dark); color: #fff; isolation: isolate; }
.sl-track { position: relative; aspect-ratio: 4 / 3; min-height: 340px; max-height: 78vh; }
@media (min-width: 700px)  { .sl-track { aspect-ratio: 16 / 7; min-height: 400px; } }
@media (min-width: 1200px) { .sl-track { aspect-ratio: 16 / 6.2; max-height: 640px; } }

.sl-slide { position: absolute; inset: 0; display: grid; align-items: end; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.sl-slide.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; z-index: 1; }
.sl-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.sl-slide.is-on .sl-img { transform: scale(1); }
.sl-fallback { background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--hl) 55%, transparent) 0 90px, transparent 91px),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); }
.sl-fallback[style*="--i: 1"] { background: radial-gradient(circle at 10% 85%, color-mix(in srgb, var(--hl) 45%, transparent) 0 120px, transparent 121px), linear-gradient(225deg, var(--blue-dark), var(--blue)); }
.sl-fallback[style*="--i: 2"] { background: radial-gradient(circle at 70% 75%, color-mix(in srgb, var(--red) 55%, transparent) 0 110px, transparent 111px), linear-gradient(160deg, var(--blue), color-mix(in srgb, var(--blue) 55%, #000)); }

.sl-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,14,34,.82) 0%, rgba(8,14,34,.45) 45%, rgba(8,14,34,.05) 100%); }
@media (min-width: 700px) { .sl-shade { background: linear-gradient(90deg, rgba(8,14,34,.8) 0%, rgba(8,14,34,.45) 45%, rgba(8,14,34,0) 80%); } }

.sl-copy { position: relative; z-index: 2; padding-block: 1.5rem 4.2rem; display: grid; gap: .7rem; justify-items: start; align-content: end; }
@media (min-width: 700px) { .sl-copy { padding-block: 2rem 4.5rem; align-content: center; } .sl-copy > * { max-width: min(620px, 55%); } }
.sl-title { font-size: clamp(1.7rem, 5.6vw, 3.3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.sl-sub { margin: 0; font-size: clamp(.98rem, 2.6vw, 1.2rem); line-height: 1.55; color: rgba(255,255,255,.92); }
.sl-btn { margin-top: .4rem; }
.slider .sl-slide:not(.is-on) { pointer-events: none; }
.sl-slide.is-on .sl-title, .sl-slide.is-on .sl-sub, .sl-slide.is-on .sl-btn { animation: sl-rise .7s .15s both cubic-bezier(.2,.7,.2,1); }
.sl-slide.is-on .sl-sub { animation-delay: .25s; } .sl-slide.is-on .sl-btn { animation-delay: .35s; }
@keyframes sl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.sl-nav { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -30px; border: 0; border-radius: 50%; display: none; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.88); color: #101b3d; box-shadow: 0 6px 18px -6px rgba(0,0,0,.5); transition: background .15s, transform .15s; }
.sl-nav:hover { background: #fff; transform: scale(1.06); }
.sl-prev { left: clamp(.6rem, 2vw, 1.5rem); } .sl-next { right: clamp(.6rem, 2vw, 1.5rem); }
@media (min-width: 700px) { .sl-nav { display: grid; } }

.sl-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .9rem 1rem calc(.9rem); }
.sl-dots { display: flex; gap: .5rem; align-items: center; }
.sl-dots button { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .25s, background .25s; }
.sl-dots button::after { content: ""; position: absolute; inset: -14px -4px; } /* area ketuk lebih luas di ponsel */
.sl-dots button.is-on { width: 30px; background: var(--hl); }
.sl-pause { width: 30px; height: 30px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(4px); }
.sl-pause .i-play { display: none; }
.sl-pause.is-paused .i-pause { display: none; }
.sl-pause.is-paused .i-play { display: block; }
.sl-pause:hover { background: rgba(255,255,255,.38); }
.sl-nav:focus-visible, .sl-pause:focus-visible, .sl-dots button:focus-visible { outline: 3px solid var(--hl); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .sl-slide, .sl-slide.is-on, .sl-img { transition: none; transform: none; }
  .sl-slide.is-on .sl-title, .sl-slide.is-on .sl-sub, .sl-slide.is-on .sl-btn { animation: none; }
}
