/* ============================================================
   WEB KDS — Design System "Modern Formal Academic"
   Layout mengikuti pola template sekolah modern: topbar,
   navbar sticky + dropdown, hero slider, feature boxes,
   section cards, counter band, CTA band, footer kaya.
   ============================================================ */

:root {
  /* Palet warna (konsep 5.4) */
  --primary:      #0B6E4F;
  --primary-dark: #084d36;
  --primary-50:   #e9f5f0;
  --primary-100:  #c9e6da;
  --accent:       #C9A227;
  --accent-dark:  #a98617;
  --ink:          #14251f;
  --muted:        #5b6b63;
  --bg:           #f7faf8;
  --surface:      #ffffff;
  --line:         #e2e8e4;
  --danger:       #c0392b;
  --info:         #247a8f;
  --wa:           #25d366;

  /* Spacing scale (base 4px) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  /* Shadow halus */
  --shadow-sm: 0 1px 3px rgba(20, 37, 31, .06);
  --shadow:    0 2px 8px rgba(20, 37, 31, .06);
  --shadow-md: 0 4px 16px rgba(20, 37, 31, .08);
  --shadow-lg: 0 8px 24px rgba(20, 37, 31, .10);

  /* Transisi */
  --t: .2s ease;
  --t-slow: .35s ease;

  --font-heading: 'Plus Jakarta Sans', 'Poppins', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --header-h: 74px;
  --container-w: 1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--s3);
  color: var(--ink);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 var(--s4); }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25rem; }
ul li { margin-bottom: var(--s1); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--s5);
}
.section { padding-block: var(--s8); }
.section--tight { padding-block: var(--s6); }
.section--gray { background: var(--bg); }
.section--white { background: var(--surface); }
.container--narrow { max-width: 860px; }

/* ============================================================
   SECTION HEADING (judul + garis aksen emas)
   ============================================================ */
.section-heading { text-align: center; margin-bottom: var(--s7); }
.section-heading h2 {
  display: inline-block;
  margin-bottom: var(--s3);
  position: relative;
  padding-bottom: var(--s3);
}
.section-heading h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}
.section-heading p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 720px;
}
.section-heading--left { text-align: left; }
.section-heading--left h2::after { left: 0; transform: none; }
.section-heading--left p { margin: 0; }

/* Varian heading halaman ekskul (heading di kiri, kartu logo) */
.ekskul-head { text-align: left; margin-bottom: var(--s6); }
.ekskul-head h2 { margin-bottom: var(--s2); }
.ekskul-head h2::after { display: none; }
.ekskul-head p { margin: var(--s3) 0 0; }

/* ============================================================
   GRID
   ============================================================ */
.grid { display: grid; gap: var(--s5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--sidebar { grid-template-columns: 1fr 340px; align-items: start; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  line-height: 1.2;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--secondary { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary-dark); }
.btn--secondary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(.92); color: #fff; }
.btn--sm { min-height: 36px; padding: 7px 14px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ============================================================
   BADGE & CHIP
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary);
}
.badge--accent { background: rgba(201, 162, 39, .14); color: var(--accent-dark); }
.badge--light  { background: rgba(255,255,255,.18); color: #fff; }

.chips { display: flex; gap: var(--s2); flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: .88rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: all var(--t);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip--active, .chip--active:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); }
.card__body { padding: var(--s5); flex: 1; display: flex; flex-direction: column; }
.card__title { font-size: 1.05rem; margin-bottom: var(--s2); }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--primary); }
.card__meta  { font-size: .85rem; color: var(--muted); display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: auto; padding-top: var(--s3); }
.card__excerpt { color: var(--muted); font-size: .9rem; margin-bottom: var(--s3); }

/* Thumbnail rasio konstan */
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--line); overflow: hidden; display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.card:hover .thumb img { transform: scale(1.05); }
.thumb-sm { width: 44px; height: 44px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); display: block; }

/* ============================================================
   EMPTY STATE & SKELETON
   ============================================================ */
.empty-state {
  text-align: center;
  padding: var(--s8) var(--s5);
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
}
.empty-state--inline { margin: 0; padding: var(--s5); }

/* ============================================================
   ALERT (flash message)
   ============================================================ */
