
/* =========================================================
   P4 UM PONTIANAK — iOS x Neumorphism Design System
   ========================================================= */
:root {
  --bg: #eef1f4;
  --bg-elevated: #f5f7fa;
  --surface: #eef1f4;
  --surface-white: #ffffff;
  --brand-green-900: #08402d;
  --brand-green-700: #0e6e4e;
  --brand-green-500: #12a374;
  --brand-green-100: #e3f6ef;
  --ios-blue: #007aff;
  --ios-blue-dark: #0a5dc2;
  --ios-indigo: #5856d6;
  --ios-red: #ff3b30;
  --ios-orange: #ff9500;
  --ios-yellow: #ffcc00;
  --ios-teal: #30b0c7;
  --text-primary: #1c1c1e;
  --text-secondary: #6b6f76;
  --text-tertiary: #9a9ea5;
  --text-on-brand: #ffffff;
  --shadow-light: #ffffff;
  --shadow-dark: #c6cbd2;
  --nm-raised: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  --nm-raised-sm: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  --nm-inset: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  --nm-pressed: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 34px;
  --r-pill: 999px;
  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 0.18s;
  --dur-med: 0.32s;
  --dur-slow: 0.5s;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
/* overflow-x:clip wajib di html DAN body — di Safari iOS, elemen position:fixed
   berukuran besar (.bg-blob) bisa memperlebar layout viewport, membuat halaman
   "terzoom-out" dan menyisakan spasi kosong di sisi kanan kalau cuma di body saja.
   Pakai "clip" (bukan "hidden") supaya tidak membentuk scroll-container baru —
   "hidden" di sini pernah membuat .navbar (position:sticky) ikut tergulung ke atas
   karena browser menganggap html/body sebagai ancestor scroll-container-nya. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
  position: relative;
}

/* ── Background Blob (like 404.php) ── */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .22;
  pointer-events: none;
  z-index: 0;
}
.bg-blob-1 {
  width: 500px; height: 500px;
  background: #a5b4fc;
  top: -140px; left: -160px;
  animation: floatBlob 9s ease-in-out infinite;
}
.bg-blob-2 {
  width: 380px; height: 380px;
  background: #f9a8d4;
  bottom: 20%; right: -100px;
  animation: floatBlob 11s ease-in-out infinite reverse;
}
.bg-blob-3 {
  width: 260px; height: 260px;
  background: #6ee7b7;
  top: 45%; left: 55%;
  animation: floatBlob 13s ease-in-out infinite 2s;
}
.bg-blob-4 {
  width: 300px; height: 300px;
  background: #c4b5fd;
  bottom: 5%; left: 10%;
  animation: floatBlob 10s ease-in-out infinite 1s;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(24px, -36px) scale(1.06); }
}

/* Everything sits above blobs */
.navbar, main, footer, .fab-dock,
.modal-overlay, .alert-overlay, .toast-stack,
.statusbar-strip, .skip-link { position: relative; z-index: 1; }

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

/* =========================================================
   SKIP LINK
   ========================================================= */
.skip-link {
  position: absolute; top: -999px; left: 16px;
  background: var(--ios-blue); color: #fff; padding: 8px 16px;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
  text-decoration: none; z-index: 9999;
}
.skip-link:focus { top: 8px; }

/* =========================================================
   STATUS BAR
   ========================================================= */
.statusbar-strip {
  height: env(safe-area-inset-top, 0px);
  background: transparent;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky; top: 0;
  background: rgba(238,241,244,.82);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 2px 20px rgba(99,102,241,.08);
  z-index: 200;
}
.navbar-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 24px; height: 60px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; letter-spacing: -.5px;
  box-shadow: var(--nm-raised-sm);
  overflow: hidden;
}
.brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.brand-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.brand-text span { font-size: 11px; color: var(--text-secondary); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; padding: 6px 12px; border-radius: var(--r-pill);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-links a:hover { background: rgba(99,102,241,.08); color: var(--text-primary); }
.nav-links a.active { background: rgba(18,163,116,.12); color: var(--brand-green-700); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  border: none; background: var(--bg);
  box-shadow: var(--nm-raised-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: box-shadow var(--dur-fast), transform var(--dur-fast);
}
.icon-btn:hover { box-shadow: var(--nm-raised); }
.icon-btn:active { box-shadow: var(--nm-pressed); transform: scale(.97); }
@media (min-width: 769px) { .menu-toggle { display: none; } }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .navbar-inner { padding: 0 16px; }
  /* .nav-links (yg biasa bawa margin-left:auto utk dorong .nav-cta ke kanan) disembunyikan
     di mobile — tanpa baris ini .nav-cta kehilangan mekanisme dorong-kanannya sama sekali
     dan cuma nempel setelah logo, menyisakan sisa ruang kosong di ujung kanan. */
  .nav-cta { margin-left: auto; }
}
/* Rapatkan grup lang-pill/lonceng/hamburger ke pinggir kanan pada layar sempit.
   8px kanan adalah margin aman minimum ala iOS (HIG) — di bawah ini tombol jadi
   sulit disentuh & rawan konflik dgn gestur "back"/"home" bawaan sistem. */
@media (max-width: 480px) {
  .navbar-inner { padding: 0 8px; gap: 6px; }
  .nav-cta { gap: 4px; }
  .icon-btn { width: 32px; height: 32px; }
}
.mm-icon { width: 18px; height: 18px; flex: 0 0 auto; }
/* Menu mobile mengikuti tema hijau P4 + sentuhan neumorphism (bukan biru default .btn-plain) */
.mm-link { color: var(--text-primary); background: transparent; }
.mm-link .mm-icon { color: var(--brand-green-700); }
.mm-link:hover { background: rgba(18,163,116,.1); color: var(--brand-green-700); }
.mm-link:active { box-shadow: var(--nm-inset); color: var(--brand-green-700); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: none; cursor: pointer; border-radius: var(--r-pill);
  font-family: var(--font-text); font-weight: 600;
  font-size: 14px; padding: 10px 20px; transition: all var(--dur-fast) var(--ease-ios);
  text-decoration: none; white-space: nowrap;
}
.btn-filled {
  background: linear-gradient(145deg, #12a374, #0e6e4e);
  color: #fff; box-shadow: 0 4px 16px rgba(18,163,116,.35);
}
.btn-filled:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(18,163,116,.45); }
.btn-filled:active { transform: translateY(0); }
.btn-neumorphic {
  background: var(--bg); color: var(--text-primary);
  box-shadow: var(--nm-raised);
}
.btn-neumorphic:hover { box-shadow: var(--nm-raised-sm); }
.btn-neumorphic:active { box-shadow: var(--nm-pressed); }
.btn-plain {
  background: transparent; color: var(--ios-blue);
  box-shadow: none; padding: 10px 14px;
}
.btn-plain:hover { background: rgba(0,122,255,.08); }
.btn-tinted {
  background: rgba(18,163,116,.1); color: var(--brand-green-700);
  box-shadow: none;
}
.btn-tinted:hover { background: rgba(18,163,116,.18); }
.btn-sm { font-size: 13px; padding: 7px 16px; }
.btn-block { width: 100%; }

/* =========================================================
   CARDS (base)
   ========================================================= */
.card {
  background: var(--bg); border-radius: var(--r-lg);
  box-shadow: var(--nm-raised); padding: 24px;
}
.card-white {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(99,102,241,.08);
  padding: 24px;
}

/* =========================================================
   SECTION WRAPPER
   ========================================================= */
.section {
  max-width: 1180px; margin: 0 auto;
  padding: 72px 24px;
}
.section-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; margin: 8px 0 6px;
  line-height: 1.3; color: var(--text-primary);
}
.section-head p { font-size: 14.5px; color: var(--text-secondary); margin: 0; max-width: 520px; }
.section-tag {
  display: inline-block; background: rgba(18,163,116,.12);
  color: var(--brand-green-700); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--r-pill);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  max-width: 1180px; margin: 0 auto;
  padding: 80px 24px 56px;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 48px; align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--brand-green-700);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px;
}
.dot { width: 7px; height: 7px; background: var(--brand-green-500); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.4); }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  line-height: 1.15; margin: 0 0 16px; letter-spacing: -.02em;
}
.accent {
  background: linear-gradient(135deg, #12a374, #0a84ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin: 0 0 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
/* 3 kartu statistik selalu sejajar satu baris (desktop & mobile) */
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 520px; }
.stat-card {
  background: rgba(255,255,255,.72); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--r-md); padding: 14px 20px;
  box-shadow: var(--nm-raised-sm);
  min-width: 0;
}
.stat-card strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--brand-green-700); }
.stat-card span { font-size: 12px; color: var(--text-secondary); }
@media (max-width: 576px) {
  .hero-stats { gap: 10px; max-width: 100%; }
  .stat-card { padding: 12px 12px; text-align: center; }
  .stat-card strong { font-size: 1.3rem; }
  .stat-card span { font-size: 10.5px; display: block; line-height: 1.3; }
}

