/*!
 * Barka Modern Layer — SMKN 2 Sekotong
 * Lapisan desain tambahan di atas style.min.css (tema Barka, MIT).
 * Warna utama tetap mengikuti variabel di custom.css:
 *   --primary-color, --secondary-color, --accent-color
 * Tidak ada perubahan pada struktur database.
 */

/* ------------------------------------------------------------------
 * 1. TOKENS
 * ---------------------------------------------------------------- */
:root {
  --sk-font: "Plus Jakarta Sans", "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sk-radius: 16px;
  --sk-radius-sm: 10px;
  --sk-bg: #f4f7fb;
  --sk-surface: #ffffff;
  --sk-surface-2: #eef3f9;
  --sk-text: #1f2a3a;
  --sk-muted: #64748b;
  --sk-border: rgba(15, 35, 70, .10);
  --sk-shadow-sm: 0 1px 2px rgba(15, 35, 70, .06), 0 2px 8px rgba(15, 35, 70, .05);
  --sk-shadow: 0 10px 30px -10px rgba(15, 35, 70, .25);
  --sk-shadow-lg: 0 24px 60px -20px rgba(15, 35, 70, .35);
  --sk-grad: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --sk-ease: cubic-bezier(.22, .8, .24, 1);
  --sk-header-h: 72px;
}

html[data-theme="dark"] {
  --sk-bg: #0c1422;
  --sk-surface: #131d2f;
  --sk-surface-2: #1a2640;
  --sk-text: #e6edf7;
  --sk-muted: #93a4bd;
  --sk-border: rgba(255, 255, 255, .09);
  --sk-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --sk-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  --sk-shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ------------------------------------------------------------------
 * 2. BASE
 * ---------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--sk-header-h) + 16px); }

