/* =========================================================
   MAN Insan Cendekia Lombok Timur — Tema "Slate Mist"
   Palet: hijau zamrud, biru, abu-biru lembut (tidak sepekat sebelumnya)
   ========================================================= */

:root {
  --ink: #0d0d0d;
  --ink-soft: #1c1c1c;
  --ink-muted: #4a5560;

  --bg: #ffffff;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --line: rgba(4, 120, 87, 0.28);
  --line-soft: rgba(29, 78, 216, 0.16);

  --emerald: #10b981;
  --emerald-deep: #047857;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --on-accent: #ffffff;

  --grad: linear-gradient(120deg, #047857 0%, #0f766e 42%, #1d4ed8 100%);
  --grad-soft: linear-gradient(120deg, rgba(4, 120, 87, 0.14), rgba(29, 78, 216, 0.12));

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --shadow: 0 22px 50px -28px rgba(4, 120, 87, 0.22);
  --shadow-soft: 0 12px 32px -22px rgba(29, 78, 216, 0.18);

  --max: 1180px;
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* latar dekoratif: glow hijau & biru di atas abu-biru lembut */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(780px 520px at 10% -8%, rgba(16, 185, 129, 0.18), transparent 62%),
    radial-gradient(820px 560px at 94% 2%, rgba(37, 99, 235, 0.16), transparent 64%),
    radial-gradient(700px 620px at 50% 108%, rgba(20, 184, 166, 0.13), transparent 66%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 60%, #ffffff 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(4, 120, 87, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.07) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 74%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 880px; }

.section { padding: 92px 0; }
.section-sm { padding: 64px 0; }
.section-tight-top { padding-top: 0; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line-soft);
  background: #ffffff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img {
  width: 42px; height: 42px;
  object-fit: contain;
  border-radius: 11px;
  background: rgba(16, 185, 129, 0.1);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--ink); background: rgba(16, 185, 129, 0.1); }
.nav a.active { color: #065f46; background: rgba(16, 185, 129, 0.16); }

.header-cta { display: inline-flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: #ffffff;
  padding: 16px 0 24px;
}
.mobile-panel.open { display: block; }
.mobile-panel a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-weight: 500;
}
.mobile-panel a:last-child { border-bottom: none; }

/* ---------------- Tombol ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: var(--on-accent);
  box-shadow: 0 16px 34px -18px rgba(16, 185, 129, 0.85);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -18px rgba(37, 99, 235, 0.85); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: rgba(16, 185, 129, 0.5); background: rgba(16, 185, 129, 0.1); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 76px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--emerald), transparent);
}

.hero h1 { margin-bottom: 20px; }
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-lead {
  font-size: 1.06rem;
  max-width: 32em;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.hero-fact strong {
  display: block;
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 700;
}
.hero-fact span { font-size: 0.78rem; color: var(--ink-muted); letter-spacing: 0.04em; }

/* Panel seni di kanan hero */
.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 78% 12%, rgba(37, 99, 235, 0.34), transparent 58%),
    radial-gradient(100% 100% at 12% 88%, rgba(16, 185, 129, 0.34), transparent 60%),
    linear-gradient(150deg, #ffffff 0%, #f4fbf9 52%, #f5f8ff 100%);
  box-shadow: var(--shadow);
  padding: 40px 34px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(4, 120, 87, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 60% 35%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 60% 35%, #000, transparent 72%);
  pointer-events: none;
}
.hero-art-mark {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(16, 185, 129, 0.45));
}
.hero-art-quote {
  position: relative;
  z-index: 1;
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  max-width: 22em;
  margin: 26px 0 0;
}
.hero-art-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 500;
  color: #1c1c1c;
  backdrop-filter: blur(10px);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(120deg, var(--emerald), var(--cyan));
}

/* ---------------- Judul section ---------------- */
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { margin-bottom: 0; }

/* ---------------- Kartu ---------------- */
.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.34);
  background: rgba(255, 255, 255, 0.065);
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: 0.94rem; }

.grid { display: grid; gap: 24px; }
.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-2-1 { grid-template-columns: 1.25fr 1fr; }

.icon-tile {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--grad-soft);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #0f766e;
}
.icon-tile svg { width: 23px; height: 23px; }

