/*
Theme Name: Nurul Huda Morph
Theme URI: https://example.com/
Author: MI Nurul Huda
Description: Tema WordPress untuk MI Nurul Huda. Gaya "soft morph" (neumorphism + kaca) dengan warna dasar putih dan hijau. Beranda, gambar, tombol ajakan (CTA), dan teks bisa diubah lewat Tampilan → Sesuaikan. Menyediakan Agenda, Prestasi, Galeri, Guru, dan Unduhan.
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: nurulhuda
*/

/* ---------- Token ---------- */
:root {
  --white: #ffffff;
  --surface: #eef5f0;          /* permukaan morph, putih kehijauan */
  --surface-2: #e3eee6;
  --green: #00913d;            /* hijau logo */
  --green-deep: #064d2a;
  --green-ink: #0b3a22;
  --gold: #f0b400;             /* kuning logo, hanya untuk CTA & aksen */
  --gold-deep: #9a6f00;
  --ink: #16261c;
  --muted: #4d6356;
  --line: rgba(6, 77, 42, .12);

  --shadow-out: 10px 10px 26px rgba(6, 77, 42, .13), -10px -10px 24px rgba(255, 255, 255, .95);
  --shadow-soft: 6px 6px 16px rgba(6, 77, 42, .10), -6px -6px 14px rgba(255, 255, 255, .9);
  --shadow-in: inset 5px 5px 12px rgba(6, 77, 42, .12), inset -5px -5px 12px rgba(255, 255, 255, .95);

  --r-lg: 32px;
  --r-md: 20px;
  --r-sm: 12px;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-arab: "Amiri", "Traditional Arabic", "Scheherazade New", serif;

  --wrap: 1200px;
  --gap: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.02em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto;
  background: var(--white); padding: 10px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow-out);
}
.wrap { width: min(100% - 2 * 20px, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tint { background: var(--surface); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.section__head h2 { margin: 0; }
.section__head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.section__more { font-weight: 600; white-space: nowrap; }

/* ---------- Morph ---------- */
.morph { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-out); border: 1px solid rgba(255, 255, 255, .7); }
.section:not(.section--tint) .morph { background: var(--white); box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(6, 77, 42, .22); border-color: var(--line); }
.inset { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-in); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 0; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--gold { background: var(--gold); color: var(--green-ink); box-shadow: 0 10px 22px -8px rgba(154, 111, 0, .55), inset 0 -3px 0 rgba(0, 0, 0, .08); }
.btn--gold:hover { background: #ffc21a; color: var(--green-ink); }
.btn--green { background: var(--green); color: var(--white); box-shadow: 0 10px 22px -8px rgba(0, 145, 61, .6), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn--green:hover { background: var(--green-deep); color: var(--white); }
.btn--soft { background: var(--surface); color: var(--green-deep); box-shadow: var(--shadow-soft); }
.btn--soft:hover { color: var(--green-deep); }
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-in); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(6, 77, 42, .35); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { flex: none; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-ink); margin-right: auto; }
.brand img, .brand .custom-logo { width: 50px; height: auto; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.1; display: block; white-space: nowrap; }
.brand__tag, .main-nav a { white-space: nowrap; }
.brand__tag { font-size: .8rem; color: var(--muted); display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--green-deep); background: var(--surface); }
.main-nav .menu-item-has-children > a { padding-right: 28px; }
.main-nav .menu-item-has-children > a::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6;
}
.main-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; padding: 10px;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 24px 48px -20px rgba(6, 77, 42, .35);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.main-nav .sub-menu a { border-radius: var(--r-sm); font-weight: 500; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu, .main-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.header-cta { flex: none; }
.nav-toggle { display: none; }
.sub-toggle { display: none; }

@media (max-width: 1400px) and (min-width: 1241px) {
  .brand__tag { display: none; }
  .main-nav a { padding: 10px 9px; font-size: .92rem; }
  .main-nav .menu-item-has-children > a { padding-right: 24px; }
  .main-nav .menu-item-has-children > a::after { right: 9px; }
  .header-inner { gap: 14px; }
}
@media (max-width: 1240px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-soft); cursor: pointer; color: var(--green-deep);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 76px 0 0 0; background: var(--white); overflow-y: auto; padding: 16px 20px 40px;
    display: none; border-top: 1px solid var(--line);
  }
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .97); }
  .admin-bar .main-nav { top: 108px; }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; display: none;
    box-shadow: var(--shadow-in); background: var(--surface); margin: 4px 0 8px; border: 0;
  }
  .main-nav li.is-open > .sub-menu { display: block; }
  .main-nav .menu-item-has-children > a::after { display: none; }
  .main-nav .menu-item-has-children > a { padding-right: 60px; }
  .sub-toggle {
    display: grid; place-items: center; position: absolute; top: 2px; right: 4px; width: 48px; height: 48px;
    border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; color: var(--green-deep);
  }
  .sub-toggle span { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] span { transform: rotate(-135deg); margin-top: 4px; }
  .main-nav .mobile-cta { display: flex; margin-top: 16px; }
}
@media (max-width: 782px) { .admin-bar .main-nav { top: 122px; } }
@media (min-width: 1241px) { .main-nav .mobile-cta { display: none; } }

