/* ==========================================================================
   ACENG ALI — Digital Fundraising Specialist
   Main stylesheet (mobile-first)

   Table of contents
   01. Design tokens (light + dark theme)
   02. Base / reset
   03. Layout helpers
   04. Buttons, chips, links
   05. Header + mobile drawer
   06. Home hero + stats
   07. Section headings
   08. Home: impact, composition, sources, growth
   09. Campaign cards + filters
   10. Collaboration (icons, carousel, people)
   11. Certificates
   12. CTA banners
   13. Social posts
   14. Quran player
   15. Prayer schedule
   16. Connect buttons
   17. Footer
   18. Sub-page hero + sheet
   19. Edukasi page
   20. Program page extras (zakat calculator)
   21. Kerjasama page
   22. Kontak page (form, FAQ)
   23. Placeholder media (for photos that are not supplied yet)
   24. Modal, toast
   25. Motion + accessibility
   26. Larger screens (768 / 1024 / 1440)
   ========================================================================== */

/* 01. DESIGN TOKENS ---------------------------------------------------- */
:root {
  /* Brand palette (from the logo sheet) */
  --brand-ink: #302018;
  --brand-brown: #57392b;
  --brand-gold: #c89b3c;
  --brand-cream: #f6f2e9;

  /* Light theme (default) */
  --bg: #fbf8f3;
  --surface: #fffdf9;
  --surface-2: #f6f2e9;
  --surface-3: #efe8dc;
  --line: #ebe3d7;
  --text: #2a1c14;
  --text-2: #5c4e45;
  --muted: #85766b;
  --accent: #57392b;            /* buttons, active chips */
  --accent-strong: #46291d;
  --accent-text: #6b4430;       /* small text links ("Lihat Semua") */
  --gold-text: #b8862f;         /* large gold display text */
  --on-accent: #fffaf2;
  --sage: #5f7f50;              /* WhatsApp button */
  --badge-bg: #ecd9b4;
  --badge-text: #5a3b1d;
  --footer-bg: #3b251b;
  --footer-bg-2: #2a1912;
  --footer-text: #eadfce;
  --cta-bg: #4a2f22;
  --cta-bg-2: #6a4532;

  --shadow-sm: 0 1px 2px rgba(48, 32, 24, 0.05);
  --shadow: 0 1px 2px rgba(48, 32, 24, 0.04), 0 8px 22px rgba(48, 32, 24, 0.07);
  --shadow-lg: 0 18px 50px rgba(48, 32, 24, 0.16);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --font-sans: "Lato", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  --gutter: 20px;
  --container: 1180px;
  --header-h: 68px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 160ms;
  --med: 260ms;

  color-scheme: light;
}

