/* =====================================================================
   TAMPILAN WEBSITE — satu file untuk semua halaman.
   Warna bisa diganti di bagian ":root" paling atas.
   ===================================================================== */
:root {
  --hijau: #0b5d2a;        /* hijau tua (utama) */
  --hijau-gelap: #073d1c;
  --hijau-muda: #e8f3ec;
  --emas: #d9a516;         /* emas (aksen) */
  --emas-muda: #f6e7b4;
  --merah: #c62828;        /* dipakai sangat sedikit */
  --teks: #1f2a24;
  --teks-lembut: #55645b;
  --putih: #ffffff;
  --krem: #faf8f1;
  --garis: #e3e8e4;
  --bayang: 0 6px 24px rgba(7, 61, 28, .10);
  --radius: 16px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-judul: "Poppins", system-ui, sans-serif;
  --font-arab: "Amiri", "Traditional Arabic", serif;
  --pola: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d9a516' stroke-opacity='.28' stroke-width='1'%3E%3Cpath d='M40 6 L49 21 L66 14 L59 31 L74 40 L59 49 L66 66 L49 59 L40 74 L31 59 L14 66 L21 49 L6 40 L21 31 L14 14 L31 21 Z'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--teks); background: var(--putih);
  line-height: 1.7; font-size: 16px; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hijau); }
