/* =========================================================================
   Annawawi — website resmi Yayasan Annawawi Cendekia
   Palet: Navy, Emerald, Gold, White · gaya "Modern Islamic Corporate"
   ========================================================================= */

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #05192c;
  --navy-900: #071f36;
  --navy: #0a2743;
  --navy-700: #0f3557;
  --navy-600: #16466f;
  --emerald-950: #06382a;
  --emerald-900: #0a4a37;
  --emerald: #0f6b4b;
  --emerald-600: #12805a;
  --emerald-500: #169c6d;
  --emerald-100: #e8f5ef;
  --gold: #d9ab3f;
  --gold-light: #f0cf7a;
  --gold-dark: #b8862a;
  --gold-soft: #fdf6e3;
  --cream: #fbf8f1;
  --cream-2: #f5efe2;
  --ink: #12233a;
  --ink-soft: #2b3f57;
  --muted: #5d6b7d;
  --muted-2: #8592a3;
  --line: rgba(10, 39, 67, .1);
  --line-2: #e8edf3;
  --white: #fff;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --ok: #0f7a52;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(8, 32, 56, .05);
  --shadow: 0 2px 4px rgba(8, 32, 56, .04), 0 20px 44px -30px rgba(8, 32, 56, .45);
  --shadow-lg: 0 30px 70px -34px rgba(8, 32, 56, .5);
  --wrap: 1180px;
  --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --head-h: 74px;
}

/* --------------------------------- reset --------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--emerald); text-decoration: none; }
a:hover { color: var(--emerald-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line-2); margin: 24px 0; }
[hidden] { display: none !important; }
::selection { background: rgba(217, 171, 63, .35); }

:focus-visible {
  outline: 3px solid rgba(22, 156, 109, .55);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.ic { flex: none; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* -------------------------------- tombol -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 13px 24px; font-size: 14px; border-radius: 11px; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }

.btn-gold {
  background: linear-gradient(135deg, #f4da96 0%, #e2b854 38%, #d9ab3f 68%, #c79a2f 100%);
  color: #0a2743;
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 12px 26px -14px rgba(217, 171, 63, .95), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-gold:hover { color: #061d33; box-shadow: 0 16px 32px -14px rgba(217, 171, 63, .95), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 12px 24px -16px rgba(10, 39, 67, .9); }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-green { background: var(--emerald); color: #fff; box-shadow: 0 12px 24px -16px rgba(15, 107, 75, .9); }
.btn-green:hover { background: var(--emerald-600); color: #fff; }
.btn-outline {
  background: #fff;
  border-color: rgba(10, 39, 67, .18);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-outline-green {
  background: transparent;
  border-color: rgba(15, 107, 75, .35);
  color: var(--emerald);
}
.btn-outline-green:hover { background: var(--emerald-100); color: var(--emerald-900); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn-danger-ghost { background: transparent; border-color: rgba(185, 28, 28, .28); color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); color: var(--danger); }
.btn-link { background: none; border: 0; color: var(--emerald); padding: 4px 2px; font-size: 13px; font-weight: 600; }
.btn-link:hover { color: var(--emerald-900); text-decoration: underline; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* -------------------------------- header -------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 70;
  background: linear-gradient(180deg, #0a2743 0%, #0a2743 100%);
  border-bottom: 1px solid rgba(217, 171, 63, .22);
  box-shadow: 0 6px 24px -20px rgba(0, 0, 0, .6);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: calc(var(--head-h) - 1px);
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; flex: none; }
.brand:hover { color: #fff; }
.brand-mark { display: block; flex: none; }
.brand-mark img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fffdf8;
  box-shadow: 0 0 0 2px rgba(217, 171, 63, .5), 0 4px 12px -4px rgba(0, 0, 0, .5);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-top {
  font-size: 8.6px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}
.brand-main {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21.5px;
  letter-spacing: .06em;
  color: #fff;
  margin: 2px 0 3px;
  text-transform: uppercase;
}
.brand-bottom {
  font-size: 8.2px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
}
.brand-sm .brand-mark img { width: 40px; height: 40px; }
.brand-sm .brand-main { font-size: 18px; }

.nav-desktop { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .86);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: color .16s, background .16s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
}
.nav-caret { opacity: .8; transition: transform .2s ease; }
.nav-item.open .nav-caret { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 11px);
  left: 0;
  min-width: 252px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 64px -30px rgba(4, 24, 42, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 90;
}
.nav-item.open > .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.nav-menu a svg { opacity: .35; }
.nav-menu a:hover { background: var(--cream); color: var(--emerald); }
.nav-menu a:hover svg { opacity: .8; }

.head-actions { display: flex; align-items: center; gap: 10px; margin-left: 4px; }
.btn-layanan { padding: 9px 18px 9px 10px; border-radius: 999px; font-size: 13px; }
.btn-layanan-ic {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(10, 39, 67, .13);
  color: #0a2743;
}
.head-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  place-items: center;
}

/* panel layanan digital */
.layanan-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: max(16px, calc(50vw - var(--wrap) / 2 + 22px));
  width: 348px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 34px 70px -30px rgba(4, 24, 42, .5);
  padding: 14px;
  z-index: 95;
  animation: popIn .18s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.layanan-head { display: flex; flex-direction: column; gap: 1px; padding: 2px 6px 10px; border-bottom: 1px solid var(--line-2); }
.layanan-title { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.layanan-sub { font-size: 11.5px; color: var(--muted-2); }
.layanan-list { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; }
.layanan-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 8px;
  border-radius: 11px;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s;
}
.layanan-item:hover { background: var(--cream); color: var(--ink); }
.layanan-item > svg { color: var(--muted-2); margin-left: auto; }
.layanan-logo {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--emerald);
  box-shadow: 0 0 0 1.5px rgba(217, 171, 63, .5);
}
.layanan-logo img { width: 100%; height: 100%; object-fit: cover; }
.layanan-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.layanan-txt strong { font-size: 13px; font-weight: 600; }
.layanan-txt small { font-size: 11px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layanan-kosong { font-size: 12.5px; color: var(--muted); padding: 6px; }
.layanan-foot {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line-2);
  padding-top: 10px;
  flex-wrap: wrap;
}
.layanan-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--cream);
}
.layanan-link:hover { background: var(--emerald-100); color: var(--emerald); }

/* --------------------------------- drawer -------------------------------- */