/* =========================================================
   DEVICE FRAME (hero visual)
   ========================================================= */
.device-frame {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 64px rgba(99,102,241,.13), 0 4px 20px rgba(0,0,0,.06);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.floating-badge {
  position: absolute; top: -14px; right: 20px;
  background: rgba(18,163,116,.92); color: #fff;
  font-size: 11.5px; font-weight: 600; border-radius: var(--r-pill);
  padding: 5px 12px; display: flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 12px rgba(18,163,116,.3);
}
.fb-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: pulse 2s infinite; }
.widget-clock { text-align: center; padding: 10px 0; }
.time { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--text-primary); line-height: 1; }
.date { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.widget-row { display: flex; gap: 12px; }
.widget-mini {
  flex: 1; background: var(--bg); border-radius: var(--r-md);
  box-shadow: var(--nm-raised-sm); padding: 14px; min-width: 0;
  display: block; text-decoration: none; color: inherit;
}
.wm-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; color: #fff;
}
.wm-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.wm-sub { font-size: 11px; color: var(--text-secondary); }

/* =========================================================
   ★ VISI-MISI + CAROUSEL SECTION (NEW)
   ========================================================= */
.visi-carousel-section {
  background: transparent;
  padding: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.vc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 768px) {
  .vc-grid { grid-template-columns: 1fr; }
}

/* Grid IKU+SDGs — kartu IKU lebih ramping, kartu SDGs lebih lebar (roda + daftar
   bernomor di luarnya butuh ruang lebih), jadi rasio kolom sengaja tidak 1:1. */
.iku-sdgs-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .iku-sdgs-grid { grid-template-columns: 1fr; }
}

/* --- Visi Misi Card --- */
.visimisi-card {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: var(--r-xl);
  box-shadow: 0 16px 48px rgba(99,102,241,.12), 0 4px 16px rgba(0,0,0,.05);
  padding: 28px;
  display: flex; flex-direction: column; gap: 0;
  overflow: hidden;
  position: relative;
}
.visimisi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #12a374, #0a84ff, #8b5cf6);
}
.vm-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.vm-logo {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: linear-gradient(145deg, #12a374, #0e6e4e);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--nm-raised-sm); flex-shrink: 0;
}
.vm-logo svg { color: #fff; }
.vm-title-wrap strong {
  display: block; font-size: 14.5px; font-weight: 800;
  color: var(--text-primary); line-height: 1.3;
}
.vm-title-wrap span {
  font-size: 12px; color: var(--brand-green-700); font-weight: 600;
}

/* Visi box */
.vm-box {
  background: var(--bg);
  border-radius: var(--r-md);
  box-shadow: var(--nm-inset);
  padding: 16px 18px;
  margin-bottom: 16px;
  position: relative;
}
.vm-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-green-700);
  background: rgba(18,163,116,.12);
  padding: 3px 10px; border-radius: var(--r-pill);
  margin-bottom: 10px;
}
.vm-text {
  font-size: 13.5px; line-height: 1.65; color: var(--text-primary); margin: 0;
  font-style: italic;
}

/* Misi list */
.misi-list {
  display: flex; flex-direction: column; gap: 8px;
}
.misi-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg); border-radius: var(--r-sm);
  box-shadow: var(--nm-raised-sm); padding: 10px 14px;
  transition: box-shadow var(--dur-fast);
}
.misi-item:hover { box-shadow: var(--nm-raised); }
.misi-num {
  min-width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(145deg, #12a374, #0e6e4e);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.misi-text { font-size: 12.5px; line-height: 1.6; color: var(--text-primary); }

/* --- Carousel Berita --- */
.berita-carousel-card {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: var(--r-xl);
  box-shadow: 0 16px 48px rgba(99,102,241,.12), 0 4px 16px rgba(0,0,0,.05);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.berita-carousel-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #0a84ff, #8b5cf6, #f9a8d4);
}
.bc-header {
  padding: 20px 24px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.bc-title {
  display: flex; align-items: center; gap: 10px;
}
.bc-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: linear-gradient(145deg, #0a84ff, #0a5dc2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--nm-raised-sm); color: #fff; flex-shrink: 0;
}
.bc-label { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.bc-sub { font-size: 11.5px; color: var(--text-secondary); }
.bc-nav-wrap { display: flex; align-items: center; gap: 6px; }
.bc-nav-btn {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--bg); box-shadow: var(--nm-raised-sm);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all var(--dur-fast);
}
.bc-nav-btn:hover { box-shadow: var(--nm-raised); color: var(--text-primary); }
.bc-nav-btn:active { box-shadow: var(--nm-pressed); }

/* Carousel track */
.bc-track-wrap {
  flex: 1;
  overflow: hidden;
  padding: 0 24px 20px;
}
.bc-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.32,0.72,0,1);
  gap: 0;
}
.bc-slide {
  min-width: 100%; width: 100%;
}
.bc-news-card {
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--nm-raised);
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.bc-thumb {
  width: 100%; height: 130px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.bc-thumb-1 { background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%); }
.bc-thumb-2 { background: linear-gradient(135deg, #e3f6ef 0%, #dbeafe 100%); }
.bc-thumb-3 { background: linear-gradient(135deg, #fce7f3 0%, #ede9fe 100%); }
.bc-thumb-4 { background: linear-gradient(135deg, #fef3c7 0%, #e3f6ef 100%); }
.bc-thumb svg { color: rgba(99,102,241,.35); }
.bc-thumb-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  font-size: 10.5px; font-weight: 700; color: var(--ios-blue);
  padding: 3px 10px; border-radius: var(--r-pill);
  letter-spacing: .04em;
}
.bc-date { font-size: 11.5px; color: var(--text-tertiary); font-weight: 500; }
.bc-news-title {
  font-size: 14.5px; font-weight: 700; color: var(--text-primary);
  line-height: 1.45; margin: 0;
}
.bc-news-excerpt {
  font-size: 12.5px; color: var(--text-secondary); line-height: 1.65; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bc-read-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--ios-blue);
  background: rgba(0,122,255,.08); border: none; cursor: pointer;
  padding: 7px 14px; border-radius: var(--r-pill);
  transition: background var(--dur-fast); align-self: flex-start;
  text-decoration: none;
}
.bc-read-btn:hover { background: rgba(0,122,255,.15); }

/* Dots */
.bc-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 0 24px 18px;
}
.bc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--shadow-dark); border: none; cursor: pointer; padding: 0;
  transition: all var(--dur-fast);
}
.bc-dot.active {
  width: 20px; border-radius: var(--r-pill);
  background: var(--ios-blue);
}

/* =========================================================
   APP GRID (Layanan)
   ========================================================= */
.app-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.app-icon-card {
  background: var(--bg); border-radius: var(--r-lg);
  box-shadow: var(--nm-raised); padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; border: none; cursor: pointer; text-align: center;
  transition: all var(--dur-fast) var(--ease-ios);
}
.app-icon-card:hover { transform: translateY(-4px); box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light); }
.app-icon-card:active { transform: scale(.97); box-shadow: var(--nm-pressed); }
.app-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.15); color: #fff;
}
.app-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.app-desc { font-size: 11px; color: var(--text-secondary); }

/* =========================================================
   LIST GROUP
   ========================================================= */
.list-group {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  overflow: hidden;
}
.list-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: background var(--dur-fast);
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: rgba(18,163,116,.04); }
.list-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.list-row-body { flex: 1; min-width: 0; }
.list-row-body strong { display: block; font-size: 13.5px; font-weight: 600; }
.list-row-body span { font-size: 12px; color: var(--text-secondary); }

/* =========================================================
   CHIPS
   ========================================================= */
.chip { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); }
.chip-blue { background: rgba(0,122,255,.12); color: var(--ios-blue); }
.chip-orange { background: rgba(255,149,0,.12); color: var(--ios-orange); }
.chip-red { background: rgba(255,59,48,.12); color: var(--ios-red); }

/* =========================================================
   SEGMENTED CONTROL
   ========================================================= */
