/*
  Tema Imam Al-Kisa'i: gaya tampilan
  - Palet: Main #008CBF & #004D5D, Secondary #FFCD50 & #FFFFFF, canvas putih (lihat :root).
    Emas tidak dipakai sebagai teks di atas putih (kontras 1,5:1). Netral & tint untuk permukaan.
  - Font: DM Serif Display (judul) dan Inter (teks).
  - Motif: jendela lengkung (mihrab) berisi pola geometris.
  - Prinsip: minimalis dan bersih. Ruang kosong lega, satu aksen per area,
    tanpa garis atau bayangan yang tidak perlu.
  Mobile-first: gaya dasar untuk ponsel, lalu diperluas dengan min-width.
*/

/* ---------- 1. Token ---------- */
:root {
  --color-primary: #008CBF;     /* Main: Blue */
  --color-primary-strong: #00739A; /* Biru tombol: teks putih 5,36:1 (lolos AA) */
  --color-dark: #004D5D;        /* Main: Dark Teal */
  --color-accent: #FFCD50;      /* Secondary: Gold */
  --color-background: #FFFFFF;  /* Canvas */
  --color-white: #FFFFFF;       /* Secondary: White */
  --color-surface: #F3F6F7;     /* Netral: kartu & section selang-seling */

  --color-ink: #1F2B2D;
  --color-muted: #566366;
  --tint-teal: rgba(0, 77, 93, .07);
  --tint-teal-strong: rgba(0, 77, 93, .12);
  --tint-blue: rgba(0, 140, 191, .09);
  --tint-gold: rgba(255, 205, 80, .3);
  --color-line: rgba(0, 77, 93, .12);
  --color-on-dark: rgba(255, 255, 255, .86);
  --color-on-dark-muted: rgba(255, 255, 255, .7);
  --color-line-on-dark: rgba(255, 255, 255, .16);

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-arabic: "Geeza Pro", "Noto Naskh Arabic", "Traditional Arabic", "Arabic Typesetting", serif;

  --text-sm: .875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --h1: clamp(2.5rem, 1.5rem + 3.4vw, 4.25rem);
  --h1-page: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  --h2: clamp(1.875rem, 1.45rem + 1.6vw, 2.625rem);
  --h3: clamp(1.375rem, 1.25rem + .45vw, 1.625rem);

  --max: 1160px;
  --narrow: 740px;
  --gutter: 16px;
  --section-y: clamp(72px, 5rem + 3vw, 128px);
  --header-h: 68px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --arch-w: clamp(280px, 28vw, 400px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow-soft: 0 18px 40px -24px rgba(0, 77, 93, .35);
  --pattern: url("../img/hero-pattern.jpg");

  /* Ikon garis (SVG) sebagai mask, mengikuti currentColor */
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
  --i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16.4v2.8a1.9 1.9 0 0 1-2.1 1.9A18.6 18.6 0 0 1 2.9 5.1 1.9 1.9 0 0 1 4.8 3h2.8a1.9 1.9 0 0 1 1.9 1.6c.1.9.4 1.8.7 2.6a1.9 1.9 0 0 1-.4 2L8.6 10.4a15 15 0 0 0 5 5l1.2-1.2a1.9 1.9 0 0 1 2-.4c.8.3 1.7.6 2.6.7a1.9 1.9 0 0 1 1.6 1.9z'/%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E");
  --i-camera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.3' cy='6.7' r='.4'/%3E%3C/svg%3E");
  --i-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 5 7 4.5 3 5v13c4-.5 7 0 9 1.5 2-1.5 5-2 9-1.5V5c-4-.5-7 0-9 1.5z'/%3E%3Cpath d='M12 6.5v13'/%3E%3C/svg%3E");
  --i-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 21h19'/%3E%3Cpath d='M4.5 21v-9h15v9'/%3E%3Cpath d='M7 12a5 5 0 0 1 10 0'/%3E%3Cpath d='M12 3.5V7'/%3E%3Cpath d='M10 21v-3.5a2 2 0 0 1 4 0V21'/%3E%3C/svg%3E");
}

@media (min-width: 620px) { :root { --gutter: 24px; } }
@media (min-width: 1080px) { :root { --gutter: 32px; --header-h: 76px; } }

/* ---------- 2. Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
ul, ol { margin: 0; }

h1, h2, h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-dark);
  text-wrap: balance;
}
h1 { font-size: var(--h1); line-height: 1.06; letter-spacing: -.01em; }
h2 { font-size: var(--h2); line-height: 1.12; letter-spacing: -.005em; }
h3 { font-size: var(--h3); line-height: 1.22; }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.container--narrow { width: min(var(--narrow), 100% - var(--gutter) * 2); }
.container--wide { width: min(1000px, 100% - var(--gutter) * 2); }

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--color-dark);
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.nowrap { white-space: nowrap; }
.muted { color: var(--color-muted) !important; }
.small { font-size: var(--text-sm); }

.eyebrow {
  margin: 0 0 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.5;
  color: var(--color-dark);
}

.arabic-label {
  margin: 0 0 6px;
  font-family: var(--font-arabic);
  font-size: 1.75rem;
  line-height: 1.5;
  color: var(--color-primary);
}

.pill {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-dark);
  text-decoration: none;
  background: var(--tint-blue);
  border-radius: 999px;
}

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--color-line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
/* Di layar kecil bilah admin WordPress ikut tergulir, jadi header tidak perlu memberi jarak. */
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.nav-wrap {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 12px;
}
.brand-mark {
  width: 40px;
  height: 46px;
  display: grid;
  place-items: center;
  padding-top: 4px;
  background: var(--color-dark);
  color: var(--color-accent);
  font-family: var(--font-arabic);
  font-size: 24px;
  line-height: 1;
  border-radius: 20px 20px 6px 6px;
}
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-name strong, .brand-name small { display: block; }
.brand-name strong { font-size: 1rem; font-weight: 600; line-height: 1.25; color: var(--color-dark); }
.brand-name small {
  margin-top: 2px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.3;
  color: var(--color-muted);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-right: -6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.menu-toggle:hover { background: var(--tint-teal); }
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100dvh - var(--header-h) - 24px);
  overflow-y: auto;
  padding: 10px;
  background: var(--color-white);
  border-radius: var(--r-md);
  box-shadow: 0 24px 48px -16px rgba(0, 77, 93, .28);
}
.main-nav.open { display: flex; animation: menu-in .26s var(--ease); }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.main-nav a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.main-nav a:hover { color: var(--color-dark); background: var(--tint-teal); }
.main-nav a.active { color: var(--color-dark); font-weight: 600; background: var(--tint-blue); }