body {
  font-family: var(--sk-font);
  background-color: var(--sk-bg) !important;
  color: var(--sk-text) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-heading, h1, h2, h3, h4, h5, h6 { font-family: var(--sk-font) !important; letter-spacing: -.01em; }

::selection { background: var(--accent-color); color: #1b1b1b; }

a { transition: color .2s ease, background-color .2s ease, opacity .2s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 6px;
}

img { max-width: 100%; }

.sk-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.sk-skip {
  position: fixed; left: 12px; top: -60px; z-index: 10000;
  background: var(--accent-color); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .2s ease;
}
.sk-skip:focus { top: 12px; }

/* Scroll progress */
.sk-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 10001;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  pointer-events: none;
}

/* Preloader dibuat lebih halus */
.preloader { background: var(--primary-color) !important; animation: sk-preload-hide .5s ease 4s forwards; }
@keyframes sk-preload-hide { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Kartu putih bawaan tema dibuat modern */
main .bg-white {
  background-color: var(--sk-surface) !important;
  border-radius: var(--sk-radius);
  box-shadow: var(--sk-shadow-sm);
  border: 1px solid var(--sk-border);
}
main .bg-gray-200, main .bg-gray-300 { background-color: var(--sk-surface-2) !important; }
main .text-gray-500, main .text-gray-600, main .text-gray-700 { color: var(--sk-muted) !important; }
main .border, main .divide-y > * + * { border-color: var(--sk-border) !important; }

/* Judul section bawaan (.text-title) */
.text-title {
  border: 0 !important;
  color: var(--sk-text) !important;
  padding-bottom: .6rem !important;
  position: relative;
}
.text-title::after {
  content: ""; position: absolute; left: 0; right: auto; top: auto; bottom: 0;
  height: 4px; width: 56px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}
h3.text-title .fa, h1.text-title .fa { color: var(--secondary-color); margin-right: .35rem; }

/* Tombol umum */
.sk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .25s var(--sk-ease), box-shadow .25s var(--sk-ease), background-color .2s, color .2s, border-color .2s;
}
.sk-btn:hover { transform: translateY(-2px); }
.sk-btn--accent { background: var(--accent-color); color: #1a1a1a !important; box-shadow: 0 8px 22px -8px rgba(254, 215, 0, .8); }
.sk-btn--accent:hover { box-shadow: 0 14px 30px -10px rgba(254, 215, 0, .95); }
.sk-btn--ghost { background: rgba(255, 255, 255, .12); color: #fff !important; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.sk-btn--ghost:hover { background: #fff; color: var(--primary-color) !important; }
.sk-btn--primary { background: var(--sk-grad); color: #fff !important; box-shadow: var(--sk-shadow); }

button.load-more, .bg-secondary.text-white.rounded {
  border-radius: 999px !important;
  padding: .8rem 1.6rem !important;
  font-weight: 700;
  background: var(--sk-grad) !important;
  opacity: 1 !important;
  box-shadow: var(--sk-shadow);
  transition: transform .25s var(--sk-ease), box-shadow .25s var(--sk-ease) !important;
}
button.load-more:hover { transform: translateY(-2px); box-shadow: var(--sk-shadow-lg); }

/* ------------------------------------------------------------------
 * 3. TOPBAR + HEADER + NAV
 * ---------------------------------------------------------------- */
.sk-topbar {
  background: var(--primary-color);
  color: rgba(255, 255, 255, .85);
  font-size: .8rem;
}
.sk-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.sk-topbar__info { display: none; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.sk-topbar__info i { color: var(--accent-color); margin-right: .4rem; }
.sk-topbar__right { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.sk-social { display: inline-flex; gap: .35rem; }
.sk-social a {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: .9rem;
}
.sk-social a:hover { background: var(--accent-color); color: #111; transform: translateY(-2px); }
@media (min-width: 768px) { .sk-topbar__info { display: flex; } }

.sk-header {
  position: sticky; top: 0; z-index: 40;
  /* backdrop-filter sengaja di pseudo-element agar menu mobile (position: fixed) tidak ikut terkurung */
  background: transparent;
  transition: box-shadow .3s ease;
}
.sk-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--sk-surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--sk-border);
}
.sk-header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(15, 35, 70, .35); }
.sk-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--sk-header-h); transition: min-height .3s ease; }
.sk-header.is-scrolled .sk-header__inner { min-height: 58px; }

.sk-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--sk-text); min-width: 0; }
.sk-brand img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; transition: transform .4s var(--sk-ease); }
.sk-brand:hover img { transform: rotate(-6deg) scale(1.06); }
.sk-brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.sk-brand__top { font-weight: 600; font-size: .78rem; color: var(--sk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-brand__name { font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .02em; color: var(--primary-color); }
html[data-theme="dark"] .sk-brand__name { color: #fff; }

.sk-actions { display: flex; align-items: center; gap: .35rem; }
.sk-icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--sk-border);
  background: var(--sk-surface-2); color: var(--sk-text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
  transition: transform .2s var(--sk-ease), background-color .2s, color .2s;
}
.sk-icon-btn:hover { background: var(--secondary-color); color: #fff; transform: translateY(-2px); }
.sk-header .menu-button { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-color); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.sk-header .menu-button .fa { color: #fff; }

/* Navigasi — mobile: panel geser bawaan tema (.menu) */
.sk-nav { display: contents; }
.menu { font-family: var(--sk-font); background: var(--sk-surface) !important; }
.menu .menu-link, .menu-dropdown a { color: var(--sk-text) !important; }
.menu .menu-link { font-weight: 600 !important; }
.menu .menu-link:hover, .menu-dropdown a:hover { color: var(--secondary-color) !important; }
.menu-dropdown { background: var(--sk-surface-2); }
.menu > span.block { color: var(--sk-muted) !important; }

/* Navigasi — desktop */
@media (min-width: 1024px) {
  .sk-header .menu-button { display: none; }
  .sk-nav { display: block; flex: 1; }
  .sk-nav nav { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .sk-nav .menu { justify-content: flex-end; gap: .15rem; padding: 0 !important; background: transparent !important; width: auto; margin: 0; }
  .sk-nav .menu-item { height: auto; }
  .sk-nav .menu-link {
    position: relative; padding: .6rem .85rem !important; border: 0 !important; border-radius: 10px;
    font-size: .92rem; color: var(--sk-text) !important; white-space: nowrap;
  }
  .sk-nav .menu-link::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 2px; border-radius: 2px;
    background: var(--accent-color); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--sk-ease);
  }
  .sk-nav .menu-link:hover { background: var(--sk-surface-2); color: var(--secondary-color) !important; }
  .sk-nav .menu-item:hover > .menu-link::after { transform: scaleX(1); }
  .sk-nav .menu-dropdown {
    margin: 0; padding: .4rem; top: calc(100% + 6px); border-radius: 14px;
    background: var(--sk-surface) !important; border: 1px solid var(--sk-border) !important;
    box-shadow: var(--sk-shadow-lg) !important;
  }
  .sk-nav .menu-dropdown li a { border: 0 !important; border-radius: 10px; padding: .55rem .8rem !important; font-size: .9rem; }
  .sk-nav .menu-dropdown li a:hover { background: var(--sk-surface-2); }
  .sk-nav .menu > span.block { display: none; }
}

/* Search overlay */
.sk-search {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-start; justify-content: center;
  padding: 14vh 1rem 1rem; background: rgba(5, 15, 35, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.sk-search.is-open { opacity: 1; visibility: visible; }
.sk-search__box { width: 100%; max-width: 640px; transform: translateY(-14px); transition: transform .35s var(--sk-ease); }
.sk-search.is-open .sk-search__box { transform: none; }
.sk-search form { position: relative; }
.sk-search input[type="search"] {
  width: 100%; height: 60px; border-radius: 18px; border: 0; padding: 0 64px 0 56px; font-size: 1.1rem;
  background: var(--sk-surface); color: var(--sk-text); box-shadow: var(--sk-shadow-lg);
}
.sk-search .fa-search { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--sk-muted); font-size: 1.2rem; }
.sk-search__close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--sk-surface-2); color: var(--sk-text); cursor: pointer; }
.sk-search__hint { margin-top: .8rem; color: rgba(255, 255, 255, .75); font-size: .85rem; text-align: center; }

/* ------------------------------------------------------------------
 * 4. HERO
 * ---------------------------------------------------------------- */
.sk-hero { position: relative; color: #fff; overflow: hidden; background: var(--primary-color); isolation: isolate; }
.sk-hero__slide { position: relative; min-height: clamp(460px, 78vh, 760px); display: flex; align-items: center; }
.sk-hero__bg { position: absolute; inset: 0; z-index: -2; }
.sk-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.owl-item.active .sk-hero__bg img { animation: sk-kenburns 9s ease-out both; }
@keyframes sk-kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1%, -1%); } }
.sk-hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 20, 45, .88) 0%, rgba(0, 20, 45, .55) 55%, rgba(0, 20, 45, .25) 100%),
    linear-gradient(0deg, rgba(0, 20, 45, .75) 0%, transparent 40%);
}
.sk-hero--plain .sk-hero--plain::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background:
    radial-gradient(circle at 15% 20%, rgba(254, 215, 0, .25), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255, 255, 255, .18), transparent 45%);
  animation: sk-float 12s ease-in-out infinite alternate;
}
@keyframes sk-float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -18px, 0) scale(1.04); } }