.segmented {
  display: flex; background: var(--bg); border-radius: var(--r-pill);
  box-shadow: var(--nm-inset); padding: 4px; gap: 2px;
  flex-shrink: 0;
}
.segmented button, .segmented a {
  border: none; background: transparent; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  padding: 7px 16px; cursor: pointer; transition: all var(--dur-fast);
  white-space: nowrap; text-decoration: none;
}
.segmented button.active, .segmented a.active {
  background: rgba(255,255,255,.9); color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* =========================================================
   TABLE
   ========================================================= */
.table-wrap {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
thead { background: linear-gradient(145deg, #12a374, #0e6e4e); }
thead th { color: #fff; font-size: 13px; font-weight: 600; padding: 12px 16px; text-align: left; }
tbody tr { border-bottom: 1px solid rgba(0,0,0,.05); transition: background var(--dur-fast); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(18,163,116,.04); }
td { font-size: 13.5px; padding: 12px 16px; color: var(--text-primary); }
td:first-child { color: var(--text-secondary); font-weight: 600; }
@media (max-width: 600px) {
  td, th { padding: 10px 12px; font-size: 12.5px; }
}

/* =========================================================
   DIVISI CARDS
   ========================================================= */
.divisi-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.divisi-card {
  background: var(--bg); border-radius: var(--r-xl);
  box-shadow: var(--nm-raised); padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow var(--dur-fast), transform var(--dur-fast);
}
.divisi-card:hover { transform: translateY(-4px); }
.divisi-num { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-green-500); }
.divisi-card h3 { font-size: 16.5px; font-weight: 700; margin: 0; line-height: 1.35; }
.divisi-card p { font-size: 13.5px; color: var(--text-secondary); margin: 0; line-height: 1.65; flex: 1; }

/* =========================================================
   IKU & SDGs — 2 kartu (kiri: list capaian IKU, kanan: roda infografis SDGs),
   memakai .vc-grid yang sama dengan section Visi-Misi + Carousel Berita.
   ========================================================= */
.progress-track { height: 8px; border-radius: 999px; background: rgba(107,111,118,.14); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; transition: width .6s var(--ease-ios); }

/* --- Kartu Capaian IKU (kiri) --- */
.card-capaian-iku {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: var(--r-xl);
  box-shadow: 0 16px 48px rgba(99,102,241,.12), 0 4px 16px rgba(0,0,0,.05);
  padding: 28px; position: relative; overflow: hidden;
}
.card-capaian-iku::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #0a84ff, #5856d6, #12a374);
}
.iku-list { display: flex; flex-direction: column; gap: 14px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.iku-row { display: flex; align-items: flex-start; gap: 12px; }
.iku-row-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12.5px; font-weight: 800;
  box-shadow: var(--nm-raised-sm);
}
.iku-row-body { flex: 1; min-width: 0; }
.iku-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.iku-row-name { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.iku-row-pct { font-size: 12.5px; font-weight: 800; color: var(--brand-green-700); flex-shrink: 0; }
.iku-row-caption { font-size: 10.5px; color: var(--text-secondary); margin-top: 5px; }
.iku-row-caption.iku-empty { font-style: italic; color: var(--text-tertiary); }

/* --- Kartu Infografis SDGs (kanan) — roda conic-gradient ala "SDG Wheel" --- */
.card-sdgs-infografis {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: var(--r-xl);
  box-shadow: 0 16px 48px rgba(99,102,241,.12), 0 4px 16px rgba(0,0,0,.05);
  padding: 28px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.card-sdgs-infografis::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #12a374, #fcc30b, #e5243b);
}
.card-sdgs-infografis .vm-header { align-self: flex-start; }

/* Roda SDGs — SVG dgn 17 wedge presisi sudut (ikon+nomor dalam roda). Nama lengkap
   TIDAK ditaruh di samping/dalam roda (bikin roda tidak responsif/memanjang), tapi di
   section terpisah .keterangan-sdgs-wrap di bawah baris kartu (kartu kecil berurutan). */
.sdgs-wheel-wrap {
  position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / 1;
  /* margin-top:auto — kartu ini di-stretch setinggi kartu IKU di sebelahnya (align-items:
     stretch), auto-margin menaikkan roda mengisi sisa ruang kosong di bawahnya drpd
     menempel pas-pasan di bawah header */
  margin: auto auto 4px;
}
.sdgs-wheel-svg {
  width: 100%; height: 100%; display: block; overflow: visible;
  transform-origin: 50% 50%;
  /* Putar 1x penuh perlahan & konstan (20 detik, linear = tanpa lonjakan kecepatan),
     lalu diam 10 detik — ulang. Teks tengah (.sdgs-wheel-center) overlay terpisah,
     jadi tidak ikut berputar. */
  animation: sdgsSpin 30s linear infinite;
}
@keyframes sdgsSpin {
  0%      { transform: rotate(0deg); }
  66.67%  { transform: rotate(360deg); }
  100%    { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) { .sdgs-wheel-svg { animation: none; } }
.sdgs-wedge { stroke: rgba(255,255,255,.7); stroke-width: 1.5; transition: opacity var(--dur-fast); }
.sdgs-wedge:hover { opacity: .82; }
.sdgs-wedge.prioritas { stroke: #fff; stroke-width: 2.5; }
.sdgs-wedge-num { font-family: var(--font-text); font-size: 16px; font-weight: 800; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.22); stroke-width: 3px; }
.sdgs-wedge-pct { font-family: var(--font-text); font-size: 12px; font-weight: 800; paint-order: stroke; stroke: #fff; stroke-width: 3.5px; }
.card-sdgs-infografis { padding: 24px 24px 28px; }
.sdgs-icon-bg { fill: #fff; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.sdgs-wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40%; height: 40%; border-radius: 50%;
  background: var(--bg); box-shadow: var(--nm-inset);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px;
  padding: 6%;
}
.sdgs-wheel-center strong { font-size: clamp(16px, 5.5vw, 24px); font-weight: 800; color: var(--brand-green-700); line-height: 1; letter-spacing: .02em; }
.sdgs-wheel-center span { font-size: clamp(8.5px, 2.2vw, 11px); color: var(--text-secondary); font-weight: 600; line-height: 1.3; }

/* Keterangan SDGs — section tersendiri di bawah baris kartu IKU+SDGs, kartu kecil
   terpisah berurutan sesuai nomor (bukan menempel di roda). */
.keterangan-sdgs-wrap { margin-top: 28px; }
.keterangan-sdgs-title { font-size: 13px; font-weight: 700; color: var(--text-secondary); margin: 0 0 14px; }
.keterangan-sdgs-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.card-keterangan-sdgs {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.78); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--r-md); box-shadow: 0 3px 12px rgba(0,0,0,.05);
  padding: 10px 12px;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.card-keterangan-sdgs:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.09); }
.card-keterangan-sdgs.prioritas { box-shadow: 0 0 0 1.5px var(--brand-green-500), 0 3px 12px rgba(0,0,0,.05); }
.ks-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--nm-raised-sm);
}
.ks-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ks-num { font-size: 9.5px; font-weight: 800; color: var(--text-tertiary); letter-spacing: .04em; }
.ks-name { font-size: 11.5px; font-weight: 600; color: var(--text-primary); line-height: 1.25; }
.ks-badge {
  position: absolute; top: 6px; right: 8px;
  font-size: 11px; color: var(--brand-green-500);
}

/* =========================================================
   FORM PUBLIK (Layanan Cepat P4 — ajukan & cek status)
   Kelas dasar dipakai lintas halaman (app/Views/site/layanan-*.php).
   ========================================================= */
.hidden-lf { display: none !important; }
.lf-wrap { padding: 0 0 60px; }
.lf-wrap-narrow { max-width: 560px; margin: 0 auto; }
.lf-card { padding: 32px; }
@media (max-width: 640px) { .lf-card { padding: 20px 16px; } }
.lf-field { margin-bottom: 18px; }
.lf-label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.lf-input {
  width: 100%; border: none; outline: none; font-family: var(--font-text); font-size: 14px;
  background: var(--bg); border-radius: var(--r-md); box-shadow: var(--nm-inset);
  padding: 13px 16px; color: var(--text-primary); transition: box-shadow var(--dur-fast);
}
.lf-input:focus { box-shadow: var(--nm-inset), 0 0 0 2px rgba(18,163,116,.5); }
.lf-file { padding: 10px 14px; }
.lf-error { display: block; font-size: 11.5px; color: #ff3b30; margin-top: 6px; font-weight: 600; }
.lf-hint { display: block; font-size: 11px; color: var(--text-tertiary); margin-top: 6px; }

.program-accordion { display: flex; flex-direction: column; gap: 10px; }
.program-item {
  background: rgba(255,255,255,.78); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.55); border-radius: var(--r-md);
  padding: 4px 18px; box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.program-item summary {
  padding: 14px 0; font-size: 14px; font-weight: 700; cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.program-item summary::-webkit-details-marker { display: none; }
.program-item summary::after {
  content: "+"; font-size: 18px; font-weight: 400; color: var(--text-tertiary);
  transition: transform var(--dur-fast);
}
.program-item[open] summary::after { transform: rotate(45deg); }
.program-body { padding: 0 0 16px; }
.program-body p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin: 0 0 10px; }
.program-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-mini { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); }
.chip-mini.chip-iku { background: rgba(10,132,255,.12); color: #0a5dc2; }
.chip-mini.chip-sdg { background: rgba(18,163,116,.12); color: var(--brand-green-700); }
@media (max-width: 576px) {
  .sdg-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .sdg-chip { min-height: 80px; padding: 10px 10px; }
}

/* =========================================================
   TIM (Our Team)
   ========================================================= */
.team-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.team-card {
  background: var(--bg); border-radius: var(--r-xl);
  box-shadow: var(--nm-raised); overflow: hidden;
  padding: 0 22px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--nm-raised-sm), 0 18px 36px rgba(18,163,116,.18); }
/* Banner gradien tema di atas kartu (gaya "our team" modern) */
.team-banner {
  position: relative; width: calc(100% + 44px); margin: 0 -22px;
  height: 66px; flex: none; overflow: hidden;
  background: linear-gradient(135deg, #12a374 0%, #0e6e4e 45%, #0a84ff 120%);
  background-size: 180% 180%;
  transition: background-position var(--dur-med) var(--ease-ios);
}
.team-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 160% at 85% -25%, rgba(255,255,255,.38), transparent 55%);
}
.team-card:hover .team-banner { background-position: 100% 50%; }
.team-photo-wrap { margin-top: -46px; margin-bottom: 10px; position: relative; z-index: 1; }
.team-photo {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover; background: var(--bg);
  box-shadow: var(--nm-raised-sm), 0 0 0 5px var(--bg);
}
.team-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #12a374, #0e6e4e); color: #fff;
  font-size: 26px; font-weight: 800;
}
.team-name { font-size: 15px; font-weight: 700; margin: 0; }
.team-jabatan { font-size: 12.5px; color: var(--brand-green-700); font-weight: 600; margin: 0; }
.team-email {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
  font-size: 11.5px; color: var(--text-tertiary); text-decoration: none;
}
.team-email:hover { color: var(--brand-green-700); }
.team-social {
  display: flex; gap: 10px; justify-content: center; width: 100%;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(18,163,116,.14);
}
.team-social a {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); background: var(--bg);
  box-shadow: var(--nm-raised-sm); transition: transform var(--dur-fast), box-shadow var(--dur-fast), color var(--dur-fast);
}
.team-social a:hover { color: var(--brand-green-700); box-shadow: var(--nm-inset); transform: translateY(-2px); }

