/* Website Profil Organisasi — tampilan publik. Warna tema dari --c / --c-dark / --c-soft (diatur di admin). */
:root {
    --c: #0f766e; --c-dark: #0b524d; --c-soft: #e2f5f3;
    --gold: #f2b705; --ink: #14201a; --muted: #5b6a62; --line: #e3e8e5; --bg: #f7f9f8; --card: #fff;
    --r: 16px; --shadow: 0 1px 2px rgba(16, 32, 24, .06), 0 8px 24px rgba(16, 32, 24, .06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- header ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; margin-right: auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.brand-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--c); display: grid; place-items: center; flex: none; }
.brand-ico svg { width: 26px; height: 26px; fill: #fff; }
.brand b { display: block; font-size: 1.02rem; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: .8rem; }
.menu { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.menu a { padding: 8px 11px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .94rem; }
.menu a:hover { background: var(--c-soft); color: var(--c-dark); }
.menu a[aria-current="page"] { background: var(--c); color: #fff; }
.menu a.hot:not([aria-current]) { color: var(--c-dark); box-shadow: inset 0 0 0 2px var(--c); }
.menu .menu-cta { background: var(--gold); color: #2b2100; margin-left: 4px; }
.menu .menu-cta:hover { background: #ffc928; color: #2b2100; }
.menu .menu-cta-line { background: transparent; color: var(--c-dark); box-shadow: inset 0 0 0 2px var(--c); }
.menu .menu-cta-line:hover { background: var(--c-soft); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 11px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 1100px) {
    .menu-btn { display: flex; }
    .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; flex-direction: column; box-shadow: var(--shadow); }
    .menu.open { display: flex; }
    .menu a { padding: 12px 14px; }
    .menu .menu-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--c); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--c-dark); }
.btn-gold { background: var(--gold); color: #2b2100; }
.btn-gold:hover { background: #ffc928; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.btn-outline { background: transparent; color: var(--c-dark); box-shadow: inset 0 0 0 2px var(--c); }
.btn-outline:hover { background: var(--c-soft); }
.btn-block { width: 100%; margin-top: 8px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(242, 183, 5, .25), transparent 40%), linear-gradient(135deg, var(--c), var(--c-dark)); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.4px); background-size: 26px 26px; pointer-events: none; }
.hero.has-img { background: linear-gradient(100deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .35)), var(--hero) center / cover no-repeat; }
.hero.has-img::after { display: none; }
.hero-in { position: relative; z-index: 1; padding: clamp(56px, 10vw, 120px) 0; }
.hero-in > * { max-width: 760px; }
.eyebrow { display: inline-block; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); opacity: .92; max-width: 620px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- statistik ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: -36px; position: relative; z-index: 2; }
.stats div { background: #fff; border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); text-align: center; }
.stats b { display: block; font-size: 1.9rem; color: var(--c); line-height: 1.1; }
.stats span { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* ---------- section umum ---------- */
.section { padding: clamp(40px, 7vw, 72px) 0; }
.band { background: #fff; border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.link-more, .link-back { font-weight: 700; text-decoration: none; }
.kicker { display: block; color: var(--c); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin-bottom: 8px; }
.page-head { background: linear-gradient(135deg, var(--c), var(--c-dark)); color: #fff; padding: clamp(36px, 6vw, 60px) 0; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 4px; }
.page-head p { margin: 0; opacity: .88; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); }
.prose p { margin-bottom: 1em; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- sambutan ---------- */
.welcome { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: center; }
.welcome-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.welcome .prose { font-size: 1.05rem; }
.sign { margin-top: 12px; }
.sign span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .welcome { grid-template-columns: 1fr; gap: 20px; } .welcome-photo { max-width: 220px; } }

/* ---------- avatar ---------- */
.avatar { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--c-soft); color: var(--c-dark); font-weight: 800; font-size: 1.8rem; margin: 0 auto 12px; }
.avatar-xl { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 20px; font-size: 4rem; margin: 0; }

/* ---------- kartu berita ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { display: block; text-decoration: none; aspect-ratio: 16 / 10; background: var(--c-soft); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: var(--c); background: linear-gradient(135deg, var(--c-soft), #fff); }
.post-body { padding: 16px 18px 20px; }
.post-body time { color: var(--muted); font-size: .85rem; font-weight: 600; }
.post-body h3 { font-size: 1.1rem; margin: 6px 0 8px; }
.post-body h3 a { color: var(--ink); text-decoration: none; }
.post-body h3 a:hover { color: var(--c); }
.post-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pager a[aria-current] { background: var(--c); color: #fff; border-color: var(--c); }

/* ---------- artikel ---------- */
.article h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-top: 16px; }
.meta { color: var(--muted); font-weight: 600; }
.article-img { width: 100%; border-radius: var(--r); margin: 8px 0 24px; }
.article .prose { font-size: 1.08rem; }
.share { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; font-weight: 600; }
.share a { margin-left: 10px; }

/* ---------- guru ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 14px; text-align: center; box-shadow: var(--shadow); }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.person b { display: block; line-height: 1.3; }
.person span { color: var(--muted); font-size: .88rem; }

/* ---------- galeri + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gallery-lg { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.gallery-item { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--c-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 10px; margin: auto; }
.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; }
.lightbox button { position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; cursor: pointer; }

/* ---------- profil ---------- */
.block { margin-bottom: 36px; }
.block h2 { font-size: 1.45rem; color: var(--c-dark); }
.visi { margin: 0; padding: 22px 24px; background: var(--c-soft); border-left: 5px solid var(--c); border-radius: 12px; font-size: 1.15rem; font-weight: 600; }
.misi { padding-left: 1.3em; }
.misi li { margin-bottom: 8px; }
.side-card { padding: 22px; position: sticky; top: 88px; }
.side-card h2 { font-size: 1.2rem; }
.side-card h3 { font-size: 1rem; margin-top: 18px; }
.ident { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .95rem; }
.ident dt { color: var(--muted); }
.ident dd { margin: 0; font-weight: 600; }

/* ---------- CTA ---------- */
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 100% 0, rgba(242, 183, 5, .35), transparent 45%), linear-gradient(135deg, var(--c), var(--c-dark)); }
.cta-box h2 { margin-bottom: 4px; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.cta-box p { margin: 0; opacity: .9; }
.cta-soft { background: var(--c-soft); color: var(--ink); }

/* ---------- formulir ---------- */
.form { padding: 24px; }
.form h2 { font-size: 1.15rem; margin: 18px 0 4px; color: var(--c-dark); }
.form h2:first-of-type { margin-top: 0; }
.form label, .form legend { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .95rem; }
.form input:not([type=radio]):not([type=checkbox]), .form textarea, .form select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cdd6d1; border-radius: 12px; font: inherit; background: #fff; }
.form input:focus, .form textarea:focus { border-color: var(--c); outline: 3px solid var(--c-soft); }
[aria-invalid="true"] { border-color: #c62828 !important; }
.radios { border: 0; padding: 0; margin: 0; }
.radios label { display: inline-flex; align-items: center; gap: 8px; margin: 4px 18px 0 0; font-weight: 500; }
.radios input { width: 20px; height: 20px; accent-color: var(--c); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.opt { color: var(--muted); font-weight: 400; }
.err { display: block; color: #c62828; font-size: .88rem; margin-top: 4px; }
.alert { background: #fdecea; color: #8a1c1c; border: 1px solid #f5c2c0; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 24px; }
.success-card { padding: 32px 24px; text-align: center; }
.ok-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.code { font-size: clamp(1.1rem, 5vw, 1.6rem); white-space: nowrap; font-weight: 800; letter-spacing: .06em; color: var(--c-dark); background: var(--c-soft); display: inline-block; padding: 8px 18px; border-radius: 12px; }
.small { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--c-soft); color: var(--c-dark); font-size: .8rem; font-weight: 800; display: grid; place-items: center; }

/* ---------- unduhan & kontak ---------- */
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.files li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.file-ico { flex: none; width: 50px; height: 50px; border-radius: 12px; background: var(--c-soft); color: var(--c-dark); font-weight: 800; font-size: .78rem; display: grid; place-items: center; }
.file-info { flex: 1; min-width: 0; }
.file-info b { display: block; overflow-wrap: anywhere; }
.file-info small { color: var(--muted); }
.map { width: 100%; height: 380px; border: 0; border-radius: var(--r); box-shadow: var(--shadow); }
.map-link { display: block; padding: 24px; text-decoration: none; }
.map-link span { display: block; color: var(--muted); margin-top: 6px; }

/* ---------- footer ---------- */
.footer { background: #0f1a14; color: #c9d5ce; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
.footer h2 { color: #fff; font-size: 1.05rem; }
.footer a { color: #fff; }
.footer .plain { list-style: none; padding: 0; margin: 0; }
.footer .plain li { margin-bottom: 6px; }
.footer .ids span { display: inline-block; margin-right: 14px; font-size: .9rem; }
.social a { display: inline-block; margin: 0 12px 6px 0; font-weight: 600; }
.credit { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0 24px; font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); z-index: 40; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery-item img { transition: none; } }

/* ---------- organisasi: demo, program, agenda, donasi ---------- */
.demo-bar { background: #1f2937; color: #f9fafb; text-align: center; font-size: .9rem; padding: 8px 16px; }
.demo-bar a { color: #fcd34d; font-weight: 700; }
.programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.program-card { overflow: hidden; display: flex; flex-direction: column; }
.program-thumb { display: block; aspect-ratio: 16 / 9; background: var(--c-soft); text-decoration: none; }
.program-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lead-dark { font-size: 1.12rem; color: var(--muted); }
.agenda-list { display: grid; gap: 14px; }
.agenda-item { display: flex; gap: 18px; padding: 16px 18px; align-items: flex-start; }
.agenda-item.is-past { opacity: .72; }
.agenda-date { flex: none; width: 78px; text-align: center; border-radius: 14px; background: var(--c); color: #fff; padding: 10px 6px; }
.agenda-item.is-past .agenda-date { background: var(--muted); }
.agenda-date b { display: block; font-size: 1.8rem; line-height: 1; }
.agenda-date span { display: block; font-size: .78rem; font-weight: 700; margin-top: 4px; }
.agenda-body h3 { font-size: 1.1rem; margin: 2px 0 4px; }
.agenda-meta { color: var(--muted); font-size: .92rem; font-weight: 600; margin: 0 0 6px; }
.agenda-body p:last-child { margin-bottom: 0; }
.h-sec { font-size: 1.3rem; color: var(--c-dark); margin-top: 28px; }
.rekening { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.rekening li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 16px 18px; align-items: center; }
.rek-bank { color: var(--muted); font-weight: 700; font-size: .9rem; }
.rek-no { font-size: 1.35rem; letter-spacing: .04em; grid-column: 1; }
.rek-an { color: var(--muted); font-size: .9rem; grid-column: 1; }
.rekening button { grid-column: 2; grid-row: 1 / span 3; }
.qris { width: 100%; max-width: 280px; margin: 0 auto 16px; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 520px) { .rekening li { grid-template-columns: 1fr; } .rekening button { grid-column: 1; grid-row: auto; margin-top: 8px; } .agenda-item { gap: 12px; } .agenda-date { width: 64px; } }

/* ---------- tata letak: dasar (klasik) + pemilih tampilan demo ---------- */
.hero-visual { display: none; }
.demo-switch { position: fixed; left: 16px; bottom: 16px; z-index: 45; font-size: .9rem; }
.demo-switch summary { list-style: none; cursor: pointer; background: #111827; color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.demo-switch summary::-webkit-details-marker { display: none; }
.demo-switch-in { position: absolute; left: 0; bottom: 52px; width: 250px; background: #fff; color: #111827; border-radius: 14px; padding: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); display: grid; gap: 6px; }
.demo-switch-in b { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; margin-top: 4px; }
.demo-switch-in > a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: #111827; font-weight: 600; border: 1px solid #e5e7eb; }
.demo-switch-in > a[aria-current] { background: #111827; color: #fff; border-color: #111827; }
.demo-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-dots a { width: 26px; height: 26px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.demo-dots a[aria-current] { outline: 3px solid #111827; outline-offset: 2px; }
.demo-switch-in small { color: #6b7280; font-size: .78rem; }