.sk-hero__content { position: relative; z-index: 2; padding: 5rem 0 7.5rem; max-width: 720px; }
.sk-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.sk-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-color); box-shadow: 0 0 0 4px rgba(254, 215, 0, .25); }
.sk-hero__title { font-size: clamp(2rem, 5.4vw, 3.8rem); line-height: 1.08; font-weight: 800; margin: 1rem 0 .8rem; color: #fff; text-wrap: balance; }
.sk-hero__title em { font-style: normal; color: var(--accent-color); }
.sk-hero__caption { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .88); max-width: 560px; line-height: 1.6; }
.sk-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* animasi teks per-slide (konten tetap terlihat jika JS/Owl gagal) */
.owl-item.active .sk-hero__content > * { animation: sk-rise .8s var(--sk-ease) both; }
.owl-item.active .sk-hero__content > *:nth-child(2) { animation-delay: .12s; }
.owl-item.active .sk-hero__content > *:nth-child(3) { animation-delay: .24s; }
.owl-item.active .sk-hero__content > *:nth-child(4) { animation-delay: .36s; }
@keyframes sk-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* Fallback tanpa Owl: tampilkan slide pertama saja */
.sk-hero-carousel { display: block; }
.sk-hero-carousel:not(.owl-loaded) .sk-hero__slide:not(:first-child) { display: none; }