/* ── Hero rotator: device-frame ↔ kartu profil tim, bergantian lembut ──
   Slide pertama (device-frame) tetap di flow → menentukan tinggi kontainer;
   slide lain menumpuk absolut di atasnya. Efek: show/hide fade + zoom in/out. */
/* Tumpuk via grid; di desktop rotator absolut mengisi kolom visual sehingga
   TIDAK menyumbang tinggi baris — tinggi kartu tim = persis tinggi kolom kiri
   (eyebrow s.d. baris stat), tidak pernah melewati batas itu. */
.hero-rotator { display: grid; align-items: center; justify-items: center; }
.hero-rotator .hr-slide {
  grid-area: 1 / 1; width: 100%;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: scale(.4);
  /* KELUAR: foto lama mengecil & memudar dulu (tanpa delay) */
  transition: opacity .85s var(--ease-ios), transform .85s var(--ease-ios);
  will-change: opacity, transform;
}
.hero-rotator .hr-slide.active {
  opacity: 1; pointer-events: auto; transform: scale(1);
  /* MASUK: tunggu foto lama hilang (delay .85s), lalu membesar dari sangat kecil → asli */
  transition: opacity 1s var(--ease-ios) .85s, transform 1s var(--ease-ios) .85s;
}

.hr-team {
  display: flex; flex-direction: column; overflow: hidden;
  width: min(340px, 100%); margin: 0 auto;
  color: inherit; text-decoration: none; cursor: pointer;
  border-top: 5px solid var(--brand-green-500);
  background: var(--surface-white); border-radius: var(--r-lg);
  box-shadow: var(--nm-raised), 0 24px 50px rgba(10,10,20,.12);
}
/* Foto diberi bingkai putih tipis (margin 8px kiri-kanan-atas) ala iOS */
.hr-team-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  margin: 8px 8px 0; border-radius: var(--r-md);
  background: linear-gradient(160deg, #f5f7fa, #e6ebf1);
}
@media (min-width: 901px) {
  .hero-visual { position: relative; align-self: stretch; }
  .hero-rotator { position: absolute; inset: 0; }
  .hero-rotator .hr-slide { height: 100%; }
  /* Kartu isi penuh tinggi kolom; foto flex mengisi sisa ruang */
  .hr-team { height: 100%; }
  .hr-team-media { aspect-ratio: auto; flex: 1; min-height: 0; }
}
.hr-team-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
}
.hr-slide.active .hr-team-media img { animation: hrSoftZoom 7s ease-in-out infinite; }
.hr-team-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 64px; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, #12a374, #0e6e4e);
}
.hr-team-chip {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px; font-weight: 700; color: var(--brand-green-700);
  background: rgba(255,255,255,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px; border-radius: var(--r-pill); box-shadow: 0 4px 12px rgba(10,10,20,.10);
}
.hr-team-body { padding: 18px 22px 14px; }
.hr-team-body h3 { font-size: 18px; font-weight: 800; margin: 0; line-height: 1.3; }
.hr-team-sub { font-size: 12.5px; color: var(--text-secondary); margin: 6px 0 0; }
.hr-team-role {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 20px;
  background: linear-gradient(90deg, #12a374, #34c759, #0a84ff) top / 100% 3px no-repeat;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.hr-team-jabatan { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hr-team-role ion-icon { font-size: 17px; color: var(--ios-blue); flex: none; }
.hr-team-social { display: flex; gap: 8px; flex: 0 0 auto; }
.hr-team-social a {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); background: var(--bg);
  box-shadow: var(--nm-raised-sm); transition: transform var(--dur-fast), box-shadow var(--dur-fast), color var(--dur-fast);
}
.hr-team-social a:hover { color: var(--brand-green-700); box-shadow: var(--nm-inset); transform: translateY(-2px); }

@keyframes hrSoftZoom { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  .hero-rotator .hr-slide { transition: none; }
  .hr-slide.active .hr-team-media img { animation: none !important; }
}

/* =========================================================
   NEWS GRID
   ========================================================= */
.news-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.news-card {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--r-xl);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.1); }
.news-thumb {
  height: 120px; background: linear-gradient(135deg, #dbeafe, #ede9fe);
  display: flex; align-items: center; justify-content: center; color: rgba(99,102,241,.4);
}
.news-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-date { font-size: 11.5px; color: var(--text-tertiary); font-weight: 500; }
.news-title { font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--text-primary); margin: 0; }
.news-excerpt { font-size: 12.5px; color: var(--text-secondary); line-height: 1.65; margin: 0; flex: 1; }
.news-link { font-size: 12.5px; font-weight: 600; color: var(--ios-blue); text-decoration: none; margin-top: 4px; }
.news-link:hover { text-decoration: underline; }

/* =========================================================
   ACCORDION
   ========================================================= */
.accordion {
  display: flex; flex-direction: column; gap: 10px; max-width: 700px;
}
.accordion-item {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: none; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--text-primary);
  text-align: left; gap: 12px; font-family: var(--font-text);
}
.accordion-trigger:hover { color: var(--brand-green-700); }
.chevron { flex-shrink: 0; transition: transform var(--dur-fast); }
.accordion-item.open .chevron { transform: rotate(90deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease-ios); }
.accordion-panel-inner { padding: 0 20px 16px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }

/* =========================================================
   CONTACT GRID
   ========================================================= */
.contact-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: rgba(18,163,116,.1); color: var(--brand-green-700);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-row strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.contact-row span { font-size: 12.5px; color: var(--text-secondary); }
.map-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--nm-raised); min-height: 240px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 240px; border: none; display: block; }

/* =========================================================
   MODAL / SHEET
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px); display: flex; align-items: flex-end;
  justify-content: center; z-index: 900; opacity: 0; pointer-events: none;
  transition: opacity var(--dur-med);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-sheet {
  background: rgba(248,248,252,.97);
  backdrop-filter: blur(24px);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%; max-width: 480px;
  padding: 12px 24px 36px; text-align: center;
  transform: translateY(60px);
  transition: transform var(--dur-med) var(--ease-ios);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-sheet { transform: translateY(0); }
.sheet-handle { width: 36px; height: 4px; background: var(--shadow-dark); border-radius: var(--r-pill); margin: 0 auto 18px; }
.modal-icon-hero {
  width: 64px; height: 64px; border-radius: 20px;
  background: linear-gradient(145deg,#12a374,#0e6e4e);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; box-shadow: 0 8px 24px rgba(18,163,116,.3); color: #fff;
}
.modal-sheet h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; }
.modal-sheet .desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; margin: 0 0 20px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.modal-form-group { text-align: left; margin-bottom: 14px; }
.modal-form-group label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
.modal-input {
  width: 100%; background: var(--bg); border: 1.5px solid transparent;
  border-radius: var(--r-md); padding: 11px 14px;
  font-size: 14px; color: var(--text-primary); font-family: var(--font-text);
  box-shadow: var(--nm-inset); outline: none; transition: border-color var(--dur-fast);
}
.modal-input:focus { border-color: var(--ios-blue); }

/* =========================================================
   MODAL DETAIL DIVISI — kartu tengah, spring scale-in +
   glow gradien berdenyut + konten muncul bertahap (stagger)
   ========================================================= */
