/*
Theme Name: Asshofa Modern
Theme URI: https://asshofa.org
Author: As-Shofa Digital Team
Description: Tema custom untuk Pondok Pesantren Technopreneur As-Shofa. Konsep "Sanad Digital" — memadukan nuansa manuskrip klasik (tinta hijau tua, emas kuningan) dengan garis geometris digital, mencerminkan identitas pesantren yang memadukan tahfidz Qur'an, kitab kuning, dan teknologi.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asshofa
*/

/* =====================================================
   0. DESIGN TOKENS
   ===================================================== */
:root{
  /* Warna */
  --ink:        #0F2A22;   /* hijau tinta pekat - dasar hero & footer */
  --ink-2:      #163D31;   /* hijau tinta, sedikit lebih terang */
  --ink-3:      #1E4E3F;
  --brass:      #C9A15A;   /* emas kuningan - aksen tradisi */
  --brass-light:#E4C888;
  --teal:       #2FBFA3;   /* teal digital - aksen tech */
  --teal-dark:  #1F9C84;
  --paper:      #F6F3EA;   /* krem kertas manuskrip */
  --paper-2:    #EFEADA;
  --ink-text:   #1B2420;   /* teks utama, hijau-hitam */
  --muted:      #5C6660;
  --line:       #E1D9C2;   /* garis pemisah di atas paper */
  --line-dark:  rgba(201,161,90,0.28);
  --white:      #FFFFFF;
  --on-dark:    #F6F3EA;   /* teks di atas latar gelap (hero, banner, CTA, footer) — bisa diatur di Customizer */
  --heading-color: #0F2A22; /* warna judul (h1-h4) — terpisah dari --ink supaya ganti warna judul TIDAK ikut mengubah warna latar hero/footer/tombol */

  /* Tipografi */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --wrap: 1160px;
  --radius-sm: 8px;
  --radius: 14px;
}

