/* ==========================================================================
   DARUL QUR'AN AT-TIBYAN IBS  -  TAMPILAN (CSS)
   ==========================================================================
   DAFTAR ISI  (cari dengan Ctrl+F, ketik judul bagiannya)
     1. PENGATURAN WARNA & UKURAN   <-- paling sering diubah, ada di bawah ini
     2. DASAR (reset, font, kontainer)
     3. TOMBOL
     4. HEADER & MENU
     5. JUDUL BAGIAN (dipakai semua section)
     6. HERO & VIDEO
     7. PROFIL (Sekapur Sirih, Visi, Misi)
     8. UNIT PENDIDIKAN & LEGALITAS
     9. PROGRAM & EKSTRAKURIKULER
    10. JADWAL
    11. PENDIDIK
    12. GALERI & MEDIA SOSIAL
    13. FOOTER & TOMBOL MELAYANG
    14. POP-UP (Pendaftaran & Brosur)
    15. HALAMAN BIASA
    16. CETAK (print)
   ========================================================================== */


/* ==========================================================================
   1. PENGATURAN WARNA & UKURAN
   --------------------------------------------------------------------------
   Ubah nilai di sebelah kanan titik dua ( : ), lalu simpan.
   ========================================================================== */
:root {

	/* ---------- WARNA UTAMA ---------- */
	--biru:        #0474BA;   /* biru utama */
	--biru-tua:    #035d94;
	--biru-muda:   #00A7E1;   /* biru cerah */
	--kuning:      #FFA630;
	--oranye:      #F17720;   /* warna tombol utama */
	--oranye-tua:  #d86515;
	--hijau:       #059669;

	/* ---------- WARNA TEKS & LATAR ---------- */
	--teks:        #1F2937;
	--latar:       #FAFAFA;
	--abu-50:      #f8fafc;
	--abu-100:     #f1f5f9;
	--abu-200:     #e2e8f0;
	--abu-300:     #cbd5e1;
	--abu-400:     #94a3b8;
	--abu-500:     #64748b;
	--abu-600:     #475569;
	--abu-700:     #334155;
	--abu-900:     #0f172a;

	/* ---------- UKURAN FOTO & VIDEO (TETAP) ----------
	   Foto/video apa pun yang Anda ganti akan otomatis dipotong
	   mengikuti rasio / ukuran di bawah ini, sehingga tampilan
	   situs tidak berubah. */
	--rasio-video:           16 / 9;   /* video YouTube di halaman depan */
	--rasio-foto-galeri:     4 / 3;    /* foto kegiatan di galeri */
	--rasio-foto-pendidik:   4 / 5;    /* foto guru, pimpinan, pengurus (potret) */
	--ukuran-foto-pengasuh:  224px;    /* foto Pengasuh (kotak) di Sekapur Sirih */
	--ukuran-foto-dewan:     56px;     /* foto kecil Dewan Pembina (kotak) */
	--ukuran-logo:           48px;     /* logo di header (kotak) */

	/* ---------- LAIN-LAIN ---------- */
	--tinggi-header:  80px;
	--lebar-maks:     1280px;
	--font:           'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}


/* ==========================================================================
   2. DASAR
   ========================================================================== */
*, *::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(--latar);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }

::selection { background: var(--biru-muda); color: #fff; }

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.text-blue { color: var(--biru); }
.text-yellow { color: #fcd34d; }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* Jarak scroll agar judul tidak tertutup header saat menu diklik */
section[id], div[id="legalitas"] { scroll-margin-top: calc(var(--tinggi-header) + 8px); }

.container {
	width: 100%;
	max-width: var(--lebar-maks);
	margin: 0 auto;
	padding: 0 16px;
}
.container--medium { max-width: 1024px; }
.container--narrow { max-width: 800px; }

@media (min-width: 640px)  { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* Warna ikon kotak kecil (dipakai di banyak tempat) */
.tone-blue,   .tone-biru   { background: #eff6ff; color: var(--biru); }
.tone-orange, .tone-oranye { background: #fff7ed; color: var(--oranye); }
.tone-cyan                 { background: #ecfeff; color: var(--biru-muda); }
.tone-green,  .tone-hijau  { background: #ecfdf5; color: #059669; }
.tone-ungu                 { background: #faf5ff; color: #9333ea; }
.tone-mawar                { background: #fff1f2; color: #e11d48; }


/* ==========================================================================
   3. TOMBOL
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border: 0;
	border-radius: 12px;
	font-weight: 700;
	font-size: .875rem;
	line-height: 1.25;
	text-align: center;
	transition: all .2s ease;
}
.btn-sm { padding: 10px 18px; font-size: .8rem; border-radius: 10px; }
.btn-lg { padding: 14px 24px; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }
@media (min-width: 640px) { .btn-lg { font-size: 1rem; } }

.btn-orange { background: var(--oranye); color: #fff; box-shadow: 0 8px 20px -6px rgba(241,119,32,.45); }
.btn-orange:hover { background: var(--oranye-tua); transform: translateY(-2px); }
.btn-blue { background: var(--biru); color: #fff; box-shadow: 0 6px 16px -6px rgba(4,116,186,.5); }
.btn-blue:hover { background: var(--biru-tua); }
.btn-outline { background: #fff; color: var(--biru); border: 2px solid var(--biru); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.btn-outline:hover { background: #eff6ff; transform: translateY(-2px); }
.btn-green-soft { background: #d1fae5; color: #065f46; }
.btn-green-soft:hover { background: #a7f3d0; }
.btn-green-soft i { color: #059669; font-size: 1.15em; }
.btn-soft { background: #eff6ff; color: var(--biru); }
.btn-soft:hover { background: var(--biru); color: #fff; }
.btn-gray { background: var(--abu-100); color: var(--abu-700); }
.btn-gray:hover { background: var(--abu-200); }
.icon-orange { color: var(--oranye); }


/* ==========================================================================
   4. HEADER & MENU
   --------------------------------------------------------------------------
   Menu dibuat satu kata supaya ringkas, dan tulisan nama di sebelah logo
   dibuat SEJAJAR dalam satu baris (white-space: nowrap).
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,255,.96);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--abu-100);
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: var(--tinggi-header);
}

/* ----- Logo + nama (SATU BARIS) ----- */
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 1;
	min-width: 0;
}
.brand-logo {
	width: var(--ukuran-logo);
	height: var(--ukuran-logo);
	flex: 0 0 var(--ukuran-logo);
	border-radius: 12px;
	background: linear-gradient(135deg, var(--biru), var(--biru-muda));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	box-shadow: 0 6px 14px -6px rgba(4,116,186,.5);
	transition: transform .2s;
	overflow: hidden;
}
.brand:hover .brand-logo { transform: scale(1.05); }
.brand-logo.has-image { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.brand-name {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--biru);
	white-space: nowrap;          /* <-- menjaga tulisan tetap 1 baris */
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (max-width: 480px) {
	.brand { gap: 10px; }
	.brand-name { font-size: .92rem; }
}
@media (max-width: 360px) { .brand-name { font-size: .82rem; } }

/* ----- Menu desktop ----- */
.main-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 16px; }
@media (min-width: 1360px) { .nav-list { gap: 24px; } }
.nav-list li { margin: 0; padding: 0; list-style: none; }
.nav-list a {
	position: relative;
	display: block;
	padding: 4px 0;
	font-size: .875rem;
	font-weight: 600;
	color: var(--abu-700);
	white-space: nowrap;
	transition: color .2s;
}
.nav-list a::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 0; height: 2px;
	background: var(--biru-muda);
	transition: width .25s;
}
.nav-list a:hover { color: var(--biru); }
.nav-list a:hover::after { width: 100%; }

.header-cta { display: none; flex-shrink: 0; }

/* ----- Tombol menu HP ----- */
.nav-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	flex-shrink: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--abu-700);
	font-size: 1.5rem;
}
.nav-toggle:hover { background: var(--abu-100); color: var(--biru); }

/* ----- Menu HP ----- */
.mobile-menu {
	background: #fff;
	border-top: 1px solid var(--abu-100);
	border-bottom: 1px solid var(--abu-200);
	box-shadow: 0 16px 28px -12px rgba(0,0,0,.18);
	padding: 12px 0 20px;
	max-height: calc(100vh - var(--tinggi-header));
	overflow-y: auto;
}
.mobile-menu .container > * + * { margin-top: 10px; }
.mobile-list { margin-bottom: 14px; }
.mobile-list li { list-style: none; }
.mobile-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	font-weight: 600;
	color: var(--abu-700);
}
.mobile-list a::before {
	content: "\f054";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: .7rem;
	color: var(--abu-300);
}
.mobile-list a:hover { background: var(--abu-50); color: var(--biru); }

/* ----- Layar lebar: tampilkan menu, sembunyikan tombol HP ----- */
@media (min-width: 1200px) {
	.main-nav { display: block; }
	.header-cta { display: block; }
	.nav-toggle, .mobile-menu { display: none !important; }
}


/* ==========================================================================
   5. JUDUL BAGIAN (dipakai semua section)
   ========================================================================== */
.section { padding: 80px 0; }
.section--white { background: #fff; }
.section--gray { background: var(--abu-50); }
.section--bordered { border-top: 1px solid rgba(226,232,240,.8); border-bottom: 1px solid rgba(226,232,240,.8); }
.section--bordered-top { border-top: 1px solid rgba(226,232,240,.8); }

.section-head { text-align: center; max-width: 768px; margin: 0 auto 64px; }
.section-head--small { margin-bottom: 36px; }

.eyebrow {
	display: block;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.eyebrow--cyan   { color: var(--biru-muda); }
.eyebrow--blue   { color: var(--biru); }
.eyebrow--orange { color: var(--oranye); }

.section-title {
	margin-top: 8px;
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--abu-900);
}
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }

.title-bar {
	width: 80px; height: 4px;
	margin: 16px auto 0;
	border-radius: 999px;
	background: linear-gradient(to right, var(--biru), var(--kuning));
}
.section-desc { margin-top: 16px; color: var(--abu-600); line-height: 1.7; }

.subsection-title { margin-top: 4px; font-size: 1.5rem; font-weight: 800; color: var(--abu-900); }
@media (min-width: 640px) { .subsection-title { font-size: 1.875rem; } }
.subsection-desc { margin-top: 4px; font-size: .875rem; color: var(--abu-500); }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: .75rem;
	font-weight: 700;
	margin-bottom: 12px;
}
.chip--blue  { background: rgba(4,116,186,.1); color: var(--biru); }
.chip--green { background: #ecfdf5; color: #047857; }


/* ==========================================================================
   6. HERO & VIDEO
   ========================================================================== */
.hero {
	position: relative;
	overflow: hidden;
	padding: 32px 0 64px;
	background: linear-gradient(to bottom, rgba(239,246,255,.6), #fff 50%, var(--abu-50));
}
@media (min-width: 1024px) { .hero { padding: 56px 0 96px; } }

.hero-glow { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .15; pointer-events: none; }
.hero-glow--blue   { width: 600px; height: 600px; top: -190px; right: -60px; background: linear-gradient(to top right, var(--biru-muda), var(--biru)); }
.hero-glow--orange { width: 500px; height: 500px; top: -160px; left: -60px;  background: linear-gradient(to bottom right, var(--kuning), var(--oranye)); }

.hero-inner { position: relative; z-index: 1; }

.hero-announce-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.hero-announce {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #bfdbfe;
	font-size: .75rem;
	font-weight: 600;
	color: var(--biru);
	text-align: left;
}
@media (min-width: 640px) { .hero-announce { font-size: .875rem; } }
.hero-announce .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--oranye); flex-shrink: 0; }
.hero-announce i { font-size: .75rem; color: var(--oranye); }

.hero-text { text-align: center; max-width: 896px; margin: 0 auto; }
.hero-title {
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--abu-900);
	text-wrap: balance;
}
@media (min-width: 640px)  { .hero-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3rem; } }

.hero-lead { margin: 20px auto 0; max-width: 768px; font-size: 1rem; line-height: 1.7; color: var(--abu-600); }
@media (min-width: 640px) { .hero-lead { font-size: 1.125rem; } }

.hero-buttons { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (min-width: 640px) { .hero-buttons { gap: 16px; } }

/* ----- VIDEO (rasio tetap, lihat bagian 1) ----- */
.video-wrap { margin: 48px auto 0; max-width: 896px; }
@media (min-width: 1024px) { .video-wrap { margin-top: 64px; } }

.video-card {
	padding: 8px;
	border-radius: 16px;
	background: linear-gradient(to top right, var(--biru), var(--biru-muda), var(--kuning));
	box-shadow: 0 25px 50px -12px rgba(30,58,138,.18);
}
@media (min-width: 640px) { .video-card { padding: 12px; border-radius: 24px; } }

.video-frame {
	position: relative;
	width: 100%;
	aspect-ratio: var(--rasio-video);
	overflow: hidden;
	border-radius: 12px;
	background: #020617;
}
@media (min-width: 640px) { .video-frame { border-radius: 16px; } }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: #cbd5e1; font-size: .9rem; }

.video-caption {
	padding: 10px 12px 4px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	color: #fff;
	font-size: .75rem;
}
@media (min-width: 640px) { .video-caption { padding: 12px 16px 6px; font-size: .875rem; } }
.video-caption-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.video-caption-title i { color: #f87171; font-size: 1.15rem; }
.video-caption-note { display: none; color: #dbeafe; font-size: .75rem; }
@media (min-width: 640px) { .video-caption-note { display: inline; } }

/* ----- 4 keunggulan ----- */
.highlights { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px)  { .highlights { gap: 24px; } }
@media (min-width: 1024px) { .highlights { grid-template-columns: repeat(4, 1fr); } }

.highlight {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--abu-200);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
@media (min-width: 640px) { .highlight { flex-direction: row; align-items: flex-start; gap: 16px; } }
.highlight-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.highlight h2 { font-size: 1rem; font-weight: 700; color: var(--abu-900); }
.highlight p { margin-top: 2px; font-size: .75rem; color: var(--abu-500); }


/* ==========================================================================
   7. PROFIL (Sekapur Sirih, Visi, Misi)
   ========================================================================== */
.sekapur {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: center;
	margin-bottom: 64px;
	padding: 24px;
	border: 1px solid rgba(226,232,240,.8);
	border-radius: 24px;
	background: linear-gradient(to bottom right, var(--abu-50), rgba(239,246,255,.5), var(--abu-50));
	box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
@media (min-width: 640px)  { .sekapur { padding: 40px; } }
@media (min-width: 1024px) { .sekapur { grid-template-columns: 4fr 8fr; } }

.sekapur-person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pengasuh-wrap { position: relative; }

/* FOTO PENGASUH - ukuran tetap (lihat --ukuran-foto-pengasuh di bagian 1) */
.pengasuh-photo {
	position: relative;
	width: var(--ukuran-foto-pengasuh);
	height: var(--ukuran-foto-pengasuh);
	max-width: 100%;
	overflow: hidden;
	border: 4px solid #fff;
	border-radius: 16px;
	background: linear-gradient(to top right, var(--biru), var(--biru-muda));
	box-shadow: 0 20px 25px -5px rgba(0,0,0,.12);
}
.pengasuh-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pengasuh-placeholder { position: absolute; inset: 8px; border-radius: 10px; background: rgba(4,116,186,.1); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.pengasuh-placeholder i { font-size: 3.75rem; opacity: .9; }
.pengasuh-placeholder span { margin-top: 12px; padding: 4px 8px; border-radius: 4px; background: rgba(0,0,0,.2); font-size: .75rem; font-weight: 600; }
.pengasuh-badge { position: absolute; right: -8px; bottom: -12px; padding: 4px 12px; border-radius: 8px; background: var(--oranye); color: #fff; font-size: .75rem; font-weight: 700; box-shadow: 0 4px 8px rgba(0,0,0,.15); }
.pengasuh-name { margin-top: 16px; font-size: 1.125rem; font-weight: 700; color: var(--abu-900); }
.pengasuh-role { font-size: .75rem; font-weight: 600; color: var(--biru); }

.sekapur-title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: var(--abu-900); }
.sekapur-text p { margin-top: 16px; color: var(--abu-600); line-height: 1.7; text-align: justify; }
.sekapur-text p + p { margin-top: 12px; }
.sekapur-text .chip { margin-bottom: 12px; }
.timeline-chips { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(226,232,240,.8); display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8rem; color: var(--abu-700); }
.timeline-chips i { color: #10b981; margin-right: 6px; }

/* Visi */
.visi { position: relative; overflow: hidden; margin-bottom: 56px; padding: 32px; border-radius: 24px; color: #fff; background: linear-gradient(to right, var(--biru), var(--biru-tua), var(--biru)); box-shadow: 0 20px 25px -5px rgba(0,0,0,.15); }
@media (min-width: 640px) { .visi { padding: 40px; } }
.visi-circle { position: absolute; top: -64px; right: -64px; width: 256px; height: 256px; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }
.visi-inner { position: relative; max-width: 896px; margin: 0 auto; text-align: center; }
.visi-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 4px 14px; border-radius: 999px; background: var(--kuning); color: var(--abu-900); font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.visi-quote { font-size: 1.25rem; font-weight: 600; font-style: italic; line-height: 1.7; letter-spacing: .01em; }
@media (min-width: 640px) { .visi-quote { font-size: 1.5rem; } }
.visi-by { margin-top: 20px; font-size: .875rem; font-weight: 500; color: #dbeafe; letter-spacing: .02em; }

/* 5 Misi */
.misi-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px)  { .misi-grid { grid-template-columns: repeat(2, 1fr); } .misi-card:last-child { grid-column: span 2; } }
@media (min-width: 1024px) { .misi-grid { grid-template-columns: repeat(3, 1fr); } .misi-card:last-child { grid-column: span 1; } }

.misi-card { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; background: #fff; border: 1px solid rgba(226,232,240,.9); border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: all .2s; }
.misi-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); transform: translateY(-4px); }
.misi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.misi-no { font-size: 1.875rem; font-weight: 900; letter-spacing: -.05em; color: var(--abu-200); }
.misi-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--abu-50); border: 1px solid var(--abu-100); color: var(--biru); font-size: 1.25rem; }
.misi-card h4 { margin-bottom: 8px; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--abu-900); }
.misi-card p { font-size: .875rem; line-height: 1.7; color: var(--abu-600); }
.misi-foot { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--abu-100); display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; color: var(--biru); }
.misi-foot i { font-size: .625rem; }


/* ==========================================================================
   8. UNIT PENDIDIKAN & LEGALITAS
   ========================================================================== */
.unit-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px)  { .unit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .unit-grid { grid-template-columns: repeat(3, 1fr); } }

.unit-card { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; background: #fff; border: 2px solid var(--biru); border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: all .3s; }
.unit-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,.12); }
.unit-card--biru   { border-color: var(--biru);   --badge: #2563eb; }
.unit-card--hijau  { border-color: #059669;       --badge: #059669; }
.unit-card--kuning { border-color: var(--kuning); --badge: #d97706; }

.unit-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.unit-badge { padding: 4px 12px; border-radius: 999px; background: var(--badge); color: #fff; font-size: .75rem; font-weight: 700; }
.unit-tag { padding: 4px 10px; border-radius: 6px; background: var(--abu-100); color: var(--abu-600); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.unit-name { font-size: 1.25rem; font-weight: 800; color: var(--abu-900); transition: color .2s; }
.unit-card:hover .unit-name { color: var(--biru); }
.unit-tagline { margin-top: 4px; font-size: .75rem; font-weight: 600; color: var(--biru-muda); }
.unit-desc { margin-top: 16px; font-size: .875rem; line-height: 1.7; color: var(--abu-600); }

.unit-legal { margin-top: 24px; padding: 16px; border-radius: 12px; background: var(--abu-50); border: 1px solid rgba(226,232,240,.8); font-size: .75rem; }
.unit-legal-row { display: flex; align-items: center; justify-content: space-between; }
.unit-legal span { color: var(--abu-500); font-weight: 500; }
.unit-legal strong { color: var(--abu-700); }
.unit-legal-sk { display: flex; flex-direction: column; margin-top: 8px; padding-top: 4px; border-top: 1px solid rgba(226,232,240,.6); }
.unit-legal-sk span { font-size: .6875rem; }
.unit-legal-sk strong { font-size: .6875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.unit-feat-title { margin: 24px 0 12px; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--abu-400); }
.unit-feat { display: flex; flex-direction: column; gap: 8px; font-size: .75rem; color: var(--abu-700); }
.unit-feat li { display: flex; align-items: flex-start; gap: 8px; }
.unit-feat i { margin-top: 2px; color: #059669; }
.unit-action { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--abu-100); }

/* Legalitas */
.legalitas { margin-top: 64px; padding: 32px; background: #fff; border: 1px solid var(--abu-200); border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.05); display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 640px)  { .legalitas { padding: 40px; } }
@media (min-width: 1024px) { .legalitas { grid-template-columns: 8fr 4fr; } }
.legalitas-title { font-size: 1.5rem; font-weight: 800; color: var(--abu-900); }
.legalitas-desc { margin-top: 12px; font-size: .875rem; line-height: 1.7; color: var(--abu-600); }
.legal-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .legal-grid { grid-template-columns: repeat(2, 1fr); } }
.legal-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px; background: var(--abu-50); border: 1px solid var(--abu-200); border-radius: 12px; }
.legal-label { font-size: .75rem; font-weight: 500; color: var(--abu-500); }
.legal-number { font-size: 1rem; font-weight: 700; }
.legal-number--biru   { color: var(--biru); }
.legal-number--hijau  { color: #047857; }
.legal-number--kuning { color: #b45309; }
.copy-btn { padding: 8px; border: 0; background: transparent; color: var(--abu-400); font-size: 1rem; transition: color .2s; }
.copy-btn:hover { color: var(--biru); }
.copy-btn.is-copied { color: #059669; }

.legalitas-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #fff; border-radius: 16px; background: linear-gradient(to bottom right, var(--biru), var(--biru-muda)); }
.legalitas-seal { width: 64px; height: 64px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 1.875rem; color: var(--kuning); }
.legalitas-side h4 { font-size: 1.125rem; font-weight: 700; }
.legalitas-side p { margin-top: 8px; font-size: .75rem; line-height: 1.7; color: #dbeafe; }
.legalitas-status { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; background: #fff; color: var(--biru); font-size: .75rem; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.legalitas-status i { color: #10b981; }


/* ==========================================================================
   9. PROGRAM & EKSTRAKURIKULER
   ========================================================================== */
.program-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
@media (min-width: 1024px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }

.program-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; border-radius: 24px; color: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,.15); }
.program-card--blue   { background: linear-gradient(to bottom right, #1e3a8a, var(--biru), #035b92); }
.program-card--orange { background: linear-gradient(to bottom right, #f59e0b, var(--oranye), #c7580b); }
.program-icon { width: 56px; height: 56px; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: rgba(255,255,255,.1); font-size: 1.875rem; }
.icon-yellow { color: var(--kuning); }
.icon-white { color: #fff; }
.program-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.program-title { margin-top: 4px; font-size: 1.5rem; font-weight: 800; }
@media (min-width: 640px) { .program-title { font-size: 1.875rem; } }
.program-text { margin-top: 12px; font-size: .875rem; line-height: 1.7; opacity: .92; }
.program-points { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.program-point { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }
.program-point strong { display: block; font-size: .875rem; }
.program-point p { margin-top: 2px; font-size: .75rem; opacity: .9; }
.program-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: .75rem; }
.program-foot span { opacity: .8; }

.ekskul-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px)  { .ekskul-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ekskul-grid { grid-template-columns: repeat(4, 1fr); } }
.ekskul-card { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; background: #fff; border: 1px solid rgba(226,232,240,.8); border-radius: 16px; transition: all .2s; }
.ekskul-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); transform: translateY(-4px); }
.ekskul-icon { width: 48px; height: 48px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.25rem; }
.ekskul-card h4 { margin-bottom: 8px; font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--abu-900); }
.ekskul-card p { font-size: .75rem; line-height: 1.7; color: var(--abu-600); }
.ekskul-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--abu-100); display: flex; align-items: center; justify-content: space-between; font-size: .6875rem; font-weight: 600; color: var(--abu-400); }
.ekskul-foot i { color: var(--biru-muda); }


/* ==========================================================================
   10. JADWAL
   ========================================================================== */
.tabs-wrap { display: flex; justify-content: center; margin-bottom: 40px; }
.tabs { display: flex; align-items: center; width: 100%; max-width: 448px; padding: 6px; border-radius: 16px; background: rgba(226,232,240,.8); box-shadow: inset 0 2px 4px rgba(0,0,0,.06); }
.tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 0; border-radius: 12px; background: transparent; color: var(--abu-600); font-size: .75rem; font-weight: 700; transition: all .2s; }
@media (min-width: 640px) { .tab { font-size: .875rem; } }
.tab:hover { color: var(--abu-900); }
.tab.is-active { background: #fff; color: var(--biru); box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.tab--orange.is-active { background: var(--oranye); color: #fff; }

.schedule-intro { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; padding: 20px; background: #fff; border: 1px solid var(--abu-200); border-radius: 16px; }
.schedule-intro-icon { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.25rem; }
.schedule-intro h3 { font-size: 1rem; font-weight: 700; color: var(--abu-900); }
.schedule-intro p { margin-top: 2px; font-size: .75rem; color: var(--abu-500); }

.schedule-list { overflow: hidden; background: #fff; border: 1px solid var(--abu-200); border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.schedule-row { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-top: 1px solid var(--abu-100); transition: background .2s; }
.schedule-row:first-child { border-top: 0; }
.schedule-row:hover { background: rgba(239,246,255,.3); }
@media (min-width: 640px) { .schedule-row { flex-direction: row; align-items: center; justify-content: space-between; padding: 20px; } }
.schedule-main { display: flex; align-items: center; gap: 12px; }
@media (min-width: 640px) { .schedule-main { gap: 16px; } }
.schedule-time { flex: 0 0 auto; min-width: 116px; padding: 4px 10px; border-radius: 8px; background: var(--abu-100); color: var(--abu-700); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .75rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .schedule-time { min-width: 128px; font-size: .875rem; } }
.schedule-icon { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--abu-50); border: 1px solid var(--abu-100); color: var(--abu-600); font-size: .75rem; transition: all .2s; }
.schedule-row:hover .schedule-icon { color: var(--biru); border-color: #bfdbfe; }
.schedule-activity { font-size: .875rem; font-weight: 600; line-height: 1.4; color: var(--abu-900); }
.schedule-cat { align-self: flex-start; padding: 2px 10px; border-radius: 6px; border: 1px solid var(--abu-200); background: var(--abu-100); color: var(--abu-700); font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
@media (min-width: 640px) { .schedule-cat { align-self: center; } }
.cat-ibadah    { background: #dbeafe; color: var(--biru);      border-color: #bfdbfe; }
.cat-quran     { background: #fef3c7; color: var(--oranye);    border-color: #fde68a; }
.cat-akademik  { background: #e0e7ff; color: #4338ca;          border-color: #c7d2fe; }
.cat-bahasa    { background: #cffafe; color: var(--biru-muda); border-color: #a5f3fc; }
.cat-olahraga  { background: #d1fae5; color: #047857;          border-color: #a7f3d0; }
.cat-dakwah    { background: #ffedd5; color: var(--oranye);    border-color: #fed7aa; }
.cat-kreatif, .cat-ekskul { background: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }
.note-center { margin-top: 32px; text-align: center; font-size: .75rem; color: var(--abu-500); }
.note-center i { margin-right: 4px; color: var(--biru-muda); }


/* ==========================================================================
   11. PENDIDIK (Dewan Pembina, Guru, Pengurus)
   --------------------------------------------------------------------------
   Rasio foto kartu diatur oleh --rasio-foto-pendidik (bagian 1).
   ========================================================================== */
.dewan { margin-bottom: 56px; padding: 24px; border: 1px solid rgba(191,219,254,.8); border-radius: 24px; background: linear-gradient(to bottom right, rgba(239,246,255,.7), #fff, rgba(239,246,255,.4)); }
@media (min-width: 640px) { .dewan { padding: 32px; } }
.dewan-head { text-align: center; margin-bottom: 24px; }
.dewan-head h3 { margin-top: 4px; font-size: 1.25rem; font-weight: 700; color: var(--abu-900); }
@media (min-width: 640px) { .dewan-head h3 { font-size: 1.5rem; } }
.dewan-head .eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .05em; }
.dewan-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .dewan-grid { grid-template-columns: repeat(3, 1fr); } }
.dewan-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--abu-200); border-radius: 16px; transition: border-color .2s; }
.dewan-card:hover { border-color: var(--biru); }
.dewan-avatar { position: relative; flex: 0 0 var(--ukuran-foto-dewan); width: var(--ukuran-foto-dewan); height: var(--ukuran-foto-dewan); overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(to top right, var(--biru), var(--biru-muda)); color: #fff; font-size: 1.125rem; }
.dewan-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.dewan-card h4 { font-size: .875rem; font-weight: 700; line-height: 1.35; color: var(--abu-900); }
@media (min-width: 640px) { .dewan-card h4 { font-size: 1rem; } }
.dewan-card p { margin-top: 2px; font-size: .75rem; font-weight: 600; color: var(--biru); }

.edu-controls { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
@media (min-width: 768px) { .edu-controls { flex-direction: row; align-items: center; } }
.edu-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { padding: 6px 14px; border: 0; border-radius: 8px; background: var(--abu-100); color: var(--abu-600); font-size: .75rem; font-weight: 700; transition: all .2s; }
.filter-btn:hover { background: var(--abu-200); }
.filter-btn.is-active { background: var(--biru); color: #fff; }

.edu-search { position: relative; width: 100%; }
@media (min-width: 768px) { .edu-search { width: 288px; flex-shrink: 0; } }
.edu-search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--abu-400); font-size: .75rem; pointer-events: none; }
.edu-search input { width: 100%; padding: 8px 34px 8px 36px; border: 1px solid var(--abu-200); border-radius: 12px; background: var(--abu-50); font-size: .75rem; }
.edu-search input:focus { outline: 0; background: #fff; box-shadow: 0 0 0 2px var(--biru-muda); }
.edu-search button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--abu-400); font-size: .75rem; }

.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px)  { .edu-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .edu-grid { grid-template-columns: repeat(4, 1fr); } }

.edu-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid rgba(226,232,240,.9); border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: all .2s; }
.edu-card:hover { border-color: #bfdbfe; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.edu-card[hidden] { display: none !important; }

/* FOTO KARTU - rasio tetap (--rasio-foto-pendidik) */
.edu-photo { position: relative; width: 100%; aspect-ratio: var(--rasio-foto-pendidik); overflow: hidden; background: linear-gradient(to bottom right, var(--abu-100), #eef2f7); }
.edu-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.edu-photo-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--abu-300); font-size: 3rem; }
.edu-haafizh { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 6px; background: #fffbeb; border: 1px solid #fde68a; color: #b45309; font-size: .625rem; font-weight: 700; }

.edu-body { flex: 1; padding: 14px 14px 10px; }
.edu-body h4 { font-size: .8125rem; font-weight: 700; line-height: 1.35; color: var(--abu-900); }
.edu-body p { margin-top: 6px; font-size: .75rem; font-weight: 500; line-height: 1.5; color: var(--abu-500); }
@media (min-width: 640px) { .edu-body h4 { font-size: .875rem; } }
.edu-foot { margin: 0 14px; padding: 8px 0 12px; border-top: 1px solid var(--abu-100); display: flex; align-items: center; justify-content: space-between; font-size: .6875rem; font-weight: 600; color: var(--biru); }
.edu-foot i { color: #10b981; font-size: .75rem; }
.edu-empty { padding: 48px 0; text-align: center; font-size: .875rem; color: var(--abu-500); }


/* ==========================================================================
   12. GALERI & MEDIA SOSIAL
   --------------------------------------------------------------------------
   Rasio foto galeri diatur oleh --rasio-foto-galeri (bagian 1).
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 64px; }
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--abu-200); border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05); cursor: pointer; transition: box-shadow .3s; }
.gallery-card:hover, .gallery-card:focus-visible { box-shadow: 0 20px 25px -5px rgba(0,0,0,.12); outline: 0; }

.gallery-photo { position: relative; width: 100%; aspect-ratio: var(--rasio-foto-galeri); overflow: hidden; background: var(--abu-100); }
.gallery-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-card:hover .gallery-photo img { transform: scale(1.05); }
.gallery-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--abu-300); font-size: 3rem; }
.gallery-hover { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.2), transparent); opacity: 0; transition: opacity .2s; }
.gallery-card:hover .gallery-hover { opacity: 1; }
.gallery-hover span { color: #fff; font-size: .75rem; font-weight: 700; }
.gallery-hover i { margin-right: 6px; }
.gallery-cat { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(4,116,186,.9); color: #fff; font-size: .6875rem; font-weight: 700; }

.gallery-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; }
@media (min-width: 640px) { .gallery-body { padding: 20px; } }
.gallery-body h4 { font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--abu-900); transition: color .2s; }
.gallery-card:hover .gallery-body h4 { color: var(--biru); }
.gallery-body p { margin-top: 8px; font-size: .75rem; line-height: 1.7; color: var(--abu-500); }
.gallery-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--abu-100); display: flex; align-items: center; justify-content: space-between; font-size: .6875rem; font-weight: 600; color: var(--biru-muda); }

/* Media sosial */
.social-box { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding: 24px; background: #fff; border: 1px solid var(--abu-200); border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
@media (min-width: 640px)  { .social-box { padding: 40px; } }
@media (min-width: 1024px) { .social-box { grid-template-columns: 7fr 5fr; } }
.social-title { font-size: 1.5rem; font-weight: 800; color: var(--abu-900); }
.social-desc { margin-top: 12px; font-size: .875rem; line-height: 1.7; color: var(--abu-600); }
.social-buttons { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-social { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; color: #fff; font-size: .75rem; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.1); transition: all .2s; }
.btn-social i { font-size: 1rem; }
.btn-social:hover { filter: brightness(.92); }
.btn-social--facebook  { background: #1877F2; }
.btn-social--instagram { background: linear-gradient(to right, #9333ea, #db2777, #f59e0b); }
.btn-social--youtube   { background: #dc2626; }
.btn-social--tiktok    { background: var(--abu-900); }

.social-card { padding: 20px; border: 1px solid #dbeafe; border-radius: 16px; background: linear-gradient(to bottom, #eff6ff, var(--abu-50)); box-shadow: inset 0 2px 4px rgba(0,0,0,.05); }
.social-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--abu-200); }
.social-card-logo { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--biru); color: #fff; font-size: 1.25rem; }
.social-card-head h5 { font-size: .875rem; font-weight: 700; color: var(--abu-900); }
.social-card-head p { font-size: .6875rem; color: var(--abu-500); }
.social-card-head p i { font-size: .625rem; }
.social-card-text { padding: 12px 0; font-size: .75rem; line-height: 1.7; color: var(--abu-700); }
.social-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: #fff; border: 1px solid rgba(226,232,240,.8); border-radius: 12px; font-size: .75rem; color: var(--abu-600); }
.social-card-foot span { color: #2563eb; font-weight: 600; }
.social-card-foot span i { margin-right: 6px; }
.social-card-foot a { font-weight: 700; color: var(--biru); }
.social-card-foot a:hover { text-decoration: underline; }

/* Lightbox (foto besar) */
.lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox-box { width: 100%; max-width: 768px; max-height: 100%; overflow-y: auto; background: #fff; border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); }
.lightbox-photo { position: relative; aspect-ratio: var(--rasio-foto-galeri); background: #000; }
.lightbox-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 1.125rem; transition: background .2s; }
.lightbox-close:hover { background: #000; }
.lightbox-body { padding: 24px; }
.lightbox-cat { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--biru); }
.lightbox-body h3 { margin-top: 4px; font-size: 1.25rem; font-weight: 700; color: var(--abu-900); }
.lightbox-body p { margin-top: 8px; font-size: .875rem; line-height: 1.7; color: var(--abu-600); }


/* ==========================================================================
   13. FOOTER & TOMBOL MELAYANG
   ========================================================================== */
.site-footer { padding: 64px 0 48px; background: var(--biru); color: #fff; border-top: 4px solid var(--kuning); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(96,165,250,.3); }
@media (min-width: 768px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 4fr 2fr 3fr 3fr; } }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.brand-logo--light { background: #fff; color: var(--biru); box-shadow: 0 4px 6px rgba(0,0,0,.15); }
.brand-logo--light.has-image { background: transparent; box-shadow: none; }
.footer-brand-name { font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.footer-about { font-size: .875rem; line-height: 1.7; color: #dbeafe; text-align: justify; }
.footer-nspp { margin-top: 20px; padding: 14px; border-radius: 12px; background: rgba(30,64,175,.4); border: 1px solid rgba(96,165,250,.2); font-size: .75rem; color: #dbeafe; }
.footer-nspp strong { display: block; margin-bottom: 4px; color: #fcd34d; }
.footer-nspp strong i { margin-right: 6px; }

.footer-title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 1rem; font-weight: 700; }
.footer-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kuning); }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: .875rem; font-weight: 500; color: #dbeafe; }
.footer-links a, .footer-links button { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: inherit; font-weight: inherit; text-align: left; transition: color .2s; }
.footer-links a:hover, .footer-links button:hover { color: #fcd34d; }
.footer-links i { font-size: .75rem; color: #93c5fd; }
.footer-links .link-highlight { color: var(--kuning); font-weight: 700; }
.footer-links .link-highlight i { color: inherit; }
.footer-links button[data-open-modal="brosur"] i { color: #fcd34d; }

.footer-contact { display: flex; flex-direction: column; gap: 14px; font-size: .875rem; color: #dbeafe; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact li > i { flex-shrink: 0; margin-top: 3px; font-size: 1rem; color: var(--kuning); width: 18px; text-align: center; }
.footer-contact li:nth-child(2) > i { color: #6ee7b7; font-size: 1.125rem; }
.footer-contact li:nth-child(3) > i { color: #67e8f9; }
.footer-contact li:nth-child(4) > i { color: #bfdbfe; }
.footer-contact a { transition: color .2s; }
.footer-contact a:hover { color: #fcd34d; }
.footer-contact li:nth-child(2) a { color: #fff; }
.footer-contact .mono { font-size: .75rem; }

.footer-label { display: block; margin: 20px 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #bfdbfe; }
.social-icons { display: flex; align-items: center; gap: 10px; }
.social-icons a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(30,64,175,.6); color: #fff; font-size: .875rem; transition: all .2s; }
.social-icons a:hover { background: #fff; color: var(--biru); }

/* PETA - rasio tetap 4:3 */
.map-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 16px; border: 2px solid rgba(255,255,255,.2); border-radius: 16px; background: var(--abu-900); box-shadow: 0 4px 6px rgba(0,0,0,.15); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.footer-bottom { margin-top: 32px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; font-size: .75rem; color: #bfdbfe; text-align: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; text-align: left; } }
.footer-bottom strong { color: #fff; }
.footer-bottom a:hover { color: #fff; }

/* Tombol melayang kanan bawah */
.floating-actions { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.floating-actions > * { pointer-events: auto; }
.scroll-top { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--abu-200); border-radius: 50%; background: #fff; color: var(--abu-700); font-size: .875rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,.12); transition: all .2s; }
.scroll-top:hover { color: var(--biru); transform: translateY(-4px); }
.floating-wa { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: var(--oranye); color: #fff; font-size: .75rem; font-weight: 700; box-shadow: 0 20px 25px -5px rgba(241,119,32,.3); transition: all .2s; }
@media (min-width: 640px) { .floating-wa { font-size: .875rem; } }
.floating-wa:hover { background: #e06812; transform: scale(1.05); }
.floating-wa i { font-size: 1.5rem; }
.floating-wa-long { display: none; }
@media (min-width: 640px) { .floating-wa-long { display: inline; } .floating-wa-short { display: none; } }

/* Tombol melayang kedua: "Daftar PSB" (di sebelah kiri tombol WhatsApp), gradasi biru */
.floating-row { display: flex; align-items: center; gap: 10px; }
.floating-psb { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 0; border-radius: 999px; background: linear-gradient(to right, var(--biru), var(--biru-muda)); color: #fff; font-size: .75rem; font-weight: 700; box-shadow: 0 20px 25px -5px rgba(4,116,186,.35); transition: all .2s; }
@media (min-width: 640px) { .floating-psb { font-size: .875rem; } }
.floating-psb:hover { background: linear-gradient(to right, var(--biru-tua), var(--biru)); transform: scale(1.05); }
.floating-psb i { font-size: 1.25rem; }
.floating-psb-long { display: none; }
@media (min-width: 640px) { .floating-psb-long { display: inline; } .floating-psb-short { display: none; } }


/* ==========================================================================
   14. POP-UP (Pendaftaran & Brosur)
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-box { position: relative; width: 100%; margin: 32px 0; padding: 24px; background: #fff; border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); }
@media (min-width: 640px) { .modal-box { padding: 32px; } }
.modal-box--form   { max-width: 576px; }
.modal-box--brosur { max-width: 672px; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--abu-100); color: var(--abu-500); font-size: 1rem; transition: all .2s; }
.modal-close:hover { background: var(--abu-200); color: var(--abu-700); }

.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-right: 40px; }
.modal-head--line { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--abu-100); }
.modal-head-icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.125rem; }
.modal-head-icon--lg { width: 48px; height: 48px; font-size: 1.5rem; }
.modal-head h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; color: var(--abu-900); }
.modal-head p { font-size: .75rem; color: var(--abu-500); }

/* Formulir */
.psb-form { display: flex; flex-direction: column; gap: 16px; font-size: .75rem; }
.field label { display: block; margin-bottom: 4px; font-weight: 700; color: var(--abu-700); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--abu-300); border-radius: 12px; background: #fff; font-size: .8125rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: transparent; box-shadow: 0 0 0 2px var(--biru-muda); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, 1fr); } }
.form-note { margin-top: -6px; text-align: center; font-size: .6875rem; color: var(--abu-500); }

.psb-success { padding: 32px 0; text-align: center; }
.psb-success-icon { width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #d1fae5; color: #059669; font-size: 1.875rem; }
.psb-success h3 { font-size: 1.5rem; font-weight: 700; color: var(--abu-900); }
.psb-success p { max-width: 448px; margin: 8px auto 24px; font-size: .875rem; line-height: 1.7; color: var(--abu-600); }

/* Brosur */
.brosur-body { display: flex; flex-direction: column; gap: 24px; font-size: .75rem; color: var(--abu-700); }
.brosur-intro { padding: 16px; border-radius: 16px; background: rgba(239,246,255,.7); border: 1px solid rgba(191,219,254,.8); }
.brosur-intro h4 { margin-bottom: 4px; font-size: .875rem; font-weight: 700; color: var(--biru); }
.brosur-intro p { line-height: 1.7; color: var(--abu-600); }
.brosur-heading { margin-bottom: 10px; font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--abu-900); }
.brosur-table { overflow: hidden; border: 1px solid var(--abu-200); border-radius: 12px; }
.brosur-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-top: 1px solid var(--abu-200); }
.brosur-row:first-child { border-top: 0; }
.brosur-row--head { background: var(--abu-50); font-weight: 700; color: var(--abu-700); }
.brosur-row strong { display: block; font-weight: 600; color: var(--abu-700); }
.brosur-row small { font-size: .6875rem; color: var(--abu-500); }
.brosur-price { flex-shrink: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; text-align: right; color: var(--biru); }
.brosur-monthly { padding: 16px; border: 1px solid #a7f3d0; border-radius: 12px; background: rgba(236,253,245,.5); }
.brosur-monthly-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; font-weight: 700; color: #064e3b; }
.brosur-monthly-head strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .875rem; color: #047857; }
.brosur-monthly ul { padding-left: 16px; list-style: disc; font-size: .6875rem; color: var(--abu-600); }
.brosur-monthly li { margin-top: 4px; }
.brosur-note { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; font-size: .6875rem; color: #78350f; }
.brosur-note i { margin-top: 2px; color: var(--oranye); }
.brosur-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--abu-100); }


/* ==========================================================================
   15. HALAMAN BIASA (artikel / halaman WordPress lain)
   ========================================================================== */
.plain-article { margin-bottom: 40px; }
.plain-title { margin-bottom: 16px; font-size: 1.875rem; font-weight: 800; color: var(--abu-900); }
.plain-title a:hover { color: var(--biru); }
.plain-content { line-height: 1.8; color: var(--abu-700); }
.plain-content a { color: var(--biru); text-decoration: underline; }
.plain-content img { border-radius: 12px; }


/* ==========================================================================
   16. CETAK  (tombol "Cetak / Simpan Brosur" hanya mencetak isi brosur)
   ========================================================================== */
@media print {
	body.is-printing-brosur > *:not(#modal-brosur) { display: none !important; }
	body.is-printing-brosur #modal-brosur { position: static; display: block !important; padding: 0; background: #fff; overflow: visible; }
	body.is-printing-brosur #modal-brosur .modal-box { margin: 0; box-shadow: none; max-width: 100%; }
	body.is-printing-brosur .modal-close,
	body.is-printing-brosur .brosur-actions { display: none !important; }
}