/* Dark theme: same design, re-mapped tokens */
:root[data-theme="dark"] {
  --bg: #16100c;
  --surface: #211813;
  --surface-2: #2a1f18;
  --surface-3: #33261d;
  --line: #3b2d23;
  --text: #f5eee3;
  --text-2: #d2c5b6;
  --muted: #a8978a;
  --accent: #7a4d35;
  --accent-strong: #8c5a3f;
  --accent-text: #e0b766;
  --gold-text: #dcae55;
  --on-accent: #fff8ee;
  --sage: #5f7f50;
  --badge-bg: #4a3520;
  --badge-text: #f1d49b;
  --footer-bg: #110b08;
  --footer-bg-2: #0b0705;
  --footer-text: #e6dacb;
  --cta-bg: #2f1d14;
  --cta-bg-2: #4f3222;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 22px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}

/* 02. BASE ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--med) var(--ease), color var(--med) var(--ease);
}

img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* 03. LAYOUT ----------------------------------------------------------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }

.section { padding-block: 30px; }
.section + .section { border-top: 1px solid var(--line); }
.section--flush { border-top: 0 !important; }
.section--tight { padding-block: 22px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.stack-sm > * + * { margin-top: 8px; }

/* 04. BUTTONS / CHIPS / LINKS ----------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--block { display: flex; width: 100%; }

.btn--primary {
  background: linear-gradient(180deg, #6e4632 0%, var(--accent) 55%, var(--accent-strong) 100%);
  color: var(--on-accent);
  box-shadow: 0 6px 16px rgba(87, 57, 43, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn--primary:hover { box-shadow: 0 8px 22px rgba(87, 57, 43, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16); }

.btn--outline { background: var(--surface); color: var(--text); border-color: #cdbba8; }
.btn--outline:hover { border-color: var(--accent); background: var(--surface-2); }
:root[data-theme="dark"] .btn--outline { border-color: #5a4636; }

.btn--light { background: #fffaf3; color: #3a241a; box-shadow: var(--shadow-sm); }
.btn--light:hover { background: #fff; }

.btn--whatsapp { background: var(--sage); color: #fff; }
.btn--whatsapp:hover { background: #557447; }

.btn--sm, .btn--xs { white-space: nowrap; }
.btn--sm { min-height: 36px; padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }
.btn--xs { min-height: 30px; padding: 5px 10px; font-size: 12px; border-radius: 6px; gap: 5px; }
.btn--xs .icon { width: 13px; height: 13px; }

.link-more {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  font-size: 12.5px; color: var(--accent-text); font-weight: 600; padding: 6px 0;
}
.link-more .icon { width: 14px; height: 14px; transition: transform var(--fast) var(--ease); }
.link-more:hover .icon { transform: translateX(2px); }

.link-inline { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); font-weight: 700; font-size: 12.5px; }
.link-inline .icon { width: 13px; height: 13px; }

/* chips used as tabs / filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  min-height: 38px; padding: 7px 14px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background-color var(--fast), color var(--fast), border-color var(--fast);
}
.chip:hover { border-color: #cdbba8; }
.chip[aria-pressed="true"], .chip[aria-selected="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  box-shadow: 0 4px 12px rgba(87, 57, 43, 0.22);
}
.chips--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chips--grid .chip { width: 100%; }
.chips--certs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.chips--certs .chip { grid-column: span 2; }
.chips--certs .chip:nth-child(n+4) { grid-column: span 3; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  background: var(--badge-bg); color: var(--badge-text);
  font-size: 10.5px; font-weight: 700; line-height: 1.5;
}

/* 05. HEADER + DRAWER -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--med) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(48, 32, 24, 0.06); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand { display: inline-flex; align-items: center; }
.brand img { width: 128px; height: auto; }
.brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: block; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--fast), border-color var(--fast);
}
.icon-btn:hover { border-color: #cdbba8; }
.icon-btn--heart { color: var(--brand-brown); border-color: #e3d4c3; }
.icon-btn--heart .icon { fill: currentColor; stroke: none; width: 18px; height: 18px; }
:root[data-theme="dark"] .icon-btn--heart { color: var(--accent-text); }

.desktop-nav { display: none; }

/* Drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(23, 14, 9, 0.45);
  opacity: 0; visibility: hidden; transition: opacity var(--med) var(--ease), visibility var(--med);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(86vw, 340px);
  background: var(--surface); color: var(--text-2);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--med) var(--ease), visibility var(--med);
  display: flex; flex-direction: column;
  padding: 18px 20px 24px;
  overflow-y: auto;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer__top .brand img { width: 116px; }
.drawer__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
  color: var(--text); font-weight: 700; font-size: 16px;
}
.drawer__nav a .icon { color: var(--muted); width: 16px; height: 16px; }
.drawer__nav a[aria-current="page"] { color: var(--accent-text); }
.drawer__nav a[aria-current="page"]::after { content: none; }
.drawer__section-label { margin: 22px 0 10px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.theme-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
}
.theme-switch button {
  min-height: 40px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text-2);
}
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.drawer .btn { margin-top: 18px; }

/* 06. HOME HERO ------------------------------------------------------- */
.hero { position: relative; padding-top: 22px; overflow: hidden; }
.hero::before {               /* soft arch behind the portrait */
  content: ""; position: absolute; z-index: 0;
  right: -90px; top: 40px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--surface-3), transparent 72%);
  opacity: 0.9;
}
.hero__inner { position: relative; z-index: 1; min-height: 486px; }
.hero__text { position: relative; z-index: 2; width: 56%; }
.hero__hello { color: var(--gold-text); font-size: 16px; font-weight: 600; }
.hero__name { white-space: nowrap; font-size: clamp(38px, 11vw, 46px); font-weight: 900; letter-spacing: -0.025em; margin-top: 2px; }
.hero__name span { color: var(--gold-text); }
.hero__role { color: var(--text); font-weight: 700; font-size: 17px; line-height: 1.3; margin-top: 6px; }
.hero__lead { color: var(--text); font-weight: 700; font-size: 14.5px; line-height: 1.45; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero__desc { font-size: 12.5px; margin-top: 12px; color: var(--text-2); line-height: 1.6; }

.hero__photo {
  position: absolute; z-index: 1; right: calc(var(--gutter) * -1); bottom: 0;
  width: 62%; max-width: 440px;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
.hero__photo img { width: 100%; aspect-ratio: 0.66; object-fit: cover; object-position: 34% 0%; }

.stats-card {
  position: relative; z-index: 3; margin-top: -54px;
  display: grid; grid-template-columns: 0.9fr 1.15fr 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 6px;
}
.stats-card > div { padding-inline: 10px; }
.stats-card > div + div { border-left: 1px solid var(--line); }
.stats-card strong { display: block; color: var(--text); font-size: 20px; font-weight: 900; line-height: 1.12; }
.stats-card span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.3; }

.hero__ctas { display: grid; gap: 10px; margin-top: 18px; padding-bottom: 28px; }

/* 07. SECTION HEADINGS ----------------------------------------------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title { font-size: 20px; font-weight: 800; }
.section-title--lg { font-size: 22px; }
.section-desc { margin-top: 6px; font-size: 13px; color: var(--muted); max-width: 52ch; }
.section-body { margin-top: 18px; }

.section-icon-title { display: flex; align-items: center; gap: 10px; }
.section-icon-title .icon { width: 30px; height: 30px; color: var(--accent-text); stroke-width: 1.7; }

/* 08. HOME: IMPACT / COMPOSITION / SOURCES / GROWTH ------------------- */
.impact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 16px;
}
.impact-card .impact-icon { width: 30px; height: 30px; margin-bottom: 10px; }
.impact-card strong { display: block; color: var(--text); font-size: 18px; font-weight: 900; }
.impact-card span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.impact-card--wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.impact-card--wide .impact-icon { margin: 0; }
.impact-icon--gold { color: var(--brand-gold); }
.impact-icon--red { color: #c0392b; }
.impact-icon--sage { color: #6e8b5e; }
.impact-icon--brown { color: #9b6b3c; }

.composition { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 16px; }
.donut { position: relative; width: 100%; max-width: 190px; aspect-ratio: 1; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 22; }
.donut__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__label small { font-size: 11.5px; color: var(--muted); }
.donut__label strong { font-size: 19px; color: var(--text); font-weight: 900; line-height: 1.1; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); padding: 6px 0; }
.legend li b { margin-left: auto; color: var(--text); font-weight: 800; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

.source-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px; box-shadow: var(--shadow-sm); }
.source-card h3 { font-size: 14.5px; margin-bottom: 10px; }
.source-card li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 7px 0; color: var(--text-2); line-height: 1.3; }
.source-card li .icon { width: 17px; height: 17px; color: var(--accent-text); }

.growth { position: relative; display: flex; align-items: flex-end; gap: 56px; height: 180px; padding: 0 22px; border-bottom: 2px solid var(--line); margin-top: 18px; }
.growth__bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.growth__bar strong { color: var(--text); font-size: 16px; font-weight: 900; }
.growth__bar small { font-size: 11px; color: var(--muted); margin-top: -6px; }
.growth__bar i { display: block; width: 64px; border-radius: 4px 4px 0 0; transform-origin: bottom; }
.growth__bar--before i { height: 28%; background: #b39773; }
.growth__bar--after i { height: 72%; background: #6e8b5e; }
.growth__arrow { position: absolute; left: 112px; bottom: 58px; width: 54px; color: var(--brand-gold); }

/* 09. CAMPAIGN CARDS --------------------------------------------------- */
.campaign-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.campaign-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.campaign-card__media { position: relative; }
.campaign-card__media .media { aspect-ratio: 1 / 1; }
.campaign-card__body { display: flex; flex-direction: column; flex: 1; padding: 10px 10px 12px; }
.campaign-card .badge { position: relative; margin-top: -21px; align-self: flex-start; margin-bottom: 8px; }
.campaign-card h3 { font-size: 13.5px; font-weight: 800; line-height: 1.25; }
.campaign-card p { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; flex: 1; }
.campaign-card .link-inline { margin-top: 10px; }

/* Compact variant (program page: 3 per row on mobile) */
.campaign-card--compact .campaign-card__media .media { aspect-ratio: 6 / 5; }
.campaign-card--compact .campaign-card__body { padding: 8px 7px 9px; }
.campaign-card--compact h3 { font-size: 12px; }
.campaign-card--compact p { font-size: 10.5px; }
.campaign-card--compact .badge { font-size: 9px; padding: 1px 6px; margin-top: -19px; }
.platform {
  display: flex; align-items: center; gap: 5px; margin-top: 8px;
  padding: 4px 6px; border-radius: 5px; background: var(--surface-2);
  font-size: 10.5px; font-weight: 700; color: var(--text-2);
}
.platform__mark { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 8px; font-weight: 900; flex: none; }
.platform--kitabisa .platform__mark { background: #1aa37a; }
.platform--bmm .platform__mark { background: #2e8b57; border-radius: 3px; }
.campaign-card--compact .btn { margin-top: 8px; width: 100%; white-space: nowrap; font-size: 10.5px; padding: 4px 5px; gap: 3px; }
.campaign-card--compact .btn .icon { width: 11px; height: 11px; }

.is-hidden { display: none !important; }

.filter-group { scroll-margin-top: calc(var(--header-h) + 16px); }
.filter-reset { margin-top: 12px; }

/* 10. COLLABORATION ---------------------------------------------------- */
.partner-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
.partner-icons--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 16px; }
.partner-icons a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 11px; color: var(--text-2); line-height: 1.25; }
.partner-icons .icon { width: 26px; height: 26px; color: var(--accent-text); stroke-width: 1.6; }

.carousel { position: relative; margin-top: 20px; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__track .media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots button { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background-color var(--fast), width var(--fast); }
.dots button[aria-current="true"] { background: var(--accent); }
/* larger invisible hit area for dots */
.dots button { position: relative; }
.dots button::after { content: ""; position: absolute; inset: -9px; }

.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.person-card { border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.person-card .media { aspect-ratio: 3 / 4; border-radius: 0; }
.person-card p { padding: 7px 4px 8px; text-align: center; font-size: 11px; font-weight: 700; color: var(--text); line-height: 1.25; }

/* 11. CERTIFICATES ----------------------------------------------------- */
.cert-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cert-logos a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 92px; padding: 10px 4px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 11.5px; font-weight: 700; color: var(--text); text-align: center; line-height: 1.2;
}
.mono {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  font-weight: 900; font-size: 15px; color: #fff; letter-spacing: -0.02em;
}
.mono--udemy { background: #7c3aed; border-radius: 50%; }
.mono--rubrik { background: #1f1f1f; }
.mono--git { background: #7c3aed; border-radius: 50%; }
.mono--boleh { background: #3b6fd8; }
.mono--foz { background: #d6312b; }
.mono--lg { width: 44px; height: 44px; font-size: 19px; }

.cert-group { padding-block: 22px; border-top: 1px solid var(--line); }
.cert-group:first-of-type { border-top: 0; }
.cert-group__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cert-group__head h2 { font-size: 22px; }
.cert-group__count { margin-left: auto; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }

.cert-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 8px 8px 12px; }
.cert-card h3 { font-size: 13.5px; margin-top: 10px; line-height: 1.3; }
.cert-card .meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.cert-card .meta + .meta { margin-top: 6px; }
.cert-card .btn { margin-top: auto; font-size: 12.5px; padding-inline: 8px; }
.cert-card .meta:last-of-type { margin-bottom: 12px; }
.cert-card--row { flex-direction: row; gap: 14px; align-items: center; padding: 10px; }
.cert-card--row .cert-thumb { width: 46%; flex: none; }
.cert-card--row h3 { margin-top: 0; }
.cert-card--row .btn { margin-top: 8px; width: 100%; }

.cert-thumb {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, #f4effa, #ffffff 55%, #efe8f8);
  border: 1px solid var(--line); display: grid; place-content: center; text-align: center; padding: 10px;
}
.cert-thumb::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(87, 57, 43, 0.14); border-radius: 4px; }
.cert-thumb b { font-size: 10.5px; letter-spacing: 0.12em; color: #2d2a4a; text-transform: uppercase; }
.cert-thumb small { font-size: 9px; color: #6b6487; margin-top: 4px; }
.cert-thumb--dark { background: linear-gradient(135deg, #1d2450, #2b2f6b 60%, #1b1f45); }
.cert-thumb--dark b { color: #f2e7c9; }
.cert-thumb--dark small { color: #b9b4d8; }
.cert-thumb--teal { background: linear-gradient(135deg, #eef8f6, #ffffff 55%, #e1f2ee); }
.cert-thumb--gold { background: linear-gradient(135deg, #fbf3e3, #ffffff 55%, #f4e6c9); }
.cert-thumb .seal { position: absolute; right: 10px; bottom: 10px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3d68d, #c89b3c); }

/* 12. CTA BANNERS ------------------------------------------------------ */
.cta-banner {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cta-bg-2) 0%, var(--cta-bg) 60%);
  color: #f3e9dc; padding: 26px 20px;
  box-shadow: var(--shadow);
}
.cta-banner h2, .cta-banner h3 { color: #fff8ee; font-size: 21px; line-height: 1.22; }
.cta-banner p { color: #e7d9c8; font-size: 13px; margin-top: 10px; line-height: 1.55; }
.cta-banner__content { position: relative; z-index: 2; max-width: 66%; }
.cta-banner__actions { display: grid; gap: 10px; margin-top: 18px; }
.cta-banner__photo { position: absolute; z-index: 1; right: -36px; bottom: 0; width: 58%; max-width: 330px; }
.cta-banner__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 0; mask-image: linear-gradient(to right, transparent 0%, #000 34%); -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%); }
.cta-banner .btn--cta { background: linear-gradient(180deg, #7a4f39, #5d3a29); color: #fff6ea; border: 1px solid rgba(255, 255, 255, 0.28); }
.cta-banner--compact { padding: 22px 20px; }
.cta-banner--compact .cta-banner__content { max-width: 70%; }
.cta-banner__deco { position: absolute; z-index: 1; right: 0; top: 0; bottom: 0; width: 42%; opacity: 0.9; }
.cta-banner__deco .icon { position: absolute; right: 18px; bottom: 18px; width: 72px; height: 72px; color: rgba(255, 240, 215, 0.35); stroke-width: 1.2; }

/* 13. SOCIAL POSTS ----------------------------------------------------- */
.social-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.social-tabs .chip { width: 100%; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.post-tile { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; }
.post-tile .media { aspect-ratio: 4 / 5; border-radius: 0; }
.post-tile__caption {
  position: absolute; inset: auto 0 0 0; padding: 26px 8px 8px;
  background: linear-gradient(to top, rgba(26, 15, 10, 0.82), transparent);
  color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1.2;
}
.post-tile:has(.post-tile__caption) .media--placeholder span { display: none; }
.post-tile__views { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; font-weight: 700; }

/* 14. QURAN PLAYER ----------------------------------------------------- */
.quran-player {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); color: #fff7ec;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(200, 155, 60, 0.35), transparent 60%),
    linear-gradient(160deg, #7a5741 0%, #4b2f22 55%, #33201a 100%);
  padding: 20px 18px 16px; box-shadow: var(--shadow);
}
.quran-player::after {     /* decorative dome silhouette (abstract, not a photo) */
  content: ""; position: absolute; z-index: -1; right: -20px; bottom: 40px; width: 210px; height: 140px;
  border-radius: 110px 110px 0 0; background: rgba(255, 236, 205, 0.08);
}
.qp__title { font-size: 19px; font-weight: 700; line-height: 1.25; color: #fff7ec; }
.qp__track { font-size: 13px; color: #ead9c3; margin-top: 4px; min-height: 1.4em; }
.qp__status { font-size: 11.5px; color: #f1d49b; margin-top: 6px; }
.qp__progress { margin-top: 22px; }
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer;
  --pct: 0%;
}
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, #fff var(--pct), rgba(255, 255, 255, 0.3) var(--pct)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.3); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: #fff; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; margin-top: -5px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.qp__times { display: flex; justify-content: space-between; font-size: 11px; color: #ead9c3; font-variant-numeric: tabular-nums; }
.qp__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qp__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff7ec; transition: background-color var(--fast); }
.qp__btn:hover { background: rgba(255, 255, 255, 0.1); }
.qp__btn .icon { width: 22px; height: 22px; }
.qp__btn--play { width: 54px; height: 54px; background: #fffaf3; color: #3a241a; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.qp__btn--play:hover { background: #fff; }
.qp__btn--play .icon { width: 24px; height: 24px; }
.qp__volume { display: none; align-items: center; gap: 10px; margin-top: 8px; }
.qp__volume.is-open { display: flex; }
.qp__list { display: none; margin-top: 12px; max-height: 230px; overflow-y: auto; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.qp__list.is-open { display: block; }
.qp__list button { display: flex; width: 100%; gap: 10px; padding: 9px 4px; font-size: 13px; color: #f3e6d4; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.qp__list button span { width: 28px; color: #d8b979; font-variant-numeric: tabular-nums; }
.qp__list button[aria-current="true"] { color: #fff; font-weight: 800; }

/* 15. PRAYER SCHEDULE -------------------------------------------------- */
.prayer {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--bg));
  border-radius: var(--radius-lg); padding: 22px 16px 18px;
}
.prayer::after {
  content: ""; position: absolute; right: -40px; top: 10px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 155, 60, 0.14), transparent);
  pointer-events: none;
}
.prayer h2 { font-size: 21px; }
.prayer__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; position: relative; z-index: 1; }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap .icon { position: absolute; pointer-events: none; }
.select-wrap .icon:first-child { left: 12px; width: 16px; height: 16px; color: var(--text); }
.select-wrap .icon:last-child { right: 10px; width: 16px; height: 16px; color: var(--muted); }
.select {
  -webkit-appearance: none; appearance: none;
  min-height: 42px; padding: 8px 36px 8px 34px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; font-weight: 700; color: var(--text); box-shadow: var(--shadow-sm); max-width: 100%;
}
.prayer__date { font-size: 12.5px; color: var(--text); margin-top: 12px; font-weight: 600; }
.prayer__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 12px; position: relative; z-index: 1; }
.prayer__item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 2px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); text-align: center;
}
.prayer__item .icon { width: 20px; height: 20px; color: var(--brand-gold); }
.prayer__item small { font-size: 10.5px; color: var(--muted); }
.prayer__item b { font-size: 12.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.prayer__item.is-next { border-color: var(--brand-gold); }
.prayer__note { font-size: 11px; color: var(--muted); margin-top: 10px; }
.prayer__state { margin-top: 12px; padding: 12px; border-radius: 10px; border: 1px dashed #cdbba8; background: var(--surface); font-size: 12.5px; color: var(--text-2); }
.prayer__state strong { color: var(--text); }
.prayer__state .btn { margin-top: 10px; }

/* 16. CONNECT ---------------------------------------------------------- */
.connect-list { display: grid; gap: 10px; margin-top: 16px; }
.connect-list .btn { justify-content: flex-start; gap: 14px; min-height: 48px; padding-inline: 16px; }
.connect-list .icon { width: 22px; height: 22px; }
.btn--linkedin { background: var(--surface); color: var(--text); border-color: #cdbba8; }
.btn--linkedin .brand-in { background: #0a66c2; color: #fff; border-radius: 4px; width: 24px; height: 24px; display: grid; place-items: center; }
.btn--linkedin .brand-in .icon { width: 16px; height: 16px; stroke-width: 2.4; }

/* 17. FOOTER ----------------------------------------------------------- */
.site-footer {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 60% at 50% 120%, #5a3a2a 0%, transparent 60%), linear-gradient(180deg, var(--footer-bg), var(--footer-bg-2));
  color: var(--footer-text); text-align: center;
  padding: 40px 0 26px; margin-top: 0;
}
.site-footer .brand img { width: 170px; margin-inline: auto; }
.site-footer__tagline { margin: 16px auto 0; max-width: 34ch; font-size: 13.5px; line-height: 1.6; color: #e9ddcd; }
.site-footer__tagline strong { display: block; color: #fff8ee; font-size: 14.5px; margin-bottom: 4px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 10px 40px; margin-top: 24px; }
.footer-nav a { font-size: 13.5px; color: #f2e8db; padding: 4px 2px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-connect { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer-connect__label { font-size: 11px; letter-spacing: 0.22em; color: #e6d8c6; font-weight: 700; }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; background: #fffaf3; color: #2f1d14; display: grid; place-items: center; transition: transform var(--fast) var(--ease); }
.footer-social a:hover { transform: translateY(-2px); }
.footer-social .icon { width: 21px; height: 21px; stroke-width: 2; }
.footer-copy { margin-top: 18px; font-size: 12px; color: #cdbdaa; }
.back-to-top {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 6px 16px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35); color: #f8eee1; font-size: 13px; font-weight: 700;
}
.back-to-top:hover { background: rgba(255, 255, 255, 0.08); }
.back-to-top .icon { width: 15px; height: 15px; }

/* Floating back-to-top button (appears after scrolling) */
.fab-top {
  position: fixed; right: 16px; bottom: 18px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
}
.fab-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* 18. SUB-PAGE HERO + SHEET -------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding-top: 50px; min-height: 380px; }
.page-hero::before {
  content: ""; position: absolute; right: -70px; top: -10px; width: 330px; height: 420px;
  border-radius: 170px 170px 0 0; background: var(--surface-3); opacity: 0.75;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__text { width: 62%; }
.page-hero h1 { white-space: nowrap; font-size: clamp(36px, 10.4vw, 46px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; }
.page-hero h1 span { display: block; color: var(--gold-text); }
.page-hero h1 span.is-sub { font-size: 0.74em; margin-top: 4px; }
.page-hero__lead { color: var(--text); font-weight: 600; font-size: 16px; line-height: 1.4; margin-top: 12px; }
.page-hero__desc { font-size: 13px; color: var(--text-2); margin-top: 14px; line-height: 1.6; }
.page-hero__script {
  position: absolute; z-index: 2; right: 20px; top: 22px;
  font-family: var(--font-script); font-size: 22px; line-height: 1.05; color: #8a6a4f;
  transform: rotate(-12deg); text-align: center;
}
:root[data-theme="dark"] .page-hero__script { color: #cfb08c; }
.page-hero__photo { position: absolute; z-index: 1; right: -30px; bottom: 0; width: 56%; max-width: 360px; }
.page-hero__photo img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: 50% 0; }

.sheet {
  position: relative; z-index: 3; margin-top: -26px;
  background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding-top: 18px; box-shadow: 0 -10px 30px rgba(48, 32, 24, 0.06);
}
.sheet-wrap { background: var(--surface); }

/* 19. EDUKASI ---------------------------------------------------------- */
.feature-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.feature-chips li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 12px 4px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); font-size: 11px; line-height: 1.25; color: var(--text-2);
}
.feature-chips .icon { width: 22px; height: 22px; color: var(--accent-text); stroke-width: 1.6; }

.ebook-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 14px; box-shadow: var(--shadow-sm); }
.ebook-card h3 { font-size: 14.5px; margin-top: 12px; line-height: 1.25; }
.ebook-card p { font-size: 12px; color: var(--muted); margin-top: 5px; flex: 1; line-height: 1.45; }
.ebook-card .btn { margin-top: 14px; }

/* Typographic book covers (replace with real cover images when available) */
.cover {
  position: relative; aspect-ratio: 3 / 4; border-radius: 4px 8px 8px 4px; overflow: hidden;
  padding: 16px 12px 12px 18px; display: flex; flex-direction: column;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.12), 0 8px 18px rgba(48, 32, 24, 0.18);
  font-weight: 900; line-height: 1.02; letter-spacing: -0.01em;
}
.cover__title { font-size: clamp(13px, 4.1vw, 17px); text-transform: uppercase; overflow-wrap: anywhere; hyphens: auto; }
.cover__sub { font-size: 9.5px; font-weight: 600; margin-top: 8px; letter-spacing: 0; line-height: 1.3; opacity: 0.85; }
.cover__author { margin-top: auto; font-size: 8.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.cover--violet { background: linear-gradient(160deg, #ffffff 0%, #ece8f6 60%, #d9d0ef 100%); color: #2c2366; }
.cover--brown { background: linear-gradient(160deg, #6b4a37, #3d281d); color: #f6ead6; }
.cover--green { background: linear-gradient(160deg, #3f6b4a, #24402c); color: #f0f5ea; }
.cover--cream { background: linear-gradient(160deg, #f7f0e2, #e9dcc4); color: #2e2017; }
.cover--blue { background: linear-gradient(160deg, #f2f6fb, #dbe6f3); color: #233a7a; }
.cover--sand { background: linear-gradient(160deg, #efe5d3, #d8c6a6); color: #2e2017; }

.course-list { display: grid; gap: 12px; }
.course-item {
  display: grid; grid-template-columns: 46% 1fr; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow-sm);
}
.course-item h3 { font-size: 14.5px; line-height: 1.25; }
.course-item p { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.course-item .btn { margin-top: 12px; width: 100%; }
.thumb {
  position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius-sm); overflow: hidden;
  display: flex; align-items: center; padding: 10px; color: #2c2366;
}
.thumb__title { position: relative; z-index: 1; font-weight: 900; font-size: clamp(11.5px, 3.4vw, 15px); line-height: 1.02; text-transform: uppercase; max-width: 64%; overflow-wrap: anywhere; }
.thumb__time { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.thumb__time .icon { width: 10px; height: 10px; }
.thumb__play { position: absolute; right: 30%; top: 50%; transform: translate(50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: #2a1c14; display: grid; place-items: center; }
.thumb__play .icon { width: 14px; height: 14px; }
.thumb--violet { background: linear-gradient(120deg, #fff 0%, #ede8f8 55%, #8e69d6 100%); color: #3b1f8a; }
.thumb--brown { background: linear-gradient(120deg, #6b4a37, #3d281d); color: #f3c76f; }
.thumb--green { background: linear-gradient(120deg, #e8f2ea, #cfe3d3); color: #1d5a35; }
.thumb--sage { background: linear-gradient(120deg, #eef3ea, #dbe7d6); color: #1d5a35; }
.thumb--cream { background: linear-gradient(120deg, #f7f2ea, #e8e2d8); color: #1f2f6a; }
.thumb--dark { background: linear-gradient(120deg, #5a3a2a, #2f1d14); color: #fff2dc; }

/* 20. PROGRAM: ZAKAT CALCULATOR CARD ---------------------------------- */
.zakat-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px;
}
.zakat-card__head { display: flex; gap: 14px; align-items: flex-start; }
.zakat-card__icon { width: 46px; height: 46px; border-radius: 10px; background: #c89b3c; color: #fff; display: grid; place-items: center; flex: none; }
.zakat-card__icon .icon { width: 26px; height: 26px; }
.zakat-card h2 { font-size: 20px; }
.zakat-card p { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.zakat-card .btn { margin-top: 16px; width: 70%; }
.zakat-card__deco { position: absolute; right: -14px; bottom: -14px; width: 120px; height: 120px; color: rgba(87, 57, 43, 0.1); }

.calc-form { display: grid; gap: 12px; }
.calc-result { margin-top: 14px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; }
.calc-result strong { display: block; color: var(--text); font-size: 20px; margin-top: 4px; }

/* 21. KERJASAMA -------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cat-grid button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 70px; padding: 8px 4px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 12px; font-weight: 600; color: var(--text); text-align: center; line-height: 1.2;
  transition: background-color var(--fast), color var(--fast);
}
.cat-grid .icon { width: 24px; height: 24px; color: var(--accent-text); }
.cat-grid button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cat-grid button[aria-pressed="true"] .icon { color: var(--on-accent); }

.partner-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.partner-card .media { aspect-ratio: 16 / 10; border-radius: 0; }
.partner-card__body { display: flex; flex-direction: column; flex: 1; padding: 10px 10px 12px; }
.partner-card h3 { font-size: 14px; }
.partner-card p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; flex: 1; }
.partner-card .btn { margin-top: 12px; }

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex; width: 100%; align-items: center; gap: 14px; padding: 14px 2px; text-align: left;
  font-size: 16px; font-weight: 700; color: var(--text);
}
.accordion__trigger > .icon:first-child { width: 26px; height: 26px; color: var(--accent-text); }
.accordion__trigger .chev { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform var(--med) var(--ease); }
.accordion__trigger[aria-expanded="true"] .chev { transform: rotate(90deg); }
.accordion__panel { overflow: hidden; height: 0; transition: height var(--med) var(--ease); }
.accordion__panel > div { padding: 0 2px 16px 40px; font-size: 13px; color: var(--text-2); }
.accordion--faq .accordion__trigger { font-size: 13.5px; font-weight: 600; padding: 13px 2px; }
.accordion--faq .accordion__panel > div { padding-left: 2px; }

.proposal-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 30%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.proposal-scroll > * { scroll-snap-align: start; }
.proposal { text-align: center; font-size: 11px; color: var(--text-2); line-height: 1.3; }
.proposal .cover { aspect-ratio: 3 / 4; padding: 10px 8px; margin-bottom: 8px; }
.proposal .cover__title { font-size: 12px; text-transform: none; }

/* 22. KONTAK ----------------------------------------------------------- */
.contact-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; }
.contact-trio a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-2); line-height: 1.35; word-break: break-word; }
.contact-trio .circle { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin-top: -40px; border: 4px solid var(--surface); box-shadow: var(--shadow-sm); }
.contact-trio .circle .icon { width: 24px; height: 24px; stroke-width: 2; }
.contact-trio b { color: var(--text); font-size: 14.5px; margin-top: 4px; }

.info-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.info-card__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--accent-text); flex: none; }
.info-card__icon .icon { width: 28px; height: 28px; }
.info-card h2, .info-card h3 { font-size: 15px; }
.info-card p { font-size: 13px; margin-top: 4px; }

.social-block { padding-block: 16px; border-top: 1px solid var(--line); }
.social-block:first-of-type { border-top: 0; padding-top: 8px; }
.social-block__head { display: flex; align-items: center; gap: 12px; }
.social-block__head > .icon-wrap { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.social-block__head h3 { font-size: 16px; }
.social-block__head small { font-size: 12px; color: var(--muted); }
.social-block__head > a:last-child { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; color: var(--text); }
.icon-wrap--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.icon-wrap--tt { background: #111; }
.icon-wrap--li { background: #0a66c2; }

.collab-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.collab-types li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 14px 4px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 12.5px; color: var(--text); line-height: 1.3; }
.collab-types .icon { width: 26px; height: 26px; color: var(--accent-text); }

.form { display: grid; gap: 16px; margin-top: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field label .req { color: #b4452f; margin-left: 2px; }
.input, .textarea, .form .select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  background: var(--surface); border: 1px solid #d9ccbd; border-radius: 8px;
  font-size: 15px; color: var(--text); transition: border-color var(--fast), box-shadow var(--fast);
}
:root[data-theme="dark"] .input, :root[data-theme="dark"] .textarea, :root[data-theme="dark"] .form .select { border-color: #4a392c; }
.form .select { padding-left: 12px; font-weight: 400; font-size: 15px; }
.form .select-wrap { display: flex; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #a29385; }
.input:focus, .textarea:focus, .form .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.28); }
.field__hint { display: flex; justify-content: flex-end; font-size: 12px; color: var(--muted); margin-top: 4px; }
.field__error { font-size: 12px; color: #b4452f; margin-top: 4px; min-height: 0; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: #b4452f; }
.form-status { font-size: 13px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); color: var(--text); }

.location-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.location-card > .icon { width: 30px; height: 30px; color: var(--accent-text); }
.location-card h3 { font-size: 16px; }
.location-card p { font-size: 12.5px; color: var(--muted); }
.location-card .btn { margin-left: auto; }

.faq-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.faq-card .info-card__icon { background: #c89b3c; color: #fff; width: 40px; height: 40px; }
.faq-card .info-card__icon .icon { width: 22px; height: 22px; }

/* 23. PLACEHOLDER MEDIA ------------------------------------------------ */
/* Used wherever original photography has not been supplied yet.
   Replace <div class="media media--placeholder"> with a real <img class="media"> */
.media { position: relative; display: block; width: 100%; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); }
img.media { object-fit: cover; }
.media--placeholder {
  display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 8px;
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(87, 57, 43, 0.04) 10px 20px),
    linear-gradient(160deg, var(--surface-2), var(--surface-3));
  color: var(--muted);
}
.media--placeholder .icon { width: 22px; height: 22px; opacity: 0.7; }
.media--placeholder span { font-size: 10px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.25; }
.media--placeholder.media--dark { background: linear-gradient(160deg, #6a4532, #3a241a); color: #e8d6bf; }
.media--initials b { font-size: 22px; color: var(--accent-text); font-weight: 900; }

/* 24. MODAL + TOAST ---------------------------------------------------- */
.modal {
  width: min(100% - 32px, 520px); max-height: min(86vh, 720px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text-2); box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(23, 14, 9, 0.55); }
.modal[open] { animation: modal-in var(--med) var(--ease); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal__head h2 { font-size: 17px; }
.modal__body { padding: 18px; font-size: 14px; }
.modal__body .media { aspect-ratio: 16 / 10; margin-bottom: 14px; }
.modal__body p + p { margin-top: 10px; }
.modal__meta { font-size: 12.5px; color: var(--muted); }
.modal__actions { display: grid; gap: 10px; margin-top: 16px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 300;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 10px;
  background: #2a1c14; color: #fff7ec; font-size: 13.5px; box-shadow: var(--shadow-lg);
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.pending-note { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; color: #9a6a1c; background: #fbefd6; border-radius: 4px; padding: 2px 6px; }
:root[data-theme="dark"] .pending-note { background: #4a3520; color: #f1d49b; }

/* 25. MOTION + ACCESSIBILITY ------------------------------------------ */
:focus-visible { outline: 3px solid #c89b3c; outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .chip:focus-visible { outline-offset: 3px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* Small phones (360 and below) */
@media (max-width: 374px) {
  :root { --gutter: 16px; }
  .hero__text { width: 60%; }
  .hero__name { font-size: 36px; }
  .stats-card strong { font-size: 17px; }
  .stats-card > div { padding-inline: 7px; }
  .grid-3 { gap: 6px; }
  .footer-nav { gap: 10px 26px; }
  .partner-icons a { font-size: 10px; }
}

/* 26. LARGER SCREENS --------------------------------------------------- */
@media (min-width: 600px) {
  .hero__inner { min-height: 560px; }
  .hero__photo { width: 50%; }
  .page-hero { min-height: 420px; }
  .page-hero__photo { width: 46%; }
  .page-hero__script { right: 34%; }
  .cta-banner__content { max-width: 58%; }
  .cta-banner__actions { grid-template-columns: repeat(2, max-content); }
  .carousel__track { grid-auto-columns: 48%; }
  .proposal-scroll { grid-auto-columns: 22%; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 74px; }
  body { font-size: 16px; }
  .brand img { width: 150px; }
  .section { padding-block: 46px; }
  .section-title { font-size: 26px; }
  .section-desc { font-size: 15px; }
  .hero { padding-top: 48px; }
  .hero__inner { min-height: 600px; }
  .hero__text { width: 52%; }
  .hero__name { font-size: 60px; }
  .hero__role { font-size: 22px; }
  .hero__lead { font-size: 18px; }
  .hero__desc { font-size: 15px; max-width: 46ch; }
  .hero__photo { width: 44%; max-width: 500px; right: 0; }
  .hero__photo img { aspect-ratio: 0.82; }
  .stats-card { max-width: 640px; padding: 20px 8px; }
  .stats-card strong { font-size: 26px; }
  .stats-card span { font-size: 13px; }
  .hero__ctas { grid-template-columns: repeat(2, max-content); }
  .hero__ctas .btn { min-width: 220px; }

  .grid-2 { gap: 16px; }
  .grid-3 { gap: 14px; }
  .grid-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-md-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .campaign-card--compact h3 { font-size: 14.5px; }
  .campaign-card--compact p { font-size: 12.5px; }
  .campaign-card--compact .campaign-card__body { padding: 12px; }
  .impact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .impact-card--wide { grid-column: span 4; }
  .composition { grid-template-columns: 240px 1fr; max-width: 640px; }
  .donut { max-width: 240px; }
  .partner-icons, .partner-icons--5 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .partner-icons--5 { margin-top: 0; }
  .partner-icons-wrap { display: grid; grid-template-columns: 4fr 5fr; gap: 6px; }
  .partner-icons-wrap .partner-icons { grid-template-columns: repeat(4, 1fr); }
  .partner-icons-wrap .partner-icons--5 { grid-template-columns: repeat(5, 1fr); }
  .carousel__track { grid-auto-columns: 32%; }
  .people { gap: 14px; }
  .cert-logos { gap: 14px; }
  .cta-banner { padding: 40px 36px; }
  .cta-banner h2, .cta-banner h3 { font-size: 30px; }
  .cta-banner p { font-size: 15px; }
  .cta-banner__photo { right: 0; width: 44%; }
  .prayer { padding: 28px 24px; }
  .prayer__item { padding: 14px 4px; }
  .prayer__item b { font-size: 15px; }
  .page-hero { padding-top: 70px; min-height: 480px; }
  .page-hero h1 { font-size: 64px; }
  .page-hero__lead { font-size: 20px; }
  .page-hero__desc { font-size: 15px; max-width: 46ch; }
  .page-hero__script { font-size: 30px; right: 40%; top: 36px; }
  .page-hero__text { width: 55%; }
  .chips--grid { grid-template-columns: repeat(6, max-content); }
  .feature-chips li { font-size: 13px; padding: 16px 8px; }
  .course-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .footer-nav { grid-template-columns: repeat(6, auto); gap: 10px 28px; }
  .post-grid { max-width: 760px; }
  .campaign-card__media .media { aspect-ratio: 4 / 3; }
  .carousel__track .media { aspect-ratio: 16 / 10; }
  .connect-list { max-width: 520px; }
  .social-tabs { max-width: 520px; }
  .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }
  .cert-card--row { max-width: 560px; }
  .zakat-card .btn { width: auto; min-width: 260px; }
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; align-items: center; gap: 4px; }
  .desktop-nav a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 700; color: var(--text-2); }
  .desktop-nav a:hover { color: var(--text); background: var(--surface-2); }
  .desktop-nav a[aria-current="page"] { color: var(--accent-text); }
  .hero__inner { min-height: 640px; }
  .hero__name { font-size: 72px; }
  .home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
  .home-split > .section + .section { border-top: 0; }
  .home-split > .section { border-top: 1px solid var(--line); }
  .grid-lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-lg-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(4, minmax(0, 180px)); }
  .page-hero h1 { font-size: 76px; }
  .page-hero__photo { width: 40%; right: 4%; }
  .page-hero::before { right: 2%; width: 420px; height: 500px; border-radius: 210px 210px 0 0; }
  .course-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .course-item { grid-template-columns: 1fr; }
  .proposal-scroll { grid-auto-columns: 1fr; grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; }
  .bottom-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
  .bottom-split > .section { border-top: 0; }
}

@media (min-width: 1440px) {
  :root { --container: 1240px; }
}