@media (min-width: 1080px) {
  .menu-toggle { display: none; }
  .main-nav, .main-nav.open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    animation: none;
  }
  .main-nav a {
    min-height: 40px;
    padding: 0 13px;
    font-size: .9375rem;
    white-space: nowrap;
    border-radius: 999px;
  }
}

/* ---------- 4. Tombol & tautan ---------- */
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(.98); }
.button[disabled], .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }

.button-primary { background: var(--color-primary-strong); color: var(--color-white); }
.button-primary:hover { background: var(--color-dark); }
.button-gold { background: var(--color-accent); color: var(--color-dark); }
.button-gold:hover { background: var(--color-white); }
.button-outline { background: transparent; color: var(--color-dark); border-color: rgba(0, 77, 93, .3); }
.button-outline:hover { background: var(--color-dark); border-color: var(--color-dark); color: var(--color-white); }

.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--color-primary);
  transition: color .2s var(--ease), gap .25s var(--ease);
}
.text-link:hover { border-bottom-color: var(--color-dark); gap: 13px; }

/* ---------- 5. Ikon ---------- */
.feature-icon, .contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  color: var(--color-dark);
  background: var(--tint-teal);
  border-radius: 14px;
}
.feature-icon::before, .contact-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-pin { --icon: var(--i-pin); }
.icon-phone { --icon: var(--i-phone); }
.icon-mail { --icon: var(--i-mail); }
.icon-camera { --icon: var(--i-camera); }
.icon-book { --icon: var(--i-book); }
.icon-building { --icon: var(--i-building); }

