/* ============================================================
   IKANAS Chapter Jawa Barat — Design System
   Arah: Warm Institutional. Navy fondasi, emas penghangat,
   cream breathable. Rounded, hangat, interaktif, easy-to-read.
   ============================================================ */

:root {
  /* — Palet inti (diturunkan dari logo) — */
  --navy-900: #0C1B33;
  --navy-800: #12263F;
  --navy-700: #16325B;
  --navy-600: #1E4272;
  --navy-500: #2C5691;
  --gold-500: #FFD100;
  --gold-400: #FFDA33;
  --gold-300: #FFE470;
  --gold-100: #FFF4C9;
  --cream-50: #FDFDFA;
  --cream-100: #F7F6F1;
  --cream-200: #ECEAE2;
  --ink-900: #14181F;
  --ink-600: #4A5262;
  --ink-400: #7B8494;
  --white: #FFFFFF;

  /* — Peran semantik — */
  --bg: var(--cream-50);
  --bg-alt: var(--cream-100);
  --surface: var(--white);
  --text: var(--ink-900);
  --text-muted: var(--ink-600);
  --text-soft: var(--ink-400);
  --accent: var(--gold-500);
  --accent-ink: #5A4A00;
  --line: rgba(18, 38, 63, 0.10);
  --line-strong: rgba(18, 38, 63, 0.18);

  /* — Bentuk & ritme — */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(12, 27, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(12, 27, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(12, 27, 51, 0.16);
  --shadow-gold: 0 12px 32px rgba(255, 209, 0, 0.28);

  /* — Tipografi — */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--gold-300); color: var(--navy-900); }

/* — Tipografi skala — */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.lead { font-size: 1.18rem; color: var(--text-muted); max-width: 60ch; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(253, 253, 250, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav-inner {
  width: min(1180px, 92vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand svg, .brand img { width: 42px; height: 42px; filter: drop-shadow(0 2px 5px rgba(12,27,51,0.18)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--navy-900); }
.brand-sub { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }

.nav-links { display: flex; align-items: center; gap: 0.3rem; }
.nav-links a {
  font-size: 0.94rem; font-weight: 500; color: var(--navy-800);
  padding: 0.55rem 0.95rem; border-radius: var(--r-pill);
  position: relative; transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { background: rgba(18,38,63,0.06); }
.nav-links a.active { color: var(--navy-900); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 4px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500);
  transform: translateX(-50%);
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.5rem; border-radius: var(--r-pill);
  cursor: pointer; border: none; transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  white-space: nowrap;
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,209,0,0.4); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { transform: translateY(-2px); background: var(--navy-900); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy-900); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy-800); background: rgba(18,38,63,0.04); }
.btn svg { width: 18px; height: 18px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: 0.3s var(--ease); }
.nav-toggle span + span { margin-top: 5px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(80px); opacity: 0.5; pointer-events: none;
}
.hero-glow.g1 { width: 480px; height: 480px; background: var(--gold-300); top: -140px; right: -80px; opacity: 0.35; }
.hero-glow.g2 { width: 420px; height: 420px; background: #Bcd3f5; bottom: -180px; left: -120px; opacity: 0.4; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { margin: 1.4rem 0 1.3rem; }
.hero h1 .accent-word { position: relative; white-space: nowrap; color: var(--navy-800); }
.hero h1 .accent-word::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.08em; height: 0.32em;
  background: var(--gold-300); z-index: -1; border-radius: 4px;
  transform: scaleX(0); transform-origin: left; animation: underline 0.9s 0.6s var(--ease) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero .lead { margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.8rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-stat .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--navy-900); line-height: 1; }
.hero-stat .lbl { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; }

/* Hero visual — kartu logo melayang */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.emblem-card {
  position: relative; width: 100%; max-width: 380px; aspect-ratio: 1;
  background: linear-gradient(155deg, var(--navy-800), var(--navy-900));
  border-radius: var(--r-xl); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.emblem-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,209,0,0.16), transparent 55%);
}
.emblem-card .ring {
  position: absolute; border: 1.5px solid rgba(255,209,0,0.22); border-radius: 50%;
}
.emblem-card .ring.r1 { inset: 8%; animation: spin 34s linear infinite; }
.emblem-card .ring.r2 { inset: 18%; border-style: dashed; animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.emblem-logo { width: 56%; z-index: 2; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35)); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============================================================
   MARQUEE / STRIP
   ============================================================ */
.strip { background: var(--navy-900); padding: 1.1rem 0; overflow: hidden; }
.marquee { display: flex; gap: 3rem; white-space: nowrap; animation: scroll-x 11.2s linear infinite; }
.marquee span { color: rgba(255,255,255,0.55); font-weight: 500; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 3rem; }
.marquee span::after { content: "◆"; color: var(--gold-500); font-size: 0.6rem; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { max-width: 640px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin: 0.9rem 0 1rem; }
.sec-head p { color: var(--text-muted); font-size: 1.1rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media { position: relative; }
.about-photo {
  aspect-ratio: 4/5; border-radius: var(--r-lg); background: var(--navy-800);
  overflow: hidden; box-shadow: var(--shadow-md); position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-float {
  position: absolute; bottom: -24px; left: -24px; background: var(--surface);
  border-radius: var(--r-md); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 0.9rem; max-width: 240px;
}
.about-float .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-100); display: grid; place-items: center; flex-shrink: 0; }
.about-float .ico svg { width: 24px; height: 24px; color: var(--navy-800); }
.about-float .t { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--navy-900); line-height: 1; }
.about-float .s { font-size: 0.8rem; color: var(--text-muted); }

.value-list { list-style: none; margin-top: 1.8rem; display: grid; gap: 1rem; }
.value-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.value-list .check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-500);
  display: grid; place-items: center; margin-top: 2px;
}
.value-list .check svg { width: 15px; height: 15px; color: var(--navy-900); }
.value-list strong { color: var(--navy-900); font-weight: 600; }