.alert { border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: var(--s4); font-size: .92rem; border: 1px solid transparent; }
.alert--success { background: var(--primary-50); color: var(--primary-dark); border-color: var(--primary-100); }
.alert--error   { background: #fdecea; color: var(--danger); border-color: #f5c6cb; }
.alert ul { margin: 0; padding-left: 1.2rem; }

/* ============================================================
   FORM (konsep: no inline style)
   ============================================================ */
.form-group { margin-bottom: var(--s4); }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink); }
.form-group .req { color: var(--danger); }
.form-control,
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="date"], input[type="search"],
select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus,
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 110, 79, .12);
}
textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  min-height: 42px;
}
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; gap: var(--s5); flex-wrap: wrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar__sosmed { display: flex; gap: var(--s2); align-items: center; }
.topbar__sosmed a {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  font-size: .72rem; font-weight: 700;
  transition: background var(--t);
}
.topbar__sosmed a:hover { background: var(--accent); color: #fff; }

/* ============================================================
   NAVBAR (sticky + dropdown + search + CTA)
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), background var(--t);
}
.navbar.is-stuck { box-shadow: var(--shadow-md); }
.navbar .container {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }
.brand__logo { width: 46px; height: 46px; object-fit: contain; }
.brand__text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--ink);
}
.brand__text span { font-size: .76rem; color: var(--muted); }

.nav-menu { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu a {
  display: block;
  padding: 10px 13px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: all var(--t);
}
.nav-menu a:hover,
.nav-menu a.active { background: #000000; color: #ffffff;}


/* Caret toggle submenu — tampil hanya di mobile (di desktop pakai hover) */
.nav-menu .has-drop { display: flex; align-items: center; }
.nav-menu .caret {
  display: none;
  flex: 0 0 auto;
  background: none; border: 1px solid transparent; border-radius: var(--r-sm);
  padding: 4px; cursor: pointer; color: var(--ink);
  transition: all var(--t);
}
.nav-menu .caret:hover { color: var(--primary); background: var(--primary-50); }
.nav-menu .caret svg { display: block; transition: transform var(--t); }
.nav-menu .caret[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Dropdown (siap untuk menu multi-level di masa depan) */
.nav-menu .dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  padding: var(--s2);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--t);
  list-style: none;
}
.nav-menu li:hover > .dropdown,
.nav-menu li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 8px 12px; font-size: .88rem; border-radius: 6px; }

.navbar__tools { display: flex; align-items: center; gap: var(--s3); margin-left: var(--s3); }
.navbar__search {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  width: 38px; height: 38px; display: grid; place-items: center;
  cursor: pointer; color: var(--muted); transition: all var(--t);
}
.navbar__search:hover { border-color: var(--primary); color: var(--primary); }
.navbar__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; cursor: pointer; margin-left: auto; font-size: 1.1rem; color: var(--ink); }

/* Panel pencarian (slide down) */
.search-panel {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: var(--s5) 0;
  display: none;
  z-index: 1019;
}
.search-panel.is-open { display: block; animation: fadeIn var(--t); }
.search-panel form { display: flex; gap: var(--s3); max-width: 720px; margin: 0 auto; }
.search-panel input { flex: 1; }

/* ============================================================
   HERO SLIDER (autoplay + indikator)
   ============================================================ */
.hero { position: relative; background: var(--primary-dark); overflow: hidden; }
.hero__viewport { position: relative; }
.hero__track { display: flex; transition: transform var(--t-slow); }
.hero__slide {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
  flex: 0 0 100%;
  width: 100%;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
}
.hero__content { position: relative; padding-block: var(--s8); max-width: 640px; }
.hero__content h1 { color: #fff; font-size: 2.75rem; margin-bottom: var(--s4); text-shadow: 5px 5px 5px black;}
.hero__content p { max-width: 560px; color: rgba(255, 255, 255, .92); font-size: 1.05rem; margin-bottom: var(--s6); }
.hero__content .btn { margin-right: var(--s3); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201, 162, 39, .2);
  border: 1px solid rgba(201, 162, 39, .55);
  color: #f5e6b8;
  padding: 7px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  margin-bottom: var(--s5);
  background: linear-gradient(100deg, rgb(0 0 0 / 40%) 0%, rgba(8, 77, 54, .62) 55%, rgba(8, 77, 54, .28) 100%);
    padding: 10px;
    border-radius: 5px;
}
.hero__nav {
  position: absolute; bottom: var(--s6); left: 50%; transform: translateX(-50%);
  display: flex; gap: var(--s2); z-index: 3;
}
.hero__dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  background: transparent; cursor: pointer; padding: 0;
  transition: all var(--t);
}
.hero__dot.is-active { background: var(--accent); border-color: var(--accent); width: 30px; border-radius: 999px; }
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 1.1rem; cursor: pointer; z-index: 3;
  display: grid; place-items: center; transition: background var(--t);
}
.hero__arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero__arrow--prev { left: var(--s5); }
.hero__arrow--next { right: var(--s5); }