/* Owl: dots & nav */
.sk-hero .owl-dots { position: absolute; left: 50%; bottom: 5.2rem; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 5; }
.sk-hero .owl-dot span { display: block; width: 10px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .5); transition: width .35s var(--sk-ease), background-color .2s; }
.sk-hero .owl-dot.active span { width: 34px; background: var(--accent-color); }
.sk-hero .owl-nav { display: none; }
@media (min-width: 1024px) {
  .sk-hero .owl-nav { display: block; }
  .sk-hero .owl-nav button {
    position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50% !important;
    background: rgba(255, 255, 255, .14) !important; border: 1px solid rgba(255, 255, 255, .35) !important; color: #fff !important;
    font-size: 1.6rem !important; line-height: 1 !important; backdrop-filter: blur(6px); transition: background-color .2s, transform .2s;
  }
  .sk-hero .owl-nav button:hover { background: var(--accent-color) !important; color: #111 !important; transform: translateY(-50%) scale(1.08); }
  .sk-hero .owl-nav .owl-prev { left: 24px; }
  .sk-hero .owl-nav .owl-next { right: 24px; }
}

.sk-hero__scroll {
  position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 6; width: 28px; height: 46px;
  border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px; display: none;
}
.sk-hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 4px; animation: sk-wheel 1.6s infinite; }
@keyframes sk-wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(16px); } }
@media (min-width: 1024px) { .sk-hero__scroll { display: block; } }

/* Gelombang pemisah */
.sk-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; pointer-events: none; }
.sk-hero__wave svg { width: 100%; height: 56px; display: block; }
.sk-hero__wave path { fill: var(--sk-bg); }

/* ------------------------------------------------------------------
 * 5. TICKER (pengganti <marquee>)
 * ---------------------------------------------------------------- */
.sk-ticker {
  display: flex; align-items: stretch; overflow: hidden; border-radius: 999px;
  background: var(--sk-surface); border: 1px solid var(--sk-border); box-shadow: var(--sk-shadow-sm);
}
.sk-ticker__label {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem;
  background: var(--sk-grad); color: #fff; font-weight: 700; font-size: .82rem; z-index: 2;
}
.sk-ticker__label .fa { color: var(--accent-color); animation: sk-ring 2.4s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes sk-ring { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 90% { transform: rotate(8deg); } }
.sk-ticker__viewport { position: relative; flex: 1; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.sk-ticker__track { display: flex; width: max-content; min-width: 200%; white-space: nowrap; animation: sk-marquee var(--sk-ticker-time, 40s) linear infinite; will-change: transform; }
.sk-ticker:hover .sk-ticker__track, .sk-ticker:focus-within .sk-ticker__track { animation-play-state: paused; }
.sk-ticker__group { display: flex; flex: 1 0 50%; align-items: center; justify-content: space-around; }
.sk-ticker__item { display: inline-flex; align-items: center; padding: 0 1.4rem; font-size: .9rem; color: var(--sk-text); }
.sk-ticker__item::before { content: ""; width: 6px; height: 6px; margin-right: .9rem; border-radius: 50%; background: var(--accent-color); flex-shrink: 0; }
@keyframes sk-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------
 * 6. STATS + QUICK LINKS
 * ---------------------------------------------------------------- */
.sk-float { position: relative; z-index: 10; margin-top: -4.2rem; }
.sk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
@media (min-width: 900px) { .sk-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; } }
.sk-stat {
  position: relative; overflow: hidden; background: var(--sk-surface); border: 1px solid var(--sk-border);
  border-radius: var(--sk-radius); padding: 1.2rem 1.1rem; box-shadow: var(--sk-shadow);
  display: flex; align-items: center; gap: .9rem; transition: transform .35s var(--sk-ease), box-shadow .35s var(--sk-ease);
}
.sk-stat:hover { transform: translateY(-6px); box-shadow: var(--sk-shadow-lg); }
.sk-stat::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--sk-grad); opacity: .08; }
.sk-stat__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--sk-grad); color: #fff; font-size: 1.4rem; box-shadow: 0 10px 20px -8px var(--secondary-color); }
.sk-stat__num { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1; color: var(--sk-text); }
.sk-stat__label { margin-top: .3rem; font-size: .82rem; color: var(--sk-muted); font-weight: 600; }

