/* ═══════════════════════════════════════════════════════
   DESIGN SYSTEM — PPKP-LPPM Universitas Hasanuddin
   Theme: "Institutional Authority"
   Philosophy: Clean light base · Navy authority · Rose identity · Gold accent
   Fonts: Playfair Display (headings) + Source Sans 3 (body)
═══════════════════════════════════════════════════════ */
:root {
  /* ── Core Palette ── */
  --navy:        #1A2B4A;
  --navy-mid:    #243860;
  --navy-light:  #EEF2F8;
  --rose:        #984447;
  --rose-dark:   #7A3336;
  --rose-light:  #FDF1F1;
  --rose-mid:    #F2D5D5;
  --gold:        #C8952A;
  --gold-light:  #FBF4E6;
  --gold-mid:    #F0D99A;
  --white:       #FFFFFF;
  --off-white:   #F8F9FB;
  --surface:     #F2F4F7;

  /* ── Semantic Tokens ── */
  --bg-page:      #F8F9FB;
  --bg-white:     #FFFFFF;
  --bg-navy:      #1A2B4A;
  --bg-rose:      #984447;
  --bg-surface:   #F2F4F7;

  /* ── Text ── */
  --txt-primary:  #111827;
  --txt-secondary:#4B5563;
  --txt-muted:    #6B7280; /* AA contrast ≥4.5:1 vs white. Sebelumnya #9CA3AF (ratio 2.84) — fail WCAG AA. */
  --txt-white:    #FFFFFF;
  --txt-white-70: rgba(255,255,255,0.72);
  --txt-white-45: rgba(255,255,255,0.62); /* contrast ≥4.5:1 vs navy bg. Sebelumnya 0.45 (ratio 4.05) — fail WCAG AA. */

  /* ── Borders ── */
  --border:       #E5E7EB;
  --border-mid:   #D1D5DB;
  --border-navy:  rgba(26,43,74,0.12);
  --border-rose:  rgba(152,68,71,0.15);

  /* ── Shadows ── */
  --shadow-sm:  0 1px 3px rgba(17,24,39,0.06), 0 1px 2px rgba(17,24,39,0.04);
  --shadow-md:  0 4px 12px rgba(17,24,39,0.08), 0 2px 4px rgba(17,24,39,0.04);
  --shadow-lg:  0 10px 30px rgba(17,24,39,0.1), 0 4px 8px rgba(17,24,39,0.06);

  /* ── Typography ── */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  /* ── Spacing ── */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--txt-primary);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; font-family: var(--font-body); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── A11Y: Skip link ── */
/* Hidden off-screen by default (bukan display:none — supaya tetap focusable via Tab).
   Saat di-focus, muncul di top-left corner untuk klik/Enter. WCAG SC 2.4.1. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 9999;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  transition: top 0.18s ease-out;
}
.skip-link:focus {
  top: 8px;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ── Layout ── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 880px;  margin: 0 auto; padding: 0 32px; }
.hidden { display: none !important; }

/* ════════════════════════════════════
   NAVBAR
════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 64px;
  display: flex; align-items: center;
  box-shadow: 0 2px 20px rgba(17,24,39,0.15);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.nav-logo-mark {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--rose);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: var(--txt-white); letter-spacing: 0.02em; flex-shrink: 0;
}
.nav-logo-text strong {
  display: block; font-family: var(--font-body); font-size: 14px;
  font-weight: 600; color: var(--txt-white); letter-spacing: 0.01em;
}
.nav-logo-text span {
  display: block; font-size: 11px; color: var(--txt-white-45);
  font-weight: 400; margin-top: 1px; letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 2px; align-items: center; }

/* ════════════════════════════════════════════════════════════
   O4 FINAL: Hamburger visibility — PURE CSS (Jun 2 2026, breakpoint 768)
   ════════════════════════════════════════════════════════════
   Breakpoint 768px: HP + tablet kecil (<=768) hamburger, iPad portrait
   810px+ & desktop (>768) navbar. 768 dipilih supaya range 601-768 yang
   sebelumnya bikin logo "PPKP-LPPM Universitas Hasanuddin" numpuk/wrap
   ikut jadi hamburger yang rapi. Pure CSS supaya tidak konflik dengan
   inline style dari JS. JS hanya toggle menu open/close. */
.mob-hamburger { display: none; }       /* default desktop: hidden */
@media (max-width: 768px) {
  .mob-hamburger { display: block; }     /* HP+tablet kecil: hamburger visible */
  .navbar .nav-links { display: none; }  /* nav-links desktop hidden */
}
.nav-link {
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--txt-white-70); background: transparent; border: none;
  transition: all 0.18s ease;
  cursor: pointer;
}
.nav-link:hover { color: var(--txt-white); background: rgba(255,255,255,0.08); }
.nav-link.active {
  color: var(--txt-white); background: var(--rose);
  box-shadow: 0 2px 8px rgba(152,68,71,0.4);
}

/* ── Login avatar & divider (in-flex sibling di dalam .nav-links) ── */
.nav-right-divider {
  width: 1px; height: 24px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
  margin: 0 8px;
}
.nav-login-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--rose);
  color: var(--txt-white);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}
.nav-login-avatar svg {
  width: 20px; height: 20px;
  transition: stroke 0.2s ease;
}
.nav-login-avatar:hover {
  background: var(--txt-white);
  color: var(--rose);
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(152,68,71,0.2);
}
.nav-login-avatar:active {
  transform: scale(0.96);
}
.nav-login-avatar:focus-visible {
  outline: 2px solid var(--txt-white);
  outline-offset: 2px;
}