/* ---------- 6. Hero beranda ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-background);
}
.hero::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  left: 50%;
  bottom: -220px;
  transform: translateX(-50%);
  background: var(--tint-blue);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; padding-block: 48px 48px; }
.hero-arabic {
  margin: 0 0 14px;
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--color-primary);
}
.hero-label {
  margin: 0 0 16px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--color-muted);
}
.hero h1 { max-width: 19ch; margin: 0 0 22px; }
.hero-copy { font-size: var(--text-lg); font-weight: 500; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 28px;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.dot { color: var(--color-accent); font-size: 1.2em; line-height: 1; }

/* Jendela lengkung: pola geometris, atau foto bila admin memasangnya */
.hero-arch {
  position: relative;
  z-index: 1;
  order: 2;
  width: min(100% - var(--gutter) * 2, 300px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background: var(--pattern) center / 520px auto repeat;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch::after {
  content: "";
  position: absolute;
  inset: 12px 12px 0;
  border: 1.5px solid var(--color-accent);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.hero-arch--photo::after { border-color: rgba(255, 255, 255, .85); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes arch-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-content > * { animation: rise .7s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .05s; }
.hero-content > :nth-child(3) { animation-delay: .1s; }
.hero-content > :nth-child(4) { animation-delay: .16s; }
.hero-content > :nth-child(5) { animation-delay: .22s; }
.hero-content > :nth-child(6) { animation-delay: .28s; }
.hero-arch { animation: arch-in .9s .12s var(--ease) both; }

@media (min-width: 900px) {
  .hero { display: block; min-height: 620px; }
  .hero::before {
    width: 600px;
    height: 600px;
    left: auto;
    bottom: -240px;
    right: calc(max(var(--gutter), (100% - var(--max)) / 2) + var(--arch-w) / 2 - 300px);
    transform: none;
  }
  .hero-content { padding-block: 112px 128px; padding-right: calc(var(--arch-w) + 64px); }
  .hero-arch {
    position: absolute;
    top: 64px;
    bottom: 0;
    right: max(var(--gutter), (100% - var(--max)) / 2);
    width: var(--arch-w);
    aspect-ratio: auto;
    margin: 0;
  }
}

/* ---------- 7. Hero halaman dalam ---------- */
.page-hero { padding-top: 20px; }
.page-hero .container {
  position: relative;
  overflow: hidden;
  padding: 44px 24px 40px;
  background: var(--color-surface);
  border-radius: var(--r-lg);
}
.page-hero h1 { max-width: 18ch; margin: 0 0 16px; font-size: var(--h1-page); line-height: 1.08; }
.page-lead { max-width: 600px; font-size: var(--text-lg); color: var(--color-ink); }
.page-hero .container > * { animation: rise .6s var(--ease) both; }
.page-hero .container > :nth-child(2) { animation-delay: .05s; }
.page-hero .container > :nth-child(3) { animation-delay: .1s; }

@media (min-width: 900px) {
  .page-hero { padding-top: 28px; }
  .page-hero .container { padding: 80px 340px 72px 64px; border-radius: var(--r-xl); }
  .page-hero .container::before,
  .page-hero .container::after {
    content: "";
    position: absolute;
    bottom: 0;
    border-radius: 999px 999px 0 0;
    pointer-events: none;
    animation: arch-in .9s .1s var(--ease) both;
  }
  .page-hero .container::before { top: 44px; right: 64px; width: 216px; background: var(--pattern) center / 420px auto repeat; }
  .page-hero .container::after { top: 54px; right: 74px; width: 196px; border: 1.5px solid var(--color-accent); border-bottom: 0; }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.breadcrumbs a { color: var(--color-dark); font-weight: 500; text-decoration: none; border-bottom: 1.5px solid var(--color-primary); }
.breadcrumbs a:hover { border-bottom-color: var(--color-dark); }
.breadcrumbs span:last-child { color: var(--color-ink); }

/* ---------- 8. Section & tata letak ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--color-surface); }

.section-heading { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p:not(.eyebrow) { margin: 16px auto 0; max-width: 540px; font-size: var(--text-lg); color: var(--color-muted); }
.section-action { margin-top: 48px; text-align: center; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.align-center { align-items: center; }
.align-start { align-items: start; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 7vw, 112px); }
}
.two-col h2 { max-width: 540px; }
.two-col p { max-width: 62ch; }
.two-col .text-link { margin-top: 16px; }
.lead-text p { font-size: var(--text-lg); }

.content-narrow { max-width: var(--narrow); margin: 0 auto; }
.content-narrow h2 { margin-bottom: 32px; }

/* ---------- 9. Kartu ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 720px) {
  .cards.two, .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1000px) {
  .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.info-card { padding: 34px 30px; background: var(--color-surface); border-radius: var(--r-md); }
.section-alt .info-card { background: var(--color-white); }
.info-card h3 { margin-bottom: 12px; }
.info-card p:not(.arabic-label) { color: var(--color-muted); }
.plain-list { padding-left: 1.1em; color: var(--color-muted); }
.plain-list li { padding-block: 3px; }
.plain-list li::marker { color: var(--color-primary); }

.preview-card { display: flex; flex-direction: column; align-items: flex-start; }
.preview-card p { margin-bottom: 24px; }
.preview-card .text-link { margin-top: auto; }

.feature-panel { padding: 36px 28px; background: var(--color-surface); border-radius: var(--r-lg); }
.section-alt .feature-panel { background: var(--color-white); }
.feature-panel h3 { margin-bottom: 12px; }
.feature-panel p { color: var(--color-muted); }
.feature-panel .button { margin-top: 16px; }
@media (min-width: 620px) { .feature-panel { padding: 48px; } }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tag-list li {
  padding: 6px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
  background: var(--tint-teal);
  border-radius: 999px;
}

/* Kartu berita & kegiatan */
.post-card { min-width: 0; }
.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: var(--color-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.section-alt .post-card__link { background: var(--color-white); }
.post-card__link:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card__link:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 24px 26px 26px; }
.post-card__title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: var(--h3);
  line-height: 1.22;
  color: var(--color-dark);
  text-wrap: balance;
}
.post-card__excerpt { margin-bottom: 18px; color: var(--color-muted); }
.post-card__date { margin-top: auto; font-size: var(--text-sm); color: var(--color-muted); }

/* Pengganti foto: pola geometris */
.media--pattern { background: var(--pattern) center / 560px auto repeat; }

/* ---------- 10. Dokumentasi (beranda) ---------- */
.doc-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 14px 26px;
  color: inherit;
  text-decoration: none;
  background: var(--color-surface);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.section-alt .doc-tile { background: var(--color-white); }
.doc-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.doc-tile__media {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 999px 999px var(--r-sm) var(--r-sm);
}
.doc-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.doc-tile__title, .doc-tile__link { margin-inline: 10px; }
.doc-tile__title { font-family: var(--font-display); font-size: var(--h3); line-height: 1.2; color: var(--color-dark); }
.doc-tile__link {
  width: fit-content;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-primary);
}
.doc-tile:hover .doc-tile__link { border-bottom-color: var(--color-dark); }

/* ---------- 11. Kontak singkat & pita PPDB ---------- */
.contact-lines { margin: 20px 0 8px; }
.contact-lines div { display: flex; flex-wrap: wrap; gap: 4px 10px; padding-block: 3px; }
.contact-lines dt { font-weight: 600; color: var(--color-dark); }
.contact-lines dt::after { content: ":"; }
.contact-lines dd { margin: 0; }
.contact-lines a { color: var(--color-ink); text-decoration-color: var(--color-primary); text-underline-offset: 3px; }

.cta-band { padding-bottom: var(--section-y); }
.section-alt + .cta-band, .section-alt + .section--extra + .cta-band { background: var(--color-surface); }
.cta-inner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 48px 28px;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--r-lg);
}
.cta-inner .eyebrow { color: var(--color-accent); }
.cta-inner h2 { color: var(--color-white); margin-bottom: 12px; }
.cta-inner p:not(.eyebrow) { color: var(--color-on-dark); font-size: var(--text-lg); }
.cta-inner .button { justify-self: start; }
.cta-inner :focus-visible { outline-color: var(--color-accent); }
@media (min-width: 900px) {
  .cta-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; padding: 72px 300px 72px 64px; border-radius: var(--r-xl); }
  .cta-inner::before, .cta-inner::after { content: ""; position: absolute; bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
  .cta-inner::before { top: 36px; right: 56px; width: 176px; background: var(--pattern) center / 400px auto repeat; }
  .cta-inner::after { top: 46px; right: 66px; width: 156px; border: 1.5px solid var(--color-accent); border-bottom: 0; }
}

/* ---------- 12. Profil ---------- */
.vision-card { max-width: 860px; margin: 0 auto clamp(72px, 9vw, 120px); padding: 8px 0; text-align: center; }
.vision-card .arabic-label { font-size: 2rem; }
.vision-card h2 { margin-bottom: 20px; font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); color: var(--color-muted); }
.vision-text {
  max-width: 32ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  line-height: 1.38;
  color: var(--color-dark);
  text-wrap: balance;
}