.sk-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
@media (min-width: 900px) { .sk-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sk-quick a {
  position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem; border-radius: var(--sk-radius);
  background: var(--sk-surface); border: 1px solid var(--sk-border); color: var(--sk-text); text-decoration: none; overflow: hidden;
  transition: transform .3s var(--sk-ease), box-shadow .3s var(--sk-ease), color .2s, background-color .3s;
}
.sk-quick a::before { content: ""; position: absolute; inset: 0; background: var(--sk-grad); opacity: 0; transition: opacity .3s ease; z-index: 0; }
.sk-quick a > * { position: relative; z-index: 1; }
.sk-quick a:hover { transform: translateY(-5px); box-shadow: var(--sk-shadow-lg); color: #fff; }
.sk-quick a:hover::before { opacity: 1; }
.sk-quick .fa { font-size: 1.6rem; color: var(--secondary-color); transition: color .2s, transform .35s var(--sk-ease); }
.sk-quick a:hover .fa { color: var(--accent-color); transform: scale(1.15) rotate(-6deg); }
.sk-quick strong { font-size: 1rem; }
.sk-quick small { font-size: .8rem; opacity: .75; }

/* ------------------------------------------------------------------
 * 7. SECTION HEADING + NEWS CARDS
 * ---------------------------------------------------------------- */
.sk-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sk-section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; margin: 0; color: var(--sk-text); position: relative; padding-bottom: .55rem; }
.sk-section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--accent-color), var(--secondary-color)); }
.sk-section-head small { color: var(--sk-muted); font-weight: 600; }
.sk-section-head .fa { color: var(--secondary-color); margin-right: .4rem; }