h1, h2, h3, h4 { font-family: var(--font-judul); line-height: 1.25; margin: 0 0 .5em; color: var(--hijau-gelap); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.arab { font-family: var(--font-arab); font-size: 1.5rem; line-height: 2; direction: rtl; }
.muted-note { font-size: .85rem; opacity: .75; }

/* Teks contoh yang harus diganti — ditandai kuning supaya mudah ditemukan */
.isi-nanti { background: #fff6cf; border-radius: 4px; padding: 0 .3em; color: #6b5300; font-style: normal; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--bayang); }
.btn-gold { background: var(--emas); color: #2b2000; }
.btn-gold:hover { background: #e8b52a; }
.btn-hijau { background: var(--hijau); color: #fff; }
.btn-hijau:hover { background: var(--hijau-gelap); }
.btn-garis { border-color: #fff; color: #fff; }
.btn-garis:hover { background: rgba(255,255,255,.14); }
.btn-garis-hijau { border-color: var(--hijau); color: var(--hijau); }

/* ---------- Navbar ---------- */
#site-header { position: sticky; top: 0; z-index: 50; background: var(--putih); border-bottom: 1px solid var(--garis); transition: box-shadow .2s; }
#site-header.bergeser { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--hijau-gelap); min-width: 0; }
.brand img { width: 40px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand strong { font-size: 1rem; }
.brand small { font-size: .72rem; color: var(--emas); font-weight: 600; letter-spacing: .02em; color: #9a7208; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { display: block; height: 3px; background: var(--hijau); border-radius: 3px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.menu { display: flex; align-items: center; gap: 1rem; }
.menu ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.menu ul a { display: block; padding: .5rem .75rem; border-radius: 8px; text-decoration: none; color: var(--teks); font-weight: 500; font-size: .93rem; }
.menu ul a:hover { background: var(--hijau-muda); }
.menu ul a.aktif { color: var(--hijau); background: var(--hijau-muda); font-weight: 600; }
.menu-cta { padding: .55rem 1.1rem; font-size: .9rem; }

@media (max-width: 960px) {
  .burger { display: flex; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--putih); flex-direction: column; align-items: stretch;
    padding: .5rem 1rem 1.2rem; border-bottom: 1px solid var(--garis); box-shadow: 0 12px 24px rgba(0,0,0,.1);
    display: none;
  }
  .menu.buka { display: flex; }
  .menu ul { flex-direction: column; }
  .menu ul a { padding: .8rem .6rem; font-size: 1rem; }
  .menu-cta { text-align: center; margin-top: .5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, rgba(7,61,28,.92), rgba(11,93,42,.86)), var(--hijau);
  padding: 4.5rem 0 5rem;
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pola); opacity: .9; pointer-events: none; }
.hero-foto { /* kalau sudah ada foto: letakkan di img/hero.jpg lalu aktifkan baris di bawah */
  /* background-image: linear-gradient(160deg, rgba(7,61,28,.85), rgba(11,93,42,.75)), url("../img/hero.jpg"); background-size: cover; background-position: center; */
}
.hero .container { position: relative; }
.hero img.hero-logo { width: 120px; margin: 0 auto 1rem; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); background: #fff; border-radius: 22px; padding: 10px 14px; }
.hero .salam { color: var(--emas-muda); margin-bottom: .2rem; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 5.5vw, 3rem); margin-bottom: .3rem; }
.hero .tagline { color: var(--emas); font-size: clamp(1.1rem, 3.5vw, 1.5rem); font-weight: 600; font-style: italic; margin-bottom: 1rem; }
.hero p.lead { max-width: 640px; margin: 0 auto 1.6rem; color: #e6f0e9; }
.hero .aksi { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Bagian umum ---------- */
section.bagian { padding: 3.5rem 0; }
section.bagian.krem { background: var(--krem); }
section.bagian.hijau { background: var(--hijau-muda); }
.judul-bagian { text-align: center; max-width: 680px; margin: 0 auto 2.2rem; }
.judul-bagian h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
.judul-bagian h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--emas); margin: .6rem auto 0; }
.judul-bagian p { color: var(--teks-lembut); }
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.kartu { background: #fff; border: 1px solid var(--garis); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--bayang); }
.kartu, #site-footer { overflow-wrap: anywhere; }
.kartu h3 { font-size: 1.1rem; }
.kartu p:last-child { margin-bottom: 0; }
.ikon-bulat { width: 56px; height: 56px; border-radius: 50%; background: var(--hijau-muda); color: var(--hijau); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: .8rem; }
.kartu.pusat { text-align: center; }
.kartu.pusat .ikon-bulat { margin-inline: auto; }

/* Placeholder foto */
.foto-kosong {
  aspect-ratio: 4 / 3; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #eef2ef, #eef2ef 12px, #e5ebe7 12px, #e5ebe7 24px);
  display: grid; place-items: center; text-align: center; color: #6a7a70; font-size: .9rem; padding: 1rem; border: 2px dashed #c3cfc7;
}
.foto-kosong.potret { aspect-ratio: 3 / 4; }

/* Sambutan */
.sambutan { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 800px) { .sambutan { grid-template-columns: 320px 1fr; } }
.sambutan blockquote { margin: 0; }
.nama-pengasuh { font-weight: 700; color: var(--hijau); margin: 0; }

/* Jenjang */
.jenjang { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.jenjang .chip { background: #fff; border: 1px solid var(--garis); border-left: 5px solid var(--emas); border-radius: 12px; padding: .8rem 1.3rem; font-weight: 600; color: var(--hijau-gelap); box-shadow: var(--bayang); }

/* Galeri */
.galeri-grid { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .galeri-grid { grid-template-columns: repeat(3, 1fr); } }
.galeri-grid a, .galeri-grid .foto-kosong { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.galeri-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.galeri-grid a:hover img { transform: scale(1.06); }

/* Berita */
.kartu-berita { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.kartu-berita .foto-kosong, .kartu-berita img { border-radius: 0; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.kartu-berita .isi { padding: 1.2rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.kartu-berita time { font-size: .8rem; color: #9a7208; font-weight: 600; }
.kartu-berita h3 a { text-decoration: none; color: var(--hijau-gelap); }
.kartu-berita h3 a:hover { color: var(--hijau); }
.kartu-berita .selengkapnya { margin-top: auto; font-weight: 600; text-decoration: none; }

/* CTA */
.cta { position: relative; background: var(--hijau); color: #fff; text-align: center; padding: 3.5rem 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: var(--pola); }
.cta .container { position: relative; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
.cta p { color: #dcebe1; max-width: 560px; margin-inline: auto; }

/* Header halaman dalam */
.page-hero { position: relative; background: var(--hijau); color: #fff; text-align: center; padding: 3rem 0 3.2rem; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pola); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.5rem); margin-bottom: .2rem; }
.page-hero p { color: var(--emas-muda); margin: 0; }

/* Langkah, FAQ, tabel */
.langkah { counter-reset: l; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding: 0; list-style: none; }
.langkah li { counter-increment: l; position: relative; background: #fff; border: 1px solid var(--garis); border-radius: var(--radius); padding: 2.6rem 1.2rem 1.2rem; text-align: center; box-shadow: var(--bayang); }
.langkah li::before { content: counter(l); position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--emas); color: #2b2000; font-weight: 700; display: grid; place-items: center; }
.langkah .ik { font-size: 2rem; display: block; margin-bottom: .3rem; }
details.faq { background: #fff; border: 1px solid var(--garis); border-radius: 12px; padding: .2rem 1.2rem; margin-bottom: .7rem; }
details.faq summary { cursor: pointer; font-weight: 600; padding: .9rem 0; color: var(--hijau-gelap); }
table.tabel { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--bayang); }
table.tabel th, table.tabel td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--garis); }
table.tabel th { background: var(--hijau); color: #fff; }
.tabel-wrap { overflow-x: auto; }

/* Artikel berita */
.artikel { max-width: 760px; margin-inline: auto; }
.artikel time { color: #9a7208; font-weight: 600; font-size: .9rem; }

/* Peta & video */
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--bayang); background: #dfe7e2; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
#site-footer { background: var(--hijau-gelap); color: #cfe0d5; }
.foot-grid { display: grid; gap: 2rem; padding: 3rem 0 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr .7fr 1.2fr; } }
#site-footer h3 { color: #fff; font-size: 1.1rem; margin-top: .6rem; }
#site-footer h4 { color: var(--emas); font-size: 1rem; }
#site-footer ul { list-style: none; padding: 0; margin: 0; }
#site-footer li { margin-bottom: .45rem; }
#site-footer a { color: #cfe0d5; text-decoration: none; }
#site-footer a:hover { color: var(--emas); text-decoration: underline; }
#site-footer .arab { color: var(--emas-muda); font-size: 1.3rem; margin-bottom: .3rem; }
.sosmed { display: flex; gap: .6rem; margin-top: 1rem; align-items: center; }
.sosmed a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.sosmed a:hover { background: var(--emas); color: #2b2000; text-decoration: none; }
.sosmed svg { width: 20px; height: 20px; }
.foot-bawah { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 0; font-size: .85rem; text-align: center; }

/* ---------- WhatsApp melayang ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.28);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: none; place-items: center; padding: 1rem; }
.lightbox.buka { display: grid; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 2rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lb-tutup { top: 14px; right: 14px; } .lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; margin: 0; padding: 0 1rem; }

/* ---------- Animasi halus ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.tampil { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
:focus-visible { outline: 3px solid var(--emas); outline-offset: 2px; }
