/* Beranda — desain C "Sekolah & Keluarga" (dari demo/c.php). Hanya dipakai index.php. */
:root { --biru: #1D4E89; --biru-tua: #12355E; --langit: #EEF6FC; --kuning: #FFC845; --teks: #1B2A3A; --redup: #3E5068; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--teks); background: var(--langit); }
a { color: var(--biru); }
img { max-width: 100%; display: block; }
.wadah { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h2.judul { font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; color: var(--biru-tua); margin: 0 0 40px; letter-spacing: -0.01em; }
.tombol { display: inline-block; padding: 15px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; }
section { padding: 88px 0; }

/* Header & menu (isi menu dari header.php) */
header.atas { position: sticky; top: 0; z-index: 10; padding: 16px 24px 0; }
header.atas nav { max-width: 1200px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 10px 10px 10px 28px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 6px 24px rgba(18,53,94,.08); }
.logo { font-weight: 800; font-size: 22px; color: var(--biru); text-decoration: none; }
.menu-btn { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--kuning); color: var(--teks); font: 700 15px/1 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
.menu-panel { position: fixed; inset: 0; z-index: 50; background: rgba(18,53,94,.55); display: flex; justify-content: flex-end; }
.menu-panel[hidden] { display: none; }
.menu-panel ul { list-style: none; margin: 0; padding: 96px 32px 32px; width: min(380px, 88vw); height: 100%; overflow-y: auto; background: #fff; }
/* header.php memakai inline style lama (font 20px) — diseragamkan di sini */
.menu-panel a { display: block; padding: 12px 16px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 18px !important; font-family: 'Plus Jakarta Sans', sans-serif !important; color: var(--biru-tua); }
.menu-panel a:hover { background: var(--langit); }

/* Hero */
.hero { padding: 56px 0 88px; }
.hero .wadah { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero .teks { flex: 1 1 380px; min-width: 0; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(52px, 8vw, 104px); line-height: 1; letter-spacing: -0.03em; color: var(--biru-tua); }
.hero .tagline { margin: 16px 0 0; color: var(--redup); font-size: 18px; }
.hero .foto { flex: 1 1 480px; min-width: 0; }
/* kartu foto hero = .site-hero → efek 3D (js/hero3d.js) menggambar di dalamnya */
.hero .foto .site-hero { position: relative; width: 100%; aspect-ratio: 5/4; border-radius: 36px; overflow: hidden; background-size: cover; background-position: center; }
.gulir { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; background: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; }

/* Welcome */
.welcome { background: #fff; border-radius: 40px 40px 0 0; }
.welcome .wadah { display: flex; flex-wrap: wrap-reverse; gap: 48px; align-items: center; }
.welcome .foto { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: end; }
.welcome .foto img { width: 100%; object-fit: cover; border-radius: 28px; }
.welcome .foto img:first-child { aspect-ratio: 4/5; }
.welcome .foto img:last-child { aspect-ratio: 1; border-radius: 999px; }
.welcome .teks { flex: 1 1 380px; min-width: 0; }
.welcome h2.judul { margin-bottom: 16px; }
.welcome p { color: var(--redup); font-size: 18px; margin: 0 0 28px; }
.welcome .aksi { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Grid kartu — baris terakhir yang tidak penuh tetap rata tengah */
.program { background: #fff; padding-top: 24px; }
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.grid > * { flex: 0 1 calc(25% - 15px); min-width: 0; }
.grid.tiga > * { flex-basis: calc(33.333% - 14px); }
@media (max-width: 1000px) { .grid > *, .grid.tiga > * { flex-basis: calc(50% - 10px); } }
@media (max-width: 600px) { .grid > *, .grid.tiga > * { flex-basis: 100%; } }
.kartu-program a { display: block; background: var(--langit); border-radius: 24px; padding: 12px; text-decoration: none; height: 100%; }
.kartu-program img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; }
.kartu-program h3 { margin: 14px 8px 8px; font-weight: 700; font-size: 18px; color: var(--biru-tua); }

/* Photos */
.carousel [data-track] { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; scrollbar-width: none; }
.carousel [data-track]::-webkit-scrollbar { display: none; }
.carousel figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.carousel figure img { width: 100%; aspect-ratio: 16/9; max-height: 72vh; object-fit: contain; background: #DCEBF7; border-radius: 32px; }
.carousel .nav { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.carousel .nav button { width: 52px; height: 52px; border-radius: 999px; border: 0; background: #fff; color: var(--biru); font-size: 22px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 16px rgba(18,53,94,.1); }

/* People Says */
.testi { background: var(--biru-tua); color: #fff; }
.testi h2.judul { color: #fff; }
.testi figure { margin: 0; background: rgba(255,255,255,.08); border-radius: 24px; padding: 28px; }
.testi blockquote { margin: 0 0 20px; font-size: 17px; color: #E3ECF7; }
.testi figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.testi figcaption img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; border: 3px solid var(--kuning); }

/* Events */
.kartu-event { background: #fff; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.kartu-event img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.kartu-event .isi { padding: 22px 24px 28px; }
.kartu-event .tgl { display: inline-block; background: var(--kuning); color: var(--teks); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.kartu-event h3 { margin: 12px 0 8px; font-size: 21px; line-height: 1.25; }
.kartu-event h3 a { text-decoration: none; color: var(--biru-tua); }
.kartu-event p { margin: 0; color: var(--redup); }

/* Contact & footer */
.kontak { padding: 0 0 88px; }
.kontak .kotak { background: var(--kuning); border-radius: 32px; padding: 56px 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.kontak h2 { margin: 0; font-weight: 800; font-size: clamp(30px, 4vw, 46px); color: var(--biru-tua); }
footer { padding: 0 24px 48px; }
footer .kotak { max-width: 1200px; margin: 0 auto; background: #fff; border-radius: 32px; padding: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; color: var(--redup); font-size: 15px; }
footer h4 { margin: 0 0 6px; color: var(--biru-tua); font-size: 15px; }
footer ul { list-style: none; margin: 0; padding: 0; font-weight: 700; }
footer li { margin-bottom: 8px; }
footer form { display: flex; gap: 8px; background: var(--langit); border-radius: 999px; padding: 6px; }
footer input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 14px; font: inherit; }
footer form button { border: 0; background: var(--biru); color: #fff; font-weight: 700; padding: 0 18px; border-radius: 999px; cursor: pointer; }
.sosial { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; font-weight: 600; }

/* Video */
dialog { border: 0; border-radius: 24px; padding: 0; width: min(900px, 92vw); background: #000; overflow: hidden; }
dialog::backdrop { background: rgba(18,53,94,.7); }
dialog iframe { width: 100%; height: auto; aspect-ratio: 16/9; display: block; border: 0; }
dialog button { position: absolute; top: 10px; right: 10px; border: 0; border-radius: 999px; width: 40px; height: 40px; background: var(--kuning); cursor: pointer; font-weight: 800; }