/* ════════════════════════════════════
   PAGE SYSTEM
════════════════════════════════════ */
/* R3 (Batch N, 1 Jun 2026): sticky footer pattern via flexbox.
   Sebelumnya .page punya min-height: 100vh — efek samping di mobile content
   pendek = ada whitespace berlebih sebelum footer. Pattern baru: body jadi
   flex column, main flex-grow:1, jadi footer otomatis push ke bawah viewport
   kalau content pendek, dan tidak push kalau content panjang. */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }

.page { display: none; padding-top: 64px; }
.page.active { display: block; }

/* ════════════════════════════════════
   PAGE HERO BANNER
════════════════════════════════════ */
.page-hero {
  background: var(--bg-navy);
  padding: 40px 0 32px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 300px;
  background: linear-gradient(to left, rgba(152,68,71,0.12), transparent);
  pointer-events: none;
}
.breadcrumb {
  font-size: 12px; color: var(--txt-white-45);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
  font-weight: 400; letter-spacing: 0.03em;
}
.breadcrumb span { color: rgba(200,149,42,0.9); }
.breadcrumb-sep { opacity: 0.4; }
.page-hero h1, .page-hero h2 {
  font-family: var(--font-display); font-size: 30px; font-weight: 600;
  color: var(--txt-white); letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 8px;
}
.page-hero p { font-size: 14px; color: var(--txt-white-70); font-weight: 400; }

/* ════════════════════════════════════
   SECTION
════════════════════════════════════ */
.section { padding: 52px 0; }
.section-sm { padding: 36px 0; }
.section-alt { background: var(--bg-surface); }
.section-white { background: var(--bg-white); }
.section-navy { background: var(--bg-navy); }

.section-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--rose); margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: var(--txt-primary); letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 6px;
}
.section-title-white {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: var(--txt-white); letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 6px;
}
.section-sub {
  font-size: 15px; color: var(--txt-secondary); margin-bottom: 32px;
  font-weight: 400; max-width: 560px;
}
.section-sub-white { font-size: 15px; color: var(--txt-white-70); margin-bottom: 32px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }

/* ════════════════════════════════════
   CARDS
════════════════════════════════════ */
.card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-mid); }
.card-flat { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.card-navy {
  background: var(--navy); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 24px;
}
.card-rose {
  background: var(--rose-light); border: 1px solid var(--rose-mid);
  border-radius: var(--radius-lg); padding: 24px;
}
.card-surface {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}

/* ════════════════════════════════════
   BADGES
════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
}
.badge-rose    { background: var(--rose-light); color: var(--rose-dark); border: 1px solid var(--rose-mid); }
.badge-navy    { background: var(--navy-light); color: var(--navy); border: 1px solid rgba(26,43,74,0.15); }
.badge-gold    { background: var(--gold-light); color: #92640A; border: 1px solid var(--gold-mid); }
.badge-green   { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.badge-red     { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.badge-amber   { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.badge-blue    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.badge-ghost   { background: var(--bg-surface); color: var(--txt-secondary); border: 1px solid var(--border); }
.badge-on-dark { background: rgba(26,43,74,0.85); color: #fff; border: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 700; letter-spacing: 0.04em; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.badge-gold-on-dark { background: rgba(200,149,42,0.2); color: #F0C864; border: 1px solid rgba(200,149,42,0.35); }

/* ════════════════════════════════════
   BUTTONS
════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 24px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border: none; transition: all 0.18s ease; cursor: pointer;
  white-space: nowrap;
}
.btn-rose  { background: var(--rose); color: #fff; box-shadow: 0 2px 8px rgba(152,68,71,0.3); }
.btn-rose:hover { background: var(--rose-dark); box-shadow: 0 4px 14px rgba(152,68,71,0.4); transform: translateY(-1px); }
.btn-navy  { background: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(26,43,74,0.25); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-gold  { background: var(--gold); color: #fff; box-shadow: 0 2px 8px rgba(200,149,42,0.3); }
.btn-gold:hover { background: #B37D1E; transform: translateY(-1px); }
.btn-outline-white {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-outline {
  background: transparent; color: var(--txt-secondary);
  border: 1.5px solid var(--border-mid);
}
.btn-outline:hover { border-color: var(--rose); color: var(--rose); }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-xs { padding: 5px 12px; font-size: 11px; }

/* ════════════════════════════════════
   TYPOGRAPHY UTILITIES
════════════════════════════════════ */
.display { font-family: var(--font-display); }
h1,h2,h3 { font-family: var(--font-display); }
.text-rose    { color: var(--rose); }
.text-navy    { color: var(--navy); }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--txt-muted); }
.text-secondary { color: var(--txt-secondary); }
.text-white   { color: var(--txt-white); }
.text-white-70 { color: var(--txt-white-70); }

/* ════════════════════════════════════
   GRIDS
════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 1fr 360px; gap: 28px; }
.grid-3-2 { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }

/* ════════════════════════════════════
   DIVIDER
════════════════════════════════════ */
.divider { height: 1px; background: var(--border); }
.divider-navy { height: 1px; background: rgba(255,255,255,0.07); }