/* pilar cards */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3.5rem; }
.pillar {
  background: var(--surface); border-radius: var(--r-lg); padding: 2rem 1.8rem;
  border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar .p-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--navy-800); display: grid; place-items: center; margin-bottom: 1.3rem; transition: background 0.4s; }
.pillar:hover .p-ico { background: var(--gold-500); }
.pillar .p-ico svg { width: 28px; height: 28px; color: var(--gold-400); transition: color 0.4s; }
.pillar:hover .p-ico svg { color: var(--navy-900); }
.pillar h3 { margin-bottom: 0.6rem; }
.pillar p { color: var(--text-muted); font-size: 0.98rem; }

/* ============================================================
   EVENTS
   ============================================================ */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.event-card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.event-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--navy-800); }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.event-card:hover .event-thumb img { transform: scale(1.06); }
.event-date {
  position: absolute; top: 12px; left: 12px; background: var(--cream-50);
  border-radius: var(--r-sm); padding: 0.4rem 0.7rem; text-align: center; box-shadow: var(--shadow-sm);
  line-height: 1;
}
.event-date .d { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy-900); }
.event-date .m { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-ink); }
.event-tag {
  position: absolute; top: 12px; right: 12px; background: rgba(12,27,51,0.72);
  backdrop-filter: blur(4px); color: #fff; font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem 0.7rem; border-radius: var(--r-pill);
}
.event-tag.upcoming { background: var(--gold-500); color: var(--navy-900); }
.event-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.event-meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.83rem; color: var(--text-soft); margin-bottom: 0.6rem; }
.event-meta svg { width: 15px; height: 15px; }
.event-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.event-body p { font-size: 0.92rem; color: var(--text-muted); flex: 1; }
.event-foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem; font-weight: 600; font-size: 0.9rem; color: var(--navy-800); }
.event-foot svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.event-card:hover .event-foot svg { transform: translateX(4px); }