.divisi-modal-overlay { align-items: center; } /* override .modal-overlay (bottom-sheet default) */

.divisi-modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow: hidden; /* clip inner scrollbar ke dalam border-radius */
  background: rgba(248, 248, 252, .97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 70px rgba(10, 10, 20, .35);
  transform: scale(.82) translateY(30px);
  opacity: 0;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .35s ease;
}
.divisi-modal-overlay.active .divisi-modal-card { transform: scale(1) translateY(0); opacity: 1; }
.divisi-modal-scroll { max-height: calc(100vh - 48px); overflow-y: auto; padding: 34px 28px 30px; }

.divisi-modal-glow {
  position: absolute;
  inset: -40% -40% auto -40%;
  height: 220px;
  background: radial-gradient(closest-side, rgba(18, 163, 116, .35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease .1s;
  z-index: 0;
}
.divisi-modal-overlay.active .divisi-modal-glow { opacity: 1; animation: divisiGlowPulse 3.2s ease-in-out infinite; }
@keyframes divisiGlowPulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50%      { transform: scale(1.12); opacity: 1; }
}

.divisi-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(142, 142, 147, .14); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .2s var(--ease-ios), background .2s;
}
.divisi-modal-close:hover { background: rgba(142, 142, 147, .25); }
.divisi-modal-close:active { transform: scale(.88); }

.divisi-modal-header { position: relative; z-index: 1; text-align: center; }

.divisi-modal-num {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: var(--brand-green-700); background: rgba(18, 163, 116, .12);
  padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 14px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease .15s, transform .4s var(--ease-ios) .15s;
}
.divisi-modal-overlay.active .divisi-modal-num { opacity: 1; transform: none; }

.divisi-modal-icon {
  width: 66px; height: 66px; border-radius: 22px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  transform: scale(.4) rotate(-20deg); opacity: 0;
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1) .2s, opacity .35s ease .2s;
}
.divisi-modal-overlay.active .divisi-modal-icon { transform: scale(1) rotate(0); opacity: 1; }

.divisi-modal-card h3 {
  position: relative; z-index: 1;
  font-size: 1.2rem; font-weight: 800; margin: 0 0 12px; line-height: 1.35;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease .25s, transform .4s var(--ease-ios) .25s;
}
.divisi-modal-overlay.active .divisi-modal-card h3 { opacity: 1; transform: none; }

.divisi-modal-desc {
  position: relative; z-index: 1;
  font-size: 13.5px; color: var(--text-secondary); line-height: 1.75; margin: 0 0 22px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease .3s, transform .4s var(--ease-ios) .3s;
}
.divisi-modal-overlay.active .divisi-modal-desc { opacity: 1; transform: none; }

.divisi-modal-programs {
  position: relative; z-index: 1;
  list-style: none; margin: 0 0 24px; padding: 0;
  display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.divisi-modal-programs li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-primary); line-height: 1.5;
  background: var(--bg); border-radius: var(--r-md); padding: 10px 14px;
  opacity: 0; transform: translateX(-14px);
  transition: opacity .4s ease var(--d, 0s), transform .4s var(--ease-ios) var(--d, 0s);
}
.divisi-modal-overlay.active .divisi-modal-programs li { opacity: 1; transform: none; }
.divisi-modal-check {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(145deg, #12a374, #0a84ff); color: #fff;
  font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

.divisi-modal-footer {
  position: relative; z-index: 1;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease .5s, transform .4s var(--ease-ios) .5s;
}
.divisi-modal-overlay.active .divisi-modal-footer { opacity: 1; transform: none; }

@media (max-width: 560px) {
  .divisi-modal-card { max-width: 100%; margin: 0 12px; }
  .divisi-modal-scroll { padding: 28px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .divisi-modal-card, .divisi-modal-num, .divisi-modal-icon, .divisi-modal-card h3,
  .divisi-modal-desc, .divisi-modal-programs li, .divisi-modal-footer, .divisi-modal-glow {
    transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* =========================================================
   ALERT (iOS Native Dialog)
   ========================================================= */
.alert-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px); display: flex; align-items: center;
  justify-content: center; z-index: 950; opacity: 0; pointer-events: none;
  transition: opacity var(--dur-fast); padding: 20px;
}
.alert-overlay.active { opacity: 1; pointer-events: auto; }
.alert-box {
  background: rgba(248,248,252,.97);
  backdrop-filter: blur(24px);
  border-radius: var(--r-lg); width: 100%; max-width: 280px;
  overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.2);
  transform: scale(.92);
  transition: transform var(--dur-fast) var(--ease-ios);
}
.alert-overlay.active .alert-box { transform: scale(1); }
.alert-body { padding: 20px 20px 16px; text-align: center; }
.alert-body h4 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.alert-body p { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.55; }
.alert-actions { display: flex; border-top: 1px solid rgba(0,0,0,.12); }
.alert-actions button {
  flex: 1; background: none; border: none; cursor: pointer;
  font-size: 17px; font-weight: 400; color: var(--ios-blue);
  padding: 14px; font-family: var(--font-text); transition: background var(--dur-fast);
}
.alert-actions button + button { border-left: 1px solid rgba(0,0,0,.12); }
.alert-actions button.emphasis { font-weight: 700; }
.alert-actions button.destructive { color: var(--ios-red); font-weight: 700; }
.alert-actions button:hover { background: rgba(0,0,0,.04); }

/* =========================================================
   TOAST
   ========================================================= */
.toast-stack {
  position: fixed; top: 80px; right: 16px; z-index: 800;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none; max-width: 340px; width: calc(100vw - 32px);
}
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(248,248,252,.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  padding: 14px; opacity: 0;
  transform: translateX(24px);
  transition: all var(--dur-med) var(--ease-ios);
  pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: 13.5px; font-weight: 700; }
.toast-msg { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; line-height: 1.4; }
.toast-close {
  background: none; border: none; cursor: pointer; color: var(--text-tertiary);
  padding: 2px; display: flex; align-items: center; flex-shrink: 0;
  transition: color var(--dur-fast);
}
.toast-close:hover { color: var(--text-primary); }

/* =========================================================
   FAB DOCK
   ========================================================= */
.fab-dock {
  position: fixed; bottom: 28px; right: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 300;
}
/* Shadow gelap murni (BUKAN --nm-raised) — dock ini position:fixed, selalu tampil
   di layar termasuk saat di atas footer gelap. Shadow neumorphism dua-sisi (sisi
   terangnya putih #fff) akan terlihat seperti glow aneh di atas background gelap. */
.fab-btn {
  width: 52px; height: 52px; border-radius: var(--r-lg);
  background: linear-gradient(145deg, #12a374, #0e6e4e);
  color: #fff; border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(18,163,116,.4), 0 2px 8px rgba(0,0,0,.18);
  text-decoration: none; transition: all var(--dur-fast);
}
.fab-btn:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(18,163,116,.5), 0 2px 8px rgba(0,0,0,.18); }
.fab-btn.secondary { background: var(--bg); color: var(--text-secondary); box-shadow: 0 4px 16px rgba(0,0,0,.2), 0 1px 4px rgba(0,0,0,.12); }
.fab-btn.secondary:hover { box-shadow: 0 6px 20px rgba(0,0,0,.24), 0 2px 6px rgba(0,0,0,.14); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: rgba(8,64,45,.94);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,.7); padding: 48px 24px 0;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; gap: 32px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand strong { display: block; color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.65; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.1); display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,.7); text-decoration: none;
  transition: background var(--dur-fast);
}
.footer-social a:hover { background: rgba(255,255,255,.2); color: #fff; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin: 0 0 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; margin-bottom: 8px; transition: color var(--dur-fast); }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 13px; margin: 0 0 8px; }
.footer-bottom {
  max-width: 1180px; margin: 32px auto 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0; display: flex; justify-content: space-between;
  font-size: 12px; gap: 12px; flex-wrap: wrap;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease-ios), transform .6s var(--ease-ios); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   EFEK PREMIUM HALAMAN DEPAN
   ========================================================= */

/* Bilah progres baca di atas layar */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  z-index: 2100;
  background: linear-gradient(90deg, #12a374, #0a84ff, #5856d6);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(10,132,255,.45);
}

/* Navbar memadat saat discroll */
.navbar { transition: box-shadow .32s var(--ease-ios), background .32s ease; }
.navbar.scrolled {
  background: rgba(238,241,244,.95);
  box-shadow: 0 10px 30px rgba(28,28,30,.12);
}
.navbar-inner { transition: height .32s var(--ease-ios); }
.navbar.scrolled .navbar-inner { height: 52px; }

/* Judul hero: kata demi kata naik
   (translateY murni, TANPA rotate — dikombinasikan dengan gradasi teks
   -webkit-background-clip:text di .hero-title-grad, rotate() memicu bug
   render "smear/ghosting" pada Chromium khususnya di Windows) */
.word-in {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px);
  animation: wordIn .7s var(--ease-ios) forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }

/* Teks aksen gradien bergeser (shimmer) */
.accent { background-size: 220% 220%; animation: accentShift 6s ease-in-out infinite; }
@keyframes accentShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Anak grid muncul bertahap (stagger) */
.reveal .stagger-child {
  opacity: 0;
  transform: translateY(22px) scale(.98);
  transition: opacity .55s var(--ease-ios), transform .55s var(--ease-ios);
  transition-delay: var(--d, 0s);
}
.reveal.in .stagger-child { opacity: 1; transform: translateY(0) scale(1); }

/* Hero visual: tilt 3D mengikuti kursor */
.hero-visual { perspective: 900px; }
.device-frame { will-change: transform; transition: transform .25s var(--ease-ios); }

/* Kartu terangkat + kilau menyapu saat hover */
.news-card, .divisi-card, .app-icon-card, .stat-card, .widget-mini {
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-ios), box-shadow .3s var(--ease-ios);
}
.news-card:hover, .divisi-card:hover, .app-icon-card:hover { transform: translateY(-6px) scale(1.015); }
.stat-card:hover, .widget-mini:hover { transform: translateY(-4px); }
.sheen::after {
  content: "";
  position: absolute;
  top: 0; left: -85%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  transition: left .8s var(--ease-ios);
  pointer-events: none;
}
.sheen:hover::after { left: 140%; }

/* Ripple sentuhan iOS pada tombol */
.btn { position: relative; overflow: hidden; }
.ripple-ink {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transform: scale(0);
  animation: rippleInk .6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleInk { to { transform: scale(3.4); opacity: 0; } }

/* Garis bawah gradien pada menu (scrollspy) */
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #12a374, #0a84ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-ios);
}
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }

/* Badge mengambang di hero berdenyut naik-turun */
.floating-badge { animation: floatBadge 4s ease-in-out infinite; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .word-in { animation: none; opacity: 1; transform: none; }
  .accent, .floating-badge { animation: none; }
  .sheen::after { display: none; }
}

/* =========================================================
   RESPONSIVE UTILITY
   ========================================================= */
@media (max-width: 600px) {
  .section { padding: 48px 16px; }
  .hero { padding: 48px 16px 40px; }
  .visi-carousel-section { padding: 0 16px 48px; }
}

/* =========================================================
   OVERRIDE FONT MONTSERRAT + LANGUAGE PILL (dinamis)
   ========================================================= */
:root {
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-text: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.lang-pill {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--nm-inset);
  gap: 2px;
}
.lang-pill a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .25s cubic-bezier(.32,.72,0,1);
}
.lang-pill a.active {
  background: linear-gradient(135deg, #0a84ff, #0a5dc2);
  color: #fff;
  box-shadow: 2px 2px 6px rgba(0,122,255,.35);
}
.flag-icon {
  width: 18px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  display: block;
}

/* Mobile: hanya ikon bendera (bulat, tanpa teks ID/EN) — cegah tabrakan dgn brand/navbar */
@media (max-width: 576px) {
  .lang-pill { padding: 2px; gap: 1px; }
  .lang-pill a {
    padding: 0;
    width: 30px;
    height: 30px;
    justify-content: center;
  }
  .flag-icon { width: 20px; height: 14px; }
  .lang-pill-text { display: none; }
}

/* Judul hero — gradasi hitam→hijau lembut, senada warna website */
.hero-title-grad {
  background: linear-gradient(100deg, #1c1c1e 0%, #1c1c1e 20%, #0e6e4e 62%, #12a374 100%);
  background-size: 220% 220%;
  animation: accentShift 6s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #1c1c1e; /* fallback browser lama yang tak dukung background-clip:text */
}
.hero-image {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(28,28,30,.16);
}

/* =========================================================
   HALAMAN KURSUS (MOOC-style) — hero + slider + kartu animasi
   ========================================================= */
.krs-hero {
  max-width: 1180px; margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
@media (max-width: 900px) { .krs-hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 16px 24px; } }
.krs-hero-title {
  font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800;
  line-height: 1.14; letter-spacing: -.02em; margin: 0 0 14px;
  background: linear-gradient(100deg, #1c1c1e 0%, #1c1c1e 22%, #0e6e4e 64%, #12a374 100%);
  background-size: 220% 220%; animation: accentShift 6s ease-in-out infinite;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #1c1c1e;
}
.krs-hero-lead { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin: 0 0 22px; max-width: 460px; }

.krs-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-radius: var(--r-pill);
  box-shadow: var(--nm-inset); padding: 4px 18px; margin-bottom: 22px;
  max-width: 440px; color: var(--text-tertiary);
  transition: box-shadow var(--dur-med);
}
.krs-search:focus-within { box-shadow: var(--nm-inset), 0 0 0 3px rgba(10,132,255,.18); }
.krs-search svg { flex: 0 0 auto; }
.krs-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--font-text); font-size: 14px; color: var(--text-primary);
  padding: 12px 0; min-width: 0;
}
.krs-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.krs-stat {
  background: var(--bg); border-radius: var(--r-md);
  box-shadow: var(--nm-raised-sm); padding: 12px 18px; text-align: center; min-width: 88px;
}
.krs-stat strong { display: block; font-size: 20px; font-weight: 800; color: var(--brand-green-700); line-height: 1; }
.krs-stat span { font-size: 11.5px; color: var(--text-secondary); font-weight: 500; }

/* ---- Slider kursus unggulan ---- */
.krs-slider {
  position: relative; border-radius: var(--r-xl);
  box-shadow: var(--nm-raised); overflow: hidden; background: var(--bg);
}
.krs-slider-track { display: flex; transition: transform .6s var(--ease-ios); will-change: transform; }
.krs-slide {
  flex: 0 0 100%; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.krs-slide-media {
  position: relative; height: 210px;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.krs-slide-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.28));
}
.krs-slide-tag, .krs-card-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--brand-green-700);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 11px; border-radius: var(--r-pill); box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.krs-slide-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.krs-free {
  align-self: flex-start;
  background: rgba(52,199,89,.15); color: #1f9d4d;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--r-pill);
}
.krs-free-abs { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(52,199,89,.95); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.krs-slide-title { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 2px 0 0; }
.krs-slide-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.krs-slide-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.krs-teacher { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-tertiary); font-weight: 600; }
.krs-teacher svg { flex: 0 0 auto; }
.krs-slide-cta { font-size: 13px; font-weight: 700; color: var(--ios-blue); white-space: nowrap; }

.krs-nav {
  position: absolute; top: 105px; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--text-primary);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: transform var(--dur-fast), background var(--dur-fast);
}
.krs-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.krs-nav-prev { left: 12px; }
.krs-nav-next { right: 12px; }
.krs-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 3; }
.krs-dot { width: 7px; height: 7px; border: none; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: all var(--dur-fast); }
.krs-dot.active { width: 20px; border-radius: 4px; background: #fff; }

/* ---- Grid kartu kursus ---- */
.krs-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
}
.krs-card {
  background: var(--bg); border-radius: var(--r-xl);
  box-shadow: var(--nm-raised); overflow: hidden;
  transition: transform .35s var(--ease-ios), box-shadow .35s var(--ease-ios);
}
.krs-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.krs-card-thumb {
  position: relative; height: 150px;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; overflow: hidden;
}
.krs-card-thumb::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.22));
}
.krs-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.krs-card-title { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0; color: var(--text-primary); }
.krs-card-excerpt { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; flex: 1; }
.krs-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.krs-card-arrow { font-size: 16px; font-weight: 700; color: var(--ios-blue); transition: transform var(--dur-fast); }
.krs-card:hover { transform: translateY(-8px); box-shadow: var(--nm-raised), 0 18px 38px rgba(18,163,116,.16); }
.krs-card:hover .krs-card-arrow { transform: translateX(4px); }
.krs-empty { text-align: center; color: var(--text-tertiary); padding: 40px 0; }