/* ════════════════════════════════════
   FORMS
════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--txt-secondary); margin-bottom: 6px; letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  background: var(--bg-white); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: 14px;
  font-family: var(--font-body); color: var(--txt-primary);
  outline: none; transition: border-color 0.18s, box-shadow 0.18s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--rose); box-shadow: 0 0 0 3px rgba(152,68,71,0.08);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--txt-muted); }
.form-textarea { resize: vertical; min-height: 96px; }
.form-select option { background: white; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ════════════════════════════════════
   STAT CARDS
════════════════════════════════════ */
.stat-block {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: 18px 22px; min-width: 148px;
  backdrop-filter: blur(8px);
}
.stat-num {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  color: var(--gold); letter-spacing: -0.02em; line-height: 1;
}
.stat-label { font-size: 12px; color: var(--txt-white-70); margin-top: 5px; font-weight: 400; }

/* ════════════════════════════════════
   HERO REDESIGN (Mei 2026 — inspired Stitch AI)
   Stats jadi row dengan icon kotak + angka besar gold, bukan card vertical lagi.
   Headline 48px (sweet spot tidak wrap ke 3 baris di desktop, tetap 2 baris seperti existing).
════════════════════════════════════ */
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(200, 149, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--txt-white-70);
  margin-top: 4px;
  font-weight: 400;
}
/* Hero responsive — di mobile, stack vertical (headline atas, stats bawah) */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-headline { font-size: 34px; }
  .hero-stat-num { font-size: 32px; }
  .hero-stat-icon { width: 48px; height: 48px; }
}

/* ════════════════════════════════════
   BIDANG ICON
════════════════════════════════════ */
.icon-wrap {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-rose     { background: var(--rose-light); }
.icon-navy     { background: var(--navy-light); }
.icon-gold     { background: var(--gold-light); }
.icon-surface  { background: var(--bg-surface); }

/* ════════════════════════════════════
   FILTER TABS
════════════════════════════════════ */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn {
  padding: 8px 18px; border-radius: 30px;
  font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--bg-white); color: var(--txt-secondary);
  cursor: pointer; transition: all 0.18s;
}
.filter-btn:hover { border-color: var(--rose); color: var(--rose); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-sm); }

/* ════════════════════════════════════
   TABLE
════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; padding: 12px 16px;
  background: var(--bg-surface); color: var(--txt-secondary);
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  color: var(--txt-primary); font-size: 13px;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-surface); }

/* ════════════════════════════════════
   STEP LIST
════════════════════════════════════ */
.step-list { list-style: none; }
.step-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.step-item:last-child { border-bottom: none; padding-bottom: 0; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--rose); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(152,68,71,0.3);
}
.step-title { font-size: 14px; font-weight: 600; color: var(--txt-primary); margin-bottom: 4px; }
.step-desc { font-size: 14px; color: var(--txt-secondary); line-height: 1.5; }

/* ════════════════════════════════════
   ORG CHART
════════════════════════════════════ */
.org-chart { display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 0; }
.org-box {
  border-radius: var(--radius-md); padding: 11px 26px;
  text-align: center; font-size: 13px; font-weight: 600; min-width: 170px;
  font-family: var(--font-body);
}
.org-top   { background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.org-mid   { background: var(--gold-light); color: #7A5210; border: 1.5px solid var(--gold-mid); }
.org-bot   { background: var(--rose-light); color: var(--rose-dark); border: 1.5px solid var(--rose-mid); font-size: 12px; min-width: 140px; }
.org-vline { width: 1.5px; height: 24px; background: var(--border-mid); }
.org-hline-wrap { position: relative; display: flex; justify-content: center; gap: 20px; }
.org-hline-wrap::before {
  content: ''; position: absolute; top: 0;
  left: calc(50% - 112px); right: calc(50% - 112px);
  height: 1.5px; background: var(--border-mid);
}
.org-hline-4::before { left: calc(50% - 225px); right: calc(50% - 225px); }
.org-col { display: flex; flex-direction: column; align-items: center; }

/* ════════════════════════════════════
   MATRIX TABLE
════════════════════════════════════ */
.matrix-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.matrix-table th {
  padding: 13px 16px; text-align: center;
  background: var(--navy); color: #fff;
  font-weight: 600; font-size: 12px; letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.1);
}
.matrix-table th.corner { background: var(--navy-mid); }
.matrix-table td {
  padding: 13px 16px; border: 1px solid var(--border);
  color: var(--txt-secondary); vertical-align: top; line-height: 1.55;
}
.matrix-table td.row-lbl {
  background: var(--rose-light); color: var(--rose-dark);
  font-weight: 600; text-align: center; font-size: 12px;
}
.matrix-table tr:hover td { background: var(--bg-surface); }
.matrix-table tr:hover td.row-lbl { background: var(--rose-mid); }

/* ════════════════════════════════════
   CTA BANNER
════════════════════════════════════ */
.cta-strip {
  background: var(--navy); border-radius: var(--radius-xl);
  padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--rose); opacity: 0.12; pointer-events: none;
}
.cta-strip-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: #fff; margin-bottom: 6px; line-height: 1.2;
}
.cta-strip-sub { font-size: 14px; color: var(--txt-white-70); max-width: 460px; }

/* ════════════════════════════════════
   MITRA CHIP
════════════════════════════════════ */
.mitra-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mitra-chip {
  background: var(--bg-white); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 9px 18px;
  font-size: 13px; color: var(--txt-secondary); font-weight: 500;
  transition: all 0.18s;
}
.mitra-chip:hover { border-color: var(--rose); color: var(--rose); }