/* Daftar bernomor (Misi, Persyaratan): angka dalam lingkaran, tanpa garis */
.number-list { margin: 0; padding: 0; list-style: none; counter-reset: item; display: grid; gap: 22px; }
.number-list li { position: relative; counter-increment: item; min-height: 40px; padding: 6px 0 0 60px; }
.number-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--color-dark);
  background: var(--tint-teal);
  border-radius: 50%;
}

/* ---------- 13. Pendidikan ---------- */
.teacher-band {
  display: grid;
  gap: 24px;
  padding: 44px 28px;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--r-lg);
}
.teacher-band .eyebrow { color: var(--color-accent); }
.teacher-band h2 { color: var(--color-white); margin: 0; }
.teacher-band p:not(.eyebrow) { color: var(--color-on-dark); font-size: var(--text-lg); margin: 0; }
@media (min-width: 900px) {
  .teacher-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; padding: 72px 64px; border-radius: var(--r-xl); }
}

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.check-list li { position: relative; min-height: 28px; padding: 2px 0 0 44px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 50%;
}

/* ---------- 14. Kehidupan santri ---------- */
.facility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.facility {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-dark);
  background: var(--color-surface);
  border-radius: var(--r-sm);
}
.facility::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--color-accent); border-radius: 50%; }

.subheading { margin-top: 48px; }

