/* ============================================================
   SMK Negeri 1 Sebulu — style.css
   Gaya: portal majalah (adaptasi SMKN 3 Samarinda)
   Palette final: hijau agribisnis + emas — Plus Jakarta Sans
   Mendukung mode gelap via [data-theme="dark"] di <html>.
   ============================================================ */

:root {
  --color-primary: #166534;
  --color-primary-dark: #14532D;
  --color-secondary: #22C55E;
  --color-accent: #D97706;
  --color-accent-dark: #B45309;
  --color-gold-bright: #FCD34D;
  --color-ink: #0C2317;
  --color-background: #FAFAFA;
  --color-surface: #F4F4F5;
  --color-foreground: #14231A;
  --color-card: #FFFFFF;
  --color-muted: #F4F4F5;
  --color-muted-foreground: #52525B;
  --color-border: #E4E4E7;
  --color-ring: #166534;
  --color-chip-green-bg: #DCFCE7;
  --color-chip-green-text: #14532D;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.05);
  --shadow-md: 0 1px 3px rgba(9, 9, 11, 0.08), 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow-lg: 0 8px 24px rgba(9, 9, 11, 0.10);

  --font-main: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --nav-height: 56px;
}

/* ---------- Mode gelap ---------- */
html[data-theme="dark"] {
  --color-primary: #3FA34D;
  --color-primary-dark: #2F8F42;
  --color-accent: #F59E0B;
  --color-accent-dark: #FBBF24;
  --color-background: #0B1610;
  --color-surface: #12241A;
  --color-foreground: #E7F0E4;
  --color-card: #16281B;
  --color-muted: #1D3524;
  --color-muted-foreground: #ACC7A8;
  --color-border: #26402C;
  --color-ring: #FCD34D;
  --color-chip-green-bg: #DCFCE7;
  --color-chip-green-text: #14532D;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 30px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .btn--primary { color: #0C2317; }
html[data-theme="dark"] .btn--primary:hover { color: #0C2317; }
html[data-theme="dark"] .btn--outline:hover { color: #0C2317; }
html[data-theme="dark"] .btn--light { background: #E7F0E4; color: #14532D; }
html[data-theme="dark"] .btn--light:hover { background: #FFFFFF; }
html[data-theme="dark"] .steps li::before { color: #0C2317; }
html[data-theme="dark"] .main-nav { background: #0A1B10; }

/* ---------- Reset & dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); }

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  transition: background 250ms ease, color 250ms ease;
}

img, svg { max-width: 100%; }
[hidden] { display: none !important; }

::selection { background: #FCD34D; color: #14231A; }

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

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 var(--space-md);
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-md); }
a { color: var(--color-primary); }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: var(--space-xs); }

.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: var(--space-3xl) 0; }
.section--alt { background: var(--color-surface); }
.section-head { max-width: 720px; margin-bottom: var(--space-2xl); }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: var(--space-md);
}
.section-head p { color: var(--color-muted-foreground); font-size: 1.0625rem; }

/* Fokus keyboard selalu terlihat */
:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  background: var(--color-ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top 200ms ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* Penanda placeholder / contoh */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
}
.badge--contoh { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.badge--placeholder { background: #F1F5F9; color: #334155; border: 1px dashed #94A3B8; }
.placeholder-note {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  font-style: italic;
}

/* Chip kategori berita */
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
}
.chip--gold { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.chip--green { background: var(--color-chip-green-bg); color: var(--color-chip-green-text); border: 1px solid #BBF7D0; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--accent { background: var(--color-accent); color: #000; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--color-accent-dark); color: #000; }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--light { background: #fff; color: var(--color-primary-dark); }
.btn--light:hover { background: var(--color-surface); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--color-ink);
  color: #C2D8B2;
  font-size: 0.8125rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 38px;
  padding-top: 4px;
  padding-bottom: 4px;
  flex-wrap: wrap;
}
.topbar-contact { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  color: #DCFCE7;
  text-decoration: none;
  font-weight: 600;
}
.topbar-link svg { width: 15px; height: 15px; color: #FCD34D; flex: none; }
.topbar-link:hover { color: #FCD34D; }
.topbar-note { color: #86EFAC; font-size: 0.75rem; font-style: italic; }
.topbar-social { display: flex; align-items: center; gap: 8px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid rgba(194, 216, 178, 0.4);
  border-radius: 50%;
  color: #DCFCE7;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.social-link svg { width: 15px; height: 15px; }
.social-link:hover { background: var(--color-accent); border-color: var(--color-accent); color: #000; }

/* ---------- Header utama ---------- */
.site-header {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-foreground);
  flex: none;
}
.brand-mark {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  background: var(--color-primary);
  border-radius: 12px;
  color: #fff;
}
.brand-mark svg { width: 29px; height: 29px; }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-size: 1.1875rem; font-weight: 800; }
.brand-text small { color: var(--color-muted-foreground); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; }

/* Pencarian pil besar */
.site-search {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  max-width: 520px;
  margin-left: auto;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.18);
}
.site-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 6px 10px 20px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--color-foreground);
}
.site-search input:focus { outline: none; }
.site-search input::placeholder { color: var(--color-muted-foreground); }
.search-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  border: none;
  cursor: pointer;
  background: var(--color-accent);
  color: #000;
  font: inherit;
  font-weight: 800;
  font-size: 0.9375rem;
  padding: 10px 22px;
  transition: background 200ms ease;
}
.search-submit svg { width: 17px; height: 17px; }
.search-submit:hover { background: var(--color-accent-dark); }
.site-search--mobile { display: none; max-width: none; margin: 0 0 var(--space-md); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.site-search + .header-actions { margin-left: 0; }

/* Tombol mode gelap */
.theme-toggle {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-foreground);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.theme-toggle svg { width: 21px; height: 21px; }
.theme-toggle:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
  color: var(--color-foreground);
}
.nav-toggle svg { width: 25px; height: 25px; }

/* ---------- Nav bar portal (sticky) ---------- */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--color-ink);
  border-bottom: 3px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}
.nav-inner { display: flex; align-items: center; }
.main-nav ul {
  display: flex;
  align-items: stretch;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: var(--nav-height);
  padding: 10px 16px;
  color: #E7F0E4;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 200ms ease, color 200ms ease;
}
.main-nav a:hover { background: rgba(252, 211, 77, 0.14); color: #FCD34D; }
.main-nav a[aria-current="page"] { background: var(--color-accent); color: #000; font-weight: 800; }
.nav-badge {
  background: #FCD34D;
  color: #7C2D12;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.4;
}
.main-nav a[aria-current="page"] .nav-badge { background: #0C2317; color: #FCD34D; }

/* ---------- Hero majalah ---------- */
.hero {
  position: relative;
  background: #14532D;
  color: #fff;
  overflow: hidden;
}
.hero-scene {
  position: absolute;
  inset: 0;
}
.hero-scene svg { width: 100%; height: 100%; display: block; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 23, 0.45);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) 0;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #FCD34D;
  background: rgba(12, 35, 23, 0.5);
  border: 1px solid rgba(217, 119, 6, 0.75);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: var(--space-lg);
}
.hero-title {
  font-size: clamp(2.9rem, 8.5vw, 6.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  text-shadow: 0 4px 28px rgba(12, 35, 23, 0.55);
}
.hero-title .gold { color: #FCD34D; }
.hero-lead { font-size: 1.125rem; color: #DCFCE7; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }

/* Strip statistik menyatu di tepi bawah hero */
.hero-stats {
  position: relative;
  z-index: 2;
  background: rgba(12, 35, 23, 0.62);
  border-top: 1px solid rgba(252, 211, 77, 0.35);
  backdrop-filter: blur(4px);
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.stat {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
}
.stat strong { display: block; font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1.15; }
.stat span { font-size: 0.8125rem; color: #C2D8B2; font-weight: 600; }

/* Pita portal halaman dalam */
.page-hero {
  background: #14532D;
  color: #fff;
  padding: 34px 0 30px;
  border-bottom: 4px solid var(--color-accent);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: var(--space-sm); }
.page-hero p { color: #DCFCE7; max-width: 44rem; margin: 0; }
.page-hero a { color: #FCD34D; font-weight: 600; }
.breadcrumb { font-size: 0.875rem; margin-bottom: 10px; color: #C2D8B2; }
.breadcrumb a { color: #fff; }

/* ---------- Kartu & grid ---------- */
.grid { display: grid; gap: var(--space-lg); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease, background 250ms ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #D4D4D8; }
.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: var(--space-sm); }
.card p { color: var(--color-muted-foreground); }
.card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; text-decoration: none;
  min-height: 44px;
}
.card .card-link:hover { text-decoration: underline; }
.card .card-link svg { width: 18px; height: 18px; }

/* Kartu jurusan gaya majalah: ubin visual di atas */
.major-thumb {
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 8;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-md);
}
.major-thumb svg { width: 54px; height: 54px; }
.major-card .major-tag {
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--color-accent-dark);
  text-transform: uppercase;
}

/* Strip sambutan */
.welcome {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
}
.welcome-photo {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: var(--space-lg);
}
.welcome-photo svg { width: 84px; height: 84px; margin-bottom: var(--space-sm); }
.welcome-photo span { font-size: 0.8125rem; font-weight: 600; }
.welcome blockquote {
  margin: 0 0 var(--space-md);
  font-size: 1.0625rem;
}
.welcome .principal-name { font-weight: 800; }
.welcome .principal-role { color: var(--color-muted-foreground); font-size: 0.9375rem; }

/* ---------- Berita gaya majalah ---------- */
.news-layout { display: grid; gap: var(--space-lg); }
.news-side { display: grid; gap: var(--space-lg); align-content: start; }
.news-card { display: flex; flex-direction: column; }
.news-thumb {
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-md);
}
.news-thumb svg { width: 52px; height: 52px; }
.news-meta { font-size: 0.8125rem; color: var(--color-muted-foreground); font-weight: 600; margin-bottom: var(--space-sm); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-card h3 { font-size: 1.125rem; }
.news-card p { flex: 1; }
.news-card--featured h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.3; }
.news-card--featured .news-thumb svg { width: 72px; height: 72px; }
.news-card--mini {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: var(--space-md);
  align-items: start;
}
.news-card--mini .news-thumb { aspect-ratio: 4 / 3; margin-bottom: 0; height: 100%; }
.news-card--mini .news-thumb svg { width: 40px; height: 40px; }
.news-card--mini h3 { font-size: 1.0625rem; }
.news-mini-body { display: flex; flex-direction: column; min-width: 0; }
.news-mini-body p { flex: 1; }

/* Bilah hasil pencarian (berita.html) */
.search-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}
.search-result p { margin: 0; }
.search-result--empty { display: block; font-style: italic; }

/* CTA band */
.cta-band {
  background: var(--color-accent-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #FFEDD5; max-width: 40rem; margin-inline: auto; }

/* Tabel */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-card); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--color-muted); vertical-align: top; }
th { background: var(--color-surface); font-weight: 700; width: 34%; }
tr:last-child th, tr:last-child td { border-bottom: none; }

/* Langkah (steps) */
.steps { counter-reset: langkah; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-md); }
.steps li {
  counter-increment: langkah;
  display: flex; gap: var(--space-md);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  align-items: flex-start;
}
.steps li::before {
  content: counter(langkah);
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
}
.steps h3 { margin-bottom: 4px; font-size: 1.0625rem; }
.steps p { margin: 0; color: var(--color-muted-foreground); }

/* Detail jurusan */
.major-detail {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--nav-height) + 28px);
}
.major-detail header { display: flex; gap: var(--space-md); align-items: center; margin-bottom: var(--space-md); flex-wrap: wrap; }
.major-detail h2 { margin: 0; }
.major-cols { display: grid; gap: var(--space-lg); }
.major-cols h3 { font-size: 1rem; color: var(--color-primary); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; flex: none; color: var(--color-accent-dark); margin-top: 3px; }

/* Galeri */
.gallery-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
.gallery-tile {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
}
.gallery-visual {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
}
.gallery-visual svg { width: 64px; height: 64px; opacity: 0.95; }
.gallery-tile figcaption { padding: var(--space-md); }
.gallery-tile figcaption strong { display: block; margin-bottom: 2px; }
.gallery-tile figcaption span { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* Formulir */
.form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: var(--space-md); }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9375rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  color: var(--color-foreground);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.18);
}

/* Info kontak */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-md); }
.info-list li { display: flex; gap: var(--space-md); align-items: flex-start; }
.info-list .card-icon { margin: 0; width: 48px; height: 48px; }
.info-list .card-icon svg { width: 24px; height: 24px; }
.info-list strong { display: block; }
.info-list span, .info-list a { color: var(--color-muted-foreground); }

/* Pengumuman */
.announce {
  border: 1px solid #FDE68A;
  border-left: 4px solid var(--color-accent);
  background: #FFFBEB;
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
}
.announce strong { display: block; margin-bottom: 2px; color: #14231A; }
.announce p { margin: 0; color: #7C2D12; }
html[data-theme="dark"] .announce { background: rgba(217, 119, 6, 0.12); border-color: rgba(217, 119, 6, 0.45); }
html[data-theme="dark"] .announce strong { color: #FDE68A; }
html[data-theme="dark"] .announce p { color: #FCD9A8; }

/* Struktur organisasi */
.org-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
.org-box {
  background: var(--color-surface);
  border: 1px dashed var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  text-align: center;
}
.org-box strong { display: block; }
.org-box span { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* ---------- Footer portal ---------- */
.site-footer {
  background: #0C2317;
  color: #DCFCE7;
  margin-top: 0;
  border-top: 4px solid var(--color-accent);
}
.footer-grid {
  display: grid;
  gap: var(--space-xl);
  padding: var(--space-3xl) 0 var(--space-2xl);
  grid-template-columns: 1fr;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid rgba(217, 119, 6, 0.55);
}
.site-footer a { color: #C2D8B2; text-decoration: none; }
.site-footer a:hover { color: #FCD34D; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--space-sm); }
.site-footer p { color: #86EFAC; font-size: 0.9375rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: #86EFAC; }
.footer-bottom {
  border-top: 1px solid rgba(194, 216, 178, 0.25);
  padding: var(--space-lg) 0;
  font-size: 0.875rem;
  color: #86EFAC;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: space-between;
}

/* ---------- Animasi muncul saat scroll ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsif ---------- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .org-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
  .stat { text-align: left; }
  .stat + .stat { border-left: 1px solid rgba(194, 216, 178, 0.25); }
}
@media (min-width: 900px) {
  .welcome { grid-template-columns: 320px 1fr; }
  .major-cols { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr; }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1.15fr 0.85fr; }
}
@media (min-width: 1280px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Navigasi & header mobile */
@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .nav-inner { flex-direction: column; align-items: stretch; padding-top: var(--space-md); padding-bottom: var(--space-md); }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { width: 100%; border-radius: 10px; min-height: 48px; }
  .site-search--mobile { display: flex; }
}
@media (max-width: 859px) {
  .site-search:not(.site-search--mobile) { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 639px) {
  .topbar-email { display: none; }
  .topbar-social .topbar-note { display: none; }
  .brand-text small { display: none; }
  .hero-content { padding: var(--space-2xl) 0; }
  .news-card--mini { grid-template-columns: 104px 1fr; }
  .stat { padding: var(--space-md); }
}

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