/* ============================================================
   INFORMATION — memakai gaya kartu Events (event-card),
   dengan badge kategori di kiri-atas (mirip badge tanggal).
   ============================================================ */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.info-cat-badge {
  position: absolute; top: 12px; left: 12px; background: var(--cream-50); color: var(--navy-900);
  font-size: 0.74rem; font-weight: 700; padding: 0.4rem 0.8rem; border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   ARTICLES
   ============================================================ */
.articles-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.6rem; }
.article-card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.article-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.article-card.feature { grid-row: span 1; }
.article-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--navy-700); position: relative; }
.article-card.feature .article-thumb { aspect-ratio: 16/11; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-cat {
  position: absolute; top: 12px; left: 12px; background: var(--gold-500); color: var(--navy-900);
  font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: var(--r-pill);
}
.article-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.article-body .a-meta { font-size: 0.8rem; color: var(--text-soft); margin-bottom: 0.6rem; display: flex; gap: 0.6rem; align-items: center; }
.article-body h3 { font-size: 1.15rem; line-height: 1.25; margin-bottom: 0.6rem; }
.article-card.feature h3 { font-size: 1.7rem; }
.article-body p { font-size: 0.92rem; color: var(--text-muted); flex: 1; }
.article-body .a-read { margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: var(--navy-800); display: inline-flex; align-items: center; gap: 0.4rem; }
.article-body .a-read svg { width: 15px; height: 15px; transition: transform 0.3s; }
.article-card:hover .a-read svg { transform: translateX(4px); }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.contact-wrap {
  background: linear-gradient(155deg, var(--navy-800), var(--navy-900));
  border-radius: var(--r-xl); padding: clamp(2.5rem, 5vw, 4.5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem);
  position: relative; overflow: hidden;
}
.contact-wrap::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,209,0,0.18), transparent 65%); top: -120px; right: -80px;
}
.contact-info { position: relative; z-index: 1; }
.contact-info .eyebrow { color: var(--gold-400); }
.contact-info .eyebrow::before { background: var(--gold-500); }
.contact-info h2 { color: var(--white); margin: 1rem 0 1.2rem; }
.contact-info > p { color: rgba(255,255,255,0.72); margin-bottom: 2rem; }
.contact-list { list-style: none; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; color: rgba(255,255,255,0.9); }
.contact-list .ci { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,0.08); display: grid; place-items: center; flex-shrink: 0; }
.contact-list .ci svg { width: 20px; height: 20px; color: var(--gold-400); }
.contact-list .ct-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.contact-list .ct-value { font-weight: 600; color: #fff; }

.contact-form { position: relative; z-index: 1; background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.2rem); }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-800); margin-bottom: 0.45rem; }
.form-row input, .form-row textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text); background: var(--cream-50);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--gold-500); background: var(--white);
  box-shadow: 0 0 0 4px rgba(255,209,0,0.16);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--text-soft); margin-top: 0.8rem; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: #fff; }
