/* ==========================================================================
   HIMSU PADANG — OFFICIAL COLOR SYSTEM (SELARAS LOGO HIMSU PADANG)
   Forest Emerald · Warm Gold Cream · Sky Blue — Sumatera Utara
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #050E09;
  --bg-2: #091810;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(16, 185, 129, 0.14);
  --line-strong: rgba(245, 158, 11, 0.26);

  --a1: #10B981;
  --a2: #F59E0B;
  --a3: #38BDF8;
  --grad: linear-gradient(120deg, var(--a1), var(--a2));
  --grad-cool: linear-gradient(120deg, var(--a3), var(--a1));

  --text: #F0F6F1;
  --muted: #9DB5A3;
  --dim: #647F6C;

  --ok: #22C55E;
  --warn: #F59E0B;
  --bad: #EF4444;

  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --glow-a1: 0 0 32px rgba(16, 185, 129, 0.35);
  --glow-a2: 0 0 32px rgba(245, 158, 11, 0.3);

  --bb-far-color: #0d2a1b;
  --bb-mid-color: #071c11;
  --bb-near-color: #04120a;
}

/* ==========================================================================
   LIGHT THEME VARIABLES (SEJUK, BERSIH & KONTRAS ELEGAN)
   ========================================================================== */
[data-theme="light"] {
  --bg: #F4F8F5;
  --bg-2: #E8F2EC;
  --panel: #FFFFFF;
  --panel-strong: #EAF3EC;
  --line: rgba(5, 150, 105, 0.22);
  --line-strong: rgba(217, 119, 6, 0.38);

  --a1: #059669;
  --a2: #B45309;
  --a3: #0284C7;
  --grad: linear-gradient(120deg, #059669, #D97706);
  --grad-cool: linear-gradient(120deg, #0284C7, #059669);

  --text: #0E291C;
  --muted: #244835;
  --dim: #3E604D;

  --ok: #15803D;
  --warn: #B45309;
  --bad: #DC2626;

  --glow-a1: 0 0 28px rgba(5, 150, 105, 0.22);
  --glow-a2: 0 0 28px rgba(217, 119, 6, 0.2);

  --bb-far-color: #a3d9b8;
  --bb-mid-color: #62b98f;
  --bb-near-color: #bce7cb;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Latar: grid cahaya + aurora hijau zamrud, emas krem & biru perisai HIMSU */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(16, 185, 129, 0.18), transparent 60%),
    radial-gradient(50% 45% at 0% 35%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(45% 40% at 70% 100%, rgba(245, 158, 11, 0.12), transparent 60%),
    var(--bg);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: var(--a1); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.mono { font-family: var(--font-mono); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Pita tenun digital */
.tenun {
  height: 6px;
  background:
    repeating-linear-gradient(90deg,
      var(--a1) 0 18px, transparent 18px 22px,
      var(--a2) 22px 30px, transparent 30px 34px,
      #fff 34px 36px, transparent 36px 44px);
  opacity: 0.85;
}

/* ===================== NAVBAR ===================== */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  padding: 0 1rem;
  transition: top .3s ease;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0.85rem 0.6rem 1.2rem;
  background: rgba(4, 15, 10, 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(16, 185, 129, 0.38);
  border-radius: 999px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.25);
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; overflow: hidden;
  background: #082014;
  border: 2px solid #F59E0B;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
  color: #FFFFFF; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 1.05rem;
  color: #FFFFFF !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  color: #6EE7B7 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.nav-links {
  display: flex;
  gap: .35rem;
  list-style: none;
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}
.nav-links a {
  display: block; padding: .52rem .95rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: #E2E8F0;
  transition: all .2s ease;
  text-decoration: none;
}
.nav-links a:hover {
  color: #FFFFFF;
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}
.nav-links a.active {
  color: #FFFFFF;
  background: rgba(16, 185, 129, 0.28);
  font-weight: 700;
}
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(16, 185, 129, 0.2); border: 1.5px solid rgba(16, 185, 129, 0.5);
  color: #FFFFFF; cursor: pointer; font-size: 1.15rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ===================== THEME TOGGLE BUTTON ===================== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  border: 1.5px solid rgba(16, 185, 129, 0.42);
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.theme-toggle:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #10B981;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}
.theme-toggle svg {
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-toggle:hover svg {
  transform: rotate(15deg) scale(1.1);
}

/* Icon toggle visibility — PASTIKAN LOGO MATAHARI TIDAK PERNAH MUNCUL PADA MODE DARK */
.theme-toggle .theme-icon-sun { display: none !important; }
.theme-toggle .theme-icon-moon { display: block !important; color: #F59E0B; }

[data-theme="light"] .theme-toggle .theme-icon-sun { display: block !important; color: #D97706; }
[data-theme="light"] .theme-toggle .theme-icon-moon { display: none !important; }

[data-theme="light"] .theme-toggle {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.35);
  color: #062817;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .theme-toggle:hover {
  background: #F0FDF4;
  border-color: #059669;
  color: #047857;
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.25);
}

@media (max-width: 600px) {
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
}

/* ===================== BUTTONS / BADGES ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .9rem; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-glow { background: var(--grad); color: #04120B; box-shadow: var(--glow-a1); }
.btn-glow:hover { box-shadow: 0 0 44px rgba(16, 185, 129, 0.55); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--panel-strong); border-color: #fff; }
.btn-danger { background: rgba(239, 68, 68, .12); color: var(--bad); border-color: rgba(239, 68, 68, .35); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-sm { padding: .45rem .95rem; font-size: .78rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .7rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--muted); background: var(--panel);
}
.badge-a1 { color: var(--a1); border-color: rgba(16, 185, 129, .45); background: rgba(16, 185, 129, .12); }
.badge-a2 { color: var(--a2); border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .12); }
.badge-ok { color: var(--ok); border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .12); }
.badge-muted { color: var(--muted); border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); }

/* ===================== HERO ===================== */
.hero { position: relative; padding: 9.5rem 0 6.5rem; overflow: hidden; }

/* Siluet Panorama Bukit Barisan Full-Width (Ujung Kanan ke Kiri) */
.bukit-barisan-backdrop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 360px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.bb-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--a2); padding: .4rem .9rem; border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 999px; background: rgba(245, 158, 11, .08); margin-bottom: 1.5rem;
}
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 10px var(--a2); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

.hero-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.025em;
  margin-bottom: 1.4rem;
}
.hero-sub { font-size: 1.08rem; color: var(--muted); max-width: 560px; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }

/* Tampilan Logo HIMSU: Bersih, Berwibawa & Alami (Tanpa Orbit Tata Surya) */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 380px;
  margin-left: auto;
  width: 100%;
}
.hero-crest {
  position: relative;
  width: 250px;
  height: 250px;
  display: grid;
  place-items: center;
  animation: floatCrest 7s ease-in-out infinite;
}
@keyframes floatCrest {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.crest-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(245, 158, 11, 0.1) 50%, transparent 72%);
  filter: blur(14px);
  pointer-events: none;
}
.crest-frame {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 22, 14, 0.9) 0%, rgba(3, 13, 8, 0.96) 100%);
  border: 2px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 28px rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