.sk-news { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .sk-news { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sk-news .sk-card--featured { grid-column: 1 / -1; } }

.sk-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--sk-surface);
  border: 1px solid var(--sk-border); border-radius: var(--sk-radius); box-shadow: var(--sk-shadow-sm);
  transition: transform .35s var(--sk-ease), box-shadow .35s var(--sk-ease);
}
.sk-card:hover { transform: translateY(-6px); box-shadow: var(--sk-shadow-lg); }
.sk-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sk-surface-2); }
.sk-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--sk-ease); }
.sk-card:hover .sk-card__media img { transform: scale(1.08); }
.sk-card__media--logo { display: flex; align-items: center; justify-content: center; }
.sk-card__media--logo img { width: 72px; height: 72px; object-fit: contain; opacity: .8; }
.sk-card__date {
  position: absolute; left: 12px; top: 12px; z-index: 2; text-align: center; line-height: 1; padding: .5rem .65rem; border-radius: 12px;
  background: var(--sk-grad); color: #fff; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .45);
}
.sk-card__date b { display: block; font-size: 1.35rem; font-weight: 800; }
.sk-card__date span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.sk-card__body { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem 1.2rem 1.2rem; flex: 1; }
.sk-card__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .76rem; color: var(--sk-muted); font-weight: 600; }
.sk-card__meta .fa { color: var(--secondary-color); margin-right: .3rem; }
.sk-card__title { font-size: 1.08rem; font-weight: 800; line-height: 1.35; margin: 0; }
.sk-card__title a { color: var(--sk-text); text-decoration: none; background: linear-gradient(var(--accent-color), var(--accent-color)) 0 100% / 0 3px no-repeat; transition: background-size .4s var(--sk-ease), color .2s; }
.sk-card:hover .sk-card__title a { background-size: 100% 3px; }
.sk-card__excerpt { color: var(--sk-muted); font-size: .92rem; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sk-card__more { margin-top: auto; font-weight: 700; font-size: .88rem; color: var(--secondary-color); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.sk-card__more .fa { transition: transform .25s var(--sk-ease); }
.sk-card:hover .sk-card__more .fa { transform: translateX(5px); }
@media (min-width: 768px) {
  .sk-card--featured { flex-direction: row; }
  .sk-card--featured .sk-card__media { aspect-ratio: auto; flex: 0 0 52%; min-height: 320px; }
  .sk-card--featured .sk-card__body { padding: 1.6rem; justify-content: center; }
  .sk-card--featured .sk-card__title { font-size: 1.5rem; }
  .sk-card--featured .sk-card__excerpt { -webkit-line-clamp: 5; }
}

/* Kartu artikel lama (loop-posts, kategori, arsip, tag, pencarian) — dipercantik via CSS */
.post.bg-white, main .flex.flex-col.lg\:flex-row.justify-between.bg-white {
  border-radius: var(--sk-radius); overflow: hidden;
  transition: transform .35s var(--sk-ease), box-shadow .35s var(--sk-ease);
}
.post.bg-white:hover { transform: translateY(-4px); box-shadow: var(--sk-shadow-lg); }
.post.bg-white img { transition: transform .7s var(--sk-ease); }
.post.bg-white:hover img { transform: scale(1.06); }
.post.bg-white .bg-secondary.absolute { border-radius: 0 0 14px 0; background: var(--sk-grad) !important; }
.post.bg-white h2 { color: var(--sk-text); }

/* ------------------------------------------------------------------
 * 8. GALERI + VIDEO
 * ---------------------------------------------------------------- */
.sk-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
@media (min-width: 900px) { .sk-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sk-album {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; overflow: hidden; text-align: left;
  aspect-ratio: 4 / 5; border-radius: var(--sk-radius); background: var(--sk-surface-2); box-shadow: var(--sk-shadow-sm);
  transition: transform .35s var(--sk-ease), box-shadow .35s var(--sk-ease);
}
.sk-album:hover { transform: translateY(-6px); box-shadow: var(--sk-shadow-lg); }
.sk-album img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--sk-ease); }
.sk-album:hover img { transform: scale(1.1); }
.sk-album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 20, 45, .85) 0%, transparent 55%); }
.sk-album__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1rem; color: #fff; font-weight: 700; line-height: 1.3; }
.sk-album__cap small { display: block; margin-top: .25rem; font-weight: 600; opacity: .8; }
.sk-album__zoom { position: absolute; right: 12px; top: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--primary-color); display: inline-flex; align-items: center; justify-content: center; transform: scale(.6); opacity: 0; transition: .3s var(--sk-ease); }
.sk-album:hover .sk-album__zoom { transform: none; opacity: 1; }

.sk-videos { display: grid; gap: 1rem; }
@media (min-width: 768px) { .sk-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sk-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--sk-radius); background: #000; box-shadow: var(--sk-shadow); }
.sk-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------------
 * 9. SIDEBAR
 * ---------------------------------------------------------------- */