/* ---------- Kubah (bentuk dari logo) ---------- */
.dome-wrap { filter: drop-shadow(14px 16px 26px rgba(6, 77, 42, .18)) drop-shadow(-10px -10px 18px rgba(255, 255, 255, .9)); }
.dome { clip-path: url(#nh-dome); -webkit-clip-path: url(#nh-dome); }
.dome--ring { background: var(--white); padding: 12px; }
.dome--ring > .dome { background: var(--surface-2); aspect-ratio: 4 / 5; }
.dome img, .dome video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--surface);
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(0, 145, 61, .14), transparent 70%); pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__arab { font-family: var(--font-arab); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold-deep); line-height: 1.3; margin: 0 0 6px; direction: rtl; text-align: left; }
.hero h1 { margin-bottom: 20px; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin-bottom: 32px; }
.hero__media { max-width: 480px; justify-self: end; width: 100%; }
.hero__note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-soft); font-size: .92rem; font-weight: 600; color: var(--green-deep); }
.chip svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: nh-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__text > *:nth-child(2) { animation-delay: .06s; }
  .hero__text > *:nth-child(3) { animation-delay: .12s; }
  .hero__text > *:nth-child(4) { animation-delay: .18s; }
  .hero__media { animation: nh-dome .9s .1s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes nh-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes nh-dome { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: center; max-width: 360px; order: -1; }
}

/* ---------- Sambutan ---------- */
.welcome { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.welcome__photo { max-width: 320px; }
.welcome__photo .dome--ring > .dome { aspect-ratio: 3 / 4; }
.welcome blockquote { margin: 0; font-size: 1.15rem; color: var(--ink); max-width: 65ch; }
.welcome blockquote p:first-child::before { content: "“"; font-family: var(--font-display); font-size: 4rem; line-height: 0; color: var(--green); vertical-align: -.45em; margin-right: 6px; }
.welcome__who { margin-top: 20px; font-weight: 700; color: var(--green-ink); }
.welcome__who span { display: block; font-weight: 500; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .welcome { grid-template-columns: 1fr; } .welcome__photo { max-width: 240px; } }

/* ---------- Profil singkat ---------- */
.profile { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.profile__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-out); }
.profile__img img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
.fact { padding: 18px 20px; }
.fact dt { font-size: .9rem; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--green-ink); }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } }

/* ---------- Program ---------- */
.programs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.program { grid-column: span 4; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease; }
.program:hover { transform: translateY(-4px); color: inherit; }
.program:first-child { grid-column: span 8; grid-row: span 2; }
.program__img { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.program:first-child .program__img { aspect-ratio: auto; flex: 1; min-height: 260px; }
.program__img img { width: 100%; height: 100%; object-fit: cover; }
.program__body { padding: 22px 24px 26px; }
.program__body h3 { margin-bottom: 6px; }
.program__body p { margin: 0; color: var(--muted); font-size: .98rem; }
.program__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--green); }
.program__ph img { width: 72px; height: auto; opacity: .35; object-fit: contain; }
@media (max-width: 960px) { .program, .program:first-child { grid-column: span 6; grid-row: auto; } .program:first-child .program__img { aspect-ratio: 16 / 10; min-height: 0; } }
@media (max-width: 600px) { .program, .program:first-child { grid-column: 1 / -1; } }

/* ---------- Berita ---------- */
.news { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.news__lead { overflow: hidden; text-decoration: none; color: inherit; display: block; }
.news__lead .news__img { aspect-ratio: 16 / 9; }
.news__img { background: var(--surface-2); overflow: hidden; }
.news__img img { width: 100%; height: 100%; object-fit: cover; }
.news__lead .news__body { padding: 24px 28px 28px; }
.news__list { display: grid; gap: 18px; align-content: start; }
.news__item { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: center; padding: 12px; text-decoration: none; color: inherit; border-radius: var(--r-md); }
.news__item .news__img { aspect-ratio: 1; border-radius: var(--r-sm); }
.news__item h3 { font-size: 1.08rem; margin: 0 0 4px; }
.meta { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.news__lead:hover h3, .news__item:hover h3 { color: var(--green); }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } }

/* ---------- Prestasi ---------- */
.awards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 22px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.award { scroll-snap-align: start; padding: 24px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; }
.award__rank { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(240, 180, 0, .18); color: var(--gold-deep); font-weight: 700; font-size: .9rem; }
.award__rank svg { width: 16px; height: 16px; }
.award h3 { font-size: 1.12rem; margin: 0; }
.award__img { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.award__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Agenda ---------- */
.agenda { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; padding: 18px; text-decoration: none; color: inherit; }
.event__date { text-align: center; padding: 12px 6px; }
.event__day { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--green); line-height: 1; }
.event__mon { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
.event h3 { font-size: 1.1rem; margin: 0 0 4px; }
@media (max-width: 760px) { .agenda { grid-template-columns: 1fr; } }

/* ---------- Galeri ---------- */
.gallery-intro { max-width: 68ch; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.filter { border: 0; cursor: pointer; padding: 10px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-soft); font: 600 .95rem var(--font-body); color: var(--green-deep); }
.section:not(.section--tint) .filter { background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.filter[aria-pressed="true"],
.section:not(.section--tint) .filter[aria-pressed="true"] { background: var(--green); color: var(--white); box-shadow: var(--shadow-in); }
.gallery { columns: 4 240px; column-gap: 18px; }
.g-item { break-inside: avoid; margin: 0 0 18px; position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.g-item[hidden] { display: none; }
.g-item button { all: unset; cursor: zoom-in; display: block; width: 100%; position: relative; }
.g-item button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.g-item img { width: 100%; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption { position: absolute; inset: auto 0 0 0; padding: 36px 14px 12px; color: var(--white); font-size: .92rem; font-weight: 600; background: linear-gradient(transparent, rgba(6, 40, 22, .82)); }
.g-item figcaption small { display: block; font-weight: 500; opacity: .85; }
.g-play { position: absolute; top: 12px; left: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--green); }
.g-play svg { width: 18px; height: 18px; margin-left: 3px; }
.g-noimg { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--green); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(6, 30, 18, .88); }
.lightbox__inner { position: relative; padding-top: 56px; }
.lightbox__media img, .lightbox__media video { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--r-md); }
.lightbox__media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-md); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--white); padding: 14px 4px 0; }
.lightbox__bar a { color: #bff0cf; }
.lightbox__close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--white); color: var(--green-ink); font-size: 1.5rem; line-height: 1; }

/* ---------- CTA band ---------- */
.band { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--green-deep); color: var(--white); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.band__bg { position: absolute; inset: 0; opacity: .22; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band > *:not(.band__bg) { position: relative; }
.band h2 { color: var(--white); }
.band p { color: #d7eadd; max-width: 55ch; margin: 0; }
.band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } .band .btn-row { justify-content: flex-start; } }

/* ---------- Kontak ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.contact__list { list-style: none; margin: 0; padding: 28px; display: grid; gap: 20px; align-content: start; }
.contact__list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.contact__icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: var(--green); background: var(--surface); box-shadow: var(--shadow-soft); }
.section:not(.section--tint) .contact__icon { box-shadow: 0 0 0 1px var(--line); }
.contact__icon svg { width: 22px; height: 22px; }
.contact__list strong { display: block; color: var(--green-ink); }
.contact__list a, .contact__list span { color: var(--muted); overflow-wrap: anywhere; }
.map { border-radius: var(--r-lg); overflow: hidden; min-height: 360px; background: var(--surface-2); box-shadow: var(--shadow-out); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
.map__empty { height: 100%; min-height: 360px; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-soft); color: var(--green-deep); }
.socials svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Halaman dalam ---------- */
.page-hero { background: var(--surface); padding-block: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 8px 0 0; }
.page-hero p { color: var(--muted); max-width: 62ch; margin: 12px 0 0; }
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-hero__img { margin-top: 32px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 8; box-shadow: var(--shadow-out); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.content { max-width: 760px; }
.content > * + * { margin-top: 1.1em; }
.content img { border-radius: var(--r-md); }
.content table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.content th, .content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.content th { background: var(--surface); }
.content blockquote { margin: 0; padding: 20px 24px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-in); }
.content .wp-block-gallery img { border-radius: var(--r-sm); }
.placeholder-note { padding: 14px 18px; border-radius: var(--r-md); background: #fff8e1; border: 1px dashed var(--gold); color: #5e4500; font-size: .95rem; }
.subpages { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 48px; }
.subpage { padding: 22px 24px; text-decoration: none; color: inherit; }
.subpage h3 { font-size: 1.1rem; margin: 0 0 4px; }
.subpage p { margin: 0; font-size: .95rem; color: var(--muted); }
.subpage:hover h3 { color: var(--green); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 22px 24px; }
.card__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card__body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card:hover h3 { color: var(--green); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.person { text-align: center; padding: 18px 18px 22px; }
.person .dome--ring { padding: 8px; }
.person .dome--ring > .dome { aspect-ratio: 3 / 4; }
.person h3 { font-size: 1.05rem; margin: 14px 0 2px; }
.person p { margin: 0; font-size: .92rem; color: var(--muted); }
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.downloads li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.downloads h3 { font-size: 1.05rem; margin: 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-soft); text-decoration: none; color: var(--green-deep); font-weight: 600; }
.pagination .current { background: var(--green); color: var(--white); box-shadow: var(--shadow-in); }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-ink); color: #cfe3d6; padding-block: 64px 28px; }
.site-footer a { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 56px; background: var(--white); border-radius: 16px; padding: 6px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); }
.site-footer h2 { font-size: 1.05rem; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: #cfe3d6; text-decoration: none; }
.site-footer ul a:hover { color: var(--white); text-decoration: underline; }
.site-footer .socials a { background: rgba(255, 255, 255, .08); box-shadow: none; color: var(--white); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1faa53; color: var(--white); box-shadow: 0 14px 30px -10px rgba(0, 100, 40, .6); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { color: var(--white); background: var(--green-deep); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.map__empty svg { width: 32px; height: 32px; display: inline-block; color: var(--green); }