/* ════════════════════════════════════
   BERITA CARD
════════════════════════════════════ */
.berita-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; cursor: pointer;
}
.berita-card:hover { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(152,68,71,0.12), 0 12px 26px rgba(26,43,74,0.13); transform: translateY(-3px); }
.berita-thumb {
  height: 110px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.berita-thumb-label {
  position: absolute; bottom: 10px; left: 12px;
}
.berita-body { padding: 16px; }
.berita-title {
  font-size: 14px; font-weight: 600; color: var(--txt-primary);
  line-height: 1.45; margin: 8px 0 6px; font-family: var(--font-body);
}
.berita-date { font-size: 12px; color: var(--txt-muted); }

/* ════════════════════════════════════
   PROGRAM CARD (Kegiatan)
════════════════════════════════════ */
.prog-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.prog-header { padding: 18px 20px 0; }
.prog-title { font-size: 15px; font-weight: 600; color: var(--txt-primary); line-height: 1.4; margin-bottom: 8px; }
.prog-meta { display: flex; gap: 14px; flex-wrap: wrap; padding: 0 20px 14px; }
.prog-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--txt-muted); }
.prog-desc { font-size: 14px; color: var(--txt-secondary); line-height: 1.6; padding: 0 20px 16px; flex: 1; }
.prog-footer {
  border-top: 1px solid var(--border); padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--off-white); margin-top: auto;
}

/* ════════════════════════════════════
   PUBLIKASI CARD
════════════════════════════════════ */
.pub-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.pub-card:hover { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(152,68,71,0.12), 0 12px 26px rgba(26,43,74,0.13); transform: translateY(-3px); }
.pub-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.pub-body > .badge { align-self: flex-start; }
.pub-title { font-size: 14px; font-weight: 600; color: var(--txt-primary); line-height: 1.4; margin: 4px 0 6px; }
.pub-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--txt-muted); }
.pub-desc { font-size: 12.5px; color: var(--txt-secondary); line-height: 1.55; margin: 0 0 12px; flex: 1; }
.pub-author { font-size: 11.5px; color: var(--txt-muted); font-weight: 500; margin-top: auto; }
.pub-footer {
  border-top: 1px solid var(--border); padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
}

/* ════════════════════════════════════
   MITRA CARD (Kemitraan page)
════════════════════════════════════ */
.mitra-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; text-align: center;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
/* Kartu mitra yang punya website → render sebagai <a>. Tampil identik dgn div,
   tapi clickable + hover lift. Kartu tanpa link tetap <div> statis (tanpa hover). */
.mitra-card-link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.mitra-card-link:hover { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(152,68,71,0.12), 0 12px 26px rgba(26,43,74,0.13); transform: translateY(-3px); }
.mitra-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; margin: 0 auto 12px;
}
.mitra-name { font-size: 14px; font-weight: 600; color: var(--txt-primary); margin-bottom: 6px; }

/* ════════════════════════════════════
   DAERAH GRID
════════════════════════════════════ */
.daerah-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.daerah-chip {
  background: var(--bg-white); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 16px; text-align: center;
  transition: border-color 0.18s;
}
.daerah-chip:hover { border-color: var(--rose); }
.daerah-name { font-size: 14px; font-weight: 600; color: var(--txt-primary); margin-bottom: 6px; }

/* ════════════════════════════════════
   KONTAK ITEM
════════════════════════════════════ */
.kontak-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.kontak-item:last-child { border-bottom: none; }
.kontak-icon-wrap {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  background: var(--rose-light); border: 1px solid var(--rose-mid);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kontak-label { font-size: 11px; font-weight: 600; color: var(--rose); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 3px; }
.kontak-value { font-size: 14px; color: var(--txt-primary); line-height: 1.55; }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
footer {
  background: var(--bg-navy);
  padding: 52px 0 0;
  border-top: 3px solid var(--rose);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-mark {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--rose); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.footer-brand { font-size: 14px; font-weight: 600; color: #fff; }
.footer-desc { font-size: 14px; color: var(--txt-white-45); line-height: 1.7; max-width: 320px; }
.footer-heading {
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--txt-white-45); margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 14px; color: var(--txt-white-70); cursor: pointer; transition: color 0.18s; }
.footer-links a:hover { color: #fff; }
.footer-social-caption {
  font-size: 11px;
  color: var(--txt-white-70);
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 240px;
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* `.footer-social-btn` = baris [icon][label] sebagai single anchor hit-area.
   Hover di icon ATAU label akan trigger state yang sama karena keduanya
   children dari <a>; pointer-events fallthrough ke parent anchor.
   `width: fit-content` mencegah hover area melebar ke seluruh row kosong. */
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  width: fit-content;
  color: var(--txt-white-70);
  text-decoration: none;
  transition: color 0.18s, transform 0.18s;
  cursor: pointer;
}
.footer-social-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}
.footer-social-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
.footer-social-btn:hover,
.footer-social-btn:focus-visible {
  color: #fff;
  transform: translateX(2px);
}
.footer-social-btn:hover .footer-social-icon,
.footer-social-btn:focus-visible .footer-social-icon {
  background: var(--rose);
  color: #fff;
}
.footer-social-btn:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 4px;
  border-radius: 6px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; color: var(--txt-white-45); }

/* ════════════════════════════════════
   SEE ALL LINK
════════════════════════════════════ */
.see-all { font-size: 13px; font-weight: 600; color: var(--rose); background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.see-all:hover { color: var(--rose-dark); }

/* ════════════════════════════════════
   BULLET LIST
════════════════════════════════════ */
.bullet-list { list-style: none; }
.bullet-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bullet-list li:last-child { border-bottom: none; }
.bullet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); flex-shrink: 0; margin-top: 7px; }