[data-theme="light"] .crest-frame {
  background: radial-gradient(circle, #FFFFFF 0%, #F0FDF4 100%);
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: 0 16px 36px rgba(5, 150, 105, 0.14), 0 2px 10px rgba(0, 0, 0, 0.05);
}
.crest-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.salam {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02); overflow: hidden; white-space: nowrap; padding: .9rem 0;
}
.salam-track { display: inline-flex; gap: 3rem; animation: marquee 32s linear infinite; font-family: var(--font-mono); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.salam-track b { color: var(--text); font-weight: 500; }
.salam-track i { color: var(--a1); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================== SECTION ===================== */
.section { padding: 6rem 0; position: relative; }
.sec-head { max-width: 720px; margin-bottom: 3.2rem; }
.sec-tag { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--a1); display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.sec-tag::before { content: ''; width: 34px; height: 2px; background: var(--grad); }
.sec-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: .8rem; }
.sec-sub { color: var(--muted); font-size: 1.02rem; }

.glass {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 2rem; position: relative; overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}

/* ===================== PROFIL ===================== */
.profile-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.5rem; }
.glass h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.glass p { color: var(--muted); text-align: justify; }
.history-box { margin-top: 1.4rem; padding: 1.2rem; border-left: 2px solid var(--a1); background: rgba(16, 185, 129, .06); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.history-box h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--a2); margin-bottom: .4rem; }
.vision {
  padding: 1.5rem; border-radius: var(--r-md); margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, .14), rgba(56, 189, 248, .10));
  border: 1px solid rgba(16, 185, 129, .32);
}
.vision h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--a2); margin-bottom: .5rem; }
.vision p { color: var(--text); font-family: var(--font-head); font-size: 1.15rem; text-align: left; line-height: 1.5; }
.mission-list { list-style: none; counter-reset: m; display: flex; flex-direction: column; gap: .85rem; }
.mission-list li { counter-increment: m; display: flex; gap: .9rem; color: var(--muted); font-size: .95rem; }
.mission-list li::before {
  content: counter(m, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .75rem; color: var(--a1);
  border: 1px solid rgba(16, 185, 129, .45); border-radius: 6px; height: 26px; min-width: 34px;
  display: grid; place-items: center; background: rgba(16, 185, 129, .1); margin-top: .1rem;
}
.org-pillar-box {
  padding: 1.35rem 1.4rem;
  border-radius: var(--r-md);
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, .12), rgba(56, 189, 248, .08));
  border: 1px solid rgba(16, 185, 129, .28);
}
.org-function-box {
  padding: 1.35rem 1.4rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.org-pillar-box h4, .org-function-box h4, .cabinet-missions-wrap h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--a2);
  margin-bottom: .85rem;
}
.mission-list-func li::before {
  color: var(--a2);
  border-color: rgba(245, 158, 11, .45);
  background: rgba(245, 158, 11, .1);
}
.cabinet-visimisi-card {
  margin-bottom: 2.4rem;
  padding: 1.75rem 2rem;
  background: rgba(10, 26, 17, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
}
.cabinet-visimisi-head {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.cabinet-visimisi-head h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 0;
  color: #fff;
}
.cabinet-visimisi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.cabinet-missions-wrap {
  padding: 1.35rem 1.4rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
}

/* ===================== BIDANG (LOGO KABINET & HEX / NATURAL LOGO) ===================== */
.cabinet-logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2.2rem;
  margin: 1.4rem 0 2.6rem;
}
.cabinet-pure-btn {
  background: transparent;
  border: none;
  outline: none;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 170px;
  max-width: 260px;
}
.cabinet-pure-btn:hover,
.cabinet-pure-btn.active {
  transform: translateY(-8px) scale(1.04);
  background: transparent;
  border: none;
  box-shadow: none;
}
.cabinet-natural-wrap {
  width: 100%;
  height: 160px;
  display: grid;
  place-items: center;
  background: transparent;
}
.cabinet-natural-logo {
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain; /* Bentuk asli logo tanpa dipotong lingkaran dan tanpa background kotak */
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 16px rgba(16, 185, 129, 0.35));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}
.cabinet-pure-btn:hover .cabinet-natural-logo,
.cabinet-pure-btn.active .cabinet-natural-logo {
  transform: scale(1.08);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 30px rgba(16, 185, 129, 0.75));
}
.cabinet-natural-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}
.cabinet-natural-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  transition: color 0.25s ease;
}
.cabinet-pure-btn:hover .cabinet-natural-name {
  color: var(--a1);
}

.cabinet-page-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 1.8rem 2.2rem;
  background: rgba(10, 26, 17, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.cabinet-page-hero h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  line-height: 1.15;
  margin: 0.3rem 0;
  color: #fff;
}
.cabinet-page-hero p {
  color: var(--muted);
  max-width: 650px;
}

.cabinet-hero-logo {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 6px;
}
.cabinet-hero-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Bentuk asli */
  background: transparent !important;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(16, 185, 129, 0.45));
}

.cabinet-drawer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, margin-top 0.35s ease;
  overflow: hidden;
  pointer-events: none;
}
.cabinet-drawer.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1.2rem;
  pointer-events: auto;
}
.cabinet-drawer-inner {
  min-height: 0;
  padding: 0.4rem 0.2rem 1rem;
}
.cabinet-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.cabinet-drawer-head h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text);
}

@media (max-width: 760px) {
  .cabinet-card {
    flex-direction: column;
    text-align: center;
    padding: 1.8rem 1.4rem;
    gap: 1.3rem;
  }
}

.hex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  justify-content: center;
}

.hex {
  background: rgba(10, 26, 17, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.35rem 1.4rem 1.25rem;
  color: inherit;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease;
}

.hex::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hex:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 36, 24, 0.85);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 28px rgba(16, 185, 129, 0.25);
}

.hex:hover::before {
  opacity: 1;
}

.hex-icon-box {
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
  flex-shrink: 0;
  position: relative;
}

/* Badge Icon Default (Ketika bidang belum punya logo khusus) */
.dept-icon-badge {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.18), rgba(6, 20, 13, 0.9) 75%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  color: var(--a2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.dept-icon-badge svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}
.hex:hover .dept-icon-badge {
  color: #fff;
  border-color: rgba(16, 185, 129, 0.8);
  background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.32), rgba(10, 30, 20, 0.95) 80%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 22px rgba(16, 185, 129, 0.45);
}
.hex:hover .dept-icon-badge svg {
  transform: scale(1.1);
}

/* Fallback untuk .hex-frame dan .hex-inner */
.hex-frame {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.18), rgba(6, 20, 13, 0.9) 75%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  transition: all 0.3s ease;
}
.hex:hover .hex-frame {
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 22px rgba(16, 185, 129, 0.45);
}
.hex-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--a2);
}
.hex:hover .hex-inner {
  color: #fff;
}
.hex-inner svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.hex-inner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Bentuk Asli Logo Bidang (Tanpa Potongan Hexagon / Lingkaran) */
.dept-logo-box,
.dept-natural-wrap {
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  position: relative;
}
.dept-natural-logo {
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(16, 185, 129, 0.35));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}
.hex:hover .dept-natural-logo {
  transform: scale(1.08);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 24px rgba(16, 185, 129, 0.65));
}

/* Detail Bidang Hero (Bentuk Asli Logo & Badge Default) */
.dept-hero-badge {
  width: 110px;
  height: 110px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.22), rgba(6, 20, 13, 0.95) 75%);
  border: 2px solid rgba(16, 185, 129, 0.45);
  color: var(--a2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 24px rgba(16, 185, 129, 0.25);
}
.dept-hero-badge svg {
  width: 52px;
  height: 52px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.dept-hero-logo-box,
.dept-hero-natural-wrap {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 4px;
}
.dept-hero-natural-logo {
  max-width: 112px;
  max-height: 112px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 22px rgba(16, 185, 129, 0.5));
}

.hex-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 0.85rem;
}

.hex-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: #fff;
  line-height: 1.25;
  min-height: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.hex:hover .hex-name {
  color: var(--a1);
}

.hex-tag {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  min-height: 2.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.hex-cta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--a1);
  padding: 0.5rem 0.95rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  transition: all 0.25s ease;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hex:hover .hex-cta {
  background: var(--grad);
  color: #04120B;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Drag & Drop Upload Box */
.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.3rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--a1);
  background: rgba(16, 185, 129, 0.09);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.2);
}
.dropzone-preview {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: contain;
  padding: 4px;
  border: 1.5px solid var(--a1);
  background-color: #08170e;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .dropzone-preview {
  background-color: #f0f7f2;
  background-image:
    linear-gradient(45deg, rgba(0, 0, 0, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.06) 75%);
}
.dropzone-text {
  text-align: left;
}
.dropzone-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
}
.dropzone-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.dropzone-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.badge-trans {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
[data-theme="light"] .badge-trans {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.3);
  color: #059669;
}