.num-badge {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #0f766e;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

/* ---------------- Statistik ringkas ---------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.09), rgba(37, 99, 235, 0.09));
  backdrop-filter: blur(18px);
  padding: 34px 30px;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { font-size: 0.82rem; color: var(--ink-muted); }

/* ---------------- Langkah / timeline ---------------- */
.steps { display: grid; gap: 20px; }
.step {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: #ffffff;
}
.step-no {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--on-accent);
  background: var(--grad);
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: 0.94rem; }

/* ---------------- Galeri / fasilitas art ---------------- */
.media {
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 20px;
  background:
    radial-gradient(120% 120% at 80% 10%, rgba(37, 99, 235, 0.5), transparent 60%),
    radial-gradient(100% 100% at 10% 90%, rgba(16, 185, 129, 0.5), transparent 62%),
    linear-gradient(150deg, #eafaf5, #eef3fe);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, 0.5) 50%, transparent 54%);
}
.media.alt {
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(20, 184, 166, 0.55), transparent 62%),
    radial-gradient(100% 100% at 88% 86%, rgba(37, 99, 235, 0.45), transparent 62%),
    linear-gradient(150deg, #e8f9f3, #eff4ff);
}
.media.alt-2 {
  background:
    radial-gradient(120% 120% at 70% 80%, rgba(96, 165, 250, 0.42), transparent 62%),
    radial-gradient(100% 100% at 25% 12%, rgba(4, 120, 87, 0.6), transparent 64%),
    linear-gradient(150deg, #eef4ff, #e9f9f3);
}
.media-tag {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(12, 26, 40, 0.8);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

/* ---------------- Berita ---------------- */
.post {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 22px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.post:hover { border-color: rgba(37, 99, 235, 0.4); transform: translateY(-3px); }
.post-date {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--grad-soft);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 14px 10px;
  height: fit-content;
}
.post-date strong { display: block; font-size: 1.5rem; line-height: 1; color: var(--ink); }
.post-date span { font-size: 0.72rem; color: var(--ink-muted); letter-spacing: 0.14em; text-transform: uppercase; }
.post h3 { margin-bottom: 8px; font-size: 1.06rem; }
.post p { margin-bottom: 12px; font-size: 0.93rem; }
.post-meta { font-size: 0.76rem; color: #0f766e; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

/* ---------------- CTA besar ---------------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 54px 48px;
  overflow: hidden;
  background:
    radial-gradient(90% 140% at 88% 10%, rgba(37, 99, 235, 0.42), transparent 60%),
    radial-gradient(90% 140% at 8% 92%, rgba(16, 185, 129, 0.42), transparent 60%),
    linear-gradient(140deg, #0f766e, #1d4ed8);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-band h2 { margin-bottom: 10px; max-width: 22em; }
.cta-band p { margin-bottom: 0; max-width: 40em; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* CTA band sengaja tetap berupa blok aksen hijau-biru yang lebih pekat,
   jadi teks di dalamnya memakai warna terang agar tetap terbaca. */
.cta-band h2 { color: #ffffff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); }
.cta-band .eyebrow { color: #c7f6e4; }
.cta-band .eyebrow::before { background: linear-gradient(90deg, #c7f6e4, transparent); }
.cta-band .btn-ghost {
  background: rgba(4, 26, 22, 0.38);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}
.cta-band .btn-ghost:hover {
  background: rgba(4, 26, 22, 0.55);
  border-color: #ffffff;
}

/* ---------------- Halaman dalam ---------------- */
.page-hero {
  position: relative;
  padding: 62px 0 46px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 72px;
}
.page-hero h1 { margin-bottom: 16px; max-width: 24em; }
.page-hero p { max-width: 46em; margin-bottom: 0; }
.crumbs {
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.crumbs a:hover { color: #0f766e; }
.crumbs span { margin: 0 8px; color: rgba(255, 255, 255, 0.22); }

.prose h3 { margin-top: 34px; }
.prose ul { margin: 0 0 1rem; padding-left: 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--emerald); }

.list-clean { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list-clean li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  align-items: start;
}
.tick {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #0f766e;
  font-size: 0.66rem;
  font-weight: 700;
  margin-top: 3px;
}

/* ---------------- Formulir ---------------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.04em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.06);
}
.field select option { background: #ffffff; color: var(--ink); }
.form-note { font-size: 0.8rem; color: var(--ink-muted); }

.form-alert {
  display: none;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  font-size: 0.88rem;
  color: #0b4f3c;
}
.form-alert.show { display: block; }

/* ---------------- Surat sambutan ---------------- */
.letter {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 44px 46px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.letter::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0.9;
}
.letter .salam {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 1.6rem;
}
.letter .salam:last-of-type { margin-top: 2rem; margin-bottom: 0; }
.letter p {
  font-size: 1rem;
  line-height: 1.88;
  margin-bottom: 1.35rem;
}
.letter p:last-child { margin-bottom: 0; }
.letter .drop::first-letter {
  float: left;
  font-size: 3.1rem;
  line-height: 0.95;
  font-weight: 700;
  margin: 4px 12px 0 0;
  color: #10b981;
}

.signature {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  text-align: right;
}
.signature .sig-role { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 6px; }
.signature .sig-name {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.pullquote {
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  padding: 4px 0 4px 22px;
  margin: 0 0 1.2rem;
}
.pullquote p {
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.62;
  color: var(--ink);
  margin: 0;
}

.portrait {
  position: relative;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background:
    radial-gradient(120% 120% at 78% 12%, rgba(37, 99, 235, 0.42), transparent 60%),
    radial-gradient(100% 100% at 12% 88%, rgba(16, 185, 129, 0.42), transparent 62%),
    linear-gradient(150deg, #ffffff, #f3faf9);
}
.portrait span {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, 0.5) 50%, transparent 54%);
}

@media (max-width: 680px) {
  .letter { padding: 30px 22px; }
  .letter .drop::first-letter { font-size: 2.4rem; }
  .signature { text-align: left; }
}

/* ---------------- Pengumuman ---------------- */
.pengumuman {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(202, 138, 4, 0.3);
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.1), #ffffff 45%);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.26s ease, border-color 0.26s ease;
}
.pengumuman:hover { transform: translateY(-3px); border-color: rgba(251, 191, 36, 0.5); }
.pengumuman-kepala {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.badge-pengumuman {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a5a00;
  border: 1px solid rgba(251, 191, 36, 0.42);
  background: rgba(251, 191, 36, 0.13);
}
.pengumuman-kepala .pengumuman-tanggal { font-size: 0.8rem; color: var(--ink-muted); }
.pengumuman h3 { margin-bottom: 10px; font-size: 1.12rem; }
.pengumuman p { font-size: 0.94rem; margin-bottom: 14px; }
.pengumuman .baca {
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f766e;
  letter-spacing: 0.02em;
}
.pengumuman .baca:hover { color: #047857; }

.post h3 a:hover, .card h3 a:hover { color: #0f766e; }

/* ---------------- Gambar cover pada daftar & detail ---------------- */
.post-cover,
.pengumuman-cover,
.kartu-cover {
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #f7fafc;
  line-height: 0;
}
.post-cover img,
.pengumuman-cover img,
.kartu-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.post-cover:hover img,
.pengumuman-cover:hover img,
.kartu-cover:hover img { transform: scale(1.03); }

/* Kartu berita yang punya cover: gambar di kiri, teks di kanan */

.post-cover { margin-bottom: 0; }
.pengumuman-cover { margin: 0 0 18px; }
.kartu-cover { margin: 0 0 16px; }

@media (min-width: 720px) {
  .post.ada-cover {
    grid-template-columns: 220px 108px 1fr;
    align-items: start;
  }
}
@media (max-width: 719px) {
  .post.ada-cover .post-cover { margin-bottom: 4px; }
}

.detail-cover {
  margin: 0 0 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  line-height: 0;
}
.detail-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

.detail-gambar-tambahan {
  margin: 26px 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}
.detail-gambar-tambahan img { width: 100%; display: block; }

/* ---------------- Kotak informasi penting ---------------- */
.info-penting {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(4, 120, 87, 0.38);
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.09), #ffffff 55%);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  padding: 26px 30px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-soft);
}
.info-penting::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--grad);
}
.info-penting h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  color: var(--ink);
}
.info-penting p { margin-bottom: 0; font-size: 1rem; }
.info-penting b { color: var(--ink); }

/* ---------------- Foto orang (guru & pejabat) ---------------- */
.orang { display: inline-flex; align-items: center; gap: 12px; }
.orang-foto {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px -14px rgba(4, 120, 87, 0.5);
}
.orang-inisial {
  width: 46px; height: 46px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0b6b57;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(4, 120, 87, 0.28);
}
.orang-nama { color: var(--ink); font-weight: 600; }

.struktur-foto {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
  border: 2px solid rgba(4, 120, 87, 0.28);
  box-shadow: 0 12px 26px -18px rgba(4, 120, 87, 0.55);
}
.struktur-inisial {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b6b57;
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(4, 120, 87, 0.26);
}

/* ---------------- Permohonan izin siswa ---------------- */
.riwayat-izin { display: grid; gap: 16px; }
.kartu-izin {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.kartu-izin-kepala {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.kartu-izin-kepala b { color: var(--ink); font-size: 0.95rem; }
.kartu-izin .kecil { font-size: 0.84rem; color: var(--ink-muted); }

/* ---------------- Kotak unduhan dokumen (PDF) ---------------- */
.unduhan {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin: 0 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(29, 78, 216, 0.22);
  background: #ffffff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.unduhan-ikon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: linear-gradient(120deg, #b91c1c, #dc2626);
}
.unduhan-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 180px;
}
.unduhan-info b {
  font-size: 0.93rem;
  color: var(--ink);
  word-break: break-word;
}
.unduhan-info small { font-size: 0.78rem; color: var(--ink-muted); }

.btn-unduh {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(120deg, #b91c1c, #dc2626);
  box-shadow: 0 14px 30px -18px rgba(185, 28, 28, 0.7);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn-unduh::before { content: "↓"; font-size: 1rem; line-height: 1; }
.btn-unduh:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -18px rgba(185, 28, 28, 0.85);
}
.unduhan-detail { margin: 28px 0 0; }

@media (max-width: 520px) {
  .btn-unduh { width: 100%; justify-content: center; }
}

/* ---------------- Bilah atas (hijau) ---------------- */
.topbar {
  background: #157347;
  color: #ffffff;
  font-size: 0.82rem;
  position: relative;
  z-index: 65;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  flex-wrap: wrap;
  min-height: 40px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.35;
}
.topbar-item svg { width: 16px; height: 16px; flex: none; opacity: 0.95; }
.topbar-item:hover { color: #eafff5; }
.topbar-alamat { text-align: right; }

/* ---------------- Menu turun (dropdown saat kursor diarahkan) ---------------- */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 7px; }
.nav-drop > a::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.7;
}
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 70;
}
.nav-drop-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-drop-menu a:hover { background: rgba(16, 185, 129, 0.1); color: var(--ink); }
.nav-drop-menu a.aktif { background: rgba(29, 78, 216, 0.08); color: #1d4ed8; font-weight: 600; }
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { display: flex; }

/* tingkat kedua yang punya anak lagi: submenu muncul di sisi kanannya */
.nav-drop-menu .nav-drop-anak { position: relative; }
.nav-drop-menu .nav-drop-anak > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-drop-menu .nav-drop-anak > a::after {
  content: "";
  width: 6px; height: 6px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
  flex: none;
}
.nav-drop-menu-anak {
  top: -8px;
  left: calc(100% + 4px);
  min-width: 220px;
}
.nav-drop-menu .nav-drop-anak:hover > .nav-drop-menu-anak,
.nav-drop-menu .nav-drop-anak:focus-within > .nav-drop-menu-anak { display: flex; }

/* butir menu (dan induknya) yang sedang dibuka diberi penanda jelas */
.nav-drop.sedang-aktif > a,
.nav-drop-menu a.aktif { color: #065f46; }
.nav-drop.sedang-aktif > a { background: rgba(16, 185, 129, 0.14); border-radius: 999px; }

@media (max-width: 1180px) and (min-width: 1001px) {
  /* ruang mepet: submenu tingkat ketiga dibuka ke kiri agar tidak terpotong */
  .nav-drop-menu-anak { left: auto; right: calc(100% + 4px); }
}

/* daftar anak menu di panel ponsel */
.mobile-panel .anak {
  padding-left: 30px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.mobile-panel .cucu {
  padding-left: 48px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.mobile-panel a.aktif { color: #065f46; font-weight: 600; background: rgba(16, 185, 129, 0.08); }
.mobile-panel .cucu.aktif, .mobile-panel .anak.aktif { color: #065f46; font-weight: 600; }
.mobile-panel .judul-anak {
  padding: 14px 4px 6px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0f766e;
  font-weight: 700;
}

/* ---------------- Sub-navigasi halaman profil ---------------- */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  margin-bottom: 54px;
}
.subnav a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.subnav a:hover { background: rgba(16, 185, 129, 0.1); color: var(--ink); }
.subnav a.aktif {
  color: #ffffff;
  background: linear-gradient(120deg, #047857, #0f766e 55%, #1d4ed8);
  font-weight: 600;
}

/* ---------------- Bagan struktur organisasi ---------------- */
.struktur-atas {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.struktur-atas .kotak-struktur {
  max-width: 420px;
  width: 100%;
  border-color: rgba(4, 120, 87, 0.42);
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.08), #ffffff 60%);
}
.struktur-garis {
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.struktur-garis::before {
  content: "";
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(4, 120, 87, 0.5), rgba(29, 78, 216, 0.4));
}
.kotak-struktur {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 20px 22px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, border-color 0.24s ease;
}
.kotak-struktur:hover { transform: translateY(-3px); border-color: rgba(29, 78, 216, 0.4); }
.kotak-struktur .peran {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f766e;
  font-weight: 700;
  margin-bottom: 8px;
}
.kotak-struktur h3 { margin-bottom: 6px; font-size: 1.02rem; }
.kotak-struktur p { margin: 0; font-size: 0.88rem; }
.kotak-struktur .nama-orang {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1d4ed8;
  border: 1px dashed rgba(29, 78, 216, 0.4);
  background: rgba(29, 78, 216, 0.06);
}

/* ---------------- Tabel tenaga pendidik ---------------- */
.tabel-situs-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
table.tabel-situs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 640px;
}
table.tabel-situs th,
table.tabel-situs td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.tabel-situs th {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(16, 185, 129, 0.06);
  white-space: nowrap;
}
table.tabel-situs tbody tr:last-child td { border-bottom: none; }
table.tabel-situs tbody tr:hover { background: rgba(29, 78, 216, 0.04); }
table.tabel-situs td.nama-orang-nya { color: var(--ink); font-weight: 600; }
table.tabel-situs td.kosong { color: var(--ink-muted); font-style: italic; }

.catatan-pengelola {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(29, 78, 216, 0.35);
  background: rgba(29, 78, 216, 0.05);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.catatan-pengelola b { color: var(--ink); }

/* ---------------- Kartu tautan profil ---------------- */
.kartu-tautan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.kartu-tautan a {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}
.kartu-tautan a:hover {
  transform: translateY(-4px);
  border-color: rgba(4, 120, 87, 0.4);
  box-shadow: 0 22px 46px -26px rgba(4, 120, 87, 0.35);
}
.kartu-tautan .ikon-tautan {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: #0f766e;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(4, 120, 87, 0.24);
}
.kartu-tautan .ikon-tautan svg { width: 21px; height: 21px; }
.kartu-tautan h3 { font-size: 1.02rem; margin-bottom: 6px; }
.kartu-tautan p { font-size: 0.88rem; margin: 0; }
.kartu-tautan .buka {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1d4ed8;
}

.info-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-row:last-child { border-bottom: none; }
.info-row strong { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.info-row p { margin: 0; font-size: 0.9rem; }

/* ---------------- Accordion (FAQ) ---------------- */
.faq { display: grid; gap: 14px; }
.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.97rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: #0f766e;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 22px 20px; }
.faq-item .faq-body p { margin: 0; font-size: 0.93rem; }

/* ---------------- Footer ---------------- */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #ffffff, #f7fbfa 100%);
  padding: 66px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  margin-bottom: 46px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img {
  width: 46px; height: 46px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
}
.footer-col h4 {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a, .footer-col li { font-size: 0.9rem; color: var(--ink-soft); }
.footer-col a:hover { color: #0f766e; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ---------------- Animasi masuk ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover, .post:hover { transform: none; }
}

/* ---------------- Responsif ---------------- */
@media (max-width: 1000px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { min-height: 360px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .section { padding: 66px 0; }
  .hero { padding: 52px 0 70px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .hero-art { padding: 30px 24px; }
  .cta-band { padding: 36px 26px; }
  .post { grid-template-columns: 1fr; }
  .post-date { grid-template-columns: auto auto; gap: 8px; justify-content: start; align-items: baseline; padding: 10px 14px; }
  .post-date strong { font-size: 1.2rem; }
  .stat-strip { padding: 26px 20px; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px 1fr; padding: 20px; }
  .page-hero { margin-bottom: 54px; }
}