.drawer { position: fixed; inset: 0; z-index: 120; background: rgba(4, 20, 34, .55); backdrop-filter: blur(3px); }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(368px, 90vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.3, .8, .3, 1);
  box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .5);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(160deg, #0a2743, #0c3a35);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  display: grid;
  place-items: center;
}
.drawer-nav { display: flex; flex-direction: column; padding: 8px 0; }
.drawer-link, .drawer-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  list-style: none;
}
.drawer-group > summary::-webkit-details-marker { display: none; }
.drawer-link.is-active, .drawer-group > summary.is-active { color: var(--emerald); background: var(--emerald-100); font-weight: 600; }
.drawer-group[open] > summary svg { transform: rotate(180deg); }
.drawer-group > summary svg { transition: transform .2s; }
.drawer-sub { display: flex; flex-direction: column; background: var(--cream); border-bottom: 1px solid var(--line-2); }
.drawer-sub a { padding: 10px 20px 10px 32px; font-size: 13px; color: var(--ink-soft); border-bottom: 1px solid rgba(10, 39, 67, .05); }
.drawer-sub a:last-child { border-bottom: 0; }
.drawer-digital { padding: 16px 18px 6px; }
.drawer-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 10px; }
.drawer-apps { display: flex; flex-direction: column; gap: 8px; }
.drawer-app {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
}
.drawer-app span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.drawer-app strong { font-size: 12.5px; }
.drawer-app small { font-size: 11px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-foot { padding: 14px 18px 26px; display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.drawer-contact { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); justify-content: center; }

/* ---------------------------------- hero --------------------------------- */

/*
 * Hero memakai FOTO sebagai latar (dapat diunggah di CMS) dengan lapisan gradasi
 * hijau-tua di sisi teks, plus "seal" logo bulat di sudut kanan bawah.
 * Versi HP: kartu bersudut bulat + penggeser sorotan (dots di bawahnya).
 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #0a2b30;
}
.hero-slider {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hero-slider::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  min-height: 344px;
  isolation: isolate;
}
.hero-slide + .hero-slide { display: none; }
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  z-index: 0;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(96deg, rgba(4, 30, 28, .96) 0%, rgba(5, 38, 34, .93) 34%, rgba(7, 55, 44, .74) 54%, rgba(8, 68, 50, .34) 74%, rgba(8, 68, 50, .12) 100%),
    linear-gradient(180deg, rgba(3, 22, 26, .28) 0%, rgba(3, 22, 26, 0) 45%, rgba(4, 30, 26, .22) 100%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 44px 0 74px;
}
.hero-copy { max-width: 620px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(120, 226, 176, .55);
  background: rgba(12, 84, 62, .55);
  color: #e6fbf1;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .01em;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(27px, 3.3vw, 41px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 16px 0 13px;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero-title-sm { font-size: clamp(23px, 2.6vw, 32px); }
.hero-title .gold {
  color: var(--gold-light);
  background: linear-gradient(180deg, #fbe9b4, #efc96a 60%, #d9ab3f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.68;
  color: rgba(255, 255, 255, .9);
  margin: 0 0 21px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.play-ic {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .7);
}
/* logo bulat di sudut kanan bawah hero (bukan lagi logo besar di tengah) */
.hero-seal {
  position: absolute;
  right: max(24px, calc((100vw - var(--wrap)) / 2 - 24px));
  bottom: 26px;
  z-index: 4;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  padding: 5px;
  background: #fffdf8;
  box-shadow:
    0 0 0 3px rgba(217, 171, 63, .9),
    0 0 0 7px rgba(217, 171, 63, .22),
    0 24px 46px -22px rgba(0, 0, 0, .65);
  display: grid;
  place-items: center;
}
.hero-seal img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 84px;
  z-index: 5;
  display: block;
  pointer-events: none;
}
.hero-dots { display: none; }

/* --------------------------------- seksi --------------------------------- */

.sec { padding: 54px 0; position: relative; }
.sec-apps { background: #fff; padding-top: 46px; }
.sec-profil { background: var(--cream); }
.sec-program { background: #fff; }
.sec-berita { background: var(--cream); }
.sec-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 8px;
}
.sec-head h2 {
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.sec-line {
  position: relative;
  height: 1px;
  flex: 1;
  max-width: 260px;
  background: linear-gradient(90deg, rgba(217, 171, 63, 0), rgba(217, 171, 63, .85));
}
.sec-line:last-child { background: linear-gradient(90deg, rgba(217, 171, 63, .85), rgba(217, 171, 63, 0)); }
.sec-line::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--gold);
}
.sec-line:last-child::after { right: auto; left: -4px; }
.sec-sub {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 600px;
  margin: 0 auto 28px;
}
.sec-foot { display: flex; justify-content: center; margin-top: 28px; }

/* ------------------------------ kartu aplikasi --------------------------- */