/* Multi-photo Admin Grid & Public Carousel */
.multi-photo-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; margin-top: .65rem; flex-wrap: wrap;
}
.multi-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: .65rem; margin-top: .65rem;
}
.multi-photo-card {
  position: relative; aspect-ratio: 4 / 3; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--line-strong); background: #08170E;
}
.multi-photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.multi-photo-badge {
  position: absolute; top: 5px; left: 5px; padding: 2px 6px; border-radius: 5px;
  background: rgba(16, 185, 129, .92); color: #04120B;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700; text-transform: uppercase;
}
.multi-photo-actions {
  position: absolute; top: 5px; right: 5px; display: flex; gap: 4px;
}
.multi-photo-btn {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(5, 16, 10, .78); color: #fff; font-size: .72rem; cursor: pointer;
  display: inline-grid; place-items: center; transition: background .2s ease;
}
.multi-photo-cover-btn:hover { background: rgba(245, 158, 11, .92); color: #04120B; }
.multi-photo-del-btn:hover { background: rgba(239, 68, 68, .92); }
.thumb-multi-pill, .dash-mini-gal-count {
  position: absolute; top: 4px; right: 4px; padding: 2px 6px; border-radius: 999px;
  background: rgba(4, 15, 9, .82); border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; font-family: var(--font-mono); font-size: .64rem; font-weight: 700;
}
.dash-mini-gal-card { position: relative; }
.post-thumb-count, .g-count-badge {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  padding: .24rem .62rem; border-radius: 999px;
  background: rgba(5, 16, 10, .74); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  backdrop-filter: blur(8px);
}
.post-carousel { margin-bottom: 1.3rem; }
.post-carousel-stage {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #06130C; border: 1px solid var(--line-strong);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.post-carousel-stage.single-media { cursor: default; touch-action: auto; margin-bottom: 1.3rem; }
.post-carousel-stage.is-grabbing { cursor: grabbing; }
.post-carousel-track {
  display: flex; width: 100%; align-items: center;
  will-change: transform;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}
.post-carousel-track.is-dragging { transition: none; }
.post-carousel-slide {
  flex: 0 0 100%; width: 100%; min-width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.post-carousel-slide img,
.post-carousel-stage img {
  width: 100%; max-height: min(440px, 56vh); object-fit: contain; display: block; margin: 0 auto;
  pointer-events: none; -webkit-user-drag: none;
}
.post-carousel-counter {
  position: absolute; bottom: .65rem; right: .75rem; z-index: 2; pointer-events: none;
  padding: .2rem .65rem; border-radius: 999px;
  background: rgba(5, 16, 10, .75); border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; font-family: var(--font-mono); font-size: .72rem;
}
.post-carousel-thumbs {
  display: flex; gap: .5rem; overflow-x: auto; padding: .65rem .1rem .2rem;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.post-carousel-thumb {
  width: 66px; height: 50px; flex-shrink: 0; padding: 0; border-radius: 9px;
  overflow: hidden; border: 2px solid transparent; opacity: .58; cursor: pointer;
  background: #07140D; transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.post-carousel-thumb:hover { opacity: .9; }
.post-carousel-thumb.active { border-color: var(--a1); opacity: 1; transform: translateY(-1px); }
.post-carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-detail-header { margin-bottom: 1.1rem; }
.post-detail-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .72rem; }
.post-detail-title {
  font-family: var(--font-head); font-size: clamp(1.32rem, 2.4vw, 1.68rem);
  line-height: 1.28; letter-spacing: -.015em; color: #F2FBF6; margin: 0 0 .68rem;
}
.post-detail-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.05rem;
  font-size: .82rem; color: var(--muted);
}
.post-detail-meta-item { display: inline-flex; align-items: center; gap: .38rem; }
.post-detail-meta-item svg { width: 14px; height: 14px; color: var(--a1); flex-shrink: 0; }
.post-detail-divider { height: 1px; background: var(--line); margin: 0 0 1.2rem; }
.post-detail-article {
  display: flex; flex-direction: column; gap: .88rem;
  font-size: .97rem; line-height: 1.75; color: rgba(235, 248, 240, .9);
}
.post-detail-article p { margin: 0; overflow-wrap: anywhere; }
.post-detail-article strong { color: #FFFFFF; font-weight: 700; }
.post-article-callout {
  display: inline-flex; align-items: center; gap: .55rem; align-self: flex-start;
  padding: .55rem .92rem; border-radius: 10px;
  background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .26);
  color: #ECFDF5; font-weight: 700; font-size: .92rem; line-height: 1.45; letter-spacing: .01em;
}
.post-article-list {
  margin: .1rem 0 .25rem; padding-left: 1.35rem;
  display: flex; flex-direction: column; gap: .42rem;
}
.post-article-list li { padding-left: .2rem; color: rgba(235, 248, 240, .9); overflow-wrap: anywhere; }
.post-article-link { color: var(--a1); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

@media (max-width: 640px) {
  .modal-backdrop { padding: .6rem; }
  .modal-box { max-height: 92vh; border-radius: 16px; }
  .modal-head { padding: .85rem 1.05rem; }
  .modal-body { padding: 1.05rem 1.05rem 1.45rem; }
  .post-carousel-thumb { width: 58px; height: 46px; }
}
.btn-trans-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-trans-toggle:hover {
  background: var(--a1);
  color: #fff;
  border-color: var(--a1);
}
[data-theme="light"] .btn-trans-toggle {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.25);
  color: #0E291C;
}
[data-theme="light"] .btn-trans-toggle:hover {
  background: var(--a1);
  color: #fff;
}

/* Tampilan halaman penuh (Kabinet & Struktur Bidang) */
.dept-view {
  position: fixed; inset: 0; z-index: 200; overflow-y: auto;
  background: rgba(5, 14, 9, .96); backdrop-filter: blur(22px);
  opacity: 0; visibility: hidden; transform: translateY(30px);
  transition: all .35s ease;
}
.dept-view.open { opacity: 1; visibility: visible; transform: none; }
.dept-view-inner { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }
.dept-back { margin-bottom: 2rem; }
.dept-hero { display: flex; gap: 2rem; align-items: center; margin-bottom: 3rem; flex-wrap: wrap; }
.dept-hero-content { position: relative; z-index: 2; display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; width: 100%; }
.dept-hero-text { flex: 1; min-width: 240px; }
.dept-hero-tagline { color: var(--a1); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: .3rem 0 .8rem; }
.dept-hero.has-cover {
  display: flex; flex-wrap: nowrap; align-items: flex-end; position: relative;
  width: 100%; aspect-ratio: 16 / 9; min-height: 380px; padding: 3.6rem 0 0 0;
  overflow: hidden; border-radius: var(--r-lg); margin-bottom: 2rem;
  border: 1px solid rgba(16, 185, 129, .35);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .24);
}
.dept-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.dept-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%; display: block;
}
.dept-hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(4, 14, 9, .24) 0%, rgba(4, 14, 9, 0) 42%);
}
.dept-hero-view-btn {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .42rem .85rem; border-radius: 999px;
  background: rgba(8, 22, 14, .42); border: 1px solid rgba(255, 255, 255, .36);
  color: #fff; font-size: .76rem; font-weight: 600; cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.dept-hero-view-btn:hover {
  background: rgba(16, 185, 129, .78); border-color: rgba(255, 255, 255, .6); transform: translateY(-1px);
}
.dept-hero.has-cover .dept-hero-content {
  flex: 1 1 auto; width: auto; min-width: 0; margin: 1.25rem; z-index: 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16) 0%, rgba(8, 22, 14, .22) 100%);
  backdrop-filter: blur(4px) saturate(1.15); -webkit-backdrop-filter: blur(4px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .34);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .32);
  border-radius: var(--r-md); padding: 1rem 1.3rem; gap: 1.15rem; align-items: center;
}
.dept-hero.has-cover h2 {
  color: #FFFFFF; font-size: clamp(1.38rem, 2.8vw, 2rem); margin-bottom: .2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .88), 0 1px 3px rgba(0, 0, 0, .96);
}
.dept-hero.has-cover .dept-hero-tagline {
  color: #86EFAC; font-weight: 700; font-size: .75rem; margin: .15rem 0 .42rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .92), 0 1px 2px rgba(0, 0, 0, .98);
}
.dept-hero.has-cover .dept-hero-desc {
  color: #F8FAFC; font-weight: 500; font-size: .87rem; line-height: 1.48; max-width: 780px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .92), 0 1px 3px rgba(0, 0, 0, .98);
}
.dept-hero.has-cover .badge-a2 {
  background: rgba(245, 158, 11, .34); border-color: rgba(253, 224, 71, .72);
  color: #FEF08A; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
  backdrop-filter: blur(4px); margin-bottom: .2rem; display: inline-block;
}
.dept-hero.has-cover .dept-hero-logo-box,
.dept-hero.has-cover .dept-hero-natural-wrap {
  width: 104px; height: 104px; padding: 6px;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(4px);
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, .32);
}
.dept-hero.has-cover .dept-hero-natural-logo { max-width: 92px; max-height: 92px; }
.dept-hero.has-cover .dept-hero-badge { width: 96px; height: 96px; border-radius: 20px; }
.dept-hero.has-cover .dept-hero-badge svg { width: 44px; height: 44px; }
@media (max-width: 640px) {
  .dept-hero.has-cover { aspect-ratio: 4 / 3; min-height: 360px; padding-top: 3.2rem; }
  .dept-hero.has-cover .dept-hero-content { margin: .75rem; padding: .85rem .95rem; gap: .8rem; }
  .dept-hero.has-cover .dept-hero-logo-box,
  .dept-hero.has-cover .dept-hero-natural-wrap,
  .dept-hero.has-cover .dept-hero-badge { width: 74px; height: 74px; border-radius: 16px; }
  .dept-hero.has-cover .dept-hero-natural-logo { max-width: 62px; max-height: 62px; }
}
.dept-hero .hex-frame { flex-shrink: 0; }
.dept-hero h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; margin-bottom: .5rem; }
.dept-hero p { color: var(--muted); max-width: 640px; }
.dept-switch { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.chip {
  padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--muted); font-size: .82rem; font-weight: 500; cursor: pointer; transition: all .2s ease;
}
.chip:hover { color: #fff; border-color: #fff; }
.chip.active { background: var(--grad); color: #04120B; border-color: transparent; font-weight: 700; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.member-card {
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  background: var(--panel); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  cursor: pointer; position: relative;
}
.member-card:hover { transform: translateY(-6px); border-color: rgba(16, 185, 129, .55); box-shadow: var(--glow-a1); }
.member-card:focus-visible { outline: 2px solid var(--a1); }
.member-photo { aspect-ratio: 4/4.3; position: relative; overflow: hidden; background: #081A10; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.03); transition: transform .5s ease, filter .3s ease; }
.member-card:hover .member-photo img { transform: scale(1.05); filter: contrast(1.08); }
.member-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 14, 9, .95), transparent 55%); }
.member-click-hint {
  position: absolute; top: .8rem; right: .8rem; z-index: 3;
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(4, 18, 11, .85); border: 1px solid rgba(16, 185, 129, .45);
  color: var(--a1); padding: .24rem .6rem; border-radius: 999px;
  backdrop-filter: blur(6px); opacity: 0; transform: translateY(-4px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.member-card:hover .member-click-hint { opacity: 1; transform: translateY(0); }
.member-role { position: absolute; left: 1rem; bottom: .9rem; z-index: 2; }
.member-body { padding: 1rem 1.2rem 1.3rem; }
.member-name { font-family: var(--font-head); font-size: 1.12rem; margin-bottom: .5rem; }
.member-meta { font-size: .82rem; color: var(--muted); display: flex; flex-direction: column; gap: .2rem; }
.member-ig { color: var(--a2); font-family: var(--font-mono); font-size: .76rem; margin-top: .35rem; }
.member-ig a { color: var(--a2); text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; transition: color .2s ease; }
.member-ig a:hover { color: var(--a1); text-decoration: underline; }
.empty { grid-column: 1/-1; text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }

/* Detail Biodata Anggota Modal */
.member-bio-modal { display: flex; flex-direction: column; gap: 1.4rem; }
.member-bio-top {
  display: flex; align-items: center; gap: 1.5rem;
  padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.member-bio-avatar-frame {
  width: 204px; height: 220px; border-radius: var(--r-md); overflow: hidden;
  border: 2px solid var(--line-strong); background: #081A10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55), 0 0 16px rgba(16, 185, 129, .25); flex-shrink: 0;
}
.member-bio-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-bio-summary { flex: 1; min-width: 220px; }
.member-bio-name { font-family: var(--font-head); font-size: 1.45rem; line-height: 1.25; margin-bottom: .35rem; color: #fff; }
.member-bio-dept { font-size: .92rem; color: var(--muted); margin-bottom: .75rem; }
.member-bio-ig-btn { display: inline-flex; align-items: center; font-size: .8rem; }
.member-bio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1.1rem; }
@media (max-width: 600px) {
  .member-bio-grid { grid-template-columns: 1fr; }
  .member-bio-top { flex-direction: column; text-align: center; }
  .member-bio-avatar-frame { width: 176px; height: 190px; }
  .member-bio-summary { display: flex; flex-direction: column; align-items: center; }
}
.bio-item {
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .75rem .95rem; display: flex; flex-direction: column; gap: .25rem;
}
.bio-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--a2); }
.bio-val { font-size: .92rem; font-weight: 500; color: var(--text); word-break: break-word; }
.bio-val.highlight { color: var(--a1); font-weight: 600; }

/* ===================== BERITA ===================== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.5rem; }
.post-card {
  display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); transition: all .3s ease;
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(245, 158, 11, .5); box-shadow: var(--glow-a2); }
.post-thumb { height: 200px; position: relative; overflow: hidden; background: #0A1A11; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.07); }
.post-thumb .badge { position: absolute; top: .9rem; left: .9rem; backdrop-filter: blur(8px); }
.post-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-family: var(--font-mono); font-size: .7rem; color: var(--dim); letter-spacing: .05em; display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .7rem; }
.post-title { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.3; margin-bottom: .6rem; }
.post-sum { color: var(--muted); font-size: .9rem; flex: 1; margin-bottom: 1.1rem; }
.link-arrow { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--a1); align-self: flex-start; background: none; border: none; cursor: pointer; }
.link-arrow:hover { color: var(--a2); }

/* ===================== DIREKTORI ===================== */
.dir-controls { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: .9rem; margin-bottom: 1.2rem; }
.input, .select, .textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--r-sm);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-strong);
  color: var(--text); font-family: var(--font-body); font-size: .92rem; transition: all .2s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.select option { background: #0A1A11; color: var(--text); }
.input[type='date'] { color-scheme: dark; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--panel); }
.table-scroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; text-align: left; }
.tbl th {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--a2); padding: 1rem 1.1rem; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line-strong); font-weight: 500; white-space: nowrap;
}
.tbl td { padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .88rem; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .2s ease; }
.tbl tbody tr:hover { background: rgba(16, 185, 129, .07); }
.cell-title { font-weight: 600; color: #fff; }
.cell-sub { font-size: .76rem; color: var(--muted); }

/* ===================== FILTER & GALERI PUBLIKASI ===================== */
.pub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  margin-bottom: 2rem;
}
.pub-cat-filters {
  margin-bottom: 0;
}
.pub-select-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.pub-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.pub-select-wrap:hover,
.pub-select-wrap:focus-within {
  border-color: var(--a1);
  background: var(--panel-strong);
}
.pub-select-wrap.is-active {
  border-color: rgba(16, 185, 129, .65);
  background: rgba(16, 185, 129, .12);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, .12);
}
.pub-select-icon {
  position: absolute;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  color: var(--a1);
  pointer-events: none;
}
.pub-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 2.15rem 0.5rem 2.25rem;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  max-width: 240px;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239DB5A3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}
.pub-select-wrap.is-active .pub-select {
  color: #fff;
  font-weight: 600;
}
.pub-select option {
  background: #091810;
  color: #F0F6F1;
}
.pub-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, .38);
  background: rgba(239, 68, 68, .1);
  color: #FCA5A5;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pub-reset-btn:hover {
  background: rgba(239, 68, 68, .22);
  border-color: rgba(239, 68, 68, .65);
  color: #fff;
}
.gallery-grid { columns: 3 280px; column-gap: 1.2rem; }
.g-item { break-inside: avoid; margin-bottom: 1.2rem; position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); cursor: pointer; background: #0A1A11; }
.g-item img { width: 100%; transition: transform .6s ease, filter .3s ease; }
.g-item:hover img { transform: scale(1.06); filter: brightness(.7); }
.g-cap { position: absolute; inset: auto 0 0 0; padding: 1.2rem; background: linear-gradient(to top, rgba(5, 14, 9, .95), transparent); transform: translateY(8px); opacity: .0; transition: all .3s ease; }
.g-item:hover .g-cap { opacity: 1; transform: none; }
.g-cap h4 { font-family: var(--font-head); margin-top: .35rem; }
.g-cap p { font-size: .78rem; color: var(--muted); font-family: var(--font-mono); }