.schedule { position: relative; list-style: none; margin: 28px 0 0; padding: 0; }
.schedule::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--tint-teal-strong);
  border-radius: 2px;
}
.schedule li { position: relative; display: grid; gap: 2px; padding: 10px 0 10px 32px; }
.schedule li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 12px;
  background: var(--color-background);
  border: 2.5px solid var(--color-primary);
  border-radius: 50%;
}
.schedule__time { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-dark); }
@media (min-width: 480px) {
  .schedule li { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; }
}

/* ---------- 15. Kegiatan & galeri ---------- */
.activity-card { min-width: 0; }
.activity-card a { display: block; color: inherit; text-decoration: none; }
.activity-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 999px 999px var(--r-md) var(--r-md);
}
.activity-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.activity-card a:hover img { transform: scale(1.03); }
.activity-card__title { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: var(--h3); line-height: 1.22; color: var(--color-dark); }
.activity-card a:hover .activity-card__title { text-decoration: underline; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.activity-card p { color: var(--color-muted); }

.gallery-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; } }
.gallery-item { margin: 0; min-width: 0; }
.gallery-item a { display: block; overflow: hidden; border-radius: var(--r-md); cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-item figcaption { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px 0; }
.gallery-item figcaption strong { font-size: 1rem; color: var(--color-dark); }
.gallery-item figcaption span { font-size: var(--text-sm); color: var(--color-muted); }

.lightbox {
  width: min(1000px, 100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 30, 34, .86); }
.lightbox img { width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: var(--r-sm); }
.lightbox__caption { margin-top: 12px; color: var(--color-white); text-align: center; }
.lightbox__close {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 1;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-dark);
  background: var(--color-white);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* ---------- 16. PPDB ---------- */
.ppdb-highlight { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0 0 clamp(72px, 9vw, 112px); }
.ppdb-highlight > div { padding: 24px 26px; background: var(--color-surface); border-radius: var(--r-md); }
.ppdb-highlight > .is-highlight { background: var(--tint-gold); }
.ppdb-highlight dt { margin-bottom: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.ppdb-highlight .is-highlight dt { color: var(--color-dark); }
.ppdb-highlight dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + .7vw, 1.875rem);
  line-height: 1.25;
  color: var(--color-dark);
}
@media (min-width: 760px) {
  .ppdb-highlight { grid-template-columns: .8fr 1fr 1.6fr; gap: 16px; }
  .ppdb-highlight > div { padding: 30px 32px; }
}