.footer-about { max-width: 34ch; margin-top: 1.2rem; font-size: 0.92rem; line-height: 1.7; }
.footer h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; margin-bottom: 1.2rem; }
.footer-links { list-style: none; display: grid; gap: 0.7rem; }
.footer-links a { font-size: 0.92rem; transition: color 0.25s, padding-left 0.25s; }
.footer-links a:hover { color: var(--gold-400); padding-left: 4px; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.08); display: grid; place-items: center; transition: background 0.3s, transform 0.3s; }
.footer-social a:hover { background: var(--gold-500); transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; color: #fff; transition: color 0.3s; }
.footer-social a:hover svg { color: var(--navy-900); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.8rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* loading skeleton */
.skeleton { background: linear-gradient(90deg, var(--cream-100) 25%, var(--cream-200) 50%, var(--cream-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }
.load-state { text-align: center; padding: 2.5rem; color: var(--text-soft); grid-column: 1/-1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin-inline: auto; }
  .pillars { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .article-card.feature { grid-column: 1/-1; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--cream-50); padding: 1rem 6vw 1.6rem; gap: 0.2rem;
    box-shadow: var(--shadow-md); border-top: 1px solid var(--line);
  }
  .nav-links.open a { padding: 0.8rem 1rem; border-radius: var(--r-sm); width: 100%; }
  .nav-links.open .btn { margin-top: 0.6rem; justify-content: center; }
  .info-grid, .events-grid, .articles-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-float { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   HALAMAN DETAIL (detail.html)
   ============================================================ */
.detail-main { min-height: 70vh; padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 4rem; }
.detail-article { max-width: 820px; }
.detail-back {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem;
  color: var(--navy-700); margin-bottom: 1.8rem; transition: gap 0.25s var(--ease);
}
.detail-back svg { width: 18px; height: 18px; }
.detail-back:hover { gap: 0.8rem; }
.detail-head { margin-bottom: 2rem; }
.detail-badge {
  display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.35rem 0.9rem;
  border-radius: var(--r-pill); background: var(--bg-alt); color: var(--navy-700); margin-bottom: 1.1rem;
}
.detail-badge.up { background: var(--gold-500); color: var(--navy-900); }
.detail-head h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.12; margin-bottom: 1.1rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--text-muted); font-size: 0.92rem; }
.detail-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.detail-meta svg { width: 17px; height: 17px; color: var(--navy-600); }
.detail-hero {
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 2.4rem; box-shadow: var(--shadow-md);
  aspect-ratio: 16/8; background: var(--navy-800);
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-body { font-size: 1.08rem; line-height: 1.85; color: var(--ink-900); }
.detail-body p { margin-bottom: 1.3rem; }
.detail-body p:first-letter { }
.detail-foot { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.detail-notfound { text-align: center; padding: 6rem 1rem; }
.detail-notfound h1 { margin-bottom: 1rem; }
.detail-notfound p { color: var(--text-muted); margin-bottom: 2rem; }
.detail-notfound .btn { display: inline-flex; }

/* ============================================================
   GALERI + LIGHTBOX
   ============================================================ */
.galeri-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  grid-auto-flow: dense;
}
.galeri-item {
  position: relative; border: none; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--r-md); background: var(--navy-800); aspect-ratio: 1;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  font-family: inherit;
}
/* variasi ukuran biar dinamis (masonry-like) */
.galeri-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
.galeri-item:nth-child(6n+4) { grid-row: span 2; aspect-ratio: 1/2; }
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.galeri-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.galeri-item:hover img { transform: scale(1.08); }
.galeri-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem; gap: 0.4rem; text-align: left;
  background: linear-gradient(to top, rgba(12,27,51,0.85), rgba(12,27,51,0) 55%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.galeri-item:hover .galeri-overlay, .galeri-item:focus-visible .galeri-overlay { opacity: 1; }
/* Album di beranda: judul selalu terlihat */
.galeri-grid.is-albums .galeri-overlay { opacity: 1; }
.galeri-grid.is-albums .galeri-cap { font-size: 1.05rem; }
.galeri-grid.is-albums .galeri-item:hover .galeri-overlay { background: linear-gradient(to top, rgba(12,27,51,0.92), rgba(12,27,51,0.15) 60%); }
.galeri-cap { color: #fff; font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.galeri-tag { color: var(--gold-400); font-size: 0.74rem; font-weight: 600; }

.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  background: rgba(8,16,30,0.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; animation: lbfade 0.3s var(--ease); }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { position: relative; max-width: 1000px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-img {
  max-width: 100%; max-height: 78vh; border-radius: var(--r-md); object-fit: contain;
  box-shadow: var(--shadow-lg); background: var(--navy-900);
}
.lb-info { margin-top: 1rem; text-align: center; display: flex; flex-direction: column; gap: 0.3rem; }
.lb-cap { color: #fff; font-weight: 600; font-size: 1.02rem; }
.lb-tag { color: var(--gold-400); font-size: 0.82rem; font-weight: 600; }
.lb-counter { margin-top: 0.5rem; color: rgba(255,255,255,0.55); font-size: 0.8rem; }
.lb-close {
  position: absolute; top: 1.2rem; right: 1.4rem; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 1.8rem; line-height: 1;
  cursor: pointer; transition: background 0.25s; z-index: 2;
}
.lb-close:hover { background: rgba(255,255,255,0.2); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 2rem; line-height: 1;
  cursor: pointer; transition: background 0.25s, transform 0.25s; z-index: 2;
}
.lb-nav:hover { background: var(--gold-500); color: var(--navy-900); }
.lb-prev { left: 1.4rem; }
.lb-next { right: 1.4rem; }

@media (max-width: 940px) {
  .galeri-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .galeri-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .galeri-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 1; }
  .galeri-item:nth-child(6n+4) { grid-row: span 1; aspect-ratio: 1; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lb-prev { left: 0.5rem; } .lb-next { right: 0.5rem; }
  .lightbox { padding: 1rem; }
}

/* ============================================================
   KONTEN MINI-MARKUP (gambar sisip, sub-judul, kutipan)
   ============================================================ */
.content-figure { margin: 2rem 0; }
.content-figure img { width: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.content-figure figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--text-soft); text-align: center; font-style: italic; }
.content-h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 2.4rem 0 0.8rem; color: var(--navy-900); line-height: 1.25; }
.content-quote {
  margin: 2rem 0; padding: 1.2rem 1.6rem; border-left: 4px solid var(--gold-500);
  background: var(--bg-alt); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.12rem; font-style: italic; color: var(--navy-800); line-height: 1.7;
}
.detail-body strong { color: var(--navy-900); font-weight: 700; }

/* ============================================================
   VISI & MISI (ditonjolkan)
   ============================================================ */
.vm-wrap { margin-top: clamp(4rem, 8vw, 7rem); }
.vm-head { text-align: center; max-width: 680px; margin: 0 auto clamp(2.4rem, 4vw, 3.4rem); }
.vm-head h2 { margin: 0.9rem 0 0.6rem; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.vm-period { color: var(--accent-ink); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; }
.vm-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.8rem; }
.vm-card { border-radius: var(--r-xl); padding: clamp(2rem, 4vw, 3rem); position: relative; box-shadow: var(--shadow-md); }
.vm-vision { background: linear-gradient(155deg, var(--navy-800), var(--navy-900)); color: #fff; }
.vm-vision p { color: rgba(255,255,255,0.92); font-size: 1.28rem; line-height: 1.7; font-weight: 400; }
.vm-mission { background: var(--gold-100); border: 1px solid var(--gold-300); }
.vm-badge {
  display: inline-block; font-family: var(--font-body); font-weight: 800; font-size: 1.1rem;
  letter-spacing: 0.02em; padding: 0.5rem 1.4rem; border-radius: var(--r-pill); margin-bottom: 1.4rem;
}
.vm-vision .vm-badge { background: var(--gold-500); color: var(--navy-900); }
.vm-mission .vm-badge { background: var(--navy-800); color: #fff; }
.vm-mission ul { list-style: none; display: grid; gap: 1.3rem; }
.vm-mission li { position: relative; padding-left: 2rem; color: var(--navy-800); font-size: 1.16rem; line-height: 1.7; }
.vm-mission li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 11px; height: 11px;
  background: var(--gold-500); border: 2.5px solid var(--navy-800); border-radius: 50%;
}

/* ============================================================
   SUSUNAN PENGURUS (hide/show, rata kiri)
   ============================================================ */
.org-wrap { margin-top: clamp(4rem, 8vw, 7rem); }
.org-topbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; margin-bottom: 0;
}
.org-heading { text-align: left; }
.org-heading h2 { margin: 0.8rem 0 0.6rem; }
.org-sk { color: var(--text-muted); font-size: 0.98rem; max-width: 52ch; }
.org-toggle { flex-shrink: 0; }
.org-toggle-ico { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.org-toggle[aria-expanded="true"] .org-toggle-ico { transform: rotate(180deg); }

.org-panel { max-height: 0; overflow: hidden; transition: max-height 0.55s var(--ease); }
.org-panel.open { max-height: 4000px; }
.org-panel-inner { padding-top: 2.5rem; }

.org-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.4rem; }
.org-entry {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.2rem 1.5rem; display: flex; flex-direction: column; gap: 0.3rem;
}
.org-entry-role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.org-entry-names { font-weight: 600; color: var(--navy-900); font-size: 1.05rem; }

.org-bidang-cols { align-items: start; }
.org-field {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem 1.8rem;
}
.org-field-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy-900);
  padding-bottom: 0.9rem; margin-bottom: 0.9rem; border-bottom: 2px solid var(--gold-300);
  display: inline-block;
}
.org-field-line { color: var(--navy-800); font-size: 0.98rem; margin-bottom: 0.5rem; }
.org-field-line .lbl {
  display: inline-block; min-width: 74px; font-weight: 700; color: var(--accent-ink);
  font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.org-field-line .lbl::after { content: ":"; }
.org-field-list { margin: 0.2rem 0 0 0; padding-left: 1.4rem; display: grid; gap: 0.35rem; }
.org-field-list li { color: var(--navy-800); font-size: 0.98rem; padding-left: 0.2rem; }
.org-field-list li::marker { color: var(--gold-500); font-weight: 700; }

@media (max-width: 940px) {
  .vm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .org-topbar { flex-direction: column; align-items: stretch; }
  .org-toggle { justify-content: center; }
  .org-cols, .org-bidang-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   HALAMAN ALBUM
   ============================================================ */
.album-head { margin-bottom: 2rem; }
.album-head h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.12; margin: 0.9rem 0 0.6rem; }
.album-meta { color: var(--text-muted); font-size: 0.98rem; font-weight: 500; }

/* ============================================================
   ===  TAMBAHAN VERSI CMS (multi-halaman), gaya mengikuti  ===
   ===  desain asli di atas.                                ===
   ============================================================ */

.ic { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--gold-500); color: var(--navy-900); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--navy-900); font-weight: 600; }
.nav-links a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: 4px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); transform: translateX(-50%);
}
.nav-toggle span { transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Kepala halaman dalam (gaya hero, versi ringkas) */
.page-head { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(2.4rem, 6vw, 4.2rem)) 0 clamp(2.4rem, 5vw, 3.6rem); }
.page-head .hero-glow.g1 { width: 380px; height: 380px; top: -160px; right: -60px; }
.page-head .hero-glow.g2 { width: 320px; height: 320px; bottom: -220px; left: -100px; }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); margin: 1rem 0 .9rem; max-width: 20ch; }
.page-head p.lead { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .86rem; color: var(--text-soft); margin-bottom: 1.2rem; }
.crumbs a:hover { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; }
.page-body { padding: clamp(1rem, 3vw, 2rem) 0 clamp(4rem, 9vw, 6.5rem); }
.page-body .sub { margin: clamp(2.8rem, 6vw, 4.5rem) 0 1.6rem; }
.page-body .sub:first-child { margin-top: 0; }
.sub h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.sub p { color: var(--text-muted); margin-top: .5rem; }