/* ===================== KONTAK ===================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.c-card { padding: 1.6rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); transition: all .3s ease; display: flex; flex-direction: column; text-decoration: none; color: inherit; cursor: pointer; }
.c-card:hover { border-color: var(--a1); transform: translateY(-4px); box-shadow: var(--glow-a1); }
.c-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(16, 185, 129, .14); color: var(--a1); margin-bottom: 1rem; transition: all .25s ease; }
.c-card:hover .c-icon { background: var(--grad); color: #04120B; }
.c-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.c-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: .3rem; }
.c-value { font-weight: 500; word-break: break-word; flex: 1; }
.c-phone-main { color: var(--text); text-decoration: none; transition: color .2s ease; }
.c-phone-main:hover { color: var(--a2); }
.c-cta { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--a2); margin-top: .85rem; display: inline-flex; align-items: center; gap: .3rem; transition: color .2s ease, transform .2s ease; }
.c-card:hover .c-cta { color: var(--a1); transform: translateX(3px); }
.c-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.c-action-pill {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .72rem; border-radius: 999px; background: rgba(16, 185, 129, .15); border: 1px solid rgba(16, 185, 129, .45);
  color: #fff; text-decoration: none; transition: all .2s ease;
}
.c-action-pill:hover { background: var(--grad); color: #04120B; border-color: transparent; font-weight: 700; }
.c-action-pill.c-action-alt { background: rgba(255,255,255,.06); border-color: var(--line-strong); color: var(--muted); }
.c-action-pill.c-action-alt:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ===================== FOOTER ===================== */
.footer { margin-top: 3rem; border-top: 1px solid var(--line); background: rgba(0,0,0,.35); }
.footer-inner { padding: 3rem 0 2rem; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer p { color: var(--muted); max-width: 420px; font-size: .9rem; margin-top: .9rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.footer-links a { color: var(--muted); transition: color .2s ease; }
.footer-links a:hover { color: var(--a2); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.2rem 0 1.6rem; font-family: var(--font-mono); font-size: .72rem; color: var(--dim); letter-spacing: .06em; }

/* ===================== MODAL / TOAST ===================== */
.modal-backdrop { position: fixed; inset: 0; z-index: 300; background: rgba(3, 10, 6, .82); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 1.2rem; }
.modal-backdrop.open { display: flex; }
.modal-box {
  width: 100%; max-width: 760px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: #0A1B12; border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,.7), var(--glow-a1); animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.95); opacity: 0; } }
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .95rem 1.4rem; border-bottom: 1px solid var(--line);
  background: #0A1B12; flex-shrink: 0; z-index: 2;
}
.modal-head h3 { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--a2); font-weight: 500; }
.modal-close { width: 34px; height: 34px; border-radius: 50%; background: var(--panel-strong); border: 1px solid var(--line); color: #fff; cursor: pointer; display: grid; place-items: center; }
.modal-body {
  padding: 1.5rem 1.6rem 1.8rem; overflow-y: auto; flex: 1;
  overscroll-behavior: contain; color-scheme: dark;
  scrollbar-width: thin; scrollbar-color: rgba(16, 185, 129, .38) transparent;
}
.modal-body::-webkit-scrollbar { width: 7px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(16, 185, 129, .32); border-radius: 999px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, .55); }

.toast-box { position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 999; display: flex; flex-direction: column; gap: .6rem; }
.toast { background: #0B1E14; border: 1px solid var(--line-strong); border-left: 3px solid var(--ok); padding: .9rem 1.2rem; border-radius: var(--r-sm); font-size: .88rem; max-width: 360px; box-shadow: 0 12px 40px rgba(0,0,0,.6); animation: pop .25s ease; }
.toast.error { border-left-color: var(--bad); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   ADMIN
   ========================================================================== */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: 100%; max-width: 440px; }
.login-card .brand { margin-bottom: 1.6rem; }
.form-group { margin-bottom: 1.1rem; }
.label { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.adm-layout { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.adm-side {
  position: sticky; top: 0; height: 100vh; padding: 1.4rem 1rem; display: flex; flex-direction: column;
  background: rgba(7, 20, 13, .85); backdrop-filter: blur(18px); border-right: 1px solid var(--line);
}
.adm-nav { list-style: none; margin: 1.6rem 0; display: flex; flex-direction: column; gap: .25rem; flex: 1; overflow-y: auto; }
.adm-nav-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left;
  padding: .72rem .95rem; border-radius: var(--r-sm); background: transparent; border: 1px solid transparent;
  color: var(--muted); font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .2s ease;
}
.adm-nav-btn:hover { background: var(--panel-strong); color: #fff; }
.adm-nav-btn.active { background: rgba(16, 185, 129, .14); border-color: rgba(16, 185, 129, .45); color: #fff; box-shadow: inset 3px 0 0 var(--a1); }
.adm-main { padding: 2rem 2.4rem 4rem; min-width: 0; }
.adm-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-bottom: 1.4rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.adm-head h1 { font-family: var(--font-head); font-size: 1.75rem; letter-spacing: -.01em; }
.adm-head p { color: var(--muted); font-size: .88rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.admin-section { display: none; }
.admin-section.active { display: block; animation: pop .25s ease; }
.panel { margin-bottom: 1.6rem; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.thumb { width: 72px; height: 50px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ==========================================================================
   DASHBOARD UTAMA ADMIN
   ========================================================================== */
.dash-welcome-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.8rem 2.2rem;
  border-radius: var(--r-lg);
  margin-bottom: 1.6rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 14, 9, 0.75) 60%), rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.dash-welcome-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 70%);
  pointer-events: none;
}
.dash-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a1);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 0.65rem;
}
.dash-welcome-badge .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--a1);
  box-shadow: 0 0 8px var(--a1);
}
.dash-welcome-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.dash-welcome-sub {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 600px;
  line-height: 1.55;
}
.dash-welcome-meta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.dash-meta-pill {
  padding: 0.65rem 1.1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 130px;
}
.dash-meta-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-meta-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