.price-card { padding: 34px 28px; background: var(--color-surface); border-radius: var(--r-lg); }
.price {
  margin: 4px 0 2px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  line-height: 1.1;
  color: var(--color-dark);
}
.price-caption { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.monthly {
  margin: 20px 0 22px;
  padding: 12px 18px;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-dark);
  background: var(--color-white);
  border-radius: var(--r-sm);
}
.price-card ul { padding-left: 1.1em; color: var(--color-muted); }
.price-card li { padding-block: 4px; }
.price-card li::marker { color: var(--color-primary); }
@media (min-width: 620px) { .price-card { padding: 44px 40px; } }

.contact-cta { margin-top: 40px; padding: 32px 28px; background: var(--color-white); border-radius: var(--r-lg); }
.contact-cta h3 { margin-bottom: 8px; }
.contact-cta p { margin-bottom: 22px; }

/* ---------- 17. Kontak ---------- */
.contact-card { min-width: 0; padding: 34px 30px; background: var(--color-surface); border-radius: var(--r-lg); }
.contact-card h2 { font-size: var(--h3); line-height: 1.22; margin-bottom: 10px; }
.contact-card p { font-size: var(--text-lg); margin-bottom: 4px; }
.contact-card p.small { font-size: var(--text-sm); }
.contact-card a {
  color: var(--color-dark);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid var(--color-primary);
  overflow-wrap: anywhere;
  transition: color .2s var(--ease);
}
.contact-card a:hover { border-bottom-color: var(--color-dark); }
.contact-card__more { margin-top: 14px; font-size: .9375rem !important; }