/* ============================================================
   FEATURE BOXES (baris ikon di bawah hero)
   ============================================================ */
.features {
  position: relative;
  z-index: 5;
  margin-top: -48px;
}
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.feature-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: var(--r-md);
  padding: var(--s5);
  box-shadow: var(--shadow-md);
  transition: all var(--t);
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
}
.feature-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--accent); }
.feature-box__icon {
  flex: none;
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: var(--primary-50);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.feature-box h3 { font-size: 1rem; margin: 0 0 4px; }
.feature-box p { font-size: .86rem; color: var(--muted); margin: 0; }

/* ============================================================
   WELCOME / SAMBUTAN
   ============================================================ */
.welcome { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s8); align-items: center; }
.welcome__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.welcome__media img { width: 100%; height: 100%; object-fit: cover; }
.welcome__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s5) var(--s4) var(--s4);
  background: linear-gradient(to top, rgba(8, 52, 38, .94), rgba(8, 52, 38, .72) 55%, rgba(8, 52, 38, 0));
  color: #fff;
}
.welcome__caption strong { display: block; font-size: 1rem; font-weight: 700; }
.welcome__caption span { display: block; font-size: .82rem; color: rgba(255, 255, 255, .82); }
.welcome__media .btn-play {
  position: absolute; inset: 0; margin: auto;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--primary);
  border: none; font-size: 1.5rem; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition: transform var(--t);
}
.welcome__media .btn-play:hover { transform: scale(1.08); }
.welcome h2 { font-size: 1.85rem; }
.welcome__list { list-style: none; padding: 0; margin: var(--s5) 0; }
.welcome__list li { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s3); font-size: .94rem; }
.welcome__list li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: .75rem; font-weight: 700; margin-top: 2px; }

/* ============================================================
   COUNTER BAND (statistik dengan count-up)
   ============================================================ */
.counter-band {
  position: relative;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding-block: var(--s7);
  overflow: hidden;
}
.counter-band::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}
.counter-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); text-align: center; }
.counter-item .num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.counter-item .num::after { content: '+'; color: var(--accent); }
.counter-item .label { margin-top: var(--s2); font-size: .9rem; color: rgba(255,255,255,.85); }

/* ============================================================
   PENGUMUMAN (gaya event list dengan blok tanggal)
   ============================================================ */
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li {
  display: flex;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.event-list li:last-child { border-bottom: none; padding-bottom: 0; }
.event-list__date {
  flex: none;
  width: 62px;
  text-align: center;
  background: var(--primary-50);
  border-radius: var(--r-sm);
  padding: var(--s2) 0;
  color: var(--primary-dark);
}
.event-list__date .d { display: block; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; line-height: 1; }
.event-list__date .m { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.event-list__body h4 { margin: 0 0 4px; font-size: .98rem; }
.event-list__body h4 a { color: var(--ink); }
.event-list__body h4 a:hover { color: var(--primary); }
.event-list__body p { margin: 0; font-size: .85rem; color: var(--muted); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s5);
  margin-bottom: var(--s5);
  box-shadow: var(--shadow-sm);
}
.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: var(--s4);
  padding-bottom: var(--s2);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.mini-list li:last-child { border-bottom: none; }
.mini-list a { font-weight: 600; font-size: .92rem; }
.mini-list small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s7) var(--s8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(201, 162, 39, .18);
}
.cta-band h2 { color: #fff; margin: 0; font-size: 1.75rem; position: relative; }
.cta-band p { margin: var(--s2) 0 0; color: rgba(255,255,255,.85); position: relative; }
.cta-band .btn { position: relative; }

/* ============================================================
   QUOTE BAND (rotator motivasi)
   ============================================================ */
.quote-band {
  position: relative;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding-block: var(--s8);
  overflow: hidden;
  text-align: center;
}
.quote-band::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}
.quote-band .container { position: relative; }
.quote-band__mark {
  display: block;
  font-family: var(--font-heading);
  font-size: 5.5rem;
  line-height: .6;
  color: var(--accent);
  margin-bottom: var(--s3);
}
.quote-band__viewport { position: relative; min-height: 1px; }
.quote-band__slide {
  margin: 0;
  display: none;
  opacity: 0;
  transition: opacity .5s ease;
}
.quote-band__slide.is-active { display: block; opacity: 1; }
.quote-band__slide blockquote {
  margin: 0 auto;
  max-width: 760px;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.55;
  font-style: italic;
  color: #fff;
}
.quote-band__slide figcaption {
  margin-top: var(--s4);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--accent);
}
.quote-band__dots {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  margin-top: var(--s5);
}
.quote-band__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .2s, width .25s, border-radius .25s;
}
.quote-band__dot:hover { background: rgba(255,255,255,.6); }
.quote-band__dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--accent);
}
@keyframes quoteFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--primary-dark); color: rgba(255, 255, 255, .8); margin-top: var(--s8); }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: var(--s4); }
.footer a { color: rgba(255, 255, 255, .8); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 3fr; gap: var(--s7); padding-block: var(--s8); }
.footer__brand { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.footer__brand img { width: 50px; height: 50px; object-fit: contain; }
.footer__brand strong { color: #fff; font-family: var(--font-heading); font-size: 1.1rem; }
.footer p { font-size: .9rem; line-height: 1.8; color: rgba(255,255,255,.75); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: var(--s2); font-size: .9rem; }
.footer ul li a { display: inline-flex; align-items: center; gap: 6px; }
.footer ul li a::before { content: '›'; color: var(--accent); font-weight: 700; }
.footer__sosmed { display: flex; gap: var(--s2); margin-top: var(--s4); }
.footer__sosmed a {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12); font-size: .78rem; font-weight: 700;
  transition: background var(--t);
}
.footer__sosmed a:hover { background: var(--accent); color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: var(--s4);
  font-size: .85rem;
  text-align: center;
}
.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

/* ---------- Visitor counter (pemantauan traffic) ---------- */
.vcounter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 5px 14px;
  border-radius: 99px;
}
.vcounter__item { display: inline-flex; align-items: center; gap: 5px; }
.vcounter__item .ico { font-size: .7rem; color: #4ade80; }
.vcounter__item .num { font-weight: 700; color: #fff; }
.vcounter__item .lbl { opacity: .8; }
.vcounter__sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .2); }
@media (max-width: 560px) {
  .vcounter { font-size: .7rem; gap: 7px; padding: 4px 10px; }
  .vcounter__item .lbl { display: none; }
}

