/* ============================================================
   STAI Darul Ilmi Wadda'wah — Design System
   ============================================================ */

:root {
  /* Palette — emerald + antique gold + warm cream */
  --bg: #fafaf7;
  --bg-warm: #f4f0e6;
  --bg-card: #ffffff;
  --surface: #f0ece1;
  --ink: #1c1c1a;
  --ink-soft: #4a4a45;
  --ink-mute: #7a766c;
  --hair: #e4dfd0;
  --hair-strong: #c9c1a8;

  --emerald: #0f5132;
  --emerald-dark: #093624;
  --emerald-soft: #1a6b48;
  --emerald-tint: #e7efe9;

  --gold: #b8902f;
  --gold-dark: #8a6a1f;
  --gold-soft: #d9b75e;
  --gold-tint: #f6efd9;

  /* Type */
  --f-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --f-body: "DM Sans", "Helvetica Neue", system-ui, sans-serif;
  --f-arabic: "Amiri", "Scheherazade New", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(28, 28, 26, 0.05), 0 1px 1px rgba(28, 28, 26, 0.03);
  --shadow-md: 0 6px 18px -8px rgba(28, 28, 26, 0.12), 0 2px 6px rgba(28, 28, 26, 0.04);
  --shadow-lg: 0 24px 60px -24px rgba(15, 81, 50, 0.22), 0 6px 16px -8px rgba(28, 28, 26, 0.08);

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* ----- Base ----- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ----- Type helpers ----- */
.display { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; }
.serif { font-family: var(--f-display); }
.arabic { font-family: var(--f-arabic); direction: rtl; }
.mono { font-family: var(--f-mono); letter-spacing: 0.04em; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.012em; line-height: 1.1; margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 5.6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: 20px; }
p { margin: 0; }

.kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  font-weight: 500;
}
.kicker-emerald { color: var(--emerald); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--emerald);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold);
}

.arabic-kicker {
  font-family: var(--f-arabic);
  font-size: 28px;
  color: var(--gold);
  direction: rtl;
  line-height: 1;
  letter-spacing: 0;
}

/* ----- Layout ----- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-warm { background: var(--bg-warm); }
.section-dark { background: var(--emerald-dark); color: #f1ebd8; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #faf3df; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--f-body); font-weight: 500; font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--emerald); color: #f8f3e0; }
.btn-primary:hover { background: var(--emerald-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair-strong); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-outline-light { background: transparent; color: #f1ebd8; border-color: rgba(241,235,216,0.4); }
.btn-outline-light:hover { background: rgba(241,235,216,0.08); border-color: #f1ebd8; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn .ico { width: 14px; height: 14px; }

/* ----- Ornaments ----- */
.ornament { display: flex; align-items: center; gap: 14px; color: var(--gold); }
.ornament hr { flex: 1; height: 1px; border: 0; background: linear-gradient(to right, transparent, var(--hair-strong), transparent); margin: 0; }
.ornament-star {
  width: 18px; height: 18px;
  background: conic-gradient(from 22.5deg, var(--gold) 0 12.5%, transparent 12.5% 25%, var(--gold) 25% 37.5%, transparent 37.5% 50%, var(--gold) 50% 62.5%, transparent 62.5% 75%, var(--gold) 75% 87.5%, transparent 87.5% 100%);
  -webkit-mask: radial-gradient(circle at center, transparent 18%, #000 19%);
          mask: radial-gradient(circle at center, transparent 18%, #000 19%);
  position: relative;
}
.ornament-diamond { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

.divider-arabesque {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 8px 0; color: var(--gold);
}
.divider-arabesque .line { width: 80px; height: 1px; background: var(--hair-strong); }
.divider-arabesque svg { width: 28px; height: 28px; }

/* Pattern: 8-point Islamic star background tile (CSS) */
/* Pattern: clean architectural grid — asymmetric rectangles, blueprint-style */
.bg-rosette {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 360' width='360' height='360'><g stroke='%23d9b75e' stroke-width='0.7' fill='none' stroke-linecap='square'><line x1='0' y1='140' x2='360' y2='140'/><line x1='220' y1='0' x2='220' y2='360'/><line x1='80' y1='0' x2='80' y2='140'/><line x1='0' y1='56' x2='220' y2='56'/><line x1='220' y1='240' x2='360' y2='240'/></g></svg>");
  background-size: 380px 380px;
  background-position: center;
  background-repeat: repeat;
}
.bg-rosette-dense { background-size: 260px 260px; }
.bg-rosette-loose { background-size: 520px 520px; }

.pattern-stars {
  background-color: transparent;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(184, 144, 47, 0.18) 0, rgba(184, 144, 47, 0.18) 1px, transparent 1.2px),
    linear-gradient(45deg, transparent 47.5%, rgba(184, 144, 47, 0.10) 47.5% 52.5%, transparent 52.5%),
    linear-gradient(-45deg, transparent 47.5%, rgba(184, 144, 47, 0.10) 47.5% 52.5%, transparent 52.5%);
  background-size: 36px 36px;
}
.pattern-arabesque {
  background-image:
    radial-gradient(circle at 0 0, transparent 14px, rgba(15,81,50,0.06) 14px 15px, transparent 15px),
    radial-gradient(circle at 30px 30px, transparent 14px, rgba(15,81,50,0.06) 14px 15px, transparent 15px),
    radial-gradient(circle at 0 30px, transparent 6px, rgba(184,144,47,0.10) 6px 7px, transparent 7px),
    radial-gradient(circle at 30px 0, transparent 6px, rgba(184,144,47,0.10) 6px 7px, transparent 7px);
  background-size: 60px 60px;
}

/* Corner ornament frame (used on cards / hero) */
.frame-corners { position: relative; }
.frame-corners::before, .frame-corners::after,
.frame-corners > .fc-tr, .frame-corners > .fc-bl {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--gold); opacity: 0.75;
}
.frame-corners::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame-corners::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.frame-corners > .fc-tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.frame-corners > .fc-bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--hair), 0 10px 30px -20px rgba(28,28,26,0.08); }
.header-top {
  background: var(--emerald-dark); color: #d6cdb1;
  font-size: 12px; font-family: var(--f-mono); letter-spacing: 0.06em;
}
.header-top .inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.header-top a { color: inherit; opacity: 0.85; }
.header-top a:hover { opacity: 1; color: var(--gold-soft); }
.header-top .tt-right { display: flex; gap: 22px; }
.header-top .tt-right .dot { color: var(--gold-soft); margin: 0 4px; }