/* Kartu masuk bertahap (stagger) mengikuti .reveal induk grid */
.reveal .krs-card {
  opacity: 0; transform: translateY(26px) scale(.97);
  transition: opacity .55s var(--ease-ios), transform .55s var(--ease-ios);
  transition-delay: calc(var(--i, 0) * .07s);
}
.reveal.in .krs-card { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .krs-hero-title { animation: none; }
  .krs-slider-track { transition: none; }
  .reveal .krs-card { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 600px) {
  .krs-slide-media { height: 170px; }
  .krs-nav { top: 85px; }
}

/* =========================================================
   TABEL LAYANAN (iOS neumorphism) — search cepat + filter + responsive
   Dipakai di halaman /layanan-p4/rpl (Program Studi) & sejenis.
   ========================================================= */
.lyn-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.lyn-search {
  flex: 1 1 220px; display: flex; align-items: center; gap: 9px;
  background: var(--bg); border-radius: var(--r-pill);
  box-shadow: var(--nm-inset); padding: 2px 16px; color: var(--text-tertiary);
  transition: box-shadow var(--dur-med);
}
.lyn-search:focus-within { box-shadow: var(--nm-inset), 0 0 0 3px rgba(10,132,255,.18); }
.lyn-search svg { flex: 0 0 auto; }
.lyn-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--font-text); font-size: 14px; color: var(--text-primary);
  padding: 11px 0; min-width: 0;
}
.lyn-select { position: relative; flex: 0 0 auto; }
.lyn-select select {
  appearance: none; -webkit-appearance: none;
  border: none; background: var(--bg); box-shadow: var(--nm-raised-sm);
  border-radius: var(--r-pill); font-family: var(--font-text);
  font-size: 13.5px; font-weight: 500; color: var(--text-primary);
  padding: 11px 40px 11px 18px; cursor: pointer; outline: none;
  transition: box-shadow var(--dur-fast); max-width: 100%;
}
.lyn-select select:focus { box-shadow: var(--nm-inset); }
.lyn-select .lyn-chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-secondary); }

.lyn-table-scroll { overflow-x: auto; border-radius: var(--r-md); box-shadow: var(--nm-raised-sm); -webkit-overflow-scrolling: touch; }
.lyn-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.lyn-table thead { background: linear-gradient(145deg, #12a374, #0e6e4e); }
.lyn-table th { color: #fff; font-size: 12.5px; font-weight: 600; padding: 12px 16px; text-align: left; white-space: nowrap; }
.lyn-table td { font-size: 13.5px; padding: 11px 16px; color: var(--text-primary); border-bottom: 1px solid rgba(0,0,0,.05); vertical-align: middle; }
.lyn-table tbody tr:last-child td { border-bottom: none; }
.lyn-table tbody tr { transition: background var(--dur-fast); }
.lyn-table tbody tr:hover { background: rgba(18,163,116,.05); }
.lyn-table td:first-child { color: var(--text-secondary); font-weight: 700; width: 46px; }
.lyn-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: var(--r-pill);
  background: rgba(10,132,255,.12); color: var(--ios-blue-dark); white-space: nowrap;
}
.lyn-noresult { text-align: center; color: var(--text-tertiary); font-size: 13px; padding: 22px 0 4px; }
@media (max-width: 600px) {
  .lyn-tools { flex-direction: column; }
  .lyn-select select { width: 100%; }
}

/* =========================================================
   DETAIL ARTIKEL (berita & pengumuman) — full page (lebar navbar),
   iOS icons, neumorphism. Aksen tema via --art-accent (default hijau).
   Tambah class .orange di .artp-page untuk varian pengumuman.
   ========================================================= */
.artp-page {
  max-width: 1180px; margin: 0 auto; padding: 40px 24px 64px;
  --art-accent: var(--brand-green-500); --art-accent-rgb: 18,163,116;
  --art-grad: linear-gradient(145deg, #12a374, #0e6e4e);
}
.artp-page.orange { --art-accent: var(--ios-orange); --art-accent-rgb: 255,149,0; --art-grad: linear-gradient(145deg, #ff9500, #c96e00); }
@media (max-width: 600px) { .artp-page { padding: 28px 16px 48px; } }

.artp-hero {
  position: relative; overflow: hidden;
  background: var(--bg); border-radius: var(--r-xl);
  box-shadow: var(--nm-raised); padding: clamp(24px, 4vw, 40px);
  margin-bottom: 28px; border-top: 3px solid var(--art-accent);
}
.artp-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 130% at 100% -10%, rgba(var(--art-accent-rgb),.12), transparent 55%);
}
.artp-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(var(--art-accent-rgb),.14); color: var(--art-accent);
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 13px; border-radius: var(--r-pill);
}
.artp-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.22; letter-spacing: -.01em; margin: 14px 0 16px; }
.artp-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.artp-meta-item {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg); border-radius: var(--r-pill);
  box-shadow: var(--nm-raised-sm); padding: 7px 14px;
  font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
}
.artp-meta-item svg { flex: 0 0 auto; color: var(--text-tertiary); }

.artp-grid { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.artp-grid.solo { grid-template-columns: 1fr; }
@media (max-width: 900px) { .artp-grid { grid-template-columns: 1fr; } }

.artp-cover { width: 100%; border-radius: var(--r-lg); box-shadow: var(--nm-raised); margin-bottom: 22px; display: block; }
.artp-body {
  background: var(--surface-white); border-radius: var(--r-lg);
  box-shadow: var(--nm-raised-sm); padding: clamp(22px, 3vw, 34px);
  font-size: 15px; line-height: 1.85; color: var(--text-primary);
}
.artp-body :where(h1,h2,h3) { line-height: 1.3; margin: 1.2em 0 .5em; }
.artp-body p { margin: 0 0 1em; }
.artp-body img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.artp-body a { color: var(--ios-blue); }

.artp-aside {
  background: var(--bg); border-radius: var(--r-lg);
  box-shadow: var(--nm-raised); padding: 22px; position: sticky; top: 84px;
}
@media (max-width: 900px) { .artp-aside { position: static; } }
.artp-aside-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin: 0 0 16px; }
.artp-related { display: flex; flex-direction: column; gap: 10px; }
.artp-related-item {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit;
  background: var(--bg); border-radius: var(--r-md);
  box-shadow: var(--nm-raised-sm); padding: 12px 14px;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.artp-related-item:hover { transform: translateY(-3px); box-shadow: var(--nm-raised); }
.artp-related-ic {
  width: 42px; height: 42px; border-radius: 12px; flex: none; color: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--art-grad); background-size: cover; background-position: center;
  box-shadow: var(--nm-raised-sm);
}
.artp-related-body { min-width: 0; }
.artp-related-body strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
.artp-related-body span { font-size: 11.5px; color: var(--text-tertiary); }

/* Kartu info samping (kursus/layanan detail) */
.artp-info { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--nm-raised); padding: 22px; position: sticky; top: 84px; }
@media (max-width: 900px) { .artp-info { position: static; } }
.artp-info h4 { font-size: 13px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.artp-info-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); padding: 9px 0; border-bottom: 1px solid rgba(var(--art-accent-rgb),.10); }
.artp-info-row:last-of-type { border-bottom: none; }
.artp-info-row svg { flex: 0 0 auto; color: var(--art-accent); }

/* =========================================================
   PESERTA KURSUS — chip, form, gate modal, dashboard, progress, modul
   ========================================================= */