.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(10, 39, 67, .08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 3px rgba(8, 32, 56, .03), 0 22px 44px -34px rgba(8, 32, 56, .55);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
  animation: rise .6s both;
  animation-delay: var(--d, 0ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.app-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 171, 63, .45);
  box-shadow: 0 4px 6px rgba(8, 32, 56, .04), 0 34px 60px -34px rgba(8, 32, 56, .55);
}
.app-card-media { position: relative; height: 138px; overflow: hidden; background: var(--navy); }
.app-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.app-card:hover .app-card-media img { transform: scale(1.04); }
.app-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 25, 44, 0) 40%, rgba(6, 25, 44, .35) 100%); }
.app-card-logo {
  position: absolute;
  top: 102px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fffdf8;
  padding: 4px;
  box-shadow: 0 0 0 3px rgba(217, 171, 63, .85), 0 12px 22px -12px rgba(0, 0, 0, .45);
  display: grid;
  place-items: center;
  z-index: 2;
}
.app-card-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.app-card-body { padding: 46px 20px 20px; display: flex; flex-direction: column; align-items: center; flex: 1; }
.app-card-body h3 { font-size: 19px; font-weight: 600; color: var(--navy); text-align: center; margin-bottom: 2px; }
.app-tagline { font-size: 11.6px; font-weight: 500; color: var(--ink-soft); text-align: center; margin: 0 0 10px; }
.app-desc { font-size: 12.4px; line-height: 1.55; color: var(--muted); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.app-btn { width: 100%; border-radius: 9px; font-size: 12.8px; padding: 10px 14px; }
.app-btn.accent-navy { background: var(--navy); color: #fff; }
.app-btn.accent-navy:hover { background: var(--navy-700); color: #fff; }
.app-btn.accent-green { background: var(--emerald); color: #fff; }
.app-btn.accent-green:hover { background: var(--emerald-600); color: #fff; }
.app-btn.accent-gold { background: linear-gradient(135deg, #f0cf7a, #d9ab3f); color: #0a2743; }
.app-status {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ------------------------------ ketua & profil --------------------------- */

.profil-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: stretch; }
.card {
  background: #fff;
  border: 1px solid rgba(10, 39, 67, .08);
  border-radius: 16px;
  box-shadow: 0 2px 3px rgba(8, 32, 56, .03), 0 22px 44px -34px rgba(8, 32, 56, .45);
}
.ketua-card { display: grid; grid-template-columns: 210px 1fr; overflow: hidden; }
.ketua-foto { position: relative; background: linear-gradient(160deg, #e8eef4, #cfdae6); min-height: 200px; }
.ketua-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ketua-foto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .9) 100%);
}
.ketua-body { padding: 22px 24px 22px 12px; display: flex; flex-direction: column; align-items: flex-start; }
.ketua-nama { font-family: var(--serif); font-size: 23px; color: var(--navy); letter-spacing: -.01em; line-height: 1.2; }
.pill-gold {
  display: inline-block;
  margin: 10px 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4da96, #d9ab3f);
  color: #3a2a06;
  font-size: 11px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.ketua-kutipan {
  position: relative;
  margin: 0;
  padding: 0 6px 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.ketua-kutipan .q {
  position: absolute;
  color: rgba(217, 171, 63, .8);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}
.ketua-kutipan .q-open { left: -2px; top: -4px; }
.ketua-kutipan .q-close { right: -2px; bottom: -14px; }

.tentang-card { padding: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.tentang-ic {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--emerald-100);
  color: var(--emerald);
  margin-bottom: 12px;
}
.tentang-card h2 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.tentang-card p { font-size: 13px; line-height: 1.68; color: var(--muted); margin: 0 0 16px; }
.tentang-card .btn { margin-top: auto; }

/* --------------------------------- program -------------------------------- */

.program-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.program-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  padding: 19px 12px 16px;
  border: 1px solid rgba(10, 39, 67, .09);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 26px -26px rgba(8, 32, 56, .5);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  animation: rise .6s both;
  animation-delay: var(--d, 0ms);
}
.program-tile:nth-child(3) { background: linear-gradient(180deg, #fdf8ec, #fbf1da); border-color: rgba(217, 171, 63, .3); }
.program-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 107, 75, .35);
  box-shadow: 0 24px 40px -32px rgba(8, 32, 56, .6);
  color: var(--ink);
}
.program-ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--emerald);
}
.program-tile:nth-child(3) .program-ic { background: rgba(217, 171, 63, .2); color: var(--gold-dark); }
.program-title { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.program-cat { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

/* ---------------------------------- berita -------------------------------- */

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(10, 39, 67, .08);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 18px 40px -34px rgba(8, 32, 56, .5);
  transition: transform .22s ease, box-shadow .22s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(8, 32, 56, .55); }
.news-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-card:hover .news-cover img { transform: scale(1.04); }
.news-cat {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, .94);
  color: var(--navy);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.news-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 11px; color: var(--muted-2); letter-spacing: .02em; }
.news-body h3 { font-size: 15.5px; line-height: 1.4; margin: 6px 0 8px; color: var(--navy); }
.news-body h3 a { color: inherit; }
.news-body h3 a:hover { color: var(--emerald); }
.news-body p { font-size: 12.8px; line-height: 1.62; color: var(--muted); margin: 0 0 12px; flex: 1; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--emerald); }
.link-more:hover { gap: 9px; color: var(--emerald-900); }

/* ---------------------------------- footer -------------------------------- */

.site-foot { margin-top: 0; background: linear-gradient(180deg, #071f36, #05192c); color: #fff; }
.foot-gold { height: 3px; background: linear-gradient(90deg, rgba(217, 171, 63, 0), #d9ab3f 22%, #f0cf7a 50%, #d9ab3f 78%, rgba(217, 171, 63, 0)); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 22px; flex-wrap: wrap; }
.foot-contact { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-item { display: inline-flex; align-items: center; gap: 9px; font-size: 12.3px; color: rgba(255, 255, 255, .85); text-decoration: none; }
.foot-item:hover { color: var(--gold-light); }
.foot-item-static { cursor: default; }
.foot-item-static:hover { color: rgba(255, 255, 255, .85); }
.foot-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(217, 171, 63, .32);
  color: var(--gold-light);
}
.foot-social { display: flex; gap: 9px; }
.soc {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  background: rgba(255, 255, 255, .06);
  transition: transform .18s, background .18s, border-color .18s;
}
.soc:hover { transform: translateY(-2px); color: #fff; }
.soc-youtube:hover { background: #ff0033; border-color: #ff0033; }
.soc-instagram:hover { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); border-color: transparent; }
.soc-facebook:hover { background: #1877f2; border-color: #1877f2; }
.soc-tiktok:hover { background: #111827; border-color: #111827; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 12px 0; }
.foot-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-bottom p { margin: 0; font-size: 11.3px; color: rgba(255, 255, 255, .58); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { font-size: 11.3px; color: rgba(255, 255, 255, .62); }
.foot-links a:hover { color: var(--gold-light); }

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 60;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(37, 211, 102, .8), 0 4px 10px rgba(0, 0, 0, .15);
  transition: transform .2s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); color: #fff; }

/* ------------------------------- navigasi bawah --------------------------- */

.bottom-nav { display: none; }

/* ------------------- judul seksi versi HP & ikon cepat -------------------- */

/* versi HP: judul rata kiri + tautan "Lihat Semua" di kanan */
.sec-head-m { display: none; }
.quick-strip { display: none; }
.head-bell-wrap { position: relative; display: none; }
.head-bell {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--navy);
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.bell-dot {
  position: absolute;
  top: 6px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e23b3b;
  box-shadow: 0 0 0 2px #fff;
}
.bell-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: -52px;
  width: min(330px, calc(100vw - 28px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 28px 60px -28px rgba(4, 24, 42, .55);
  z-index: 96;
  overflow: hidden;
  animation: popIn .18s ease;
}
.bell-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 1px; }
.bell-head strong { font-size: 13px; color: var(--navy); }
.bell-head span { font-size: 10.5px; color: var(--muted-2); }
.bell-list { display: flex; flex-direction: column; }
.bell-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.bell-item:hover { background: var(--cream); color: var(--ink); }
.bell-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--emerald-100); color: var(--emerald); display: grid; place-items: center; flex: none; }
.bell-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bell-txt strong { font-size: 11.8px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bell-txt small { font-size: 10px; color: var(--muted-2); }
.bell-kosong { font-size: 11.5px; color: var(--muted); padding: 14px; margin: 0; }
.bell-all { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; font-size: 11.5px; font-weight: 600; color: var(--emerald); background: #fbfcfe; }

/* nama + motto yayasan khusus header HP */
.brand-mobile { display: none; }

/* tombol aplikasi: label teks (desktop) + ikon panah (HP) */
.app-btn-ic { display: none; }
.news-arrow { display: none; }
.news-date-m { display: none; }
.news-date-s { display: none; }

@media (min-width: 601px) and (max-width: 820px) {
  .hero-seal { width: 132px; height: 132px; right: 18px; bottom: 22px; }
  .hero-inner { padding-bottom: 62px; }
  .hero-copy { max-width: 62%; }
}

/* ------------------------------- page hero -------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 160% at 12% 0%, rgba(22, 70, 111, .9), transparent 60%),
    linear-gradient(110deg, #06192c, #0a3050 45%, #0a4a3b 100%);
  padding: 34px 0 36px;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/pattern.svg');
  background-size: 280px;
  opacity: .12;
  mix-blend-mode: screen;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 2; }
.crumb { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: rgba(255, 255, 255, .62); margin-bottom: 10px; flex-wrap: wrap; }
.crumb a { color: rgba(255, 255, 255, .78); }
.crumb a:hover { color: var(--gold-light); }
.page-hero h1 { font-size: clamp(23px, 2.8vw, 33px); font-weight: 700; letter-spacing: -.01em; }
.page-hero p { margin: 8px 0 0; max-width: 660px; font-size: 13.5px; color: rgba(255, 255, 255, .82); line-height: 1.65; }
.page-body { padding: 44px 0 26px; }
.page-body.tight { padding-top: 30px; }

/* ---------------------------------- prosa --------------------------------- */

.prose { font-size: 14.7px; line-height: 1.85; color: var(--ink-soft); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 21px; color: var(--navy); margin: 28px 0 10px; }
.prose h3 { font-size: 17px; color: var(--navy); margin: 22px 0 8px; }
.prose h4 { font-size: 15px; color: var(--navy); margin: 18px 0 6px; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--gold-dark); }
.prose blockquote {
  margin: 18px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 10px 10px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  color: var(--ink);
}
.prose code { background: #f1f5f9; padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.prose a { color: var(--emerald); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: 12px; margin: 14px 0; }
.prose hr { margin: 26px 0; }

/* --------------------------------- tentang -------------------------------- */

.tentang-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; align-items: start; }
.tentang-main { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px; box-shadow: var(--shadow-sm); }
.tentang-main h2 { font-size: 24px; color: var(--navy); margin-bottom: 4px; }
.tentang-main .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.tentang-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--head-h) + 18px); }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 14px; color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.info-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.info-list .ic { color: var(--emerald); margin-top: 2px; }
.info-list a { color: var(--emerald); }
.visi-misi { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 6px 0 26px; }
.vm-card { background: var(--cream); border: 1px solid rgba(217, 171, 63, .25); border-radius: 14px; padding: 20px; }
.vm-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.vm-card h3 .ic { color: var(--gold-dark); }
.vm-card p { font-size: 13px; line-height: 1.7; color: var(--ink-soft); margin: 0; }
.blok-pengurus { margin-top: 34px; scroll-margin-top: 100px; }
.blok-pengurus h2, .blok-sejarah h2 { font-size: 21px; color: var(--navy); margin-bottom: 14px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.team-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--emerald), var(--emerald-900));
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 0 0 2px rgba(217, 171, 63, .35);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-txt { min-width: 0; }
.team-txt strong { display: block; font-size: 12.8px; color: var(--navy); line-height: 1.35; }
.team-txt span { display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.team-txt small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.blok-sejarah { margin-top: 34px; scroll-margin-top: 100px; }

/* -------------------------------- aplikasi -------------------------------- */

.app-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app-block { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.app-block-media { position: relative; height: 170px; overflow: hidden; }
.app-block-media img { width: 100%; height: 100%; object-fit: cover; }
.app-block-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 25, 44, .3)); }
.app-block-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -34px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fffdf8;
  padding: 4px;
  box-shadow: 0 0 0 3px rgba(217, 171, 63, .8), 0 10px 20px -12px rgba(0, 0, 0, .5);
  z-index: 2;
}
.app-block-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.app-block-body { padding: 48px 22px 22px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.app-block-body h2 { font-size: 19px; color: var(--navy); }
.app-block-body .app-tagline { margin-bottom: 10px; }
.app-block-body p { font-size: 13px; line-height: 1.65; color: var(--muted); }
.app-block-body .btn { margin-top: auto; }

.app-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.app-detail-main { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.app-detail-cover { height: 260px; overflow: hidden; background: var(--navy); }
.app-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.app-detail-head { padding: 22px 26px 8px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-detail-head .logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  background: #fffdf8;
  padding: 3px;
  box-shadow: 0 0 0 2px rgba(217, 171, 63, .7);
  flex: none;
}
.app-detail-head .logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.app-detail-head h1 { font-size: 25px; color: var(--navy); }
.app-detail-head .app-tagline { text-align: left; margin: 0; }
.app-detail-body { padding: 10px 26px 26px; }
.app-detail-body .prose { font-size: 14px; }
.app-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--head-h) + 18px); }
.app-features { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.app-features li { display: flex; gap: 9px; font-size: 12.8px; color: var(--ink-soft); line-height: 1.5; }
.app-features .ic { color: var(--emerald); margin-top: 2px; flex: none; }
.app-cta-card {
  background: linear-gradient(155deg, #0a2743, #0b3d38);
  color: #fff;
  border-radius: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.app-cta-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 171, 63, .3), transparent 65%);
}
.app-cta-card h3 { font-size: 16px; margin-bottom: 6px; }
.app-cta-card p { font-size: 12.5px; color: rgba(255, 255, 255, .78); margin-bottom: 14px; }
.app-cta-card .btn { width: 100%; }

/* --------------------------------- program -------------------------------- */

.program-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.program-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.program-card:hover { transform: translateY(-3px); border-color: rgba(15, 107, 75, .3); box-shadow: var(--shadow); }
.program-card-media { position: relative; background: var(--cream-2); min-height: 150px; }
.program-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.program-card-body { padding: 18px 20px; display: flex; flex-direction: column; }
.program-card-body h2 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.program-card-body h2 a { color: inherit; }
.program-card-body h2 a:hover { color: var(--emerald); }
.program-card-body p { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin: 8px 0 12px; flex: 1; }
.program-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-100);
  color: var(--emerald);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.program-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.program-detail-main { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.program-detail-main .cover { height: 240px; background: var(--cream-2); }
.program-detail-main .cover img { width: 100%; height: 100%; object-fit: cover; }
.program-detail-main .isi { padding: 24px 28px 28px; }
.program-detail-main h1 { font-size: 25px; color: var(--navy); margin-bottom: 8px; }
.program-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--head-h) + 18px); }
.aside-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
}
.aside-link:hover { border-color: rgba(15, 107, 75, .35); color: var(--emerald); }
.aside-link .ic { color: var(--emerald); }