.header-main { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 44px; height: 44px; flex: 0 0 44px; }
.brand .wm-name { font-family: var(--f-display); font-size: 18px; line-height: 1.05; font-weight: 600; color: var(--emerald-dark); letter-spacing: -0.005em; }
.brand .wm-sub { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.18em; color: var(--ink-mute); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.nav-link:hover { color: var(--emerald); background: var(--emerald-tint); }
.nav-link .chev { width: 10px; height: 10px; opacity: 0.6; }
.nav-item.is-open .nav-link { color: var(--emerald); background: var(--emerald-tint); }

.megamenu {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 320px; background: #fff;
  border: 1px solid var(--hair); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 14px; display: none;
  z-index: 90;
}
.nav-item.is-open .megamenu { display: block; }
.megamenu a {
  display: block; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--ink);
}
.megamenu a:hover { background: var(--bg-warm); color: var(--emerald); }
.megamenu .mm-group { margin-bottom: 8px; }
.megamenu .mm-group:last-child { margin-bottom: 0; }
.megamenu .mm-title { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--gold-dark); text-transform: uppercase; padding: 8px 12px 4px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--hair);
  color: var(--ink-soft);
}
.icon-btn:hover { border-color: var(--emerald); color: var(--emerald); }
.lang-switch {
  display: inline-flex; border: 1px solid var(--hair); border-radius: 999px; overflow: hidden;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
}
.lang-switch button { padding: 8px 12px; background: transparent; border: 0; color: var(--ink-mute); }
.lang-switch button.is-active { background: var(--emerald); color: #f8f3e0; }

/* Mobile menu trigger */
.hamburger { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .lang-switch, .icon-btn.search { display: none; }
  .hamburger { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; background: rgba(28,28,26,0.45);
  z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 92%);
  background: var(--bg); transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); border-bottom: 1px solid var(--hair); }
.drawer-body { padding: 12px var(--gutter); overflow: auto; flex: 1; }
.drawer-body a { display: block; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.drawer-body .mm-title { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--gold-dark); text-transform: uppercase; margin-top: 16px; }
.drawer-cta { padding: 18px var(--gutter); border-top: 1px solid var(--hair); }