.chip-green { background: rgba(52,199,89,.15); color: #1f9d4d; }
.chip-gray  { background: rgba(142,142,147,.16); color: var(--text-secondary); }

/* Navbar: pil "Kursus Saya" saat peserta login */
.nav-kursus-saya {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  background: rgba(18,163,116,.12); color: var(--brand-green-700);
  font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: var(--r-pill);
  transition: background var(--dur-fast);
}
.nav-kursus-saya:hover { background: rgba(18,163,116,.2); }
@media (max-width: 640px) { .nav-kursus-saya span { display: none; } .nav-kursus-saya { padding: 8px; } }

/* Form peserta (profil) — input/select neumorphik */
.krs-form { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.krs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .krs-grid-2 { grid-template-columns: 1fr; } }
.krs-field { display: flex; flex-direction: column; gap: 7px; }
.krs-field > span { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.krs-field input, .krs-select select {
  width: 100%; border: none; outline: none; background: var(--bg);
  box-shadow: var(--nm-inset); border-radius: var(--r-md);
  font-family: var(--font-text); font-size: 14px; color: var(--text-primary);
  padding: 13px 16px; transition: box-shadow var(--dur-med);
}
.krs-field input:focus, .krs-select select:focus { box-shadow: var(--nm-inset), 0 0 0 3px rgba(10,132,255,.18); }
.krs-select { position: relative; }
.krs-select select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.krs-select .lyn-chev { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-secondary); }
.krs-form-msg { font-size: 12.5px; color: var(--text-tertiary); margin: 0; min-height: 1em; }
.krs-form-msg.err { color: var(--ios-red); }

/* Gate reCAPTCHA modal */
.krs-gate-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(18,22,28,.5); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.krs-gate-overlay[hidden] { display: none; }
.krs-gate-card {
  position: relative; width: 100%; max-width: 380px; text-align: center;
  background: var(--bg); border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  padding: 30px 26px 26px; animation: krsGateIn .3s var(--ease-ios);
}
@keyframes krsGateIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.krs-gate-x { position: absolute; top: 12px; right: 14px; border: none; background: transparent; font-size: 26px; line-height: 1; color: var(--text-tertiary); cursor: pointer; }
.krs-gate-ic {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg,#12a374,#0e6e4e); box-shadow: var(--nm-raised-sm);
}
.krs-gate-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.krs-gate-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.krs-gate-msg { font-size: 12.5px; color: var(--ios-red); min-height: 1em; }

/* Progress bar (dipakai dashboard & belajar) */
.krs-progress { height: 8px; border-radius: var(--r-pill); background: rgba(0,0,0,.08); overflow: hidden; }
.krs-progress-fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg,#12a374,#0a84ff); transition: width .5s var(--ease-ios); }
.krs-progress-meta { font-size: 12px; color: var(--text-secondary); font-weight: 600; margin-top: 8px; }

/* Dashboard peserta */
.krs-dash { max-width: 1180px; margin: 0 auto; padding: 34px 24px 64px; display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .krs-dash { grid-template-columns: 1fr; padding: 24px 16px 48px; } }
.krs-dash-side { background: var(--bg); border-radius: var(--r-xl); box-shadow: var(--nm-raised); padding: 22px; position: sticky; top: 84px; }
@media (max-width: 860px) { .krs-dash-side { position: static; } }
.krs-dash-profile { text-align: center; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid rgba(18,163,116,.14); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.krs-dash-profile img, .krs-dash-ava-ph { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; box-shadow: var(--nm-raised-sm), 0 0 0 4px var(--bg); }
.krs-dash-ava-ph { display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(145deg,#12a374,#0a84ff); font-size: 22px; }
.krs-dash-profile strong { font-size: 14.5px; margin-top: 8px; }
.krs-dash-profile span { font-size: 11.5px; color: var(--text-tertiary); word-break: break-word; }
.krs-dash-menu { display: flex; flex-direction: column; gap: 4px; }
.krs-dash-menu a, .krs-dash-logout {
  display: flex; align-items: center; gap: 11px; text-decoration: none; width: 100%;
  font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
  padding: 11px 13px; border-radius: var(--r-md); border: none; background: transparent;
  cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast); text-align: left;
}
.krs-dash-menu a:hover, .krs-dash-logout:hover { background: rgba(18,163,116,.08); color: var(--brand-green-700); }
.krs-dash-menu a.active { background: var(--bg); box-shadow: var(--nm-inset); color: var(--brand-green-700); }
.krs-dash-logout { color: var(--ios-red); }
.krs-dash-logout:hover { background: rgba(255,59,48,.08); color: var(--ios-red); }
.krs-dash-head h1 { font-size: clamp(1.4rem,3.4vw,1.9rem); font-weight: 800; margin: 0 0 4px; }
.krs-dash-head p { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 22px; }
.krs-dash-sec { font-size: 15px; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; scroll-margin-top: 80px; }
.krs-dash-sec span { font-size: 12px; font-weight: 700; color: var(--brand-green-700); background: rgba(18,163,116,.12); border-radius: var(--r-pill); padding: 1px 9px; }
.krs-dash-empty { font-size: 13px; color: var(--text-tertiary); background: var(--bg); box-shadow: var(--nm-inset); border-radius: var(--r-md); padding: 18px; text-align: center; }
.krs-dash-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.krs-dash-card { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--nm-raised); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
.krs-dash-card:hover { transform: translateY(-5px); box-shadow: var(--nm-raised), 0 16px 32px rgba(18,163,116,.14); }
.krs-dash-thumb { height: 110px; background-size: cover; background-position: center; }
.krs-dash-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.krs-dash-body h3 { font-size: 14.5px; font-weight: 700; line-height: 1.35; margin: 0; }
.krs-dash-excerpt { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin: 0; flex: 1; }
.krs-dash-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }

/* Halaman belajar — daftar modul */
.krs-modul-list { display: flex; flex-direction: column; gap: 10px; }
.krs-modul {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  background: var(--bg); border: none; border-radius: var(--r-md);
  box-shadow: var(--nm-raised-sm); padding: 15px 16px; cursor: pointer;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.krs-modul:hover { transform: translateY(-2px); box-shadow: var(--nm-raised); }
.krs-modul-check {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: transparent;
  background: var(--bg); box-shadow: var(--nm-inset); transition: all var(--dur-fast);
}
.krs-modul.done .krs-modul-check { background: linear-gradient(145deg,#34c759,#1d7a3d); color: #fff; box-shadow: var(--nm-raised-sm); }
.krs-modul-num { font-size: 12px; font-weight: 800; color: var(--brand-green-500); flex: 0 0 auto; }
.krs-modul-text { font-size: 13.5px; color: var(--text-primary); line-height: 1.5; }
.krs-modul.done .krs-modul-text { color: var(--text-tertiary); text-decoration: line-through; }
.krs-cert-note { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin: 0 0 14px; }
.krs-cert-note.wait { color: var(--ios-orange); font-weight: 600; }
.krs-cert-note.ok { color: #1f9d4d; font-weight: 600; }

/* Player video modul (YouTube IFrame API) */
.krs-player { margin-bottom: 18px; }
.krs-player[hidden] { display: none; }
.krs-player-frame { position: relative; padding-top: 56.25%; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--nm-raised); background: #000; }
.krs-player-frame iframe, .krs-player-frame > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.krs-player-title { font-size: 14.5px; font-weight: 700; margin-top: 12px; }
.krs-player-lock { display: none; font-size: 12px; color: var(--ios-orange); font-weight: 600; margin-top: 6px; }
.krs-player.locked .krs-player-lock { display: block; }
.krs-player-empty { font-size: 13px; color: var(--text-tertiary); background: var(--bg); box-shadow: var(--nm-inset); border-radius: var(--r-md); padding: 16px; text-align: center; margin: 0 0 18px; }
.krs-modul { cursor: pointer; }
.krs-modul.disabled { opacity: .45; pointer-events: none; }
.krs-modul.locked { opacity: .55; cursor: not-allowed; }
.krs-modul-play, .krs-modul-lock { margin-left: auto; flex: 0 0 auto; }
.krs-modul-play { color: var(--brand-green-500); }
.krs-modul-lock { color: var(--text-tertiary); }
.krs-modul.done .krs-modul-play { color: var(--text-tertiary); }

/* Post-test kuis */
.krs-quiz { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--nm-raised); padding: 22px; margin-bottom: 18px; }
.krs-quiz[hidden] { display: none; }
.krs-quiz h4 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.krs-quiz-hint { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 16px; }
.krs-quiz-q { margin-bottom: 18px; }
.krs-quiz-qt { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.krs-quiz-opt { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-primary); background: var(--bg); box-shadow: var(--nm-raised-sm); border-radius: var(--r-md); padding: 11px 14px; margin-bottom: 8px; cursor: pointer; transition: box-shadow var(--dur-fast); }
.krs-quiz-opt:hover { box-shadow: var(--nm-raised); }
.krs-quiz-opt input { position: absolute; opacity: 0; }
.krs-quiz-opt span { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; box-shadow: var(--nm-inset); position: relative; }
.krs-quiz-opt input:checked + span { box-shadow: none; background: linear-gradient(145deg,#12a374,#0a84ff); }
.krs-quiz-opt input:checked + span::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.krs-quiz-msg { font-size: 12.5px; color: var(--ios-red); min-height: 1em; margin-bottom: 10px; }
.krs-quiz-opt.correct { box-shadow: var(--nm-raised-sm), inset 0 0 0 2px #34c759; color: #1f9d4d; }
.krs-quiz-opt.correct span { box-shadow: none; background: #34c759; }
.krs-quiz-opt.correct span::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.krs-quiz-opt.wrong { box-shadow: var(--nm-raised-sm), inset 0 0 0 2px #ff3b30; color: #d0271d; }
.krs-quiz-opt.wrong span { box-shadow: none; background: #ff3b30; }
.krs-quiz-score { font-size: 15px; font-weight: 800; text-align: center; padding: 12px; border-radius: var(--r-md); margin-bottom: 12px; }
.krs-quiz-score[hidden] { display: none; }
.krs-quiz-score.ok { color: #1f9d4d; background: rgba(52,199,89,.14); }
.krs-quiz-score.bad { color: #d0271d; background: rgba(255,59,48,.12); }

/* Halaman belajar: full page, modul di sidebar kiri, video+post-test di kanan */
.krs-belajar { max-width: 1180px; margin: 0 auto; padding: 34px 24px 64px; display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .krs-belajar { grid-template-columns: 1fr; padding: 24px 16px 48px; } }
.krs-belajar-side { background: var(--bg); border-radius: var(--r-xl); box-shadow: var(--nm-raised); padding: 20px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
@media (max-width: 860px) { .krs-belajar-side { position: static; max-height: none; } }
.krs-belajar-head { padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid rgba(18,163,116,.14); }
.krs-belajar-title { font-size: 16px; font-weight: 800; line-height: 1.32; margin: 10px 0 12px; }
.krs-belajar-main { min-width: 0; }
.krs-cert-card { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--nm-raised); padding: 22px; margin-top: 18px; }
.krs-cert-card h4 { font-size: 14px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.krs-cert-card h4 svg { color: var(--brand-green-500); }