/* ---------- Credit @natrima.Web.ID ----------
   Badge fixed di pojok kiri bawah. Teks bergradien merah-putih
   yang mengalir ke kanan (seperti gelombang bendera) + animasi
   kibaran lembut.
*/
.nat-cls {
  /* position: fixed; */
  /* left: 16px; */
    /* bottom: 0; */
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(6px);
    transform-origin: right center;
    animation: natKibar 4s ease-in-out infinite;
}
.nat-cls::before {
  content: '';
  width: 16px; height: 11px;
  border-radius: 2px;
  flex: none;
  background: linear-gradient(to bottom, #e2342f 0 50%, #ffffff 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.nat-cls__text {
  background-image: linear-gradient(
    100deg,
    #e2342f 0%, #e2342f 18%,
    #ffffff 18%, #ffffff 38%,
    #e2342f 38%, #e2342f 58%,
    #ffffff 58%, #ffffff 78%,
    #e2342f 78%, #e2342f 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: natGelombang 3s linear infinite;
  padding-block: 2px;
}
.nat-cls:hover { background: rgba(8, 52, 38, 1); }

/* Gradien merah-putih mengalir ke kanan terus-menerus. */
@keyframes natGelombang {
  from { background-position: 0% 50%; }
  to   { background-position: 220% 50%; }
}

/* Kibaran bendera: miring-goyang lembut pada sumbu bawah-kiri. */
@keyframes natKibar {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  25%      { transform: rotate(1.4deg)  translateY(-3px); }
  50%      { transform: rotate(-0.8deg) translateY(0); }
  75%      { transform: rotate(1deg)    translateY(-2px); }
}

@media (max-width: 560px) {
  .nat-cls { left: 10px; bottom: 10px; font-size: .72rem; padding: 7px 13px; }
}

.footer__map { border-radius: var(--r-sm); overflow: hidden; height: 180px; }
.footer__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   FLOATING BUTTONS (WhatsApp + scroll-to-top)
   ============================================================ */
.btn-wa {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 1030;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t);
}
.btn-wa:hover { transform: scale(1.08); color: #fff; }
.btn-top {
  position: fixed;
  right: 20px; bottom: 88px;
  z-index: 1030;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: all var(--t);
}
.btn-top.is-visible { opacity: 1; visibility: visible; }
.btn-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: .85rem; color: var(--muted);
  padding: var(--s4) 0;
  margin: 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span:not(:last-child)::after { content: '›'; margin-left: 8px; color: var(--line); }
.page-header {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: var(--s7) 0;
  margin-bottom: var(--s6);
}
.page-header h1 { color: #fff; margin: 0 0 var(--s2); font-size: 1.9rem; }
.page-header p { margin: 0; color: rgba(255,255,255,.85); }
.page-header .breadcrumb { color: rgba(255,255,255,.7); padding: var(--s3) 0 0; }
.page-header .breadcrumb a { color: rgba(255,255,255,.7); }
.page-header .breadcrumb a:hover { color: #fff; }

/* ============================================================
   ARTICLE / DETAIL POST
   ============================================================ */
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s7); box-shadow: var(--shadow-sm); }
.article h1 { font-size: 1.9rem; }
.article__meta { display: flex; gap: var(--s4); flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin-bottom: var(--s5); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.article img { border-radius: var(--r-sm); margin: var(--s5) 0; }
.article p { margin-bottom: var(--s4); line-height: 1.8; }
.article h2, .article h3 { margin-top: var(--s6); }
.article ul, .article ol { line-height: 1.8; }

/* Komentar */
.komentar-item { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.komentar-item:last-child { border-bottom: none; }
.komentar-item strong { font-family: var(--font-heading); }
.komentar-item small { color: var(--muted); margin-left: var(--s2); }
.komentar-item p { margin: var(--s2) 0 0; font-size: .94rem; }
.form-komentar input, .form-komentar textarea { margin-bottom: var(--s3); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: var(--s7); list-style: none; padding: 0; flex-wrap: wrap; }
.pagination a, .pagination strong {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 600; color: var(--ink); background: var(--surface);
  transition: all var(--t);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active strong { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   TABEL DATA (prestasi)
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 760px; margin: 0; }
.table th, .table td { padding: var(--s3) var(--s4); text-align: left; border-bottom: 1px solid var(--line); }
.table thead th {
  background: var(--primary-50); color: var(--primary-dark);
  font-family: var(--font-heading); font-size: .8rem; letter-spacing: .03em; text-transform: uppercase;
  border-bottom: 2px solid var(--primary);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--primary-50); }

/* ============================================================
   TABS (prestasi per tahun)
   ============================================================ */
.tabs__nav { display: flex; gap: var(--s2); flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: var(--s6); }
.tabs__btn {
  background: none; border: none; cursor: pointer;
  padding: var(--s3) var(--s4); font-family: var(--font-heading); font-weight: 600;
  color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all var(--t);
}
.tabs__btn:hover { color: var(--primary); }
.tabs__btn[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.tabs__panel { display: none; animation: fadeIn var(--t); }
.tabs__panel.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   KARTU PROFIL (guru/pegawai/siswa) + dialog detail
   ============================================================ */
.person-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s6) var(--s4); text-align: center; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: all var(--t); height: 100%;
}
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.person-card__foto {
  width: 118px; height: 118px; margin: 0 auto var(--s4);
  border-radius: 50%; overflow: hidden; background: var(--primary-50);
  border: 3px solid var(--primary-50);
  transition: border-color var(--t);
}
.person-card:hover .person-card__foto { border-color: var(--primary-100); }
.person-card__foto img { width: 100%; height: 100%; object-fit: cover; }
.person-card__body strong { display: block; font-family: var(--font-heading); font-size: 1rem; }
.person-card__body span { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }

.person-dialog { width: min(480px, 92vw); padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); color: var(--ink); }
.person-dialog::backdrop { background: rgba(11, 30, 22, .55); }
.person-dialog__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); background: var(--primary-50);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.person-dialog__head h3 { margin: 0; font-size: 1.1rem; color: var(--primary-dark); }
.person-dialog__close {
  background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer;
  color: var(--muted); padding: 2px 8px; border-radius: var(--r-sm);
}
.person-dialog__close:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.person-dialog__body { padding: var(--s5); display: flex; gap: var(--s5); align-items: flex-start; }
.person-dialog__foto { width: 130px; flex: none; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.person-dialog__data { margin: 0; display: grid; gap: var(--s3); width: 100%; }
.person-dialog__data > div { display: grid; grid-template-columns: 110px 1fr; gap: var(--s3); font-size: .9rem; }
.person-dialog__data dt { color: var(--muted); }
.person-dialog__data dd { margin: 0; font-weight: 600; }

/* ============================================================
   GALERI VIDEO
   ============================================================ */
.video-card {
  display: block; text-align: left; width: 100%; padding: 0; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--t); font: inherit; color: inherit; height: 100%;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.video-card__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--line); }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(11, 30, 22, .35); color: #fff; font-size: 2rem; transition: background var(--t);
}
.video-card:hover .video-card__play { background: rgba(11, 110, 79, .65); }
.video-card__body { padding: var(--s4); display: grid; gap: 4px; }
.video-card__body strong { font-family: var(--font-heading); font-size: 1rem; }
.video-card__body small { color: var(--muted); font-size: .82rem; }