.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.sec-row .sec-head { margin-bottom: 0; }
.more-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--navy-700); white-space: nowrap; transition: gap .25s var(--ease); }
.more-link:hover { gap: .75rem; }
.more-link .ic { width: 18px; height: 18px; }

.empty { text-align: center; padding: 2.5rem 1.5rem; color: var(--text-soft); border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); grid-column: 1 / -1; }

/* Saring & cari */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 2.2rem; }
.chip { padding: .55rem 1.05rem; border-radius: var(--r-pill); background: var(--surface); border: 1.5px solid var(--line-strong); font-size: .9rem; font-weight: 500; color: var(--navy-800); transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--navy-800); }
.chip.on { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.chip small { opacity: .6; margin-left: .25rem; }
.search { margin-left: auto; display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); padding: 0 .35rem 0 1.1rem; min-width: min(300px, 100%); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(255,209,0,.16); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: .95rem; padding: .7rem 0; flex: 1; min-width: 0; }
.search button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--gold-500); color: var(--navy-900); display: grid; place-items: center; cursor: pointer; }
.search button .ic { width: 18px; height: 18px; }

/* Halaman artikel: 3 kolom rata */
.articles-grid.even { grid-template-columns: repeat(3, 1fr); }
.articles-grid.even .article-card.feature h3 { font-size: 1.15rem; }