aside .bg-white, .lg\:w-1\/3 > .bg-white { overflow: hidden; }
.lg\:w-1\/3 > form input[type="search"], .lg\:w-1\/3 input#subscriber {
  height: 46px !important; border-radius: 999px !important; background: var(--sk-surface) !important; color: var(--sk-text);
  border: 1px solid var(--sk-border) !important; padding-left: 2.6rem !important;
}
.lg\:w-1\/3 input#subscriber { padding-left: 1.2rem !important; }
.lg\:w-1\/3 > form .fa-search { left: .4rem !important; }
.lg\:w-1\/3 h5.text-title { border: 0 !important; display: inline-block; }
.lg\:w-1\/3 .divide-y a { transition: padding-left .25s var(--sk-ease), color .2s; position: relative; }
.lg\:w-1\/3 .divide-y a:hover { padding-left: .6rem; color: var(--secondary-color); }
.lg\:w-1\/3 img[src*="headmaster"] { border-radius: var(--sk-radius); }

/* ------------------------------------------------------------------
 * 10. HALAMAN DALAM (artikel, form, tabel)
 * ---------------------------------------------------------------- */
article h1.text-title { line-height: 1.2; }
.content { line-height: 1.85; font-size: 1.02rem; color: var(--sk-text); overflow-wrap: anywhere; }
.content img { height: auto; border-radius: var(--sk-radius-sm); }
.content a { color: var(--secondary-color); text-decoration: underline; text-underline-offset: 3px; }
.content blockquote { border-left: 4px solid var(--accent-color); background: var(--sk-surface-2); padding: 1rem 1.2rem; border-radius: 0 var(--sk-radius-sm) var(--sk-radius-sm) 0; font-style: italic; }
.content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.content table td, .content table th { border: 1px solid var(--sk-border); padding: .5rem .7rem; }
.content iframe { max-width: 100%; border-radius: var(--sk-radius-sm); }

.form-input, input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], textarea, select {
  background-color: var(--sk-surface); color: var(--sk-text); border: 1px solid var(--sk-border); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, input:focus, textarea:focus, select:focus { border-color: var(--secondary-color) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--secondary-color) 22%, transparent); outline: none; }
table { max-width: 100%; }
.bg-primary.text-white, button.bg-primary, button.bg-secondary, a.bg-secondary.text-white { border-radius: 12px; }

/* ------------------------------------------------------------------
 * 11. FOOTER
 * ---------------------------------------------------------------- */