/* ---------- Studio playlist (galeri video) ---------- */
.yt-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: var(--s6);
  align-items: start;
}
/* Grid item default min-width:auto bisa meluap jika konten panjang. */
.yt-studio__main, .yt-studio__side { min-width: 0; }

.yt-player {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
/* Rasio 16:9 responsif untuk iframe pemutar. */
.yt-player__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.yt-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.yt-player__empty { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .9rem; }
.yt-player__bar {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s4) var(--s5); border-top: 1px solid var(--line);
}
.yt-player__info { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.yt-player__info strong {
  font-family: var(--font-heading); font-size: 1.05rem; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yt-player__info small { color: var(--muted); font-size: .82rem; }
.yt-more { margin: var(--s6) 0 var(--s4); font-family: var(--font-heading); font-size: 1.1rem; color: var(--ink); }

.yt-listhead {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
  padding: 0 2px var(--s3);
}
.yt-listhead strong { font-family: var(--font-heading); font-size: .95rem; color: var(--ink); }
.yt-listhead small { color: var(--muted); font-size: .74rem; }

.yt-channel {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4); margin-bottom: var(--s4);
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  border-radius: var(--r-md); color: #fff; box-shadow: var(--shadow-sm);
}
.yt-channel__avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); }
.yt-channel__body { flex: 1 1 auto; min-width: 0; }
.yt-channel__body strong { display: block; font-size: .95rem; line-height: 1.3; }
.yt-channel__body small { color: rgba(255,255,255,.8); font-size: .78rem; }