/* ════════════════════════════════════
   BIDANG CARD (special layout)
════════════════════════════════════ */
.bidang-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.bidang-card:hover { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(152,68,71,0.12), 0 12px 26px rgba(26,43,74,0.13); transform: translateY(-3px); }
.bidang-card-header { padding: 18px; display: flex; align-items: center; gap: 12px; }
.bidang-card-body { padding: 12px 18px 18px; }
.bidang-pill { display: inline-block; padding: 4px 9px; border-radius: 20px; font-size: 10px; font-weight: 600; margin: 2px 2px 2px 0; }

/* ════════════════════════════════════
   SCROLL ANIMATE (simple fade-in)
════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation-delay: 0.05s; opacity: 0; }
.fade-up-2 { animation-delay: 0.12s; opacity: 0; }
.fade-up-3 { animation-delay: 0.19s; opacity: 0; }
.fade-up-4 { animation-delay: 0.26s; opacity: 0; }

/* ════════════════════════════════════
   SKELETON LOADER (Minggu 3 — poin 3.1)
   Placeholder shimmer animasi sambil data Supabase load.
   Cleanup-nya di main.js: querySelectorAll('.skel').forEach(el => el.remove())
   Variant per komponen dipilih untuk match dimensi card asli supaya
   tidak ada layout shift (CLS) saat data masuk.
════════════════════════════════════ */
@keyframes skel-shimmer {
  0%   { background-position: -468px 0; }
  100% { background-position:  468px 0; }
}
.skel {
  background-color: var(--surface);
  background-image: linear-gradient(
    90deg,
    var(--surface) 0%,
    var(--off-white) 50%,
    var(--surface) 100%
  );
  background-size: 936px 100%;
  background-repeat: no-repeat;
  animation: skel-shimmer 1.6s linear infinite;
  border-radius: var(--radius-md);
  /* Hindari konten apapun bocor — skeleton selalu kosong */
  color: transparent;
  pointer-events: none;
  user-select: none;
}
/* Mitra logo grid: kotak segiempat ~84px (match logo size umum di grid mitra) */
.skel-mitra {
  aspect-ratio: 1 / 1;
  min-height: 80px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
/* Berita card: thumb 110px (match .berita-thumb) + body 76px untuk 2 baris teks + date */
.skel-card {
  height: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
/* Kegiatan / program card: lebih tinggi karena ada title + meta + desc + footer */
.skel-prog {
  height: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
/* Anggota slider card (.mslide): avatar 84px + 14px margin + 2 lines teks + padding 24/24 */
.skel-slide {
  min-width: calc((100% - 32px) / 3);
  height: 196px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
/* Galeri kemitraan: full width slide, rasio 16:9 mengikuti container .gallery-track */
.skel-galeri {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0; /* slide carousel tidak punya rounded corner */
  border: none;
  background-color: #0b1220; /* match .gallery-slide background sebelum fade */
}
.skel-galeri.skel { /* override gradient agar pas dengan dark slide */
  background-image: linear-gradient(
    90deg,
    #0b1220 0%,
    #1a2438 50%,
    #0b1220 100%
  );
}
/* Publikasi card skeleton: total tinggi ~240px (body padding 16px + meta) */
.skel-pub {
  height: 240px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
/* Galeri beranda preview thumbnail: rasio 16:10 (lebih ramping dari carousel kemitraan 16:9) */
.skel-galeri-beranda {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
/* Honor user preference — disable shimmer kalau prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .skel {
    animation: none;
    background-image: none;
    background-color: var(--surface);
  }
  .skel-galeri.skel {
    background-image: none;
    background-color: #0b1220;
  }
}

/* ════════════════════════════════════
   GALERI BERANDA PREVIEW (6 thumbnail grid, deep-link ke halaman Kemitraan)
   Data source sama dengan halaman Kemitraan — jadi update di admin auto-sync.
   ════════════════════════════════════ */
.galeri-beranda-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.galeri-beranda-item {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #0b1220;
  border: none;
  padding: 0;
  text-decoration: none;
  /* Transform & box-shadow transition untuk hover lift effect */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.galeri-beranda-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 43, 74, 0.18);
}
.galeri-beranda-item:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}
.galeri-beranda-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Subtle zoom on hover untuk extra polish */
  transition: transform 0.4s ease, filter 0.25s ease;
}
.galeri-beranda-item:hover .galeri-beranda-thumb {
  transform: scale(1.04);
  filter: brightness(1.05);
}
.galeri-beranda-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 14px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 65%, transparent 100%);
  color: #fff;
  pointer-events: none; /* hover & klik tetap di parent <button> */
}
.galeri-beranda-year {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  line-height: 1;
}
.galeri-beranda-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  /* Clamp 2 baris untuk konsistensi tinggi caption antar item */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
@media (max-width: 768px) {
  .galeri-beranda-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 480px) {
  .galeri-beranda-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════
   BIDANG PANEL (halaman Bidang)
════════════════════════════════════ */
.bidang-panel { border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.bidang-panel-header { padding: 24px 28px; display: flex; gap: 18px; align-items: center; }
.bidang-panel-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--border); }
.bidang-col { padding: 22px 24px; }
.bidang-col:not(:last-child) { border-right: 1px solid var(--border); }
.bidang-col-title { font-size: 13px; font-weight: 700; color: var(--txt-primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.bidang-col-item { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 9px; font-size: 12.5px; color: var(--txt-secondary); line-height: 1.5; }
.bidang-col-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }

  /* ════════════════════════════════════
     RESPONSIVE — MOBILE & TABLET
  ════════════════════════════════════ */
  @media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-3-2 { grid-template-columns: 1fr; }
    .grid-2-1 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  }
  @media (max-width: 768px) {
    .container, .container-sm { padding: 0 18px; }
    .navbar { height: 56px; }
    .page { padding-top: 56px; }
    /* Hamburger muncul di <=768px (pure CSS, lihat rule .mob-hamburger di atas).
       Di range ini nav-links desktop hidden, hamburger yang muncul. Styling
       di bawah (logo subtitle hide, avatar kecil) untuk navbar bar yang tetap
       tampil sebagai container hamburger.
       NOTE: .nav-links display di-handle rule @768px (.navbar .nav-links
       display:none), bukan di sini. */
    .nav-login-avatar { width: 34px; height: 34px; }
    .nav-login-avatar svg { width: 18px; height: 18px; }
    .nav-logo-text strong { font-size: 12px; }
    .nav-logo-text span { display: none; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-2-1, .grid-3-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .daerah-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .section { padding: 36px 0; }
    .page-hero { padding: 28px 0 22px; }
    .page-hero h1, .page-hero h2 { font-size: 24px; }
    .cta-strip { flex-direction: column; padding: 24px 20px; }
    .section-title { font-size: 22px; }
    .bidang-panel-cols { grid-template-columns: 1fr; }
    .bidang-col:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }
    .form-row { grid-template-columns: 1fr; }
    .org-hline-wrap { flex-wrap: wrap; gap: 10px; }
    .org-hline-wrap::before, .org-hline-4::before { display: none; }
  }
  @media (max-width: 480px) {
    .stat-block { min-width: 110px; padding: 14px 16px; }
    .stat-num { font-size: 24px; }
    .section-title { font-size: 20px; }
    .btn { padding: 9px 18px; font-size: 13px; }
    /* page-terima-kasih: tombol CTA stack penuh saat layar sempit */
    .terima-kasih-cta { flex-direction: column; }
    .terima-kasih-cta .btn { width: 100%; }
  }

/* ════════════════════════════════════
   GALERI KEGIATAN (Carousel Kemitraan)
   Konsisten untuk gambar ukuran apapun
════════════════════════════════════ */
.gallery-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #0b1220;
  border: 1px solid var(--border);
}
/* Kontainer track — menjaga rasio konsisten 16:9 */
.gallery-carousel .gallery-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  aspect-ratio: 16 / 9;
}
/* Setiap slide — full width, rasio mengikuti parent */
.gallery-carousel .gallery-slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #0b1220;
}
/* Blurred backdrop — DISABLED by default sejak Minggu 2 (poin 2.4)
   Foto utama sekarang fill penuh frame via cover, jadi backdrop tidak diperlukan.
   Hidden by default; bisa direstore dengan menambah class .gallery-carousel--legacy-blur
   di parent .gallery-carousel (lihat block ROLLBACK di bawah). */