.sk-footer { position: relative; margin-top: 4rem; background: var(--primary-color); color: rgba(255, 255, 255, .8); overflow: hidden; }
.sk-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(254, 215, 0, .12), transparent 40%), radial-gradient(circle at 0% 100%, rgba(32, 99, 155, .5), transparent 45%); pointer-events: none; }
.sk-footer a { color: inherit; text-decoration: none; }
.sk-footer a:hover { color: var(--accent-color); }
.sk-footer__grid { position: relative; display: grid; gap: 2.2rem; padding: 3.2rem 0 2.4rem; }
@media (min-width: 768px) { .sk-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
@media (min-width: 1024px) { .sk-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; } }
.sk-footer h4 { color: #fff; font-size: 1rem; font-weight: 800; margin: 0 0 1rem; position: relative; padding-bottom: .6rem; }
.sk-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--accent-color); }
.sk-footer__brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.sk-footer__brand img { width: 52px; height: 52px; object-fit: contain; background: rgba(255, 255, 255, .95); border-radius: 14px; padding: 5px; }
.sk-footer__brand b { color: #fff; font-size: 1.05rem; line-height: 1.2; }
.sk-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.sk-footer ul li a { display: inline-flex; align-items: center; gap: .55rem; transition: transform .25s var(--sk-ease), color .2s; }
.sk-footer ul li a:hover { transform: translateX(5px); }
.sk-footer ul .fa { color: var(--accent-color); width: 1rem; text-align: center; font-size: .8rem; }
.sk-footer__contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.sk-footer__contact .fa { color: var(--accent-color); margin-top: .25rem; width: 1rem; text-align: center; }
.sk-footer__map { border-radius: var(--sk-radius-sm); overflow: hidden; background: rgba(255, 255, 255, .06); aspect-ratio: 4 / 3; }
.sk-footer__map iframe { width: 100% !important; height: 100% !important; border: 0; }
.sk-footer__bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.sk-footer__bottom .container { display: flex; flex-direction: column; gap: .4rem; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; text-align: center; }
@media (min-width: 768px) { .sk-footer__bottom .container { flex-direction: row; text-align: left; } }

/* Tombol kembali ke atas */
.sk-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 48px; height: 48px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--sk-grad); color: #fff; font-size: 1.2rem; box-shadow: var(--sk-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: .35s var(--sk-ease);
}
.sk-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.sk-top:hover { transform: translateY(-4px); background: var(--accent-color); color: #111; }

/* Reveal fallback (jika AOS gagal dimuat dari CDN) */
html.sk-aos-fail [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
.sk-reveal { transition: opacity .8s var(--sk-ease), translate .8s var(--sk-ease), transform .35s var(--sk-ease), box-shadow .35s var(--sk-ease), color .2s, background-color .3s; transition-delay: var(--sk-delay, 0s), var(--sk-delay, 0s), 0s, 0s, 0s, 0s; }
/* Disembunyikan HANYA jika JS sudah aktif (kelas sk-ready ditambahkan oleh modern.js) */
html.sk-ready .sk-reveal:not(.is-visible) { opacity: 0; translate: 0 26px; }

/* ------------------------------------------------------------------
 * 12. DARK MODE — penyesuaian utilitas bawaan
 * ---------------------------------------------------------------- */
html[data-theme="dark"] .text-gray-700, html[data-theme="dark"] .text-gray-800, html[data-theme="dark"] .text-gray-900 { color: var(--sk-text) !important; }
html[data-theme="dark"] .menu { box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .content, html[data-theme="dark"] .content * { color: inherit; }
html[data-theme="dark"] .content a { color: #7cc0ff; }
html[data-theme="dark"] .sk-hero__wave path { fill: var(--sk-bg); }
html[data-theme="dark"] img:not([src$=".svg"]) { filter: brightness(.94); }
html[data-theme="dark"] .sk-icon-btn .fa-moon-o::before { content: "\f185"; }

/* ------------------------------------------------------------------
 * 13. MOTION & PRINT
 * ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .sk-ticker__track { animation: none; }
  html.sk-ready .sk-reveal { opacity: 1 !important; translate: none !important; }
  .sk-hero__content > * { animation: none !important; }
}
@media print {
  .sk-topbar, .sk-header, .sk-top, .sk-progress, .sk-search, .sk-footer, .sk-hero__wave { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}


/* ---- Perbaikan v3: menu & dropdown desktop ---- */
@media (min-width: 1024px) {
  .sk-header__inner { gap: .75rem; }
  .sk-brand__name { font-size: 1rem; }
  .sk-nav .menu { flex-wrap: nowrap; gap: 0; }
  .sk-nav .menu-link { padding: .55rem .5rem !important; font-size: .78rem; letter-spacing: .01em; }
  .sk-nav .menu-icon { margin-left: .3rem; font-size: .6rem; }
  .sk-nav .menu-dropdown { opacity: 0 !important; visibility: hidden !important; pointer-events: none; transform: translateY(8px) !important; transition: opacity .2s ease, transform .25s ease, visibility .2s; }
  .sk-nav .menu-item:hover > .menu-dropdown, .sk-nav .menu-item:focus-within > .menu-dropdown { opacity: 1 !important; visibility: visible !important; pointer-events: auto; transform: none !important; }
}
@media (min-width: 1280px) { .sk-nav .menu-link { font-size: .84rem; padding: .55rem .65rem !important; } }
.sk-hero { min-height: 1px; }

/* ---- Perbaikan v5: urutan lapisan gambar slide ---- */
.sk-hero__slide { isolation: isolate; background: var(--primary-color); }
.sk-hero__bg { z-index: 0; }
.sk-hero__shade { z-index: 1; }
.sk-hero__content { z-index: 2; }
.sk-hero--plain .sk-hero__slide { background: var(--sk-grad); }
.sk-hero__bg img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; }