/* ---------- 18. Daftar berita, artikel, status kosong ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.filter-bar a {
  padding: 8px 18px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  background: var(--color-surface);
  border-radius: 999px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.filter-bar a:hover { background: var(--tint-teal); }
.filter-bar a.is-active { color: var(--color-white); background: var(--color-dark); }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  background: var(--color-white);
  border-radius: 999px;
}
.pagination .page-numbers.current { color: var(--color-white); background: var(--color-dark); }
.pagination a.page-numbers:hover { background: var(--tint-teal); }

.empty-state { max-width: 460px; margin: 0 auto; padding: 24px 0; text-align: center; }
.empty-state__mark {
  display: block;
  width: 72px;
  height: 88px;
  margin: 0 auto 24px;
  background: var(--pattern) center / 300px auto repeat;
  border-radius: 999px 999px 8px 8px;
}
.empty-state__title { margin-bottom: 8px; font-family: var(--font-display); font-size: var(--h3); color: var(--color-dark); }
.empty-state p:last-child { color: var(--color-muted); }

.article-head { padding-block: 48px 36px; }
.back-link { display: inline-flex; gap: 8px; margin-bottom: 28px; font-size: .9375rem; font-weight: 500; color: var(--color-muted); text-decoration: none; }
.back-link:hover { color: var(--color-dark); }
.article-head h1 { font-size: var(--h1-page); line-height: 1.1; }
.article-meta { color: var(--color-muted); font-size: var(--text-sm); }
.article-cover { margin-block: 0 48px; }
.article-cover img { width: 100%; border-radius: var(--r-lg); }
.article-cover figcaption { margin-top: 10px; font-size: var(--text-sm); color: var(--color-muted); text-align: center; }
.article .entry-content { padding-bottom: var(--section-y); }

.section--extra { padding-top: 0; }

/* Isi tulisan dari editor WordPress */
.entry-content { font-size: var(--text-lg); line-height: 1.75; }
.entry-content > * { margin-block: 0 1.25em; }
.entry-content h2 { margin-top: 1.6em; font-size: clamp(1.625rem, 1.4rem + .9vw, 2.125rem); }
.entry-content h3 { margin-top: 1.4em; }
.entry-content h4 { margin: 1.4em 0 .5em; font-size: 1.125rem; color: var(--color-dark); }
.entry-content a { color: var(--color-dark); text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--color-dark); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--color-primary); }
.entry-content img, .entry-content .wp-block-image img { height: auto; border-radius: var(--r-md); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { margin-top: 8px; font-size: var(--text-sm); color: var(--color-muted); text-align: center; }
.entry-content blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 24px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.45;
  color: var(--color-dark);
  border-left: 3px solid var(--color-accent);
}
.entry-content blockquote cite { display: block; margin-top: 8px; font-family: var(--font-body); font-size: var(--text-sm); font-style: normal; color: var(--color-muted); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.entry-content th, .entry-content td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--color-line); }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--color-primary-strong); color: var(--color-white); text-decoration: none; padding: 12px 26px; font-weight: 600; }
.entry-content .wp-block-gallery { gap: 12px; }
.entry-content .alignwide { width: min(1000px, 100vw - var(--gutter) * 2); margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull img { border-radius: 0; }

.not-found { text-align: center; }
.not-found .button-row { justify-content: center; margin-top: 32px; }

/* ---------- 19. Footer ---------- */
.site-footer {
  padding-top: clamp(56px, 4rem + 2vw, 88px);
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.site-footer :focus-visible { outline-color: var(--color-accent); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 56px; }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.5fr .8fr 1.1fr; gap: 64px; }
  .footer-about { grid-column: auto; }
}
.footer-about .arabic-label { color: var(--color-accent); font-size: 1.75rem; }
.site-footer h2 { max-width: 400px; margin: 8px 0 16px; font-size: clamp(1.5rem, 1.3rem + .7vw, 1.875rem); line-height: 1.2; color: var(--color-white); }
.site-footer h3 { margin-bottom: 14px; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: .04em; color: var(--color-accent); }
.site-footer p { max-width: 44ch; margin-bottom: 10px; font-size: .9375rem; line-height: 1.65; color: var(--color-on-dark); }
.site-footer a {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding-block: 9px;
  font-size: .9375rem;
  color: var(--color-on-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s var(--ease);
}
.site-footer p a { padding-block: 0; }
.site-footer a:hover { color: var(--color-accent); }
.copyright { padding-block: 20px; font-size: .8125rem; color: var(--color-on-dark-muted); border-top: 1px solid var(--color-line-on-dark); }

/* Area sentuh minimal 44px untuk tautan kecil, tanpa mengubah tampilan */
.text-link, .breadcrumbs a, .site-footer a, .filter-bar a, .back-link { position: relative; }
.text-link::after, .breadcrumbs a::after, .site-footer a::after, .filter-bar a::after, .back-link::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: max(100%, 44px);
  transform: translateY(-50%);
}

/* ---------- 20. Preferensi gerak ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