/* KPI Metric Cards Grid */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}
.dash-kpi-card {
  padding: 1.4rem 1.3rem;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.dash-kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}
.dash-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.dash-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.dash-kpi-num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.dash-kpi-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.85rem;
}
.dash-kpi-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--dim);
}
.dash-kpi-link {
  background: none;
  border: none;
  color: var(--a1);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.75rem;
  transition: color 0.2s ease;
}
.dash-kpi-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Quick Action Buttons Grid */
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
}
.dash-action-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  text-decoration: none;
}
.dash-action-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
  color: #fff;
}
.dash-action-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.dash-action-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.dash-action-text strong {
  font-size: 0.88rem;
  color: var(--text);
}
.dash-action-text small {
  font-size: 0.72rem;
  color: var(--muted);
}
.dash-action-btn:hover .dash-action-text strong {
  color: #fff;
}

/* Progress Bars Komposisi Bidang */
.dash-dept-bars-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.dash-dept-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.dash-dept-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}
.dash-dept-bar-name {
  font-weight: 600;
  color: var(--text);
}
.dash-dept-bar-count {
  font-family: var(--font-mono);
  color: var(--a1);
}
.dash-dept-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}
.dash-dept-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Mini Cabinet List & Recent feeds */
.dash-cab-mini-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.dash-cab-mini-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 4px;
  display: block;
}
.dash-cab-mini-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.dash-cab-mini-info {
  flex: 1;
  min-width: 0;
}
.dash-cab-mini-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-cab-mini-period {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Mini Recent Posts */
.dash-post-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.dash-post-mini-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(16, 185, 129, 0.35);
}
.dash-post-mini-title {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dash-post-mini-date {
  font-size: 0.72rem;
  color: var(--muted);
}

/* Mini Recent Gallery */
.dash-mini-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.dash-mini-gal-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  background: #081A10;
}
.dash-mini-gal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.dash-mini-gal-card:hover img {
  transform: scale(1.08);
}
.dash-mini-gal-cap {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 70%);
  display: flex;
  align-items: flex-end;
  padding: 0.45rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.dash-mini-gal-card:hover .dash-mini-gal-cap {
  opacity: 1;
}
.dash-mini-gal-title {
  font-size: 0.68rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== RESPONSIVE (OPTIMASI HP & TABLET) ===================== */
@media (max-width: 960px) {
  .hero-grid, .profile-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 260px; margin: 1.5rem auto 0; order: 0; }
  .dir-controls { grid-template-columns: 1fr; }
  .adm-layout { grid-template-columns: 1fr; }
  .adm-side { position: relative; height: auto; }
  .adm-nav { flex-direction: row; flex-wrap: wrap; }
  .adm-nav-btn { width: auto; }
}

@media (max-width: 768px) {
  /* Navbar di HP */
  .nav {
    top: 8px;
    padding: 0 0.5rem;
  }
  .nav-inner {
    padding: 0.45rem 0.75rem 0.45rem 0.85rem;
    gap: 0.5rem;
  }
  .brand {
    gap: 0.55rem;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-name {
    font-size: 0.92rem;
    letter-spacing: 0.04em;
  }
  .brand-sub {
    display: none; /* Sembunyikan sub-judul panjang di HP agar bar tidak pecah / meluber */
  }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    flex-shrink: 0;
  }
  .nav-links {
    display: none !important;
    position: absolute;
    top: 56px;
    left: 0.5rem;
    right: 0.5rem;
    flex-direction: column;
    background: rgba(4, 15, 10, 0.98);
    border: 1.5px solid rgba(16, 185, 129, 0.38);
    border-radius: var(--r-md);
    padding: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  }
  .nav-links.open {
    display: flex !important;
  }
  .nav-links a {
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #F1F5F9;
  }
  [data-theme="light"] .nav-links {
    background: #FFFFFF;
    border: 1.5px solid rgba(5, 150, 105, 0.35);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.15);
  }
  [data-theme="light"] .nav-links a {
    color: #0E3520 !important;
  }

  /* Container */
  .container {
    padding: 0 1rem;
  }

  /* Hero Section di HP */
  .hero {
    padding: 5.6rem 0 3.2rem;
  }
  .hero-grid {
    gap: 1.5rem;
    text-align: center;
  }
  .eyebrow {
    margin-bottom: 0.85rem;
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }
  .hero-title {
    font-size: clamp(1.75rem, 6.8vw, 2.35rem);
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin-bottom: 0.85rem;
    word-break: break-word;
  }
  .hero-sub {
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 auto 1.4rem;
    max-width: 440px;
  }
  .hero-cta {
    justify-content: center;
    gap: 0.65rem;
  }
  .hero-cta .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.84rem;
    flex: 1 1 135px;
    max-width: 190px;
  }
  .hero-visual {
    max-width: 220px;
    margin: 1.2rem auto 0;
    order: 0;
  }
  .hero-crest {
    width: 200px;
    height: 200px;
  }
  .crest-frame {
    width: 175px;
    height: 175px;
    padding: 12px;
  }
  .bukit-barisan-backdrop {
    height: 250px;
  }

  /* Salam Marquee di HP */
  .salam {
    padding: 0.7rem 0;
  }
  .salam-track {
    font-size: 0.75rem;
    gap: 2rem;
  }

  /* Section Umum di HP */
  .section {
    padding: 3.5rem 0;
  }
  .sec-head {
    margin-bottom: 2rem;
    text-align: center;
  }
  .sec-tag {
    justify-content: center;
  }
  .sec-title {
    font-size: clamp(1.45rem, 5.5vw, 2.1rem);
  }
  .sec-sub {
    font-size: 0.9rem;
  }

  /* Cards & Grids di HP */
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .glass {
    padding: 1.3rem;
  }
  .hex-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hex {
    min-height: auto;
    padding: 1.4rem 1.1rem;
  }
  .cabinet-card {
    padding: 1.4rem 1.1rem;
    gap: 1.1rem;
  }
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .form-row { grid-template-columns: 1fr; }
  .adm-main { padding: 1.2rem 0.85rem; }
  .pub-toolbar { align-items: stretch; gap: 0.75rem; }
  .pub-select-group { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
  .pub-select-wrap { width: 100%; min-width: 0; }
  .pub-select { width: 100%; max-width: none; }
  .pub-reset-btn { grid-column: 1 / -1; justify-self: flex-start; }
}