.yt-list {
  display: grid; gap: var(--s3);
  max-height: 560px; overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: var(--primary-100) transparent;
}
.yt-list::-webkit-scrollbar { width: 8px; }
.yt-list::-webkit-scrollbar-thumb { background: var(--primary-100); border-radius: 999px; }

.yt-item {
  display: flex; gap: var(--s3); align-items: flex-start; width: 100%; padding: 0;
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: all var(--t);
}
.yt-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateX(3px); }
.yt-item__thumb { position: relative; flex: none; width: 132px; aspect-ratio: 16 / 9; background: var(--line); }
.yt-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-item__now {
  position: absolute; inset: 0; display: none; place-items: center;
  background: rgba(11, 30, 22, .45); color: #fff; font-size: 1.1rem;
}
.yt-item.is-active { border-color: var(--primary); background: var(--primary-50, #eaf4ef); box-shadow: var(--shadow-sm); }
.yt-item.is-active .yt-item__now { display: grid; }
.yt-item.is-active .yt-item__title { color: var(--primary); }
.yt-item__live { display: none; margin-top: 4px; font-size: .7rem; font-weight: 700; color: var(--primary); }
.yt-item.is-active .yt-item__live { display: inline; }
.yt-item__body { padding: var(--s3) var(--s3) var(--s3) 0; min-width: 0; }
.yt-item__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-family: var(--font-heading); font-size: .92rem; line-height: 1.35; color: var(--ink);
}
.yt-item:hover .yt-item__title { color: var(--primary); }
.yt-item__meta { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; }

@media (max-width: 900px) {
  .yt-studio { grid-template-columns: 1fr; }
  .yt-list { max-height: none; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 480px) {
  .yt-item { flex-direction: column; }
  .yt-item__thumb { width: 100%; }
  .yt-item__body { padding: var(--s3); }
}

/* ============================================================
   GRID FOTO (fasilitas & galeri)
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.gallery-grid__item {
  display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--line);
}
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.gallery-grid__item:hover img { transform: scale(1.06); }

.fasilitas { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s6); margin-top: var(--s5); box-shadow: var(--shadow-sm); }
.fasilitas[hidden] { display: none; }
.fasilitas__nama { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s3); }
.fasilitas__deskripsi { color: var(--muted); margin: 0 0 var(--s3); }

/* ============================================================
   EKSKUL & KARYA
   ============================================================ */
.ekskul-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s6); box-shadow: var(--shadow-sm); transition: all var(--t); height: 100%; }
.ekskul-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); transform: translateY(-4px); }
.ekskul-card__head { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s3); }
.ekskul-card__logo { width: 64px; height: 64px; flex: none; object-fit: contain; border-radius: var(--r-sm); background: var(--primary-50); padding: 6px; }
.ekskul-card__nama { margin: 0 0 4px; font-size: 1.1rem; }
.ekskul-card__deskripsi { color: var(--muted); font-size: .92rem; margin: 0 0 var(--s4); }
.ekskul-card__info { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin: 0 0 var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.ekskul-card__info > div { font-size: .86rem; }
.ekskul-card__info dt { color: var(--muted); }
.ekskul-card__info dd { margin: 0; font-weight: 600; }

.karya-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--t); height: 100%;
}
.karya-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.karya-card__thumb { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--line); }
.karya-card__thumb--icon { display: grid; place-items: center; background: var(--primary-50); font-size: 2.4rem; color: var(--primary); }
.karya-card__body { padding: var(--s4); display: grid; gap: 6px; }
.karya-card__body strong { font-family: var(--font-heading); font-size: 1rem; }
.karya-card__body small { color: var(--muted); font-size: .82rem; }