/* Kartu informasi: tenggat */
.event-tag.closed { background: rgba(12,27,51,.72); color: #fff; }
.info-due { font-size: .8rem; color: var(--text-soft); margin-top: .7rem; }
.info-due b { color: var(--navy-800); }
.event-card.is-closed { opacity: .75; }

/* Pagination */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; margin-top: 3rem; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 .9rem; border-radius: var(--r-pill); display: grid; place-items: center; font-weight: 600; background: var(--surface); border: 1.5px solid var(--line-strong); }
.pager a:hover { border-color: var(--navy-800); }
.pager .on { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.pager .gap { border: 0; background: none; }

/* Detail: isi dari editor admin, mengikuti gaya mini-markup lama */
.detail-badge.closed { background: var(--navy-800); color: #fff; }
.detail-lead { font-size: .95rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; padding-left: 1rem; border-left: 3px solid var(--gold-500); }
.detail-body > * + * { margin-top: 1.3rem; }
/* Jarak bawah yang diatur di editor menentukan penuh jarak ke blok berikutnya. */
.detail-body > [style*="margin-bottom"] + * { margin-top: 0; }
.detail-body p { margin-bottom: 0; }
.detail-body h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 2.4rem; color: var(--navy-900); line-height: 1.25; }
.detail-body h3 { font-size: 1.25rem; margin-top: 2rem; }
.detail-body h4 { font-size: 1.08rem; margin-top: 1.6rem; }
.detail-body a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-500); text-decoration-thickness: 2px; }
.detail-body a:hover { color: var(--navy-900); }
.detail-body ul, .detail-body ol { padding-left: 1.4rem; }
.detail-body li + li { margin-top: .45rem; }
.detail-body li::marker { color: var(--accent-ink); font-weight: 700; }
.detail-body hr { border: 0; height: 1px; background: var(--line); margin: 2.4rem 0; }
.detail-body img { border-radius: var(--r-md); height: auto; cursor: zoom-in; }
.detail-body figure { margin: 2rem 0; }
.detail-body figure img { width: 100%; box-shadow: var(--shadow-sm); }
.detail-body figcaption { margin-top: .6rem; font-size: .85rem; color: var(--text-soft); text-align: center; font-style: italic; }
.detail-body blockquote {
  margin: 2rem 0; padding: 1.2rem 1.6rem; border-left: 4px solid var(--gold-500);
  background: var(--bg-alt); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.12rem; font-style: italic; color: var(--navy-800); line-height: 1.7;
}
.detail-body blockquote p + p { margin-top: .6rem; }
.detail-body blockquote.pullquote {
  border-left: 0; border-radius: var(--r-lg); text-align: center; padding: 2.4rem 2rem 2rem; position: relative;
  font-family: var(--font-display); font-style: normal; font-weight: 500; font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.35;
  color: var(--navy-900); background: var(--gold-100); border: 1px solid var(--gold-300);
}
.detail-body blockquote.pullquote::before {
  content: "\201C"; position: absolute; top: -.5em; left: 50%; transform: translateX(-50%);
  width: 1.4em; height: 1.4em; line-height: 1.6; border-radius: 50%; font-size: 2.2rem;
  background: var(--gold-500); color: var(--navy-900); font-family: var(--font-display); font-weight: 700;
}
.detail-body .callout { background: var(--navy-800); color: rgba(255,255,255,.92); border-radius: var(--r-md); padding: 1.3rem 1.5rem; }
.detail-body .callout strong, .detail-body .callout a { color: var(--gold-400); }
.detail-body .lead-text { font-size: 1.25rem; line-height: 1.65; color: var(--navy-900); }
.detail-body .small-print { font-size: .92rem; color: var(--text-soft); }
.detail-body .img-wide, .detail-body figure.img-wide { width: min(100vw - 2rem, 1000px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.detail-body .align-left { float: left; max-width: 46%; margin: .3rem 1.6rem 1rem 0; }
.detail-body .align-right { float: right; max-width: 46%; margin: .3rem 0 1rem 1.6rem; }
.detail-body::after { content: ""; display: table; clear: both; }
.detail-body table { width: 100%; border-collapse: collapse; font-size: .96rem; display: block; overflow-x: auto; }
.detail-body th, .detail-body td { border: 1px solid var(--line-strong); padding: .6rem .8rem; text-align: left; }
.detail-body th { background: var(--bg-alt); font-weight: 600; }
.detail-body iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--r-md); }
.detail-share { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.detail-share > span { font-size: .85rem; color: var(--text-soft); margin-right: .2rem; }
.share-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--navy-800); cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.share-btn:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; transform: translateY(-2px); }
.share-btn .ic { width: 18px; height: 18px; }
.copied { font-size: .82rem; color: #1F7A4D; font-weight: 600; }
.detail-preview { display: inline-block; background: var(--bg-alt); color: var(--accent-ink); font-weight: 600; font-size: .85rem; padding: .4rem .9rem; border-radius: var(--r-pill); margin-bottom: 1.4rem; }
.related { margin-top: clamp(3.5rem, 7vw, 5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.8rem; }
.detail-gallery { margin-top: 3rem; }
.detail-gallery h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 1.2rem; }

/* Galeri: tombol foto (lightbox) */
button.galeri-item { display: block; width: 100%; }
.galeri-item .album-n { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--gold-500); color: var(--navy-900); font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: var(--r-pill); }