@media (max-width: 440px) {
  .hero-title {
    font-size: 1.68rem;
  }
  .hero-visual {
    max-width: 180px;
  }
  .hero-crest {
    width: 170px;
    height: 170px;
  }
  .crest-frame {
    width: 145px;
    height: 145px;
    padding: 10px;
  }
  .bukit-barisan-backdrop {
    height: 200px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .pub-select-group {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   LIGHT THEME COMPONENT STYLES
   ========================================================================== */
[data-theme="light"] body::before {
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(5, 150, 105, 0.1), transparent 60%),
    radial-gradient(50% 45% at 0% 35%, rgba(2, 132, 199, 0.08), transparent 60%),
    radial-gradient(45% 40% at 70% 100%, rgba(217, 119, 6, 0.08), transparent 60%),
    var(--bg);
}

[data-theme="light"] body::after {
  background-image:
    linear-gradient(rgba(5, 150, 105, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.04) 1px, transparent 1px);
}

/* Sections & Typography */
[data-theme="light"] .sec-title {
  color: #0E291C;
}
[data-theme="light"] .sec-sub {
  color: #244835;
  font-weight: 500;
}
[data-theme="light"] .sec-tag {
  color: #047857;
  font-weight: 700;
}

/* Hero Section */
[data-theme="light"] .hero-title {
  color: #0E291C;
}
[data-theme="light"] .hero-sub {
  color: #1F3D2C;
  font-weight: 500;
}

/* Salam Digital Marquee */
[data-theme="light"] .salam {
  background: rgba(5, 150, 105, 0.06);
  border-top: 1px solid rgba(5, 150, 105, 0.22);
  border-bottom: 1px solid rgba(5, 150, 105, 0.22);
}
[data-theme="light"] .salam-track {
  color: #1A3E2A;
  font-weight: 600;
}
[data-theme="light"] .salam-track b {
  color: #0E291C;
  font-weight: 700;
}
[data-theme="light"] .salam-track i {
  color: #059669;
  font-weight: 700;
}

/* Glass Panels & Profile */
[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(5, 150, 105, 0.22);
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.07);
}
[data-theme="light"] .glass h3 {
  color: #0E291C;
  font-weight: 700;
}
[data-theme="light"] .glass p {
  color: #244835;
  line-height: 1.65;
}
[data-theme="light"] .history-box {
  background: rgba(5, 150, 105, 0.08);
  border-left: 3px solid #059669;
}
[data-theme="light"] .history-box h4 {
  color: #B45309;
  font-weight: 700;
}
[data-theme="light"] .history-box p {
  color: #244835;
}
[data-theme="light"] .vision {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(2, 132, 199, 0.08));
  border: 1.5px solid rgba(5, 150, 105, 0.28);
}
[data-theme="light"] .vision h4 {
  color: #B45309;
  font-weight: 700;
}
[data-theme="light"] .vision p {
  color: #0E291C;
  font-weight: 600;
}
[data-theme="light"] .mission-list li {
  color: #244835;
  font-weight: 500;
}
[data-theme="light"] .mission-list li::before {
  color: #047857;
  font-weight: 700;
  border: 1.5px solid rgba(5, 150, 105, 0.4);
  background: rgba(5, 150, 105, 0.12);
}
[data-theme="light"] .org-pillar-box {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(2, 132, 199, 0.08));
  border: 1.5px solid rgba(5, 150, 105, 0.28);
}
[data-theme="light"] .org-function-box,
[data-theme="light"] .cabinet-missions-wrap {
  background: #F6FBF8;
  border: 1.5px solid rgba(5, 150, 105, 0.2);
}
[data-theme="light"] .org-pillar-box h4,
[data-theme="light"] .org-function-box h4,
[data-theme="light"] .cabinet-missions-wrap h4 {
  color: #B45309;
  font-weight: 700;
}
[data-theme="light"] .mission-list-func li::before {
  color: #B45309;
  border-color: rgba(217, 119, 6, 0.45);
  background: rgba(217, 119, 6, 0.12);
}
[data-theme="light"] .cabinet-visimisi-card {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.22);
  box-shadow: 0 10px 28px rgba(5, 150, 105, 0.07);
}
[data-theme="light"] .cabinet-visimisi-head h3 {
  color: #0E291C;
}

/* Navbar */
[data-theme="light"] .nav-inner {
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid rgba(5, 150, 105, 0.35);
  box-shadow: 0 10px 32px rgba(5, 150, 105, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .brand-mark {
  background: #FFFFFF;
  border-color: #059669;
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.2);
}
[data-theme="light"] .brand-name {
  color: #062817 !important;
  font-weight: 800 !important;
  text-shadow: none;
}
[data-theme="light"] .brand-sub {
  color: #166534 !important;
  font-weight: 700 !important;
  text-shadow: none;
}
[data-theme="light"] .nav-links a {
  color: #0E3520 !important;
  font-weight: 600 !important;
}
[data-theme="light"] .nav-links a:hover {
  color: #047857 !important;
  background: rgba(5, 150, 105, 0.12) !important;
}
[data-theme="light"] .nav-links a.active {
  color: #047857 !important;
  background: rgba(5, 150, 105, 0.14) !important;
  font-weight: 700 !important;
}
[data-theme="light"] .nav-toggle {
  background: #FFFFFF;
  border: 1.5px solid rgba(5, 150, 105, 0.35);
  color: #062817;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Buttons & Chips */
[data-theme="light"] .btn-glow {
  background: var(--grad);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.35);
}
[data-theme="light"] .btn-glow:hover {
  box-shadow: 0 6px 26px rgba(5, 150, 105, 0.5);
}
[data-theme="light"] .btn-ghost {
  background: #FFFFFF;
  color: #0E291C;
  border-color: rgba(5, 150, 105, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .btn-ghost:hover {
  background: #F0F7F2;
  border-color: var(--a1);
  color: var(--a1);
}
[data-theme="light"] .eyebrow {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.35);
  color: #B45309;
}
[data-theme="light"] .chip {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.22);
  color: #244835;
  font-weight: 600;
}
[data-theme="light"] .chip:hover {
  color: #0E291C;
  border-color: var(--a1);
}
[data-theme="light"] .chip.active {
  background: var(--grad);
  color: #FFFFFF;
  border-color: transparent;
}

/* Kabinet Section */
[data-theme="light"] .cabinet-pure-btn {
  background: transparent;
  border: none;
  box-shadow: none;
}
[data-theme="light"] .cabinet-pure-btn:hover,
[data-theme="light"] .cabinet-pure-btn.active {
  background: transparent;
  border: none;
  box-shadow: none;
}
[data-theme="light"] .cabinet-natural-logo {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 16px rgba(5, 150, 105, 0.25));
}
[data-theme="light"] .cabinet-pure-btn:hover .cabinet-natural-logo,
[data-theme="light"] .cabinet-pure-btn.active .cabinet-natural-logo {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22)) drop-shadow(0 0 24px rgba(5, 150, 105, 0.45));
}
[data-theme="light"] .cabinet-natural-name {
  color: #0E291C;
  font-weight: 700;
}
[data-theme="light"] .cabinet-pure-btn:hover .cabinet-natural-name {
  color: #059669;
}
[data-theme="light"] .cabinet-page-hero {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.22);
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.07);
}
[data-theme="light"] .cabinet-page-hero h2 {
  color: #0E291C;
}
[data-theme="light"] .cabinet-page-hero p {
  color: #244835;
  font-weight: 500;
}

/* Bidang Cards (Hex) */
[data-theme="light"] .hex {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.22);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.07);
}
[data-theme="light"] .hex:hover {
  background: #FFFFFF;
  border-color: var(--a1);
  box-shadow: 0 16px 36px rgba(5, 150, 105, 0.16);
}
[data-theme="light"] .hex-name {
  color: #0E291C;
}
[data-theme="light"] .hex:hover .hex-name {
  color: #059669;
}
[data-theme="light"] .hex-tag {
  color: #244835;
  font-weight: 500;
}
[data-theme="light"] .hex:hover .hex-inner {
  color: #047857;
}
[data-theme="light"] .dept-icon-badge {
  background: radial-gradient(circle at 50% 30%, rgba(5, 150, 105, 0.12), rgba(235, 245, 238, 0.9) 75%);
  border-color: rgba(5, 150, 105, 0.3);
  color: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.1);
}
[data-theme="light"] .hex:hover .dept-icon-badge {
  background: radial-gradient(circle at 50% 30%, rgba(5, 150, 105, 0.22), rgba(220, 240, 226, 0.95) 75%);
  border-color: var(--a1);
  color: #047857;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.2);
}
[data-theme="light"] .hex-cta {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.25);
  color: #047857;
  font-weight: 600;
}
[data-theme="light"] .hex:hover .hex-cta {
  background: var(--grad);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
}