/* ----- Hero ----- */
.hero {
  position: relative;
  background: var(--emerald-dark);
  color: #f1ebd8;
  overflow: hidden;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(184,144,47,0.20), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(26,107,72,0.45), transparent 60%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.22; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 360' width='360' height='360'><g stroke='%23d9b75e' stroke-width='0.7' fill='none' stroke-linecap='square'><line x1='0' y1='140' x2='360' y2='140'/><line x1='220' y1='0' x2='220' y2='360'/><line x1='80' y1='0' x2='80' y2='140'/><line x1='0' y1='56' x2='220' y2='56'/><line x1='220' y1='240' x2='360' y2='240'/></g></svg>");
  background-size: 440px 440px;
  background-position: center;
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero-copy .arabic-kicker { color: var(--gold-soft); }
.hero-copy h1 { color: #faf3df; margin: 18px 0 20px; font-weight: 500; }
.hero-copy h1 em { font-style: italic; color: var(--gold-soft); font-weight: 400; }
.hero-copy p.lead { font-size: 18px; color: #d8cfb3; max-width: 56ch; }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(241,235,216,0.18); max-width: 540px; }
.hero-meta div .n { font-family: var(--f-display); font-size: 32px; color: var(--gold-soft); line-height: 1; }
.hero-meta div .l { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.18em; color: #c8bf9f; text-transform: uppercase; margin-top: 6px; }

/* Hero slide image card */
.hero-art {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #1a6b48, #093624);
  overflow: hidden;
  border: 1px solid rgba(184,144,47,0.35);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
}
.hero-art .img-placeholder { position: absolute; inset: 0; }
.hero-art .badge {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  background: rgba(9, 54, 36, 0.88); backdrop-filter: blur(8px);
  border: 1px solid rgba(184,144,47,0.4);
  padding: 16px 18px; border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.hero-art .badge .b-l { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--gold-soft); text-transform: uppercase; }
.hero-art .badge .b-t { font-family: var(--f-display); font-size: 18px; color: #faf3df; margin-top: 2px; }

/* Slider controls */
.hero-controls {
  position: absolute; left: var(--gutter); bottom: 32px;
  display: flex; gap: 14px; align-items: center; z-index: 4;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 28px; height: 3px; background: rgba(241,235,216,0.25); border: 0; padding: 0; transition: all .25s;
}
.hero-dots button.is-active { background: var(--gold); width: 56px; }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrows button {
  width: 40px; height: 40px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(241,235,216,0.3); color: #f1ebd8;
}
.hero-arrows button:hover { background: rgba(241,235,216,0.08); border-color: var(--gold); }
.hero-counter { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: #c8bf9f; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { aspect-ratio: 16/12; }
  .hero-meta { gap: 18px; }
}

/* ----- Placeholders ----- */
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(184,144,47,0.10) 0 12px, rgba(184,144,47,0.18) 12px 24px),
    linear-gradient(135deg, #1d5740, #0c3d29);
  color: rgba(250,243,223,0.85);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  text-align: center; padding: 16px;
}
.img-placeholder.light {
  background:
    repeating-linear-gradient(135deg, rgba(184,144,47,0.12) 0 12px, rgba(184,144,47,0.22) 12px 24px),
    linear-gradient(135deg, #f4f0e6, #e8dfc8);
  color: var(--gold-dark);
}
.img-placeholder .label {
  background: rgba(0,0,0,0.35); padding: 6px 10px; border: 1px solid rgba(184,144,47,0.35); border-radius: 4px;
}
.img-placeholder.light .label { background: rgba(255,255,255,0.7); color: var(--gold-dark); border-color: rgba(184,144,47,0.5); }

/* ----- Section headers ----- */
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 760px; }
.section-head h2 em { font-style: italic; color: var(--emerald); font-weight: 400; }
.section-head .lead { color: var(--ink-soft); font-size: 17px; max-width: 60ch; }
.section-head .arabic-kicker { margin-bottom: -6px; }
.section-head.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }

/* ----- Cards ----- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 28px;
  transition: all .2s ease;
}
.card:hover { border-color: var(--gold-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-flat { box-shadow: none; }

/* Program card */
.prog-card { position: relative; padding: 0; overflow: hidden; }
.prog-card .pc-image { aspect-ratio: 4/3; }
.prog-card .pc-body { padding: 28px; }
.prog-card .pc-tag {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 8px;
}
.prog-card h3 { font-size: 28px; font-weight: 500; }
.prog-card h3 em { font-style: italic; color: var(--emerald); font-weight: 400; }
.prog-card .pc-desc { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }
.prog-card .pc-meta { display: flex; gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--hair-strong); font-size: 13px; }
.prog-card .pc-meta div .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-mute); text-transform: uppercase; }
.prog-card .pc-meta div .v { font-weight: 600; color: var(--ink); margin-top: 2px; }
.prog-card .pc-link { display: inline-flex; align-items: center; gap: 8px; color: var(--emerald); font-weight: 500; font-size: 14px; margin-top: 22px; }
.prog-card .pc-link svg { width: 14px; height: 14px; transition: transform .2s; }
.prog-card:hover .pc-link svg { transform: translateX(4px); }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hair); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.stat-cell { padding: 36px 28px; position: relative; }
.stat-cell + .stat-cell { border-left: 1px solid var(--hair); }
.stat-cell .n { font-family: var(--f-display); font-size: clamp(40px, 5vw, 64px); color: var(--emerald); line-height: 1; font-weight: 500; display: flex; align-items: baseline; }
.stat-cell .n .suf { font-size: 0.5em; color: var(--gold); margin-left: 4px; }
.stat-cell .l { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-mute); text-transform: uppercase; margin-top: 14px; }
.stat-cell .d { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }
.stat-cell::after { content: ""; position: absolute; top: 24px; right: 24px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); opacity: 0.5; }