/* Tentang: tombol ke halaman lengkap */
.about-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.org-panel.always { max-height: none; }

/* Formulir kontak (di panel navy) */
.jenis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; border: 0; margin: 0 0 1.1rem; padding: 0; }
.jenis legend { font-size: .85rem; font-weight: 600; color: var(--navy-800); margin-bottom: .45rem; }
.jenis label { position: relative; cursor: pointer; }
.jenis input { position: absolute; opacity: 0; pointer-events: none; }
.jenis span { display: block; text-align: center; padding: .65rem .5rem; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--cream-50); font-size: .88rem; font-weight: 600; color: var(--navy-800); transition: background .2s, border-color .2s, color .2s; }
.jenis label:hover span { border-color: var(--navy-600); }
.jenis input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: var(--gold-400); }
.jenis input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-row .err { color: #B42318; font-size: .82rem; margin-top: .35rem; font-weight: 500; }
.form-row.has-err input, .form-row.has-err textarea { border-color: #E5534B; background: #FFF8F7; }
.form-check { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--cream-100); margin-bottom: 1.1rem; cursor: pointer; font-size: .88rem; color: var(--navy-800); }
.form-check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--navy-800); flex-shrink: 0; }
.form-check small { display: block; color: var(--text-soft); }
.ident { transition: opacity .3s; }
.ident.off { opacity: .4; pointer-events: none; }
.f-count { text-align: right; font-size: .78rem; color: var(--text-soft); margin-top: .25rem; }
.hp { position: absolute; left: -9999px; }
.contact-steps { margin-top: 2rem; padding: 1.2rem 1.4rem; border-radius: var(--r-md); background: rgba(255,255,255,.06); color: rgba(255,255,255,.78); font-size: .92rem; position: relative; z-index: 1; }
.contact-steps b { color: #fff; display: block; margin-bottom: .4rem; }
.contact-steps ol { padding-left: 1.2rem; display: grid; gap: .3rem; }
.contact-list a:hover .ct-value { color: var(--gold-400); }

/* Pesan terkirim */
.done { text-align: center; max-width: 620px; margin: 0 auto; padding: calc(var(--nav-h) + 4rem) 0 5rem; }
.done-ic { width: 88px; height: 88px; margin: 0 auto 1.6rem; border-radius: 50%; background: var(--gold-500); display: grid; place-items: center; box-shadow: var(--shadow-gold); animation: pop .7s var(--ease) both; }
.done-ic .ic { width: 42px; height: 42px; color: var(--navy-900); stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .35s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.done p { color: var(--text-muted); margin-top: 1rem; }
.kode { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.4rem; padding: .9rem 1.2rem; border-radius: var(--r-md); background: var(--surface); border: 1.5px dashed var(--navy-600); font: 700 1.3rem/1 var(--font-display); letter-spacing: .04em; }
.kode button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--navy-800); display: grid; place-items: center; cursor: pointer; }
.kode button:hover { background: var(--navy-800); color: #fff; }
.done .btns { margin-top: 2.2rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Footer: tanpa media sosial bila belum diisi */
.footer-links .ic { width: 15px; height: 15px; color: var(--gold-400); vertical-align: -2px; margin-right: .35rem; }

/* Transisi halus antar halaman (browser modern) */
@view-transition { navigation: auto; }
.nav { view-transition-name: nav; }
::view-transition-old(root) { animation: vtOut .2s var(--ease-soft) both; }
::view-transition-new(root) { animation: vtIn .4s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* Menu seluler mulai di layar tablet (5 menu + tombol tidak muat) */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--cream-50); padding: 1rem 6vw 1.6rem; gap: .2rem;
    box-shadow: var(--shadow-md); border-top: 1px solid var(--line);
    animation: menuIn .35s var(--ease);
  }
  .nav-links.open a { padding: .85rem 1rem; border-radius: var(--r-sm); width: 100%; }
  .nav-links.open a[aria-current="page"]::after { left: auto; right: 1rem; bottom: 50%; transform: translateY(50%); }
  .nav-links.open .btn { margin-top: .6rem; justify-content: center; }
  .nav.menu-open { background: rgba(253,253,250,.97); box-shadow: 0 1px 0 var(--line); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
  .articles-grid.even { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .search { margin-left: 0; width: 100%; }
  .form-2 { grid-template-columns: 1fr; }
  .articles-grid.even { grid-template-columns: 1fr; }
  .detail-share { margin-left: 0; width: 100%; }
  .detail-body .align-left, .detail-body .align-right { float: none; max-width: 100%; margin: 1.5rem 0; }
  .sec-row { margin-bottom: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .done-ic .ic { stroke-dashoffset: 0; }
}

/* Lampiran unduhan di bawah isi tulisan */
.lampiran { margin-top: 2.6rem; }
.lampiran h2 { font-size: 1.35rem; color: var(--navy-900); margin-bottom: 1rem; }
.lampiran ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.lampiran a { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .25s, box-shadow .25s, transform .25s; }
.lampiran a:hover { border-color: var(--gold-500); box-shadow: 0 10px 26px rgba(14, 34, 64, .08); transform: translateY(-2px); }
.lampiran .lamp-ext { flex-shrink: 0; width: 48px; height: 52px; border-radius: 8px 16px 8px 8px; display: grid; place-items: center; font: 800 .68rem/1 var(--font-body); letter-spacing: .04em; color: #fff; background: #5B6578; }
.lampiran .lamp-pdf { background: #C8372D; } .lampiran .lamp-doc, .lampiran .lamp-docx { background: #2B5FB4; } .lampiran .lamp-xls, .lampiran .lamp-xlsx { background: #1E7A46; }
.lampiran .lamp-ppt, .lampiran .lamp-pptx { background: #C75A1C; } .lampiran .lamp-zip { background: #6B5BA8; } .lampiran .lamp-jpg, .lampiran .lamp-png { background: #0F7C8C; }
.lamp-t { flex: 1; min-width: 0; }
.lamp-t b { display: block; font-weight: 600; color: var(--navy-900); line-height: 1.35; overflow-wrap: anywhere; }
.lamp-t small { display: block; margin-top: .2rem; font-size: .82rem; color: var(--text-muted); }
.lamp-go { flex-shrink: 0; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; background: var(--gold-500); color: var(--navy-900); font-weight: 600; font-size: .85rem; }
.lamp-go svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .lampiran a { gap: .75rem; padding: .75rem; } .lamp-go { padding: .55rem; } .lamp-go span { display: none; } }

/* Tautan file yang disisipkan di dalam isi tulisan (tombol "Sisipkan tautan file" di editor) */
.detail-body a.file-link { font-weight: 600; white-space: normal; }
.detail-body a.file-link::before {
  content: ""; display: inline-block; width: .95em; height: 1.05em; margin-right: .32em; vertical-align: -.16em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M12 11v6'/%3E%3Cpath d='m9 14 3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M12 11v6'/%3E%3Cpath d='m9 14 3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
}