/* Full Page View (Dept View) */
[data-theme="light"] .dept-hero-badge {
  background: radial-gradient(circle at 50% 30%, rgba(5, 150, 105, 0.15), rgba(235, 245, 238, 0.95) 75%);
  border-color: rgba(5, 150, 105, 0.4);
  color: #059669;
}
[data-theme="light"] .dept-view {
  background: rgba(244, 248, 245, 0.98);
}
[data-theme="light"] .dept-hero h2 {
  color: #0E291C;
}
[data-theme="light"] .dept-hero p {
  color: #244835;
  font-weight: 500;
}
[data-theme="light"] .dept-hero.has-cover {
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 20px 44px rgba(14, 41, 28, 0.22);
}
[data-theme="light"] .dept-hero.has-cover h2 {
  color: #FFFFFF;
}
[data-theme="light"] .dept-hero.has-cover .dept-hero-tagline {
  color: #86EFAC;
}
[data-theme="light"] .dept-hero.has-cover .dept-hero-desc {
  color: #F8FAFC;
}
[data-theme="light"] .empty {
  color: #244835;
  border: 1.5px dashed rgba(5, 150, 105, 0.35);
  background: rgba(5, 150, 105, 0.04);
}

/* Members Cards */
[data-theme="light"] .member-card {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.18);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.05);
}
[data-theme="light"] .member-card:hover {
  border-color: var(--a1);
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.15);
}
[data-theme="light"] .member-name {
  color: #0E291C;
}
[data-theme="light"] .member-photo {
  background: #E8F2EC;
}
[data-theme="light"] .member-photo::after {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent 55%);
}
[data-theme="light"] .member-click-hint {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(5, 150, 105, 0.4);
  color: #059669;
}
[data-theme="light"] .member-meta {
  color: #244835;
  font-weight: 500;
}
[data-theme="light"] .member-ig a {
  color: #B45309;
  font-weight: 700;
}
[data-theme="light"] .member-ig a:hover {
  color: #047857;
}

/* News / Berita */
[data-theme="light"] .post-card {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.18);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.05);
}
[data-theme="light"] .post-card:hover {
  border-color: var(--a1);
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.14);
}
[data-theme="light"] .post-title {
  color: #0E291C;
}
[data-theme="light"] .post-thumb {
  background: #E8F2EC;
}
[data-theme="light"] .post-meta {
  color: #166534;
  font-weight: 600;
}
[data-theme="light"] .post-sum {
  color: #244835;
  line-height: 1.6;
}
[data-theme="light"] .link-arrow {
  color: #047857;
  font-weight: 700;
}
[data-theme="light"] .link-arrow:hover {
  color: #B45309;
}

/* Publikasi & Galeri */
[data-theme="light"] .pub-select-wrap {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.28);
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.05);
}
[data-theme="light"] .pub-select-wrap:hover,
[data-theme="light"] .pub-select-wrap:focus-within {
  border-color: var(--a1);
  background: #F4FAF6;
}
[data-theme="light"] .pub-select-wrap.is-active {
  background: rgba(5, 150, 105, 0.1);
  border-color: var(--a1);
}
[data-theme="light"] .pub-select {
  color: #0E291C;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
[data-theme="light"] .pub-select-wrap.is-active .pub-select {
  color: #047857;
}
[data-theme="light"] .pub-select option {
  background: #FFFFFF;
  color: #0E291C;
}
[data-theme="light"] .pub-reset-btn {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(220, 38, 38, 0.32);
  color: #B91C1C;
}
[data-theme="light"] .pub-reset-btn:hover {
  background: rgba(220, 38, 38, 0.16);
  color: #7F1D1D;
}
[data-theme="light"] .g-item {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .g-cap {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 60%, transparent 100%);
}
[data-theme="light"] .g-cap h4 {
  color: #0E291C;
  font-weight: 700;
}
[data-theme="light"] .g-cap p {
  color: #166534;
  font-weight: 600;
}

/* Kontak Section */
[data-theme="light"] .c-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(5, 150, 105, 0.22);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.05);
}
[data-theme="light"] .c-card:hover {
  border-color: var(--a1);
  box-shadow: 0 10px 28px rgba(5, 150, 105, 0.16);
}
[data-theme="light"] .c-icon {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}
[data-theme="light"] .c-card:hover .c-icon {
  background: var(--grad);
  color: #FFFFFF;
}
[data-theme="light"] .c-label {
  color: #166534;
  font-weight: 700;
}
[data-theme="light"] .c-value {
  color: #0E291C;
  font-weight: 600;
}
[data-theme="light"] .c-phone-main {
  color: #0E291C;
}
[data-theme="light"] .c-phone-main:hover {
  color: #059669;
}
[data-theme="light"] .c-cta {
  color: #B45309;
  font-weight: 700;
}
[data-theme="light"] .c-card:hover .c-cta {
  color: #047857;
}
[data-theme="light"] .c-action-pill {
  background: rgba(5, 150, 105, 0.14);
  border: 1.5px solid rgba(5, 150, 105, 0.4);
  color: #047857;
  font-weight: 700;
}
[data-theme="light"] .c-action-pill:hover {
  background: var(--grad);
  color: #FFFFFF;
}
[data-theme="light"] .c-action-pill.c-action-alt {
  background: #EAF3EC;
  border-color: rgba(5, 150, 105, 0.3);
  color: #166534;
  font-weight: 600;
}
[data-theme="light"] .c-action-pill.c-action-alt:hover {
  background: rgba(5, 150, 105, 0.18);
  color: #047857;
}

/* Badges */
[data-theme="light"] .badge {
  background: #EAF3EC;
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: #0E291C;
  font-weight: 600;
}
[data-theme="light"] .badge-a1 {
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.4);
  color: #047857;
  font-weight: 700;
}
[data-theme="light"] .badge-a2 {
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #B45309;
  font-weight: 700;
}
[data-theme="light"] .badge-ok {
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.4);
  color: #15803D;
  font-weight: 700;
}
[data-theme="light"] .badge-muted {
  background: #E8F2EC;
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: #244835;
  font-weight: 600;
}

/* Modal */
[data-theme="light"] .modal-backdrop {
  background: rgba(14, 41, 28, 0.65);
}
[data-theme="light"] .modal-box {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 0 24px rgba(5, 150, 105, 0.12);
}
[data-theme="light"] .modal-head {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.18);
}
[data-theme="light"] .modal-head h3 {
  color: #0E291C;
}
[data-theme="light"] .modal-close {
  background: #EAF3EC;
  color: var(--muted);
}
[data-theme="light"] .modal-close:hover {
  background: #DBEBE0;
  color: #0E291C;
}
[data-theme="light"] .modal-body {
  color-scheme: light;
  scrollbar-color: rgba(5, 150, 105, .32) transparent;
}
[data-theme="light"] .post-detail-title {
  color: #0B2418;
}
[data-theme="light"] .post-detail-article,
[data-theme="light"] .post-article-list li {
  color: #264234;
}
[data-theme="light"] .post-detail-article strong {
  color: #0B2418;
}
[data-theme="light"] .post-article-callout {
  background: rgba(5, 150, 105, .09);
  border-color: rgba(5, 150, 105, .24);
  color: #09402B;
}
[data-theme="light"] .member-bio-name {
  color: #0E291C;
}
[data-theme="light"] .bio-item {
  background: #F4F8F5;
  border: 1px solid rgba(5, 150, 105, 0.22);
}
[data-theme="light"] .bio-label {
  color: #166534;
  font-weight: 700;
}
[data-theme="light"] .bio-val {
  color: #0E291C;
  font-weight: 600;
}
[data-theme="light"] .bio-item-val {
  color: #0E291C;
}
[data-theme="light"] .member-bio-dept {
  color: #166534;
  font-weight: 600;
}
[data-theme="light"] .member-bio-avatar-frame {
  background: #E8F2EC;
  border-color: rgba(5, 150, 105, 0.35);
}