.gallery-carousel .gallery-slide .slide-backdrop {
  display: none; /* hidden — restore via .gallery-carousel--legacy-blur */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(24px) brightness(0.55);
  transform: scale(1.1); /* hindari edge blur terlihat */
  z-index: 1;
}
/* Foto utama — fill penuh frame (cover, crop sedikit kalau rasio tidak match) */
.gallery-carousel .gallery-slide .slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  display: block;
  background: #0b1220; /* fallback warna saat image belum/gagal load */
}
/* Varian contain — untuk kasus khusus (image kritis yang tidak boleh ke-crop)
   Tinggal tambah class "contain" pada <img class="slide-image"> di JS render */
.gallery-carousel .gallery-slide .slide-image.contain {
  object-fit: contain;
}
/* Variant fill (legacy alias) — backward-compat dengan markup lama */
.gallery-carousel .gallery-slide .slide-image.fill {
  object-fit: cover;
}

/* ── ROLLBACK BLOCK (poin 2.4) ──
   Untuk mengembalikan tampilan lama (foto contain + blur backdrop):
   tambah class "gallery-carousel--legacy-blur" pada elemen .gallery-carousel
   di index.html. Tidak perlu edit CSS atau JS.
   Contoh: <div class="gallery-carousel gallery-carousel--legacy-blur"> */
.gallery-carousel--legacy-blur .gallery-slide .slide-backdrop {
  display: block;
}
.gallery-carousel--legacy-blur .gallery-slide .slide-image {
  object-fit: contain;
  background: transparent; /* biarkan backdrop blur yang fill */
}
/* Caption gradient overlay — editorial 3-tier style */
.gallery-carousel .gallery-slide .slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 36px 28px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.65) 45%,
    rgba(0,0,0,0.25) 75%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}