@media (max-width: 880px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell + .stat-cell { border-left: 0; }
  .stat-cell:nth-child(n+2) { border-top: 1px solid var(--hair); }
  .stat-cell:nth-child(2) { border-top: 0; border-left: 1px solid var(--hair); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* News */
.news-card .nc-image { aspect-ratio: 16/10; border-radius: var(--r-sm); overflow: hidden; }
.news-card .nc-meta { display: flex; gap: 14px; align-items: center; margin-top: 18px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.news-card .nc-cat { color: var(--emerald); }
.news-card h3 { font-size: 22px; margin-top: 12px; }
.news-card h3 a:hover { color: var(--emerald); }
.news-card .nc-excerpt { color: var(--ink-soft); font-size: 14.5px; margin-top: 10px; }

/* Feature row */
.feature-row { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.feature-row:last-child { border-bottom: 0; }
.feature-row .fr-num {
  flex: 0 0 56px; font-family: var(--f-display); font-size: 22px; color: var(--gold); font-style: italic;
  border-right: 1px solid var(--hair-strong); padding-right: 16px; line-height: 1.2;
}
.feature-row h4 { font-size: 18px; font-weight: 600; font-family: var(--f-body); letter-spacing: 0; }
.feature-row p { color: var(--ink-soft); font-size: 14.5px; margin-top: 4px; }

/* Pill / chip */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--emerald-tint); color: var(--emerald); font-size: 12px; font-weight: 500; }
.chip.gold { background: var(--gold-tint); color: var(--gold-dark); }
.chip.outline { background: transparent; border: 1px solid var(--hair-strong); color: var(--ink-soft); }

/* ----- Footer ----- */
.site-footer { background: #0a2b1d; color: #c9c0a2; padding: 80px 0 0; margin-top: 64px; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 360' width='360' height='360'><g stroke='%23d9b75e' stroke-width='0.7' fill='none' stroke-linecap='square'><line x1='0' y1='140' x2='360' y2='140'/><line x1='220' y1='0' x2='220' y2='360'/><line x1='80' y1='0' x2='80' y2='140'/><line x1='0' y1='56' x2='220' y2='56'/><line x1='220' y1='240' x2='360' y2='240'/></g></svg>");
  background-size: 400px 400px;
}
.site-footer .foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px;
  position: relative;
}
.site-footer h4 { color: #f1ebd8; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 18px; font-weight: 500; }
.site-footer a { display: block; padding: 6px 0; color: #c9c0a2; font-size: 14px; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .foot-brand .wm-name { color: #f8f3e0; font-family: var(--f-display); font-size: 22px; line-height: 1.1; }
.site-footer .foot-brand p { font-size: 14px; margin-top: 16px; color: #b8b095; max-width: 36ch; }
.foot-social { display: flex; gap: 8px; margin-top: 22px; }
.foot-social a { width: 38px; height: 38px; border: 1px solid rgba(184,144,47,0.3); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.foot-social a:hover { background: var(--gold); color: #0a2b1d; border-color: var(--gold); }
.foot-pmb { background: linear-gradient(135deg, var(--emerald), var(--emerald-dark)); border: 1px solid rgba(184,144,47,0.35); padding: 24px; border-radius: var(--r-md); }
.foot-pmb h3 { font-family: var(--f-display); font-size: 22px; color: #faf3df; }
.foot-pmb p { font-size: 13.5px; color: #c8bf9f; margin: 10px 0 18px; }
.foot-bottom { border-top: 1px solid rgba(184,144,47,0.18); margin-top: 64px; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: #8a8270; position: relative; }
.foot-bottom a { display: inline-block; padding: 0 12px; }

@media (max-width: 880px) {
  .site-footer .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; gap: 12px; }
}

/* ----- Breadcrumb ----- */
.crumbs { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); padding: 20px 0; }
.crumbs a:hover { color: var(--emerald); }
.crumbs .sep { color: var(--gold); }
.crumbs .cur { color: var(--ink); }

/* ----- Sub-page hero ----- */
.subhero {
  background: var(--emerald-dark); color: #f1ebd8; padding: clamp(64px, 8vw, 120px) 0 clamp(48px, 6vw, 88px);
  position: relative; overflow: hidden;
}
.subhero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.20; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 360' width='360' height='360'><g stroke='%23d9b75e' stroke-width='0.7' fill='none' stroke-linecap='square'><line x1='0' y1='140' x2='360' y2='140'/><line x1='220' y1='0' x2='220' y2='360'/><line x1='80' y1='0' x2='80' y2='140'/><line x1='0' y1='56' x2='220' y2='56'/><line x1='220' y1='240' x2='360' y2='240'/></g></svg>");
  background-size: 480px 480px;
}
.subhero .inner { position: relative; display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 48px; align-items: end; }
.subhero h1 { color: #faf3df; font-weight: 500; }
.subhero h1 em { color: var(--gold-soft); font-style: italic; font-weight: 400; }
.subhero p.lead { color: #d6cdb1; font-size: 17px; max-width: 56ch; margin-top: 20px; }
.subhero .sh-side { display: flex; flex-direction: column; gap: 16px; }
.subhero .sh-side .arabic-kicker { color: var(--gold); font-size: 36px; text-align: right; }
@media (max-width: 880px) { .subhero .inner { grid-template-columns: 1fr; } .subhero .sh-side .arabic-kicker { text-align: left; } }

/* ----- Tabs ----- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hair); margin-bottom: 36px; flex-wrap: wrap; }
.tabs button { background: transparent; border: 0; padding: 14px 18px; font-size: 14px; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs button:hover { color: var(--emerald); }
.tabs button.is-active { color: var(--emerald); border-color: var(--gold); }

/* ----- Accordion / FAQ ----- */
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; }
.faq-q h4 { font-size: 18px; font-family: var(--f-body); font-weight: 600; }
.faq-q .pm { width: 22px; height: 22px; border: 1px solid var(--hair-strong); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--emerald); font-size: 14px; transition: transform .25s; }
.faq-item.is-open .pm { background: var(--emerald); color: #f8f3e0; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--ink-soft); font-size: 15px; }
.faq-item.is-open .faq-a { max-height: 400px; padding-bottom: 22px; }

/* ----- Pricing table ----- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.price-card { position: relative; padding: 32px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-md); }
.price-card.featured { border-color: var(--gold); box-shadow: var(--shadow-lg); background: linear-gradient(180deg, #fff 0%, #fdfbf3 100%); }
.price-card .pc-tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); }
.price-card h3 { margin-top: 8px; }
.price-card .price { font-family: var(--f-display); font-size: 44px; color: var(--emerald); line-height: 1.1; margin: 18px 0 6px; }
.price-card .price .sub { font-size: 14px; color: var(--ink-mute); font-family: var(--f-body); }
.price-list { margin-top: 22px; }
.price-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--hair); font-size: 14.5px; list-style: none; align-items: center; justify-content: space-between; }
.price-list li:last-child { border-bottom: 0; }
.price-list li .v { font-weight: 600; }
.featured-ribbon { position: absolute; top: -10px; right: 22px; background: var(--gold); color: #fff; padding: 4px 12px; border-radius: 4px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }

@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }

/* ----- Tables ----- */
table.dilwa { width: 100%; border-collapse: collapse; }
table.dilwa th, table.dilwa td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
table.dilwa thead th { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); background: var(--bg-warm); }
table.dilwa tbody tr:hover { background: var(--bg-warm); }
table.dilwa td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ----- Side rail (admin) ----- */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.app-rail { background: #0a2b1d; color: #c9c0a2; padding: 24px 18px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.app-rail .rb-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid rgba(184,144,47,0.18); margin-bottom: 18px; }
.app-rail .rb-brand .wm-name { color: #f8f3e0; font-family: var(--f-display); font-size: 16px; line-height: 1.1; }
.app-rail .rb-brand .wm-sub { color: #8a8270; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.18em; }
.app-rail h5 { color: #8a8270; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; margin: 22px 0 8px; font-weight: 500; }
.app-rail a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); color: #c9c0a2; font-size: 13.5px; }
.app-rail a:hover { background: rgba(184,144,47,0.08); color: #f8f3e0; }
.app-rail a.is-active { background: rgba(15,81,50,0.5); color: #f8f3e0; border-left: 2px solid var(--gold); padding-left: 10px; }
.app-rail a svg { width: 16px; height: 16px; opacity: 0.8; }
.app-main { background: var(--bg); padding: 24px 32px 80px; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 24px; border-bottom: 1px solid var(--hair); margin-bottom: 28px; }
.app-search { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #fff; border: 1px solid var(--hair); border-radius: 999px; width: min(360px, 50vw); }
.app-search input { border: 0; outline: 0; flex: 1; background: transparent; font: inherit; }

.kpi { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-md); padding: 22px; position: relative; }
.kpi .kl { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.kpi .kn { font-family: var(--f-display); font-size: 36px; color: var(--emerald); margin-top: 8px; line-height: 1; }
.kpi .kd { display: flex; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--ink-mute); }
.kpi .kd .up { color: var(--emerald); }
.kpi .kd .down { color: #b04a32; }
.kpi .ks { position: absolute; right: 18px; top: 18px; width: 80px; height: 28px; }

/* Mini-chart svg lines */
.sparkline path.line { fill: none; stroke: var(--emerald); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sparkline path.fill { fill: rgba(15,81,50,0.08); stroke: none; }

/* Tag */
.tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.tag.green { background: var(--emerald-tint); color: var(--emerald); }
.tag.gold { background: var(--gold-tint); color: var(--gold-dark); }
.tag.gray { background: var(--bg-warm); color: var(--ink-mute); }
.tag.red { background: #fbe9e3; color: #94381e; }

/* ----- Visi Misi blocks ----- */
.vm-block { display: grid; grid-template-columns: 100px 1fr; gap: 24px; padding: 28px; border: 1px solid var(--hair); border-radius: var(--r-md); background: #fff; }
.vm-block .vm-num { font-family: var(--f-display); font-size: 64px; color: var(--gold); font-style: italic; line-height: 1; }
.vm-block h3 { color: var(--emerald); }
.vm-block ol, .vm-block ul { margin: 16px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; }
.vm-block li { padding: 6px 0; }

/* ----- Org chart ----- */
.org-tree { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 32px; background: var(--bg-warm); border-radius: var(--r-md); position: relative; }
.org-node { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-md); padding: 16px 22px; text-align: center; min-width: 200px; box-shadow: var(--shadow-sm); position: relative; }
.org-node .role { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--gold-dark); text-transform: uppercase; }
.org-node .name { font-family: var(--f-display); font-size: 18px; margin-top: 4px; color: var(--ink); }
.org-node.lead { background: var(--emerald-dark); color: #f1ebd8; border-color: var(--emerald-dark); }
.org-node.lead .role { color: var(--gold-soft); }
.org-node.lead .name { color: #faf3df; }
.org-level { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; position: relative; }
.org-level::before { content: ""; position: absolute; top: -22px; left: 50%; width: 1px; height: 22px; background: var(--hair-strong); }

/* ----- Misc utility ----- */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.text-center { text-align: center; }
.text-mute { color: var(--ink-mute); }
.text-soft { color: var(--ink-soft); }
.text-emerald { color: var(--emerald); }
.text-gold { color: var(--gold-dark); }
.uppercase { text-transform: uppercase; }
.hidden-mobile { }
@media (max-width: 700px) { .hidden-mobile { display: none !important; } }