/* Inputs & Forms */
[data-theme="light"] .input,
[data-theme="light"] .select,
[data-theme="light"] .textarea {
  background: #FFFFFF;
  color: #0E291C;
  border-color: rgba(5, 150, 105, 0.25);
}
[data-theme="light"] .input:focus,
[data-theme="light"] .select:focus,
[data-theme="light"] .textarea:focus {
  border-color: var(--a1);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
[data-theme="light"] .select option {
  background: #FFFFFF;
  color: #0E291C;
}
[data-theme="light"] .input::placeholder,
[data-theme="light"] .textarea::placeholder {
  color: #476654;
}
[data-theme="light"] .input[type='date'] {
  color-scheme: light;
}
[data-theme="light"] .label {
  color: #166534;
  font-weight: 700;
}

/* Toast */
[data-theme="light"] .toast {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.25);
  color: #0E291C;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Footer (High Contrast) */
[data-theme="light"] .footer {
  background: #FFFFFF;
  border-top: 2px solid rgba(5, 150, 105, 0.22);
  box-shadow: 0 -6px 24px rgba(5, 150, 105, 0.05);
}
[data-theme="light"] .footer .brand-name {
  color: #0E291C;
  font-weight: 700;
}
[data-theme="light"] .footer p {
  color: #244835;
  font-weight: 500;
  line-height: 1.6;
}
[data-theme="light"] .footer-links a {
  color: #165636;
  font-weight: 600;
  transition: color 0.2s ease;
}
[data-theme="light"] .footer-links a:hover {
  color: #B45309;
}
[data-theme="light"] .footer-bottom {
  border-top: 1px solid rgba(5, 150, 105, 0.16);
  color: #244835;
  font-weight: 600;
}
[data-theme="light"] .tenun {
  opacity: 0.95;
}

/* Tables & Admin Layout */
[data-theme="light"] .table-wrap {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.2);
}
[data-theme="light"] .tbl th {
  background: #EAF3EC;
  color: #166534;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(5, 150, 105, 0.22);
}
[data-theme="light"] .tbl td {
  color: #0E291C;
  border-bottom: 1px solid rgba(5, 150, 105, 0.14);
}
[data-theme="light"] .tbl tbody tr:hover {
  background: rgba(5, 150, 105, 0.06);
}
[data-theme="light"] .cell-title {
  color: #0E291C !important;
  font-weight: 600;
}
[data-theme="light"] .cell-sub {
  color: #244835 !important;
}

[data-theme="light"] .adm-side {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.16);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .adm-nav-btn {
  color: #244835;
}
[data-theme="light"] .adm-nav-btn:hover {
  background: #F0F7F2;
  color: #0E291C;
}
[data-theme="light"] .adm-nav-btn.active {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.35);
  color: #047857;
  font-weight: 700;
}

[data-theme="light"] .table {
  background: #FFFFFF;
}
[data-theme="light"] .table th {
  background: #EAF3EC;
  color: #166534;
  border-color: rgba(5, 150, 105, 0.18);
  font-weight: 700;
}
[data-theme="light"] .table td {
  border-color: rgba(5, 150, 105, 0.14);
  color: #0E291C;
}
[data-theme="light"] .table tr:hover td {
  background: #F8FAF8;
}
[data-theme="light"] .table-card {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .adm-head {
  border-color: rgba(5, 150, 105, 0.18);
}
[data-theme="light"] .adm-head h1 {
  color: #0E291C;
}
[data-theme="light"] .adm-head p {
  color: #244835;
  font-weight: 500;
}
[data-theme="light"] .panel {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.18);
}

/* Dashboard Metrics & Mini Cards */
[data-theme="light"] .dash-welcome-card {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12), rgba(255, 255, 255, 0.95) 60%), #FFFFFF;
  border-color: rgba(5, 150, 105, 0.2);
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.08);
}
[data-theme="light"] .dash-welcome-title {
  color: #0E291C;
}
[data-theme="light"] .dash-welcome-sub {
  color: #244835;
}
[data-theme="light"] .dash-meta-pill {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .dash-meta-label {
  color: #166534;
  font-weight: 700;
}
[data-theme="light"] .dash-meta-val {
  color: #0E291C;
}
[data-theme="light"] .dash-kpi-card {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.16);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.05);
}
[data-theme="light"] .dash-kpi-card:hover {
  border-color: var(--a1);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.15);
}
[data-theme="light"] .dash-kpi-icon {
  background: #EAF3EC;
  border-color: rgba(5, 150, 105, 0.2);
}
[data-theme="light"] .dash-kpi-num {
  color: #0E291C;
}
[data-theme="light"] .dash-kpi-label {
  color: #244835;
  font-weight: 600;
}
[data-theme="light"] .dash-kpi-footer {
  color: #3E604D;
  border-color: rgba(5, 150, 105, 0.18);
}
[data-theme="light"] .dash-kpi-link:hover {
  color: #047857;
}
[data-theme="light"] .dash-action-btn {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.18);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .dash-action-btn:hover {
  background: #F0F7F2;
  border-color: var(--a1);
}
[data-theme="light"] .dash-action-text strong {
  color: #0E291C;
}
[data-theme="light"] .dash-action-btn:hover .dash-action-text strong {
  color: #047857;
}
[data-theme="light"] .dash-action-text small {
  color: #3E604D;
}
[data-theme="light"] .dash-dept-bar-name {
  color: #0E291C;
}
[data-theme="light"] .dash-dept-bar-track {
  background: #E8F2EC;
}
[data-theme="light"] .dash-cab-mini-item {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.16);
}
[data-theme="light"] .dash-cab-mini-logo {
  background: #EAF3EC;
  border-color: rgba(5, 150, 105, 0.2);
}
[data-theme="light"] .dash-cab-mini-name {
  color: #0E291C;
}
[data-theme="light"] .dash-post-mini-item {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.16);
}
[data-theme="light"] .dash-post-mini-item:hover {
  background: #F0F7F2;
  border-color: var(--a1);
}
[data-theme="light"] .dash-post-mini-title {
  color: #0E291C;
}
[data-theme="light"] .dash-mini-gal-card {
  background: #E8F2EC;
}
[data-theme="light"] .dash-mini-gal-title {
  color: #0E291C;
}

/* ==========================================================================
   NAVBAR BACKDROP & MOBILE MENU POLISH
   ========================================================================== */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 8, 5, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99;
  cursor: pointer;
}
.nav-backdrop.open {
  display: block;
}
@media (max-width: 900px) {
  .nav {
    z-index: 100;
  }
  .nav-links {
    z-index: 101 !important;
  }
}

/* ==========================================================================
   ADMIN BATCH GROUPING (TAB DIREKTORI ANGGOTA)
   ========================================================================== */
.batch-group-row td {
  background: rgba(16, 185, 129, 0.12) !important;
  padding: 0.75rem 1rem !important;
  border-top: 2px solid rgba(16, 185, 129, 0.45) !important;
  border-bottom: 1.5px solid rgba(16, 185, 129, 0.25) !important;
}
.batch-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.batch-group-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  color: var(--p1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
[data-theme="light"] .batch-group-row td {
  background: rgba(5, 150, 105, 0.12) !important;
  border-top: 2px solid rgba(5, 150, 105, 0.45) !important;
  border-bottom: 1.5px solid rgba(5, 150, 105, 0.25) !important;
}
[data-theme="light"] .batch-group-title {
  color: #065F46 !important;
}

/* ==========================================================================
   DIREKTORI ANGGOTA & ALUMNI (HALAMAN PUBLIK)
   ========================================================================== */
.dir-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.dir-search-wrap {
  position: relative;
  width: 100%;
}
.dir-search-input {
  width: 100%;
  font-size: 0.95rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--r-sm);
  background: rgba(4, 15, 10, 0.6);
  border: 1.5px solid var(--border);
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}
.dir-search-input:focus {
  border-color: var(--a1);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.dir-filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.dir-select-wrap {
  flex: 1;
  min-width: 180px;
}
.dir-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  background: rgba(4, 15, 10, 0.6);
  border: 1.5px solid var(--border);
  color: var(--text);
}

.public-batch-group {
  margin-bottom: 2.8rem;
}
.public-batch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1.5px solid var(--border);
}
.public-batch-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.public-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.dir-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.15rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.dir-card:hover {
  border-color: var(--a1);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.15);
}
.dir-card-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.dir-card-meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.6rem 0 0.8rem;
}
.dir-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.dir-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--a1);
  font-weight: 600;
}
.dir-card:hover .dir-card-footer {
  color: #FFFFFF;
}

/* Light Theme overrides for Direktori */
[data-theme="light"] .dir-toolbar {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.22);
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.08);
}
[data-theme="light"] .dir-search-input,
[data-theme="light"] .dir-select {
  background: #F8FAF9;
  border-color: rgba(5, 150, 105, 0.25);
  color: #0E3520;
}
[data-theme="light"] .dir-search-input:focus {
  background: #FFFFFF;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
}
[data-theme="light"] .public-batch-head {
  border-bottom-color: rgba(5, 150, 105, 0.22);
}
[data-theme="light"] .public-batch-title {
  color: #0B2B1B;
}
[data-theme="light"] .dir-card {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.2);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.06);
}
[data-theme="light"] .dir-card:hover {
  border-color: #059669;
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.15);
}
[data-theme="light"] .dir-card-name {
  color: #0E291C;
}
[data-theme="light"] .dir-card-meta {
  color: #335946;
}
[data-theme="light"] .dir-card-footer {
  border-top-color: rgba(5, 150, 105, 0.12);
  color: #059669;
}
[data-theme="light"] .dir-card:hover .dir-card-footer {
  color: #047857;
}