/* ---------------------------------- berita -------------------------------- */

.berita-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.berita-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.searchbar { position: relative; flex: 1; min-width: 220px; }
.searchbar input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
}
.searchbar .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.kategori-bar { display: flex; gap: 7px; flex-wrap: wrap; }
.kategori-chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.kategori-chip:hover { border-color: var(--emerald); color: var(--emerald); }
.kategori-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.berita-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.berita-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--head-h) + 18px); }
.side-title { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pop-list { display: flex; flex-direction: column; gap: 12px; }
.pop-item { display: flex; gap: 10px; align-items: flex-start; }
.pop-no {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.pop-item a { font-size: 12.2px; line-height: 1.45; color: var(--ink); }
.pop-item a:hover { color: var(--emerald); }
.pop-item small { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.kosong {
  background: #fff;
  border: 1px dashed rgba(10, 39, 67, .2);
  border-radius: 14px;
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 12.5px;
}
.page-btn:hover { border-color: var(--emerald); color: var(--emerald); }
.page-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-btn.is-disabled { opacity: .45; pointer-events: none; }

.artikel { max-width: 820px; margin: 0 auto; }
.artikel-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.artikel-cover { aspect-ratio: 16 / 8; background: var(--navy); overflow: hidden; }
.artikel-cover img { width: 100%; height: 100%; object-fit: cover; }
.artikel-isi { padding: 28px 34px 34px; }
.artikel-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11.8px; color: var(--muted-2); margin-bottom: 12px; }
.artikel-meta .chip { font-size: 10.5px; }
.artikel h1 { font-size: clamp(23px, 3vw, 32px); color: var(--navy); line-height: 1.25; margin-bottom: 14px; }
.artikel-lead { font-size: 15px; line-height: 1.7; color: var(--ink-soft); font-weight: 500; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.artikel-actions { display: flex; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.terkait { margin-top: 34px; }
.terkait h2 { font-size: 18px; color: var(--navy); margin-bottom: 14px; }

/* ---------------------------------- kontak -------------------------------- */

.kontak-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.form-card > p { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.kontak-aside { display: flex; flex-direction: column; gap: 16px; }
.kontak-item { display: flex; gap: 12px; align-items: flex-start; }
.kontak-item .ic-box {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--emerald-100);
  color: var(--emerald);
}
.kontak-item strong { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 600; }
.kontak-item a, .kontak-item span { font-size: 13px; color: var(--ink); line-height: 1.5; word-break: break-word; }
.kontak-item a:hover { color: var(--emerald); }
.map-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #e8efe9, #dbe7f1);
  position: relative;
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}
.map-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 40%, rgba(15, 107, 75, .18), transparent 60%), radial-gradient(circle at 70% 60%, rgba(10, 39, 67, .15), transparent 55%);
}
.map-card-inner { position: relative; z-index: 2; }
.map-card-inner .ic { margin: 0 auto 8px; color: var(--emerald); }
.map-card p { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }

/* ---------------------------------- form ---------------------------------- */

.field { margin-bottom: 14px; }
.field label, .label {
  display: block;
  font-size: 12.3px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field .hint { font-size: 11px; color: var(--muted-2); margin-top: 4px; }
.input, .field input[type='text'], .field input[type='email'], .field input[type='password'],
.field input[type='number'], .field input[type='url'], .field input[type='tel'],
.field input[type='date'], .field input[type='time'], .field input[type='datetime-local'],
.field input[type='file'], .field select, .field textarea, .input-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9e1ea;
  border-radius: 9px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(22, 156, 109, .16);
}
.field input[type='file'] { padding: 8px; font-size: 12.5px; background: #fbfcfe; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.8px; color: var(--ink-soft); cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--emerald); flex: none; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.required { color: var(--danger); }
.alert { border-radius: 11px; padding: 11px 14px; font-size: 12.8px; line-height: 1.55; margin-bottom: 16px; display: flex; gap: 9px; align-items: flex-start; }
.alert .ic { margin-top: 1px; }
.alert-ok { background: var(--ok-soft); border: 1px solid #b7e4cd; color: #0b6b48; }
.alert-err { background: var(--danger-soft); border: 1px solid #f3c1c1; color: #a01b1b; }
.alert-info { background: #eff6ff; border: 1px solid #c7ddf7; color: #1e4f8a; }
.alert-warn { background: var(--warn-soft); border: 1px solid #f0d9a8; color: #8a5a08; }

/* ---------------------------------- auth ---------------------------------- */

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px 18px;
  background:
    radial-gradient(110% 90% at 12% 8%, rgba(22, 70, 111, .8), transparent 58%),
    radial-gradient(90% 80% at 88% 92%, rgba(15, 107, 75, .65), transparent 60%),
    linear-gradient(140deg, #06192c, #0a2b47 55%, #0a4a3b);
  position: relative;
  overflow: hidden;
}
.auth-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/pattern.svg');
  background-size: 300px;
  opacity: .14;
  mix-blend-mode: screen;
}
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 20px;
  padding: 30px 30px 26px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 20px; }
.auth-logo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  background: #fffdf8;
  padding: 3px;
  box-shadow: 0 0 0 2px rgba(217, 171, 63, .75), 0 0 0 6px rgba(217, 171, 63, .16), 0 12px 24px -14px rgba(0, 0, 0, .5);
  margin-bottom: 12px;
}
.auth-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.auth-brand h1 { font-size: 20px; color: var(--navy); }
.auth-brand p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 11.5px; color: var(--muted-2); }
.auth-foot a { color: var(--emerald); }
.auth-sep { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted-2); font-size: 11px; }
.auth-sep::before, .auth-sep::after { content: ''; height: 1px; background: var(--line-2); flex: 1; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  display: grid;
  place-items: center;
  border-radius: 7px;
}
.pw-toggle:hover { color: var(--navy); background: var(--cream); }

/* ------------------------------- halaman galat ---------------------------- */

.err-wrap { min-height: 62vh; display: grid; place-items: center; padding: 60px 20px; }
.err-card { text-align: center; max-width: 460px; }
.err-kode {
  font-family: var(--serif);
  font-size: 74px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--navy), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.err-card h1 { font-size: 22px; color: var(--navy); margin: 10px 0 8px; }
.err-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }

/* ============================== ADMIN / CMS ============================== */

.admin-body {
  background: #f3f6f9;
  font-size: 14px;
  color: var(--ink);
}
.admin-shell { display: grid; grid-template-columns: 262px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 13px;
  background:
    radial-gradient(120% 60% at 10% 0%, rgba(22, 70, 111, .55), transparent 60%),
    linear-gradient(180deg, #071f36, #0a2743 60%, #082a35);
  color: #fff;
  overflow: hidden;
  z-index: 40;
}
.rail-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.rail-brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(217, 171, 63, .5); flex: none; }
.rail-brand .txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.rail-brand .txt strong { font-family: var(--serif); font-size: 16px; letter-spacing: .04em; color: #fff; }
.rail-brand .txt small { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.rail-nav { flex: 1; overflow-y: auto; padding-right: 2px; }
.rail-group-title {
  font-size: 9.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  font-weight: 600;
  margin: 14px 10px 6px;
}
.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2px;
  position: relative;
}
.rail-link .ic { opacity: .85; }
.rail-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.rail-link.is-active { background: rgba(217, 171, 63, .16); color: var(--gold-light); }
.rail-link.is-active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gold); }
.rail-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  text-decoration: none;
  color: #fff;
}
.rail-user:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.rail-user .ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  color: #2b1f04;
  font-weight: 700;
  font-size: 12.5px;
  flex: none;
}
.rail-user .txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.rail-user strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-user small { font-size: 10px; color: rgba(255, 255, 255, .6); text-transform: capitalize; }
.rail-actions { display: flex; gap: 6px; }
.rail-out {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .8);
  font-size: 11.5px;
  text-decoration: none;
}
.rail-out:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.admin-main { min-width: 0; padding: 22px 26px 46px; }
.admin-topbar { display: none; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head h1 { font-size: 23px; color: var(--navy); letter-spacing: -.01em; }
.admin-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.admin-head .actions { display: flex; gap: 9px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.stat-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--emerald-100);
  color: var(--emerald);
}
.stat-ic.navy { background: #e9eff7; color: var(--navy); }
.stat-ic.gold { background: var(--gold-soft); color: var(--gold-dark); }
.stat-ic.rose { background: #fdeef1; color: #b3244e; }
.stat-txt { min-width: 0; }
.stat-txt strong { display: block; font-size: 21px; line-height: 1.15; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-txt span { font-size: 11.5px; color: var(--muted); }

.panel { background: #fff; border: 1px solid var(--line-2); border-radius: 15px; box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 18px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-2);
}
.panel-head h2 { font-size: 14.5px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.panel-head .sub { font-size: 11.5px; color: var(--muted-2); }
.panel-body { padding: 16px 18px; }
.panel-body.tight { padding: 10px 12px; }
.panel-foot { padding: 11px 18px; border-top: 1px solid var(--line-2); background: #fbfcfe; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 132px; padding-top: 6px; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart-bar {
  width: 100%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #1fae79, #0f6b4b);
  min-height: 3px;
  position: relative;
  transition: filter .15s;
}
.chart-col:hover .chart-bar { filter: brightness(1.12); }
.chart-bar span { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 9.5px; color: var(--muted); opacity: 0; }
.chart-col:hover .chart-bar span { opacity: 1; }
.chart-label { font-size: 9.5px; color: var(--muted-2); white-space: nowrap; }
.list-clean { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list-clean li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.list-clean li:last-child { border-bottom: 0; }
.list-clean .t { flex: 1; min-width: 0; }
.list-clean .t a, .list-clean .t strong { display: block; font-size: 12.5px; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-clean .t small { font-size: 10.5px; color: var(--muted-2); }
.dot-baru { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); flex: none; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left;
  padding: 9px 12px;
  background: #f7f9fb;
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fbfcfe; }
.tbl .judul { font-weight: 500; color: var(--ink); }
.tbl .judul small { display: block; font-size: 10.5px; color: var(--muted-2); font-weight: 400; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .aksi { display: flex; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.tbl .thumb { width: 52px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--cream-2); }
.tbl .thumb-round { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--cream-2); }
.tbl-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.tbl-tool { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.tbl-tool .searchbar { max-width: 260px; flex: 1; min-width: 170px; }
.tbl-tool .searchbar input { padding-top: 9px; padding-bottom: 9px; font-size: 12.5px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .03em;
  background: var(--cream-2);
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip-green { background: var(--ok-soft); color: #0b6b48; }
.chip-gold { background: var(--gold-soft); color: #8a6412; }
.chip-navy { background: #e9eff7; color: var(--navy); }
.chip-red { background: var(--danger-soft); color: #a01b1b; }
.chip-gray { background: #f1f5f9; color: var(--muted); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-soft);
}
.icon-btn:hover { border-color: var(--emerald); color: var(--emerald); background: var(--emerald-100); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.inline-form { display: inline; }

.preview-thumb {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line-2);
  background: var(--cream);
  margin-top: 8px;
}
.preview-thumb.round { width: 76px; height: 76px; border-radius: 50%; aspect-ratio: 1; }
.up-box {
  border: 1px dashed #cfd9e4;
  border-radius: 11px;
  padding: 12px;
  background: #fbfcfe;
}
.up-box label { font-size: 12px; }
.up-box .hint { font-size: 11px; color: var(--muted-2); margin-top: 6px; }
.form-card-admin { background: #fff; border: 1px solid var(--line-2); border-radius: 15px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.form-grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sticky-side { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 14px; }
.setting-section { border-bottom: 1px solid var(--line-2); padding-bottom: 18px; margin-bottom: 18px; }
.setting-section:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.setting-section h3 { font-size: 13.5px; color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.setting-section h3 .ic { color: var(--gold-dark); }
.help { font-size: 11.5px; color: var(--muted-2); line-height: 1.55; }
.avatar-cell { display: flex; align-items: center; gap: 9px; }
.avatar-cell .ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--emerald), var(--emerald-900));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 600;
  flex: none;
}
.icon-pilih { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-pilih input { position: absolute; opacity: 0; pointer-events: none; }
.icon-pilih label {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  margin: 0;
  transition: all .15s;
}
.icon-pilih input:checked + label { border-color: var(--emerald); background: var(--emerald-100); color: var(--emerald); box-shadow: 0 0 0 2px rgba(22, 156, 109, .14); }
.icon-pilih label:hover { border-color: var(--emerald); color: var(--emerald); }

.pesan-item { display: flex; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.pesan-item:hover { background: #fbfcfe; }
.pesan-item.baru { background: #f4fbf7; }
.pesan-item .ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e9eff7;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.pesan-item .isi { flex: 1; min-width: 0; }
.pesan-item .baris { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pesan-item strong { font-size: 13px; color: var(--ink); }
.pesan-item .waktu { font-size: 10.5px; color: var(--muted-2); margin-left: auto; white-space: nowrap; }
.pesan-item p { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pesan-detail-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.pesan-detail-head .ava { width: 48px; height: 48px; border-radius: 50%; background: #e9eff7; color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.pesan-isi { font-size: 14px; line-height: 1.8; color: var(--ink-soft); white-space: pre-wrap; }
.bulkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--gold-soft);
  border-bottom: 1px solid rgba(217, 171, 63, .3);
  font-size: 12.5px;
  color: #7a5a10;
}

/* admin mobile */
@media (max-width: 1000px) {
  .admin-shell { grid-template-columns: 1fr; }
  .rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 272px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform .26s ease;
    z-index: 130;
    box-shadow: 20px 0 60px -30px rgba(0, 0, 0, .6);
  }
  .rail.open { transform: none; }
  .rail-scrim { position: fixed; inset: 0; background: rgba(4, 20, 34, .5); z-index: 125; }
  .admin-main { padding: 0 14px 40px; }
  .admin-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0 14px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: #f3f6f9;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line-2);
  }
  .admin-topbar button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--navy);
  }
  .admin-topbar .judul { font-size: 14.5px; font-weight: 600; color: var(--navy); }
  .admin-topbar .ava {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11.5px;
    font-weight: 600;
  }
  .admin-head h1 { font-size: 20px; }
  .dash-grid, .form-grid-2 { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
}

/* ------------------------------ responsif -------------------------------- */

@media (max-width: 1100px) {
  .nav-desktop { display: none; }
  .head-burger { display: grid; }
  .btn-layanan { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 320px; }
  .emblem { width: 196px; height: 196px; }
  .app-card-media { height: 136px; }
  .app-card-logo { top: 100px; width: 74px; height: 74px; }
  .app-card-body { padding-top: 46px; }
}

@media (max-width: 980px) {
  .sec { padding: 44px 0; }
  .app-grid { gap: 18px; }
  .app-card-body { padding-left: 16px; padding-right: 16px; }
  .app-desc { font-size: 12.3px; }
  .profil-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tentang-grid { grid-template-columns: 1fr; }
  .tentang-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .tentang-aside > * { flex: 1; min-width: 240px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-detail { grid-template-columns: 1fr; }
  .app-aside { position: static; }
  .program-detail { grid-template-columns: 1fr; }
  .program-aside { position: static; }
  .berita-layout { grid-template-columns: 1fr; }
  .berita-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .berita-side > * { flex: 1; min-width: 250px; }
  .kontak-grid { grid-template-columns: 1fr; }
  .kontak-aside { flex-direction: row; flex-wrap: wrap; }
  .kontak-aside > * { flex: 1; min-width: 260px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 280px; padding-bottom: 86px; }
  .hero-emblem .emblem { width: 178px; height: 178px; }
  .hero-masjid { width: 580px; right: -80px; opacity: .75; }
}

@media (max-width: 820px) {
  :root { --head-h: 64px; }
  .wrap { padding: 0 18px; }
  .head-inner { gap: 10px; }
  .brand-mark img { width: 40px; height: 40px; }
  .brand-main { font-size: 18px; }
  .brand-top { font-size: 7.6px; }
  .brand-bottom { font-size: 7.4px; }
  .brand-text { max-width: 150px; }
  .hero-inner {
    display: block;
    padding: 26px 0 74px;
    min-height: 0;
  }
  .hero-badge { font-size: 10.5px; padding: 5px 12px; }
  .hero-title {
    font-size: clamp(23px, 6.4vw, 29px);
    line-height: 1.2;
    margin: 12px 0 10px;
    max-width: 74%;
  }
  .hero-text { font-size: 12.6px; line-height: 1.62; margin-bottom: 18px; max-width: 100%; }
  .hero-emblem {
    position: absolute;
    right: 16px;
    top: 66px;
    z-index: 5;
  }
  .hero-emblem .emblem {
    width: 96px;
    height: 96px;
    box-shadow: 0 0 0 4px rgba(217, 171, 63, .35), 0 0 0 7px rgba(217, 171, 63, .12), 0 18px 34px -16px rgba(0, 0, 0, .6);
  }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 9px; }
  .hero-actions .btn { justify-content: center; }
  .hero-masjid { width: 380px; right: -90px; bottom: 18px; opacity: .55; }
  .hero-wave { height: 54px; }
  .sec { padding: 34px 0; }
  .sec-head { gap: 10px; }
  .sec-head h2 { font-size: 17.5px; white-space: normal; line-height: 1.3; }
  .sec-line { max-width: 60px; }
  .sec-sub { font-size: 12.2px; margin-bottom: 20px; }
  .app-grid { grid-template-columns: 1fr; gap: 16px; }
  .app-card { flex-direction: row; align-items: stretch; }
  .app-card-media { width: 108px; height: auto; flex: none; }
  .app-card-shade { background: linear-gradient(90deg, rgba(6, 25, 44, 0) 40%, rgba(6, 25, 44, .25)); }
  .app-card-logo {
    top: 12px;
    left: auto;
    right: 12px;
    transform: none;
    width: 44px;
    height: 44px;
    padding: 2px;
    box-shadow: 0 0 0 2px rgba(217, 171, 63, .85);
  }
  .app-card-body {
    padding: 14px 14px 14px 16px;
    align-items: flex-start;
    text-align: left;
  }
  .app-card-body h3 { font-size: 16.5px; text-align: left; }
  .app-tagline { font-size: 11px; text-align: left; margin-bottom: 6px; }
  .app-desc { font-size: 11.8px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .app-btn { width: auto; font-size: 11.8px; padding: 8px 14px; }
  .app-status { margin-top: 6px; font-size: 9.5px; }
  .ketua-card { grid-template-columns: 1fr; }
  .ketua-foto { min-height: 190px; }
  .ketua-foto::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .95) 100%); }
  .ketua-body { padding: 12px 18px 18px; margin-top: -20px; position: relative; z-index: 2; }
  .ketua-nama { font-size: 19px; }
  .ketua-kutipan { font-size: 13.5px; line-height: 1.6; }
  .tentang-card { padding: 20px; }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .program-tile { padding: 16px 10px 14px; gap: 7px; }
  .program-ic { width: 40px; height: 40px; }
  .program-title { font-size: 11.8px; }
  .program-cat { font-size: 9px; }
  .program-tile:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 5px); margin: 0 auto; }
  .news-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-body { padding: 14px 16px 16px; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 18px; }
  .foot-contact { flex-direction: column; align-items: flex-start; gap: 10px; }
  .foot-social { align-self: flex-start; }
  .foot-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-hero { padding: 26px 0 28px; }
  .page-hero p { font-size: 12.5px; }
  .page-body { padding: 28px 0 20px; }
  .tentang-main { padding: 20px; }
  .visi-misi { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .app-list { grid-template-columns: 1fr; }
  .app-block-media { height: 148px; }
  .program-list { grid-template-columns: 1fr; }
  .program-card { grid-template-columns: 104px 1fr; }
  .program-card-body { padding: 14px 15px; }
  .program-card-body h2 { font-size: 14.5px; }
  .program-card-body p { font-size: 11.8px; margin: 6px 0 10px; }
  .berita-list { grid-template-columns: 1fr; }
  .berita-toolbar { gap: 9px; }
  .kategori-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; width: 100%; }
  .kategori-chip { flex: none; }
  .artikel-isi { padding: 18px 18px 24px; }
  .artikel-lead { font-size: 13.5px; }
  .artikel-meta { font-size: 11px; gap: 8px; }
  .form-card { padding: 20px 18px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .app-detail-cover { height: 180px; }
  .app-detail-head { padding: 16px 18px 6px; }
  .app-detail-head h1 { font-size: 21px; }
  .app-detail-body { padding: 8px 18px 20px; }
  .program-detail-main .cover { height: 170px; }
  .program-detail-main .isi { padding: 18px; }
  .program-detail-main h1 { font-size: 21px; }
  .wa-float { width: 48px; height: 48px; bottom: 78px; right: 14px; }
  .wa-float svg { width: 22px; height: 22px; }

  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    background: #fff;
    border-top: 1px solid rgba(10, 39, 67, .1);
    box-shadow: 0 -10px 30px -22px rgba(8, 32, 56, .5);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 2px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 9.5px;
    font-weight: 500;
  }
  .bottom-ic {
    display: grid;
    place-items: center;
    width: 36px;
    height: 26px;
    border-radius: 8px;
    transition: background .18s, color .18s;
  }
  .bottom-link.is-active { color: var(--emerald); font-weight: 600; }
  .bottom-link.is-active .bottom-ic { background: var(--emerald-100); color: var(--emerald); }
  .public { padding-bottom: 0; }
  .page-body, .sec-berita { padding-bottom: 20px; }
  body.public { padding-bottom: 72px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 22.5px; max-width: 70%; }
  .hero-emblem { right: 10px; top: 62px; }
  .hero-emblem .emblem { width: 82px; height: 82px; }
  .hero-badge { font-size: 9.8px; }
  .hero-text { font-size: 12.1px; }
  .sec-head h2 { font-size: 16px; }
  .program-title { font-size: 11px; }
  .foot-item { font-size: 11.3px; }
  .artikel-cover { aspect-ratio: 16 / 9; }
}

@media (min-width: 981px) {
  .public { padding-bottom: 0; }
}

/* ------------------------------- animasi halus ---------------------------- */

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

/* --------------------------------- cetak ---------------------------------- */

@media print {
  .site-head, .bottom-nav, .wa-float, .site-foot, .artikel-actions, .crumb { display: none !important; }
  body { background: #fff; }
  .artikel-card { border: 0; box-shadow: none; }
  .artikel-isi { padding: 0; }
}

/* --------------------------- penjaga lebar grid --------------------------- */
.berita-layout > *, .app-detail > *, .program-detail > *, .tentang-grid > *,
.kontak-grid > *, .form-grid-2 > *, .dash-grid > *, .profil-grid > * { min-width: 0; }
.berita-toolbar, .kategori-bar { min-width: 0; max-width: 100%; }
.berita-toolbar .searchbar { min-width: 0; }
.kategori-bar { overflow-x: auto; scrollbar-width: thin; }

/* =========================================================================
   DESAIN BERANDA VERSI HP — mengikuti desain aplikasi (foto acuan pengguna)
   Header putih · hero kartu berfoto · sorotan (dots) · baris ikon cepat ·
   kartu aplikasi berikon · berita horizontal · navigasi bawah 5 menu
   Dibatasi sampai 600 px (ponsel); tablet 601–820 px memakai tata letak tablet.
   ========================================================================= */
@media (max-width: 600px) {
  /* ---------------------------------- header ------------------------------- */
  .site-head {
    background: #fff;
    border-bottom: 0;
    box-shadow: 0 1px 0 rgba(10, 39, 67, .06);
  }
  .head-inner {
    height: auto;
    min-height: 62px;
    padding: 9px 16px;
    gap: 10px;
    align-items: center;
  }
  .brand { gap: 10px; min-width: 0; flex: 1 1 auto; color: var(--navy); }
  .brand:hover { color: var(--navy); }
  .brand-mark img {
    width: 44px;
    height: 44px;
    box-shadow: 0 0 0 1.5px rgba(217, 171, 63, .85), 0 0 0 4px rgba(217, 171, 63, .14);
  }
  .brand .brand-text { display: none; }
  .brand-mobile { display: flex; flex-direction: column; min-width: 0; }
  .bm-name {
    font-size: 14.6px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: -.01em;
    max-width: 158px;
    display: block;
  }
  .bm-motto {
    font-size: 9.4px;
    line-height: 1.32;
    color: var(--muted);
    max-width: 168px;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .head-actions { margin-left: auto; gap: 2px; }
  .head-bell-wrap { display: block; }
  .head-bell { color: var(--navy); }
  .head-burger {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--navy);
    padding: 0;
  }
  .head-burger svg { width: 26px; height: 26px; stroke-width: 2; }
  .nav-desktop { display: none; }
  .btn-layanan { display: none; }

  /* urutan seksi mengikuti desain aplikasi */
  main#konten { display: flex; flex-direction: column; }
  .hero { order: 1; }
  .quick-strip { order: 2; }
  .sec-apps { order: 3; }
  .sec-berita { order: 4; }
  .sec-profil { order: 5; }
  .sec-program { order: 6; display: none; }

  /* ----------------------------------- hero -------------------------------- */
  .hero {
    margin: 10px 16px 0;
    border-radius: 20px;
    background: #0b3a2c;
    box-shadow: 0 18px 34px -26px rgba(4, 32, 28, .9);
  }
  .hero-slide { min-height: 0; align-items: stretch; }
  .hero-slide + .hero-slide { display: flex; }
  .hero-photo { object-position: 70% center; }
  .hero-veil {
    background:
      linear-gradient(96deg, rgba(4, 33, 29, .95) 0%, rgba(5, 42, 35, .93) 40%, rgba(6, 58, 44, .74) 62%, rgba(7, 74, 54, .28) 86%, rgba(7, 74, 54, .14) 100%);
  }
  .hero-inner { padding: 14px 15px 17px; }
  .hero-copy { max-width: 72%; }
  .hero-badge {
    font-size: 9.4px;
    padding: 4px 10px 4px 8px;
    gap: 5px;
    background: rgba(10, 74, 56, .72);
    border-color: rgba(126, 226, 178, .5);
  }
  .hero-badge .ic { width: 11px; height: 11px; }
  .hero-title {
    font-size: 18px;
    line-height: 1.22;
    margin: 8px 0 6px;
    letter-spacing: -.005em;
    max-width: 100%;
  }
  .hero-title-sm { font-size: 16px; }
  .hero-text {
    font-size: 10.2px;
    line-height: 1.52;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .93);
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-actions { gap: 8px; flex-direction: row; align-items: flex-start; }
  .hero-actions .btn {
    padding: 8px 14px;
    font-size: 10.8px;
    border-radius: 9px;
    gap: 6px;
    width: auto;
  }
  .hero-actions .btn-lg { padding: 8px 14px; font-size: 10.8px; }
  .hero-actions .btn svg { width: 14px; height: 14px; }
  .hero-cta-2 { display: none; }
  .hero-seal {
    width: 112px;
    height: 112px;
    right: 12px;
    bottom: 18px;
    padding: 3px;
    box-shadow: 0 0 0 2.5px rgba(217, 171, 63, .95), 0 0 0 6px rgba(217, 171, 63, .18), 0 14px 26px -14px rgba(0, 0, 0, .7);
  }
  .hero-wave { display: none; }
  .hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 0 0;
    background: transparent;
  }
  .hero-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cfd8d2;
    transition: background .18s, width .18s;
  }
  .hero-dot.is-active { background: #c9a227; width: 8px; height: 8px; }

  /* ------------------------------ baris ikon cepat ------------------------- */
  .quick-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    padding: 16px 16px 4px;
    background: #fff;
  }
  .quick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 11px 5px 10px;
    background: #fff;
    border: 1px solid rgba(10, 39, 67, .09);
    border-radius: 13px;
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 6px 14px -12px rgba(8, 32, 56, .55);
  }
  .quick-tile:active { transform: scale(.98); }
  .quick-ic {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
  }
  .quick-ic .ic { width: 20px; height: 20px; stroke-width: 1.9; }
  .quick-ic.q-1 { background: #12a06d; }
  .quick-ic.q-2 { background: #1c5cb8; }
  .quick-ic.q-3 { background: #d9a12a; }
  .quick-ic.q-4 { background: #0a4a37; }
  .quick-label {
    font-size: 9.6px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: -.005em;
  }
  .quick-note {
    font-size: 7.8px;
    line-height: 1.2;
    color: var(--muted-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  /* --------------------------- judul seksi versi HP ------------------------ */
  .sec { padding: 20px 0; }
  .sec-head-desktop, .sec-sub.sec-head-desktop { display: none; }
  .sec-head-m {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }
  .sec-head-m h2 {
    font-size: 15.4px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.01em;
  }
  .sec-head-m p {
    font-size: 9.8px;
    color: var(--muted-2);
    margin: 2px 0 0;
    line-height: 1.3;
  }
  .sec-more {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9.8px;
    font-weight: 600;
    color: var(--emerald);
    white-space: nowrap;
    padding-bottom: 2px;
  }
  .sec-more svg { width: 12px; height: 12px; }
  .sec-apps { background: #fff; padding-top: 18px; }
  .sec-berita { background: #fff; padding-top: 6px; padding-bottom: 26px; }
  .sec-foot { display: none; }

  /* ----------------------------- kartu aplikasi ---------------------------- */
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .app-card {
    flex-direction: column;
    align-items: center;
    padding: 12px 8px 10px;
    border-radius: 13px;
    border-color: rgba(10, 39, 67, .09);
    box-shadow: 0 6px 14px -12px rgba(8, 32, 56, .5);
    animation: none;
  }
  .app-card:hover { transform: none; }
  .app-card-media { display: none; }
  .app-card-logo {
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
    padding: 2px;
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: 0 0 0 1px rgba(10, 39, 67, .1);
    margin-bottom: 7px;
  }
  .app-card-logo img { border-radius: 10px; object-fit: contain; }
  .app-card-body {
    padding: 0;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .app-card-body h3 { font-size: 11px; text-align: center; margin-bottom: 2px; }
  .app-tagline { display: none; }
  .app-desc {
    font-size: 8.6px;
    line-height: 1.42;
    text-align: center;
    color: var(--muted);
    margin: 0 0 8px;
    -webkit-line-clamp: 2;
    min-height: 24px;
  }
  .app-btn {
    margin-top: auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    background: #0a4a37;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: none;
    min-width: 0;
  }
  .app-btn.accent-green { background: #0a4a37; }
  .app-btn.accent-gold { background: #0a4a37; }
  .app-btn.accent-navy { background: #0a4a37; }
  .app-btn:hover { transform: none; background: #0f6b4b; }
  .app-btn-label { display: none; }
  .app-btn-ic { display: grid; place-items: center; }
  .app-btn-ic svg { width: 15px; height: 15px; }
  .app-status { display: none; }

  /* ------------------------------- kartu berita ---------------------------- */
  .news-grid { grid-template-columns: 1fr; gap: 10px; }
  .news-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    padding: 10px;
    border-radius: 13px;
    box-shadow: 0 6px 14px -12px rgba(8, 32, 56, .5);
  }
  .news-card:hover { transform: none; }
  .news-cover {
    flex: none;
    width: 92px;
    height: 74px;
    aspect-ratio: auto;
    border-radius: 9px;
    margin-right: 10px;
  }
  .news-cat { display: none; }
  .news-body { padding: 0; min-width: 0; flex: 1; }
  .news-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 8.8px;
    color: var(--muted-2);
    margin-bottom: 3px;
  }
  .news-date-m { display: inline-flex; color: var(--emerald); }
  .news-date-m svg { width: 11px; height: 11px; }
  .news-date-d { display: none; }
  .news-date-s { display: inline; }
  .news-body h3 {
    font-size: 11.2px;
    line-height: 1.32;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-body p {
    font-size: 9.2px;
    line-height: 1.45;
    margin: 0;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .link-more { display: none; }
  .news-arrow {
    display: grid;
    place-items: center;
    align-self: center;
    color: var(--emerald);
    padding-left: 4px;
  }
  .news-arrow svg { width: 16px; height: 16px; }

  /* ---------------------------- program (disembunyikan) -------------------- */
  .sec-program { display: none; }

  /* ------------------------------ navigasi bawah --------------------------- */
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    background: #fff;
    border-top: 1px solid rgba(10, 39, 67, .09);
    box-shadow: 0 -8px 24px -20px rgba(8, 32, 56, .55);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 3px 2px;
    border-radius: 10px;
    color: #6b7a89;
    text-decoration: none;
    font-size: 9.2px;
    font-weight: 500;
  }
  .bottom-ic {
    display: grid;
    place-items: center;
    width: 40px;
    height: 27px;
    border-radius: 9px;
    transition: background .18s, color .18s;
  }
  .bottom-ic svg { width: 19px; height: 19px; }
  .bottom-link.is-active { color: #0f6b4b; font-weight: 700; }
  .bottom-link.is-active .bottom-ic { background: #e8f5ef; color: #0f6b4b; }
  .bottom-label { line-height: 1.1; }

  /* elemen yang tidak dipakai di HP */
  .wa-float { bottom: 84px; right: 12px; width: 44px; height: 44px; }
  .wa-float svg { width: 20px; height: 20px; }
  body.public { padding-bottom: 74px; }
  .profil-grid { gap: 14px; }
  .sec-profil { padding-top: 22px; }
}

@media (max-width: 390px) {
  .hero-copy { max-width: 70%; }
  .hero-title { font-size: 17.4px; }
  .hero-seal { width: 106px; height: 106px; right: 10px; }
  .quick-label { font-size: 9.2px; }
  .app-card-body h3 { font-size: 10.4px; }
}