/* =====================================================
   1. RESET DASAR
   ===================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section{ padding: 88px 0; }

/* Fokus keyboard — aksesibilitas */
a:focus-visible, button:focus-visible{
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.screen-reader-text{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link{
  position: absolute; top: -60px; left: 12px; z-index: 999;
  background: var(--ink); color: var(--white); padding: 10px 18px;
  border-radius: var(--radius-sm); transition: top .2s ease;
}
.skip-link:focus{ top: 12px; }

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

/* =====================================================
   2. TIPOGRAFI
   ===================================================== */
h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--heading-color);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 16px;
}
h1{ font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 34ch; }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 16px; max-width: 62ch; color: var(--ink-text); }
.section-kicker{
  font-family: var(--font-body);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* =====================================================
   3. TOMBOL
   ===================================================== */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary{
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover{
  background: var(--brass-light);
  transform: translateY(-2px);
}
.btn-ghost{
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost:hover{
  border-color: var(--brass);
  color: var(--brass-light);
}

/* Tombol di atas paper (bukan hero) pakai varian gelap */
.section .btn-ghost{
  border-color: var(--ink);
  color: var(--ink);
}
.section .btn-ghost:hover{
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

/* =====================================================
   4. HEADER / NAV
   ===================================================== */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,243,234,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled{
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(15,42,34,0.06);
}
.site-header-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.site-brand{ display: flex; align-items: center; }
.site-brand img{ max-height: 50px; width: auto; }
.site-brand-text{ display: flex; flex-direction: column; line-height: 1.1; }
.site-brand-main{ font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-weight: 600; }
.site-brand-sub{ font-size: 0.72rem; letter-spacing: 0.03em; color: var(--brass); font-weight: 700; }

.site-nav{ display: flex; align-items: center; gap: 6px; }
.nav-menu{ display: flex; align-items: center; gap: 4px; position: relative; }
.nav-menu li{ position: relative; }
.nav-menu a{
  display: block; padding: 10px 16px; font-weight: 600; font-size: 0.95rem;
  color: var(--ink-text); border-radius: var(--radius-sm);
  transition: color .18s ease, background .18s ease;
}
.nav-menu > li > a:hover{ color: var(--teal-dark); background: rgba(47,191,163,0.08); }

.nav-menu .sub-menu{
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 200px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; box-shadow: 0 16px 40px rgba(15,42,34,0.12);
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu{ display: block; }
.nav-menu .sub-menu a{ padding: 10px 14px; }

.nav-cta{
  margin-left: 10px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background .18s ease;
}
.nav-cta:hover{ background: var(--teal-dark); }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; padding: 8px;
}
.nav-toggle-bar{
  width: 24px; height: 2px; background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2){ opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
.nav-menu-hint{ display: none; }

/* =====================================================
   5. HERO — momen paling berani di halaman ini
   ===================================================== */
.hero{
  position: relative;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-3) 100%);
  overflow: hidden;
  padding: 120px 0 130px;
}
.hero-pattern{
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23C9A15A' stroke-width='1' opacity='0.5'%3E%3Cpath d='M60 6 L114 60 L60 114 L6 60 Z'/%3E%3Ccircle cx='60' cy='60' r='4'/%3E%3Cpath d='M60 6 L60 30 M60 90 L60 114 M6 60 L30 60 M90 60 L114 60'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
}
.hero-pattern--soft{
  opacity: 0.22;
}
.hero-inner{ position: relative; max-width: 760px; opacity: 0; transform: translateY(14px); }
.hero-inner.hero-reveal{
  animation: heroRise .8s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes heroRise{
  to{ opacity: 1; transform: translateY(0); }
}
.hero-kicker{
  color: var(--brass-light);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}
.hero-title{
  color: var(--white);
  margin-bottom: 20px;
}
.hero-desc{
  color: var(--on-dark);
  opacity: 0.85;
  font-size: 1.08rem;
  max-width: 56ch;
  margin-bottom: 34px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

/* =====================================================
   6. NETWORK SECTION (Qudsiyyah)
   ===================================================== */
.network-section{ background: var(--paper); }
.network-inner{
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 60px; align-items: center;
}
.network-visual{
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--ink-3), var(--ink) 70%);
  position: relative;
}
.network-node{
  position: absolute; inset: 18%;
  border: 1.5px solid var(--line-dark);
  border-radius: 50%;
}
.network-node::before, .network-node::after{
  content: ""; position: absolute; border: 1px solid rgba(47,191,163,0.4); border-radius: 50%;
}
.network-node::before{ inset: 22%; }
.network-node::after{ inset: 42%; background: var(--brass); border: none; }

/* =====================================================
   7. PROGRAM — gaya "daftar isi kitab" (index-list, bukan card grid seragam)
   ===================================================== */
.program-section{ background: var(--paper-2); }
.kitab-index{ margin-top: 46px; border-top: 1px solid var(--line-dark); }
.kitab-entry{
  display: grid; grid-template-columns: 90px 1fr; gap: 28px;
  padding: 34px 0; border-bottom: 1px solid var(--line-dark);
}
.kitab-entry-num{
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 400;
  color: var(--brass);
}
.kitab-entry-body h3{ margin-bottom: 8px; }
.kitab-entry-body p{ color: var(--muted); margin-bottom: 0; }

/* =====================================================
   8. PROGRAM PENDIDIKAN — grid asimetris sederhana
   ===================================================== */
.education-section{ background: var(--paper); }
.edu-grid{
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.edu-card{
  background: var(--paper); padding: 32px 28px;
  transition: background .2s ease;
}
.edu-card:hover{ background: var(--white); }
.edu-card h3{ font-size: 1.1rem; margin-bottom: 10px; }
.edu-card p{ color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* =====================================================
   9. CTA SECTION
   ===================================================== */
.cta-section{
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  text-align: left;
}
.cta-inner h2{ color: var(--white); }
.cta-inner p{ color: var(--on-dark); opacity: 0.85; font-size: 1.05rem; }
.cta-inner .btn-primary{ margin-top: 8px; }

/* =====================================================
   10. BERITA / NEWS GRID
   ===================================================== */
.news-section{ background: var(--paper-2); }
.news-grid{
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.news-grid--list{ grid-template-columns: repeat(2, 1fr); }
.news-card{
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover{ transform: translateY(-4px); box-shadow: 0 18px 34px rgba(15,42,34,0.1); }
.news-card-media{ aspect-ratio: 16/10; overflow: hidden; }
.news-card-media img{ width: 100%; height: 100%; object-fit: cover; }
.news-card-body{ padding: 22px; }
.news-card-body h3{ font-size: 1.08rem; margin-bottom: 8px; }
.news-card-body p{ color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

.pagination-wrap{ margin-top: 40px; display: flex; gap: 14px; }
.pagination-wrap .page-numbers{
  display: inline-flex; padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark); font-weight: 600;
}
.pagination-wrap .page-numbers.current{ background: var(--ink); color: var(--paper); }

/* =====================================================
   11. YOUTUBE
   ===================================================== */
.youtube-section{ background: var(--paper); }
.youtube-inner{
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 44px; background: var(--paper-2); border-radius: var(--radius); border: 1px solid var(--line);
}
.youtube-inner h2{ margin-bottom: 6px; }
.youtube-inner p{ margin-bottom: 0; color: var(--muted); }

/* =====================================================
   12. PAGE BANNER (halaman dalam & artikel)
   ===================================================== */
.page-banner{
  position: relative;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-3) 100%);
  padding: 90px 0 70px;
  overflow: hidden;
}
.page-banner-title{ color: var(--white); margin-bottom: 6px; }
.post-meta{ color: var(--on-dark); opacity: 0.75; font-size: 0.92rem; }

.page-content-section{ background: var(--paper); }
.page-content-wrap{ max-width: 780px; }
.page-featured-image{ margin-bottom: 36px; border-radius: var(--radius); overflow: hidden; }
.page-content h2{ margin-top: 40px; }
.page-content ul, .page-content ol{ margin: 0 0 16px; padding-left: 22px; list-style: revert; }
.page-content a{ color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }

.not-found-section{ text-align: center; }
.not-found-inner{ max-width: 520px; margin: 0 auto; }

/* =====================================================
   13. FOOTER
   ===================================================== */
.site-footer{ background: var(--ink); color: var(--on-dark); }
.footer-inner{
  padding: 70px 0 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer-col .site-brand-main{ color: var(--white); }
.footer-col p{ color: var(--on-dark); opacity: 0.78; font-size: 0.95rem; }
.footer-heading{ color: var(--brass-light); font-size: 1rem; margin-bottom: 16px; }
.footer-social{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.footer-social a{ font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; }
.footer-social a:hover{ color: var(--brass-light); }
.footer-menu li, .footer-contact li{ margin-bottom: 10px; font-size: 0.94rem; color: var(--on-dark); opacity: 0.82; }
.footer-menu a:hover, .footer-contact a:hover{ color: var(--brass-light); }
.footer-widget-title{ color: var(--brass-light); font-size: 1rem; }

.footer-bottom{ border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom p{ margin: 0; font-size: 0.85rem; color: var(--on-dark); opacity: 0.6; }

/* =====================================================
   14. RESPONSIVE — MOBILE
   ===================================================== */
@media (max-width: 980px){
  .network-inner{ grid-template-columns: 1fr; }
  .network-visual{ max-width: 240px; margin: 0 auto; }
  .edu-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px){
  .nav-toggle{ display: inline-flex; }
  .site-nav{
    position: fixed; inset: 0 0 0 auto; top: 0;
    width: min(320px, 84vw); height: 100vh;
    background: var(--paper);
    flex-direction: column; align-items: stretch;
    padding: 90px 26px 26px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -12px 0 30px rgba(15,42,34,0.15);
    overflow-y: auto;
  }
  .site-nav.is-open{ transform: translateX(0); }
  .nav-menu{ flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-menu a{ padding: 14px 12px; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-menu .sub-menu{
    position: static; box-shadow: none; border: none; display: block;
    padding-left: 14px; margin-top: 0;
  }
  .nav-cta{ margin: 18px 0 0; text-align: center; }
  body.nav-open{ overflow: hidden; }
}

@media (max-width: 720px){
  body{ overflow-x: hidden; }
  .section{ padding: 60px 0; }
  .hero{ padding: 96px 0 80px; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ justify-content: center; }
  .kitab-entry{ grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; }
  .kitab-entry-num{ font-size: 1.5rem; }
  .edu-grid{ grid-template-columns: 1fr; }
  .news-grid, .news-grid--list{ grid-template-columns: 1fr; }
  .youtube-inner{ flex-direction: column; align-items: flex-start; padding: 30px; text-align: left; }
  .footer-inner{ grid-template-columns: 1fr; padding: 50px 0 30px; }
  .cta-section{ text-align: left; }
}


/* =====================================================
   15. HALAMAN DALAM — KOMPONEN TAMBAHAN
   Dipakai oleh template-visi-misi.php, template-mts-ma.php,
   template-psb.php, template-wakaf.php, template-galeri.php
   ===================================================== */

.page-banner .breadcrumb{
  color: var(--on-dark); opacity: 0.7; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px;
}
.page-banner .breadcrumb a:hover{ color: var(--brass-light); opacity: 1; }
.page-banner-desc{
  position: relative; color: var(--on-dark); opacity: 0.88; font-size: 1.06rem;
  max-width: 54ch; margin: 10px 0 0;
}

.page-section{ background: var(--paper); }
.page-section--alt{ background: var(--paper-2); }
.page-section--ink{ background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%); }
.page-section--ink h2, .page-section--ink h3, .page-section--ink .page-banner-title{ color: var(--white); }
.page-section--ink p{ color: var(--on-dark); opacity: 0.88; }
.page-section--ink .section-kicker{ color: var(--brass-light); }
.page-section--ink .note{ color: var(--on-dark); opacity: 0.68; }
.page-section--ink .info-card, .page-section--ink .kitab-entry, .page-section--ink .kitab-index{ border-color: rgba(255,255,255,0.16); }

.prose{ max-width: 62ch; }
.lead{ font-size: 1.12rem; color: var(--ink-text); max-width: 60ch; }
.cta-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }

/* daftar isi kitab dipakai ulang di halaman dalam (mis. Misi) */

/* Visi (kutipan besar) */
.visi-card{
  margin-top: 8px;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-3) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}
.visi-card::before{
  content: "\201C";
  position: absolute; top: -12px; left: 26px;
  font-family: var(--font-display); font-size: 8rem; line-height: 1;
  color: var(--brass); opacity: 0.35;
}
.visi-card p{
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  color: var(--white);
  margin: 0; max-width: 40ch;
}

/* Grid kartu info */
.card-grid{
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.info-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.info-card .tag{
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--teal-dark); background: rgba(47,191,163,0.1);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.info-card h3{ font-size: 1.12rem; margin-bottom: 10px; }
.info-card p{ color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.info-card ul{ list-style: none; margin: 0; padding: 0; }
.info-card ul li{ position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--muted); font-size: 0.95rem; }
.info-card ul li::before{
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brass);
}

/* Tabel biaya */
.rate-table{
  margin-top: 24px; width: 100%; border-collapse: collapse;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.rate-table th, .rate-table td{ text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.rate-table th{ font-weight: 700; color: var(--ink); background: var(--paper-2); }
.rate-table td:last-child{ text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.rate-table tr:last-child td{ border-bottom: none; }
.rate-table tr.is-total td{ background: var(--paper-2); font-size: 1.02rem; }

/* Timeline gelombang */
.timeline{ margin-top: 40px; border-left: 2px solid var(--line-dark); padding-left: 28px; }
.timeline-item{ position: relative; padding-bottom: 30px; }
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-item::before{
  content: ""; position: absolute; left: -37px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brass); border: 3px solid var(--paper);
}
.timeline-item h3{ font-size: 1.08rem; margin-bottom: 4px; }
.timeline-item p{ color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Checklist persyaratan */
.checklist{ margin-top: 28px; display: grid; gap: 12px; }
.checklist li{ position: relative; padding-left: 34px; color: var(--ink-text); font-size: 0.98rem; }
.checklist li::before{
  content: "\2713";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(47,191,163,0.12); color: var(--teal-dark);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
}
.note{ margin-top: 18px; font-size: 0.9rem; color: var(--muted); font-style: italic; }

/* Statistik (Wakaf) */
.stat-row{
  margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px; background: var(--line-dark); border: 1px solid var(--line-dark);
  border-radius: var(--radius); overflow: hidden;
}
.stat{ background: var(--paper); padding: 28px 26px; }
.stat-num{ font-family: var(--font-display); font-size: 2rem; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.stat-label{ color: var(--muted); font-size: 0.92rem; }

/* Paket wakaf */
.pack-grid{ margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.pack{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-align: left; display: flex; flex-direction: column; gap: 10px;
}
.pack-name{ font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.pack-price{ font-weight: 800; font-size: 1.3rem; color: var(--teal-dark); }
.pack-desc{ color: var(--muted); font-size: 0.92rem; flex: 1; }
.pack .btn{ padding: 10px 18px; font-size: 0.9rem; align-self: flex-start; }

/* Testimoni */
.quote-grid{ margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.quote-card{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.quote-card blockquote{ margin: 0 0 16px; color: var(--ink-text); font-size: 0.98rem; line-height: 1.6; }
.quote-card .who{ font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.quote-card .role{ color: var(--muted); font-size: 0.85rem; }

/* Langkah bernomor */
.steps{ margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step-num{
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; margin-bottom: 14px;
}
.step h3{ font-size: 1.05rem; margin-bottom: 8px; }
.step p{ color: var(--muted); font-size: 0.94rem; margin: 0; }

/* =====================================================
   16. GALERI — grid foto statis (template-galeri.php)
   ===================================================== */
.gallery-group{ margin-top: 46px; }
.gallery-group:first-of-type{ margin-top: 8px; }
.gallery-group h2{ margin-bottom: 6px; }
.gallery-grid{ margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-item{ position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); background: var(--paper-2); }
.gallery-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img{ transform: scale(1.04); }
.gallery-item figcaption{
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(15,42,34,0.82));
  color: var(--white); font-weight: 600; font-size: 0.9rem;
}

/* =====================================================
   17. KONTEN EDITOR (Gutenberg) DI DALAM HALAMAN
   Supaya foto/galeri yang ditambahkan admin lewat menu blok
   "+" (Image / Gallery) otomatis tampil rapi & senada, di
   SEMUA halaman yang memakai the_content() — tanpa plugin.
   ===================================================== */
.editor-images{ margin-top: 44px; }
.editor-images > *:first-child{ margin-top: 0; }

.editor-images .wp-block-image,
.editor-images figure.wp-block-image{ margin: 0 0 28px; }
.editor-images .wp-block-image img{
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.editor-images .wp-block-image figcaption{
  margin-top: 10px; font-size: 0.88rem; color: var(--muted); text-align: center;
}

.editor-images .wp-block-gallery{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin: 0 0 28px; padding: 0; list-style: none;
}
.editor-images .wp-block-gallery .wp-block-image,
.editor-images .wp-block-gallery .blocks-gallery-item{ margin: 0; }
.editor-images .wp-block-gallery img{
  width: 100%; height: 100%;
  aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .4s ease;
}
.gallery-page .wp-block-gallery{ overflow: hidden; }
.gallery-page .wp-block-gallery .wp-block-image{ overflow: hidden; border-radius: var(--radius); }
.gallery-page .wp-block-gallery img:hover{ transform: scale(1.04); }
.editor-images .wp-block-gallery figcaption{
  font-size: 0.85rem; color: var(--muted); margin-top: 8px;
}

.editor-images .wp-block-quote{
  border-left: 3px solid var(--brass); margin: 0 0 28px; padding: 6px 0 6px 22px;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--ink);
}
.editor-images .wp-block-table table{
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.editor-images .wp-block-table th, .editor-images .wp-block-table td{
  padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left;
}
.editor-images .wp-block-table th{ background: var(--paper-2); }

/* =====================================================
   18. KOMPONEN FARM — ikon, alur proses, persamaan, pill
   Dipakai oleh template-farm.php (As-Shofa Farm)
   ===================================================== */
.info-card .icon{ font-size: 2rem; line-height: 1; margin-bottom: 14px; display: block; }

.pill-list{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill{
  background: rgba(47,191,163,0.1); color: var(--teal-dark);
  border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 0.88rem;
}
.pill--brass{ background: rgba(201,161,90,0.14); color: var(--ink); }

/* Alur proses: chip -> panah -> chip */
.flow-chain{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.flow-chain .chip{
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-weight: 700; font-size: 0.9rem; color: var(--ink); white-space: nowrap;
}
.flow-chain .arrow{ color: var(--brass); font-weight: 700; font-size: 1.1rem; }
.page-section--ink .flow-chain .chip{ background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: var(--white); }
.page-section--ink .flow-chain .arrow{ color: var(--brass-light); }

/* Alur vertikal panjang (mis. Panen -> ... -> Delivery) */
.flow-vertical{ margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.flow-vertical .chip{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 22px; font-weight: 700; font-size: 0.95rem; color: var(--ink);
}
.flow-vertical .arrow-down{ color: var(--brass); font-size: 1.1rem; padding: 4px 0 4px 22px; }

/* Persamaan: A x B x C x D = Hasil */
.equation{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px; margin-top: 36px; text-align: center;
}
.equation .eq-item{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; min-width: 170px; flex: 1 1 170px; max-width: 220px;
}
.equation .eq-item h3{ font-size: 1rem; margin-bottom: 6px; }
.equation .eq-item p{ margin: 0; font-size: 0.85rem; color: var(--muted); }
.equation .eq-op{ font-family: var(--font-display); font-size: 1.8rem; color: var(--brass); }
.equation .eq-result{
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: 24px 32px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
}

/* =====================================================
   20. DAFTAR FAKTA (label : nilai) — Identitas Pesantren, Maddah Kitab
   Dipakai oleh template-tentang.php
   ===================================================== */
.fact-list{ margin-top: 28px; border-top: 1px solid var(--line-dark); }
.fact-row{
  display: grid; grid-template-columns: 280px 1fr; gap: 20px;
  padding: 16px 4px; border-bottom: 1px solid var(--line-dark);
}
.fact-row dt{ font-weight: 700; color: var(--ink); font-size: 0.92rem; margin: 0; }
.fact-row dd{ margin: 0; color: var(--ink-text); }
.fact-row dd.is-empty{ color: var(--muted); font-style: italic; }

/* Tabel data biasa (bukan gaya harga) */
.rate-table--plain td:last-child{ text-align: left; font-weight: 400; color: var(--ink-text); white-space: normal; }
.rate-table--plain th:first-child, .rate-table--plain td:first-child{ text-align: center; width: 60px; }

/* Kutipan berbahasa Arab (kaidah, dalil) */
.visi-card--arabic{ text-align: center; }
.visi-card--arabic p{
  direction: rtl; font-family: 'Times New Roman', serif; font-size: clamp(1.3rem, 3vw, 1.8rem);
  max-width: none; margin: 0 0 14px;
}
.visi-card--arabic .translit{ position: relative; direction: ltr; font-family: var(--font-body); font-size: 0.92rem; color: var(--brass-light); margin: 0; }

/* Placeholder untuk bagian yang belum diisi datanya */
.placeholder-note{
  background: var(--paper-2); border: 1px dashed var(--line-dark); border-radius: var(--radius);
  padding: 22px 24px; color: var(--muted); font-size: 0.94rem; font-style: italic;
}

/* Tabel perbandingan biaya (Item | Mukim | Non-Mukim) */
.rate-table--compare td:nth-child(2), .rate-table--compare td:nth-child(3),
.rate-table--compare th:nth-child(2), .rate-table--compare th:nth-child(3){
  text-align: right; white-space: nowrap;
}
.rate-table--compare td:nth-child(2), .rate-table--compare td:nth-child(3){ font-weight: 700; color: var(--ink); }
.rate-table--compare td:first-child{ text-align: left; font-weight: 400; color: var(--ink-text); white-space: normal; }

/* FAQ — pakai <details> bawaan browser, tanpa JS */
.faq{ margin-top: 32px; border-top: 1px solid var(--line-dark); }
.faq details{
  border-bottom: 1px solid var(--line-dark);
}
.faq summary{
  list-style: none; cursor: pointer; padding: 20px 40px 20px 4px; position: relative;
  font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); font-weight: 600;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.4rem; color: var(--brass); line-height: 1;
}
.faq details[open] summary::after{ content: "\2013"; }
.faq details > p{ margin: 0 4px 22px; color: var(--muted); }

/* Kartu highlight bernomor besar (alur / keunggulan) */
.big-num{ font-family: var(--font-display); font-size: 2.4rem; font-weight: 400; color: var(--brass); line-height: 1; margin-bottom: 12px; display: block; }

/* Pita promo / badge diskon */
.promo-badge{
  display: inline-block; background: var(--brass); color: var(--ink);
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.03em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}

/* =====================================================
   21. RESPONSIVE TAMBAHAN
   ===================================================== */
@media (max-width: 720px){
  .visi-card{ padding: 36px 26px; }
  .flow-chain{ flex-direction: column; align-items: flex-start; }
  .flow-chain .arrow{ transform: rotate(90deg); margin-left: 10px; }
  .equation{ flex-direction: column; }
  .equation .eq-op{ transform: rotate(90deg); }
  .fact-row{ grid-template-columns: 1fr; gap: 4px; }
}