.karya { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s7); box-shadow: var(--shadow-sm); }
.karya__head { margin-bottom: var(--s5); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.karya__judul { font-size: 1.7rem; margin: var(--s3) 0 var(--s2); }
.karya__meta { color: var(--muted); font-size: .92rem; margin: 0; }
.karya__media { margin: 0 0 var(--s5); border-radius: var(--r-sm); overflow: hidden; }
.karya__media--img { text-align: center; }
.karya__media--img img { margin: 0 auto; max-height: 560px; object-fit: contain; }
.karya__media--video iframe, .karya__media video { width: 100%; aspect-ratio: 16 / 9; border: none; border-radius: var(--r-sm); background: #000; }
.karya__deskripsi { line-height: 1.8; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 1050; display: none; place-items: center; background: rgba(11, 30, 22, .9); padding: var(--s6); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: var(--r-sm); }
.lightbox__close {
  position: absolute; top: var(--s5); right: var(--s5); width: 44px; height: 44px;
  border-radius: 50%; border: none; cursor: pointer; font-size: 1.6rem; line-height: 1;
  background: rgba(255,255,255,.16); color: #fff;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }

/* ============================================================
   FORM PENCARIAN & KONTAK
   ============================================================ */
.search-box { max-width: 480px; margin: 0 auto var(--s7); }
.search-box__row { display: flex; gap: var(--s2); }
.search-box__row input { flex: 1; }
.search-box--siswa { max-width: 640px; margin: 0 0 var(--s5); }
.search-box--siswa input[type="search"] { padding-inline: var(--s4); }

.kontak-info p { color: var(--muted); line-height: 1.8; }
.kontak-map {
  margin-top: var(--s5);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 260px;
}
.kontak-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.komentar-item { border-bottom: 1px solid var(--line); padding: var(--s3) 0; }
.komentar-item p { margin: var(--s1) 0 0; font-size: .94rem; }
.komentar-item time { color: var(--muted); margin-left: var(--s2); font-size: .8rem; }

.komentar-form input,
.komentar-form textarea {
  width: 100%;
  margin-bottom: var(--s3);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font: inherit;
  color: inherit;
  background: #fff;
}

.validation-box { border-color: var(--danger); color: var(--danger); text-align: left; }
.validation-box ul { margin: 0; padding-left: 1.2rem; }

.sidebar-list { padding: 0; list-style: none; }
.sidebar-list li { border-bottom: 1px solid var(--line); padding: var(--s2) 0; }
.sidebar-list a { font-weight: 600; font-size: .9rem; }
.sidebar-list small { display: block; color: var(--muted); font-size: .8rem; }

/* ============================================================
   UTILITAS
   ============================================================ */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-sm     { font-size: .9rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--s1); }
.mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--s5); }
.mt-7 { margin-top: var(--s7); }
.mb-5 { margin-bottom: var(--s5); }
.mt-auto { margin-top: auto; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.hide { display: none !important; }
hr { border: none; border-top: 1px solid var(--line); margin: var(--s6) 0; }

/* ============================================================
   RESPONSIF
   ============================================================ */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6); }
}