/* Tier 1: Eyebrow tahun — UPPERCASE dengan gold accent dan letter-spacing */
.gallery-carousel .gallery-slide .slide-year {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C8952A;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gallery-carousel .gallery-slide .slide-year::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(200,149,42,0.5);
}
/* Tier 2: Judul kegiatan — Playfair Display (serif display) */
.gallery-carousel .gallery-slide .slide-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  max-width: 75%;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
/* Tier 3: Metadata (tanggal · tempat) — Source Sans (sans) untuk readability */
.gallery-carousel .gallery-slide .slide-meta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.gallery-carousel .gallery-slide .slide-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gallery-carousel .gallery-slide .slide-meta .meta-sep {
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}
.gallery-carousel .gallery-slide .slide-meta svg {
  opacity: 0.7;
  flex-shrink: 0;
}
/* Legacy slide-sub — dipertahankan untuk fallback caption lama */
.gallery-carousel .gallery-slide .slide-sub {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
/* Placeholder slide (colored gradient) */
.gallery-carousel .gallery-slide .slide-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
/* Responsif — tablet ke bawah boleh sedikit lebih "boxy" */
@media (max-width: 768px) {
  .gallery-carousel .gallery-track { aspect-ratio: 4 / 3; }
  .gallery-carousel .gallery-slide .slide-caption { padding: 22px 20px 18px; }
  .gallery-carousel .gallery-slide .slide-year { font-size: 10px; letter-spacing: 0.15em; margin-bottom: 8px; }
  .gallery-carousel .gallery-slide .slide-year::after { width: 16px; }
  .gallery-carousel .gallery-slide .slide-title { font-size: 15px; max-width: 100%; margin-bottom: 8px; }
  .gallery-carousel .gallery-slide .slide-meta { font-size: 11.5px; gap: 6px; }
  .gallery-carousel .gallery-slide .slide-sub { font-size: 12px; }
}

/* ── LIGHTBOX ── */
.lightbox-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.85);z-index:9999;align-items:center;justify-content:center;cursor:pointer;padding:20px}
.lightbox-overlay.active{display:flex}
.lightbox-overlay img{max-width:90vw;max-height:85vh;object-fit:contain;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,0.5)}
.lightbox-close{position:fixed;top:20px;right:24px;color:#fff;font-size:32px;cursor:pointer;z-index:10000;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.1);border-radius:50%;border:none}
/* O3 (Batch O): Lightbox navigation prev/next */
.lightbox-nav{position:fixed;top:50%;transform:translateY(-50%);color:#fff;cursor:pointer;z-index:10000;width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.12);border-radius:50%;border:none;transition:background 0.18s ease,transform 0.18s ease}
.lightbox-nav:hover{background:rgba(255,255,255,0.25);transform:translateY(-50%) scale(1.08)}
.lightbox-nav:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.lightbox-nav-prev{left:24px}
.lightbox-nav-next{right:24px}
@media (max-width:600px){
  .lightbox-nav{width:40px;height:40px}
  .lightbox-nav-prev{left:12px}
  .lightbox-nav-next{right:12px}
}
.lightbox-caption{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);color:#fff;font-size:14px;background:rgba(0,0,0,0.6);padding:8px 20px;border-radius:8px;z-index:10000}

/* ════════════════════════════════════════════════════════
   PUBLIC TOAST — notifikasi form submit (success/error)
   Dipakai oleh submitPengajuan() dan submitKontak() di main.js
   ════════════════════════════════════════════════════════ */
.public-toast-item {
  background: var(--navy, #1A2B4A);
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  font-size: 13px;
  line-height: 1.5;
  max-width: 340px;
  pointer-events: auto;
  animation: public-toast-in 0.3s ease;
  font-weight: 500;
}
.public-toast-item.success { background: #16A34A; }
.public-toast-item.error   { background: #DC2626; }
.public-toast-item.fadeout {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.3s, transform 0.3s;
}
@keyframes public-toast-in {
  from { transform: translateX(16px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@media (max-width: 640px) {
  #public-toast {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
  }
  .public-toast-item { max-width: 100%; }
}

/* ════════════════════════════════════
   TIGA JENIS KEGIATAN UTAMA — center-aligned section
   Inspired Stitch AI ref: card center content + glow rose pada card tengah (featured).
   Section ini DIBEDAKAN dari section lain di beranda (yg left-aligned) dengan:
   - Header content center-aligned
   - Marker garis rose 3px di sisi kiri section (subtle indicator "intentional difference")
   - Card content center, card tengah featured dengan border + glow rose
   PENTING: background section pakai --bg-alt existing (off-white), font pakai
   --font-display existing — konsisten dengan design system. Hanya layout yang berubah.
════════════════════════════════════ */
.section-kegiatan-utama {
  position: relative;
}
.section-kegiatan-utama::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--rose);
  pointer-events: none;
}
.kegiatan-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.kegiatan-header .section-sub {
  margin-left: auto;
  margin-right: auto;
}
.kegiatan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.kegiatan-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.kegiatan-card:hover {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(152,68,71,0.12), 0 12px 26px rgba(26,43,74,0.13);
  transform: translateY(-3px);
}
/* Card tengah featured — highlighted dengan glow rose */
.kegiatan-card-featured {
  border: 2px solid var(--rose);
  box-shadow: 0 0 0 6px rgba(152, 68, 71, 0.10), 0 12px 28px rgba(26, 43, 74, 0.12);
  transform: translateY(-6px);
}
.kegiatan-card-featured:hover {
  /* Pertahankan glow effect saat hover, sekaligus tambah lift sedikit */
  box-shadow: 0 0 0 6px rgba(152, 68, 71, 0.13), 0 16px 32px rgba(26, 43, 74, 0.16);
  transform: translateY(-8px);
}
/* Icon container — circle dengan background light, lebih besar dari .icon-wrap existing */
.kegiatan-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}
.kegiatan-icon-rose { background: var(--rose-light); }
.kegiatan-icon-navy { background: var(--navy-light); }
.kegiatan-icon-gold { background: var(--gold-light); }
.kegiatan-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--txt-primary);
  line-height: 1.3;
  margin-bottom: 14px;
}
.kegiatan-card-desc {
  font-size: 13.5px;
  color: var(--txt-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
  flex: 1;
}
/* Mobile: stack vertical, card featured tidak perlu lift karena sudah berdiri sendiri */
@media (max-width: 768px) {
  .kegiatan-grid { grid-template-columns: 1fr; gap: 14px; }
  .kegiatan-card-featured { transform: none; }
  .kegiatan-card-featured:hover { transform: none; }
}

/* ════════════════════════════════════
   BIDANG CARD V2 — beranda only (4 kolom, style upgrade)
   Catatan: hanya berlaku saat .bidang-card berada di dalam .bidang-cards-v2 (grid wrapper).
   Card pattern existing .bidang-card di halaman Bidang detail TIDAK terpengaruh.
   - Icon vertical-stack di atas judul (sebelumnya side-by-side via .icon-wrap)
   - Padding header & body lebih besar
   - Font title & desc naik supaya tidak gepeng
════════════════════════════════════ */
.bidang-card-header-v2 {
  padding: 22px 18px;
  display: block;
}
.bidang-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.bidang-card-icon-rose { background: rgba(152, 68, 71, 0.15); }
.bidang-card-icon-navy { background: rgba(26, 43, 74, 0.10); }
.bidang-card-icon-gold { background: rgba(200, 149, 42, 0.18); }
.bidang-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.bidang-card-body-v2 {
  padding: 16px 18px 20px;
}
.bidang-card-desc {
  font-size: 13px;
  color: var(--txt-secondary);
  line-height: 1.7;
}
@media (max-width: 768px) {
  /* Mobile: grid-4 collapse ke 2 kolom (atau 1 kalau viewport sangat sempit) */
  .bidang-cards-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .bidang-cards-v2 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════
   MITRA CARD BERANDA — logo besar, 5 mitra 1 baris
   Class .mitra-card-beranda dipakai sebagai modifier di atas .mitra-card existing.
   .mitra-card untuk halaman Kemitraan (semua mitra) TIDAK terpengaruh — tetap pakai size lama.
════════════════════════════════════ */
.mitra-card-beranda {
  padding: 26px 18px 20px;
}
.mitra-avatar-beranda {
  width: 80px;
  height: 80px;
  font-size: 22px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  /* Mobile: 5 kolom terlalu sempit untuk logo 80px — collapse ke 3 atau 2 kolom */
  #dynamic-mitra-beranda { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .mitra-avatar-beranda { width: 64px; height: 64px; font-size: 18px; }
}
@media (max-width: 480px) {
  #dynamic-mitra-beranda { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ════════════════════════════════════
   PAGINATION
   Hybrid pill style — matches .filter-btn design language
   Used on:
   - Public: #berita-grid-all, #kegiatan-grid, #pub-grid
   - Admin: tbody-berita, tbody-kegiatan, tbody-publikasi
════════════════════════════════════ */
.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  padding-top: 8px;
}
.pagination-wrap.is-hidden { display: none; }

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  min-width: 38px;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--txt-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  line-height: 1;
}
.pagination-btn:hover:not(:disabled):not(.active) {
  border-color: var(--rose);
  color: var(--rose);
}
.pagination-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
  cursor: default;
}
.pagination-btn:disabled,
.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination-btn.nav { padding: 0 18px; }

.pagination-ellipsis {
  color: var(--txt-muted);
  padding: 0 6px;
  font-size: 13px;
  user-select: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

/* Compact mode indicator (mobile) — "2 / 10" */
.pagination-compact-indicator {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--txt-secondary);
  font-weight: 500;
}
.pagination-compact-indicator .current {
  background: var(--navy);
  color: #fff;
  padding: 5px 12px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 12.5px;
}

/* Items info text (admin) — "Menampilkan 1-20 dari 87" */
.pagination-info {
  text-align: center;
  font-size: 12px;
  color: var(--txt-muted);
  margin-top: 10px;
}

/* Mobile breakpoint: collapse numbered buttons to compact indicator */
@media (max-width: 480px) {
  .pagination[data-compact="true"] .pagination-btn:not(.nav) { display: none; }
  .pagination[data-compact="true"] .pagination-ellipsis { display: none; }
  .pagination[data-compact="true"] .pagination-compact-indicator { display: inline-flex; }
  .pagination-btn.nav { padding: 0 14px; min-width: 36px; }
  .pagination-wrap { margin-top: 28px; }
}

/* Admin-specific: tighter spacing under tables */
.table-pagination-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 8px 4px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.table-pagination-wrap.is-hidden { display: none; }
.table-pagination-wrap .pagination-info {
  margin-top: 0;
  text-align: left;
}
@media (max-width: 600px) {
  .table-pagination-wrap {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .table-pagination-wrap .pagination-info { text-align: center; }
}