@media (max-width: 992px) {
  .grid--sidebar { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__content h1 { font-size: 2.1rem; }
  .welcome { grid-template-columns: 1fr; }
  .welcome__media { max-height: 340px; }
}

@media (max-width: 768px) {
  .container { padding-inline: var(--s4); }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .topbar__info { display: none; }
  .navbar__toggle { display: block; }
  .navbar__tools { display: none; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: var(--s3);
    margin: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .caret { display: block; }
  .nav-menu .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0;
    padding: 0 0 var(--s2); margin: 0;
    max-height: 0; overflow: hidden;
    transition: max-height var(--t);
  }
  .nav-menu .has-drop.is-open > .dropdown { max-height: 320px; }
  .hero__slide { min-height: 420px; }
  .hero__content h1 { font-size: 1.65rem; }
  .hero__content p { font-size: .95rem; }
  .hero__arrow { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .article, .karya { padding: var(--s5); }
  .cta-band { padding: var(--s6); }
  .cta-band h2 { font-size: 1.4rem; }
  h1 { font-size: 1.55rem; }
  .section { padding-block: var(--s6); }
  .person-dialog__body { flex-direction: column; }
  .person-dialog__foto { width: 100%; max-width: 200px; }
  .ekskul-card__info { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .welcome__media { max-height: 260px; }
}

@media (max-width: 480px) {
  .counter-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .hero__content .btn { width: 100%; margin: 0 0 var(--s3); }
}

/* ============================================================
   PAGINATION (markup default CI4: ul.pagination > li > a)
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s2); flex-wrap: wrap;
  list-style: none; margin: var(--s5) 0 0; padding: 0;
}
.pagination li { display: flex; }
.pagination a, .pagination strong {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 600; color: var(--ink);
  background: var(--surface); text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-50); }
.pagination li.active a {
  background: var(--primary); border-color: var(--primary); color: #fff;
  pointer-events: none;
}
.pagination .disabled { opacity: .45; pointer-events: none; }

/* ============================================================
   SOSMED IKON (topbar & footer)
   ============================================================ */
.topbar__sosmed a svg,
.footer__sosmed a svg { width: 15px; height: 15px; }
.footer__sosmed a svg { width: 17px; height: 17px; }

/* Warna brand asli saat hover */
.topbar__sosmed a:hover, .footer__sosmed a:hover { color: #fff; }
.sosmed-fb:hover  { background: #1877f2 !important; }
.sosmed-ig:hover  { background: #e1306c !important; }
.sosmed-x:hover   { background: #000 !important; }
.sosmed-yt:hover  { background: #ff0000 !important; }

/* ============================================================
   BERITA HEADLINE (gaya kemenag.go.id)
   ============================================================ */
.berita-headline { margin-bottom: var(--s5); }
.berita-headline__media {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 7;
  background: var(--primary-50, #eaf3ef);
}
.berita-headline__media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform var(--t);
}
.berita-headline__media:hover img { transform: scale(1.03); }
.berita-headline__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 32, 23, .94) 0%,
    rgba(6, 32, 23, .55) 45%,
    rgba(6, 32, 23, .03) 100%
  );
}
.berita-headline__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s5);
  color: #fff;
  display: flex; flex-direction: column; gap: var(--s2);
}
.berita-headline__caption .badge { align-self: flex-start; }
.berita-headline__caption h3 {
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0;
  font-family: var(--font-heading);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.berita-headline__meta {
  display: flex; flex-wrap: wrap; gap: var(--s4);
  font-size: .82rem;
  opacity: .92;
}

/* ============================================================
   SIDEBAR: BERITA POPULER (top 10)
   ============================================================ */
.populer-list { list-style: none; margin: 0; padding: 0; }
.populer-list li {
  display: flex;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px dashed var(--line);
}
.populer-list li:last-child { border-bottom: none; padding-bottom: 0; }
.populer-list li:first-child { padding-top: 0; }
.populer-list__no {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: .78rem; font-weight: 700;
  font-family: var(--font-heading);
}
.populer-list li:nth-child(1) .populer-list__no { background: #c9a227; }
.populer-list li:nth-child(2) .populer-list__no { background: #a8a8a8; }
.populer-list li:nth-child(3) .populer-list__no { background: #b96a2f; }
.populer-list a {
  display: flex; flex-direction: column; gap: 2px;
  text-decoration: none; min-width: 0;
}
.populer-list__judul {
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t);
}
.populer-list a:hover .populer-list__judul { color: var(--primary); }
.populer-list__meta {
  display: flex; flex-wrap: wrap; gap: var(--s3);
  font-size: .74rem;
  color: var(--muted);
}

/* Headline lebih kompak di layar kecil */
@media (max-width: 768px) {
  .berita-headline__media { aspect-ratio: 16 / 9; }
  .berita-headline__caption { padding: var(--s4); }
  .berita-headline__caption h3 { font-size: 1.1rem; }
}

/* ============================================================
   REDUCED MOTION (aksesibilitas)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
