/*
 | Tema gabungan situs publik (yayasan & madrasah).
 |
 | Kepala halaman — topbar, navbar, hero foto banner, strip identitas, dan
 | kepala halaman dalam — tetap gaya lama dari app.css karena terasa formal
 | untuk lembaga pendidikan. Yang diambil dari model landing Rafedu hanya
 | komponen isi: panel gelap berisi kartu kaca, kartu statistik, kartu
 | kegiatan, tombol bergaris pemisah, dan footer berkolom. Semuanya tegak,
 | bergaris solid, tanpa hiasan mengambang.
 |
 | Dimuat SESUDAH app.css (layouts/app.blade.php) dan hanya menimpa; app.css
 | hasil kompilasi resources/sass/app.scss tidak disentuh. Warna selalu lewat
 | token --y-* supaya warna per madrasah (blok :root di layout) tetap berlaku.
 */

:root {
    --t-tinta: var(--y-dark);
    --t-teks-lembut: #5f6b78;
    --t-garis: #e3e9f0;
    --t-garis-putus: #d3dde8;
    --t-gradasi: linear-gradient(135deg, var(--y-primary-soft) 0%, var(--y-primary) 50%, var(--y-primary-deep) 100%);
    --t-bayangan-lembut: 0 1px 2px rgba(var(--y-dark-rgb), 0.04), 0 10px 30px -18px rgba(var(--y-primary-rgb), 0.3);
    --t-bayangan-kartu: 0 28px 56px -30px rgba(var(--y-dark-rgb), 0.35);
}

/* ------------------------------------------------------------- judul */

/* Judul bagian dengan kata kunci berwarna primer: aksennya dari warna,
   bukan dari bobot huruf, supaya tetap terbaca resmi. */
.judul-campur b,
.judul-campur strong {
    color: var(--y-primary);
    font-weight: inherit;
}

.panel-gelap .judul-campur b {
    color: var(--y-secondary);
}

.judul-bagian {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    line-height: 1.2;
}

.judul-kecil {
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    line-height: 1.25;
}

.teks-pengantar {
    color: var(--t-teks-lembut);
    line-height: 1.85;
}

/* -------------------------------------------------------------- tombol */

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.btn-primary {
    box-shadow: 0 14px 28px -16px rgba(var(--y-primary-rgb), 0.8);
}

/* Teks, garis pemisah tipis, lalu ikon di ujung kanan. */
.btn-berikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.btn-pemisah {
    width: 1px;
    height: 1.2em;
    background: currentColor;
    opacity: 0.35;
}

/* ----------------------------------------------------- deret & kartu */

/* Kartu isi (program, guru, jenjang lama): tepi garis putus-putus. Saat
   disorot garisnya berganti warna primer dan kartu terangkat. */
.kartu-garis,
.ikrar-card {
    background: #fff !important;
    border: 2px dashed var(--t-garis-putus) !important;
    border-radius: 22px !important;
    box-shadow: var(--t-bayangan-lembut) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.kartu-garis:hover,
.ikrar-card:hover {
    border-color: rgba(var(--y-primary-rgb), 0.45) !important;
    box-shadow: var(--t-bayangan-kartu) !important;
    transform: translateY(-4px);
}

/* Ikon berlatar gradasi warna sekolah. */
.ikon-3d,
.stat-icon {
    display: inline-grid !important;
    place-items: center;
    width: 64px !important;
    height: 64px !important;
    border-radius: 20px !important;
    background: var(--t-gradasi) !important;
    color: #fff !important;
    font-size: 1.65rem !important;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 18px 28px -16px rgba(var(--y-primary-rgb), 0.75) !important;
}

.ikon-3d i,
.stat-icon i {
    color: #fff !important;
}

/* Statistik: kartu putih berderet rapi dengan garis emas di atasnya. */
.stat-block {
    height: 100%;
    background: #fff;
    border: 1px solid var(--t-garis);
    border-top: 4px solid var(--y-secondary);
    border-radius: 22px;
    padding: 1.75rem 1rem !important;
    box-shadow: var(--t-bayangan-lembut);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--t-bayangan-kartu);
}

.stat-block h3 {
    font-size: 2rem;
    margin-top: 0.6rem;
    color: var(--t-tinta);
}

.kegiatan-card {
    border: 1px solid var(--t-garis) !important;
    border-radius: 22px !important;
    overflow: hidden;
    padding: 0.5rem;
    box-shadow: var(--t-bayangan-lembut) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kegiatan-card .card-img-top {
    border-radius: 16px !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.kegiatan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--t-bayangan-kartu) !important;
}

.ratio.rounded {
    border-radius: 22px !important;
    box-shadow: var(--t-bayangan-kartu) !important;
}

/* ------------------------------------------------- hiasan model landing */

/* Strip identitas jadi kartu yang menindih batas bawah hero. */
.identitas-strip {
    position: relative;
    z-index: 4;
    background: none !important;
    padding: 0 !important;
    margin-top: -3.5rem;
}

.identitas-strip > .container > .row {
    margin-inline: 0;
    padding: 1.5rem 0.75rem;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--y-primary-deep) 0%, var(--y-primary) 100%);
    box-shadow: 0 30px 60px -30px rgba(var(--y-dark-rgb), 0.6);
}

/* Statistik bertangga: kolom genap turun sedikit, tanpa dimiringkan. */
.kisi-statistik {
    position: relative;
}

@media (min-width: 576px) {
    .kisi-statistik > div:nth-of-type(even) > .stat-block {
        translate: 0 1.75rem;
    }
}

/* Daftar pengumuman: tiap baris jadi kartu bertepi garis putus-putus. */
.list-group.shadow-sm {
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    gap: 0.75rem;
}

.list-group.shadow-sm > .list-group-item {
    border: 2px dashed var(--t-garis-putus) !important;
    border-radius: 18px !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.list-group.shadow-sm > .list-group-item.border-warning {
    border-color: rgba(var(--y-secondary-rgb), 0.75) !important;
}

.list-group.shadow-sm > .list-group-item:hover {
    border-color: rgba(var(--y-primary-rgb), 0.45) !important;
    box-shadow: var(--t-bayangan-lembut);
}

/* Pemisah bagian: garis putus-putus selebar container di tepi atas. */
.tepi-putus-atas > .container {
    border-top: 2px dashed var(--t-garis-putus);
    padding-top: 4.5rem;
}

.tepi-putus-atas {
    padding-top: 0 !important;
}

/* ------------------------------------------------ ilustrasi garis */

/* Ilustrasi garis bertema sekolah (buku & globe, gedung sekolah, masjid),
   dipasang sebagai mask supaya warnanya ikut warna primer madrasah. Selalu
   samar dan di sudut, tidak pernah di belakang teks utama. */
section:has(> .ilustrasi),
#landing {
    position: relative;
    overflow: hidden;
}

section:has(> .ilustrasi) > .container {
    position: relative;
    z-index: 1;
}

.ilustrasi {
    position: absolute;
    z-index: 0;
    display: block;
    background: var(--y-primary);
    opacity: 0.09;
    pointer-events: none;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: bottom center;
    mask-position: bottom center;
}

.ilustrasi-buku {
    width: 360px;
    aspect-ratio: 420 / 180;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='20 80 420 180' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M30 250H430'/%3E %3Crect x='80' y='218' width='160' height='32' rx='5'/%3E%3Cpath d='M96 218v32M224 218v32'/%3E %3Crect x='96' y='188' width='136' height='30' rx='5'/%3E%3Cpath d='M112 188v30M120 203h80'/%3E %3Crect x='86' y='160' width='150' height='28' rx='5'/%3E%3Cpath d='M102 160v28M210 160v28'/%3E %3Cpath d='M120 160c18-14 40-14 48 0c8-14 30-14 48 0'/%3E%3Cpath d='M168 160v-6'/%3E %3Ccircle cx='320' cy='168' r='42'/%3E%3Cellipse cx='320' cy='168' rx='17' ry='42'/%3E%3Cpath d='M280 155h80M280 181h80'/%3E %3Cpath d='M272 168a48 48 0 0 0 96 0'/%3E%3Cpath d='M320 216v34M292 250h56'/%3E %3Cpath d='M392 250l26-80 10 4-24 78'/%3E%3Cpath d='M418 170l6-12 4 16'/%3E %3Cpath d='M50 120l6 6M56 120l-6 6M380 92l5 5M385 92l-5 5'/%3E%3Ccircle cx='34' cy='186' r='3'/%3E %3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='20 80 420 180' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M30 250H430'/%3E %3Crect x='80' y='218' width='160' height='32' rx='5'/%3E%3Cpath d='M96 218v32M224 218v32'/%3E %3Crect x='96' y='188' width='136' height='30' rx='5'/%3E%3Cpath d='M112 188v30M120 203h80'/%3E %3Crect x='86' y='160' width='150' height='28' rx='5'/%3E%3Cpath d='M102 160v28M210 160v28'/%3E %3Cpath d='M120 160c18-14 40-14 48 0c8-14 30-14 48 0'/%3E%3Cpath d='M168 160v-6'/%3E %3Ccircle cx='320' cy='168' r='42'/%3E%3Cellipse cx='320' cy='168' rx='17' ry='42'/%3E%3Cpath d='M280 155h80M280 181h80'/%3E %3Cpath d='M272 168a48 48 0 0 0 96 0'/%3E%3Cpath d='M320 216v34M292 250h56'/%3E %3Cpath d='M392 250l26-80 10 4-24 78'/%3E%3Cpath d='M418 170l6-12 4 16'/%3E %3Cpath d='M50 120l6 6M56 120l-6 6M380 92l5 5M385 92l-5 5'/%3E%3Ccircle cx='34' cy='186' r='3'/%3E %3C/svg%3E");
}

.ilustrasi-sekolah {
    width: 340px;
    aspect-ratio: 400 / 215;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1030 40 400 215' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M1040 250H1420'/%3E %3Cpath d='M1105 156L1230 96L1355 156'/%3E%3Crect x='1120' y='152' width='220' height='98'/%3E %3Crect x='1210' y='196' width='40' height='54' rx='3'/%3E%3Cpath d='M1230 196v54'/%3E %3Crect x='1138' y='176' width='36' height='30' rx='3'/%3E%3Cpath d='M1156 176v30M1138 191h36'/%3E %3Crect x='1286' y='176' width='36' height='30' rx='3'/%3E%3Cpath d='M1304 176v30M1286 191h36'/%3E %3Ccircle cx='1230' cy='130' r='13'/%3E%3Cpath d='M1230 123v7l5 4'/%3E %3Cpath d='M1230 96V52'/%3E%3Cpath d='M1230 54h34l-9 10 9 10h-34'/%3E %3Cpath d='M1395 250v-46'/%3E%3Ccircle cx='1395' cy='182' r='28'/%3E%3Cpath d='M1395 214l-12-12M1395 222l12-12'/%3E %3Cpath d='M1075 250v-30'/%3E%3Ccircle cx='1075' cy='206' r='16'/%3E %3Cpath d='M1110 70l6 6M1116 70l-6 6M1410 110l5 5M1415 110l-5 5'/%3E%3Ccircle cx='1360' cy='60' r='3'/%3E %3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1030 40 400 215' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M1040 250H1420'/%3E %3Cpath d='M1105 156L1230 96L1355 156'/%3E%3Crect x='1120' y='152' width='220' height='98'/%3E %3Crect x='1210' y='196' width='40' height='54' rx='3'/%3E%3Cpath d='M1230 196v54'/%3E %3Crect x='1138' y='176' width='36' height='30' rx='3'/%3E%3Cpath d='M1156 176v30M1138 191h36'/%3E %3Crect x='1286' y='176' width='36' height='30' rx='3'/%3E%3Cpath d='M1304 176v30M1286 191h36'/%3E %3Ccircle cx='1230' cy='130' r='13'/%3E%3Cpath d='M1230 123v7l5 4'/%3E %3Cpath d='M1230 96V52'/%3E%3Cpath d='M1230 54h34l-9 10 9 10h-34'/%3E %3Cpath d='M1395 250v-46'/%3E%3Ccircle cx='1395' cy='182' r='28'/%3E%3Cpath d='M1395 214l-12-12M1395 222l12-12'/%3E %3Cpath d='M1075 250v-30'/%3E%3Ccircle cx='1075' cy='206' r='16'/%3E %3Cpath d='M1110 70l6 6M1116 70l-6 6M1410 110l5 5M1415 110l-5 5'/%3E%3Ccircle cx='1360' cy='60' r='3'/%3E %3C/svg%3E");
}

.ilustrasi-masjid {
    width: 320px;
    aspect-ratio: 400 / 195;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 20 400 195' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 210H390'/%3E %3Crect x='110' y='122' width='180' height='88'/%3E %3Cpath d='M180 210v-34a20 20 0 0 1 40 0v34'/%3E %3Cpath d='M130 178v-16a10 10 0 0 1 20 0v16zM250 178v-16a10 10 0 0 1 20 0v16z'/%3E %3Cpath d='M136 122c0-38 28-58 64-58s64 20 64 58'/%3E %3Cpath d='M200 64V44'/%3E%3Cpath d='M206 36a8 8 0 1 1-6-10a6 6 0 1 0 6 10z'/%3E %3Crect x='60' y='86' width='26' height='124'/%3E%3Cpath d='M56 86l17-34 17 34M54 120h38M66 140v12M80 140v12'/%3E %3Crect x='314' y='86' width='26' height='124'/%3E%3Cpath d='M310 86l17-34 17 34M308 120h38M320 140v12M334 140v12'/%3E %3Cpath d='M30 60l5 5M35 60l-5 5M372 40l5 5M377 40l-5 5'/%3E%3Ccircle cx='40' cy='150' r='3'/%3E%3Ccircle cx='370' cy='160' r='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 20 400 195' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 210H390'/%3E %3Crect x='110' y='122' width='180' height='88'/%3E %3Cpath d='M180 210v-34a20 20 0 0 1 40 0v34'/%3E %3Cpath d='M130 178v-16a10 10 0 0 1 20 0v16zM250 178v-16a10 10 0 0 1 20 0v16z'/%3E %3Cpath d='M136 122c0-38 28-58 64-58s64 20 64 58'/%3E %3Cpath d='M200 64V44'/%3E%3Cpath d='M206 36a8 8 0 1 1-6-10a6 6 0 1 0 6 10z'/%3E %3Crect x='60' y='86' width='26' height='124'/%3E%3Cpath d='M56 86l17-34 17 34M54 120h38M66 140v12M80 140v12'/%3E %3Crect x='314' y='86' width='26' height='124'/%3E%3Cpath d='M310 86l17-34 17 34M308 120h38M320 140v12M334 140v12'/%3E %3Cpath d='M30 60l5 5M35 60l-5 5M372 40l5 5M377 40l-5 5'/%3E%3Ccircle cx='40' cy='150' r='3'/%3E%3Ccircle cx='370' cy='160' r='3'/%3E%3C/svg%3E");
}

/* Bagian yang ilustrasinya di bawah tombol diberi ruang sendiri. */
.ruang-ilustrasi {
    padding-bottom: 11rem !important;
}

.ilustrasi.sudut-kiri-bawah {
    left: 2%;
    bottom: 1.5rem;
}

.ilustrasi.sudut-kanan-bawah {
    right: 2%;
    bottom: 1.5rem;
}

@media (max-width: 991.98px) {
    .ilustrasi:not(.ilustrasi-hero) {
        width: 220px;
        opacity: 0.07;
    }
}

/* Siluet masjid & gedung sekolah di kanan bawah foto hero, di atas lapisan
   putih foto tetapi di bawah teks dan tombol slide. */
.ilustrasi-hero {
    z-index: 2;
    right: 3%;
    bottom: 4.5rem;
    width: min(560px, 42vw);
    aspect-ratio: 760 / 195;
    background: #fff;
    opacity: 0.85;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 20 760 195' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cg%3E%3Cpath d='M10 210H390'/%3E %3Crect x='110' y='122' width='180' height='88'/%3E %3Cpath d='M180 210v-34a20 20 0 0 1 40 0v34'/%3E %3Cpath d='M130 178v-16a10 10 0 0 1 20 0v16zM250 178v-16a10 10 0 0 1 20 0v16z'/%3E %3Cpath d='M136 122c0-38 28-58 64-58s64 20 64 58'/%3E %3Cpath d='M200 64V44'/%3E%3Cpath d='M206 36a8 8 0 1 1-6-10a6 6 0 1 0 6 10z'/%3E %3Crect x='60' y='86' width='26' height='124'/%3E%3Cpath d='M56 86l17-34 17 34M54 120h38M66 140v12M80 140v12'/%3E %3Crect x='314' y='86' width='26' height='124'/%3E%3Cpath d='M310 86l17-34 17 34M308 120h38M320 140v12M334 140v12'/%3E %3Cpath d='M30 60l5 5M35 60l-5 5M372 40l5 5M377 40l-5 5'/%3E%3Ccircle cx='40' cy='150' r='3'/%3E%3Ccircle cx='370' cy='160' r='3'/%3E%3C/g%3E %3Cg transform='translate%28-720 -40%29'%3E %3Cpath d='M1100 250H1460'/%3E %3Cpath d='M1105 156L1230 96L1355 156'/%3E%3Crect x='1120' y='152' width='220' height='98'/%3E %3Crect x='1210' y='196' width='40' height='54' rx='3'/%3E%3Cpath d='M1230 196v54'/%3E %3Crect x='1138' y='176' width='36' height='30' rx='3'/%3E%3Cpath d='M1156 176v30M1138 191h36'/%3E %3Crect x='1286' y='176' width='36' height='30' rx='3'/%3E%3Cpath d='M1304 176v30M1286 191h36'/%3E %3Ccircle cx='1230' cy='130' r='13'/%3E%3Cpath d='M1230 123v7l5 4'/%3E %3Cpath d='M1230 96V52'/%3E%3Cpath d='M1230 54h34l-9 10 9 10h-34'/%3E %3Cpath d='M1395 250v-46'/%3E%3Ccircle cx='1395' cy='182' r='28'/%3E%3Cpath d='M1395 214l-12-12M1395 222l12-12'/%3E %3Cpath d='M1450 250v-30'/%3E%3Ccircle cx='1450' cy='206' r='16'/%3E %3C/g%3E %3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 20 760 195' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cg%3E%3Cpath d='M10 210H390'/%3E %3Crect x='110' y='122' width='180' height='88'/%3E %3Cpath d='M180 210v-34a20 20 0 0 1 40 0v34'/%3E %3Cpath d='M130 178v-16a10 10 0 0 1 20 0v16zM250 178v-16a10 10 0 0 1 20 0v16z'/%3E %3Cpath d='M136 122c0-38 28-58 64-58s64 20 64 58'/%3E %3Cpath d='M200 64V44'/%3E%3Cpath d='M206 36a8 8 0 1 1-6-10a6 6 0 1 0 6 10z'/%3E %3Crect x='60' y='86' width='26' height='124'/%3E%3Cpath d='M56 86l17-34 17 34M54 120h38M66 140v12M80 140v12'/%3E %3Crect x='314' y='86' width='26' height='124'/%3E%3Cpath d='M310 86l17-34 17 34M308 120h38M320 140v12M334 140v12'/%3E %3Cpath d='M30 60l5 5M35 60l-5 5M372 40l5 5M377 40l-5 5'/%3E%3Ccircle cx='40' cy='150' r='3'/%3E%3Ccircle cx='370' cy='160' r='3'/%3E%3C/g%3E %3Cg transform='translate%28-720 -40%29'%3E %3Cpath d='M1100 250H1460'/%3E %3Cpath d='M1105 156L1230 96L1355 156'/%3E%3Crect x='1120' y='152' width='220' height='98'/%3E %3Crect x='1210' y='196' width='40' height='54' rx='3'/%3E%3Cpath d='M1230 196v54'/%3E %3Crect x='1138' y='176' width='36' height='30' rx='3'/%3E%3Cpath d='M1156 176v30M1138 191h36'/%3E %3Crect x='1286' y='176' width='36' height='30' rx='3'/%3E%3Cpath d='M1304 176v30M1286 191h36'/%3E %3Ccircle cx='1230' cy='130' r='13'/%3E%3Cpath d='M1230 123v7l5 4'/%3E %3Cpath d='M1230 96V52'/%3E%3Cpath d='M1230 54h34l-9 10 9 10h-34'/%3E %3Cpath d='M1395 250v-46'/%3E%3Ccircle cx='1395' cy='182' r='28'/%3E%3Cpath d='M1395 214l-12-12M1395 222l12-12'/%3E %3Cpath d='M1450 250v-30'/%3E%3Ccircle cx='1450' cy='206' r='16'/%3E %3C/g%3E %3C/svg%3E");
}

/* -------------------------------------------- tombol kedua slide hero */

.hero-carousel .hero-tombol-kedua {
    background: rgba(255, 255, 255, 0.85);
}

/* ---------------------------------------------- kurikulum & keseharian */

/* Pilihan jenjang berbentuk pil di atas isi kurikulum. */
.tab-jenjang {
    gap: 0.5rem;
}

.tab-jenjang .nav-link {
    min-width: 76px;
    padding: 0.55rem 1.2rem;
    border: 1px solid var(--t-garis);
    border-radius: 999px;
    background: #fff;
    color: var(--t-tinta);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-jenjang .nav-link:hover {
    border-color: rgba(var(--y-primary-rgb), 0.35);
    color: var(--y-primary);
}

.tab-jenjang .nav-link.active {
    background: var(--y-primary);
    border-color: var(--y-primary);
    color: #fff;
    box-shadow: 0 12px 24px -14px rgba(var(--y-primary-rgb), 0.8);
}

.kartu-kurikulum {
    padding: 1.75rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--t-garis);
    border-top: 4px solid var(--y-secondary);
    box-shadow: var(--t-bayangan-lembut);
}

.kartu-kurikulum img {
    object-fit: contain;
}

.label-kurikulum {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--y-primary-rgb), 0.08);
    color: var(--y-primary);
    font-size: 0.82rem;
    font-weight: 600;
}

.tautan-panah {
    font-weight: 600;
    text-decoration: none;
}

.tautan-panah i {
    transition: margin-left 0.2s ease;
}

.tautan-panah:hover i {
    margin-left: 0.25rem;
}

.ikon-3d.ikon-kecil {
    width: 48px !important;
    height: 48px !important;
    border-radius: 15px !important;
    font-size: 1.25rem !important;
}

/* --------------------------------------------------------------- prestasi */

.kartu-prestasi {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 2px dashed var(--t-garis-putus);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.kartu-prestasi:hover {
    border-color: rgba(var(--y-primary-rgb), 0.45);
    box-shadow: var(--t-bayangan-kartu);
    transform: translateY(-4px);
}

/* Tanpa foto, kotak foto jadi panel gradasi berikon piala emas. */
.kartu-prestasi-foto {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    background: var(--t-gradasi) center / cover no-repeat;
}

.kartu-prestasi-foto > i {
    font-size: 3rem;
    color: var(--y-secondary);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
}

.kartu-prestasi-tingkat {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--y-secondary);
    color: var(--y-dark);
    font-size: 0.75rem;
    font-weight: 700;
}

/* -------------------------------------------------------------- fasilitas */

.kartu-fasilitas {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    box-shadow: var(--t-bayangan-lembut);
}

.kartu-fasilitas img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kartu-fasilitas:hover img {
    transform: scale(1.05);
}

.kartu-fasilitas figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.5rem 1rem 0.9rem;
    background: linear-gradient(180deg, transparent, rgba(var(--y-dark-rgb), 0.85));
    color: #fff;
    line-height: 1.3;
}

.kartu-fasilitas figcaption strong {
    display: block;
}

.kartu-fasilitas figcaption span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------- ekstrakurikuler */

.kartu-ekskul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.1rem;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--t-bayangan-lembut);
}

.kartu-ekskul-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 0.9rem;
    font-size: 2.4rem;
    color: var(--bs-primary);
}

.kartu-ekskul-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Halaman daftar ekskul madrasah: logo diperkecil, sejajar dengan namanya. */
.ekskul-daftar .kartu-ekskul-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 0;
    font-size: 1.8rem;
}

.kartu-ekskul-nama {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.kartu-ekskul-deskripsi {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

/* HP: kartu dipadatkan jadi logo + nama (3 kolom); deskripsi ada di halaman detail. */
@media (max-width: 767.98px) {
    .kartu-ekskul {
        padding: 0.9rem 0.4rem;
        border-radius: 16px;
    }

    .kartu-ekskul-logo {
        width: 64px;
        height: 64px;
        margin-bottom: 0.5rem;
        font-size: 1.8rem;
    }

    .kartu-ekskul-nama {
        margin-bottom: 0;
        font-size: 0.8rem;
        line-height: 1.25;
    }
}

a.kartu-ekskul {
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.kartu-ekskul:hover {
    transform: translateY(-4px);
}

.detail-ekskul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--t-bayangan-lembut);
}

.detail-ekskul-logo {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    margin-bottom: 0;
    font-size: 4rem;
    background: var(--bs-light, #f4f8fb);
    border-radius: 50%;
}

.detail-ekskul-logo img {
    max-width: 72%;
    max-height: 72%;
}

.detail-ekskul-isi {
    flex-grow: 1;
}

.detail-ekskul-deskripsi {
    font-size: 1.05rem;
    line-height: 1.7;
}

.detail-ekskul-info {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1.25rem;
    text-align: left;
}

.detail-ekskul-info dt {
    font-weight: 600;
}

.detail-ekskul-info dt i {
    margin-right: 0.25rem;
    color: var(--bs-primary);
}

.detail-ekskul-info dd {
    margin: 0;
}

@media (min-width: 768px) {
    .detail-ekskul {
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
        padding: 2.5rem;
        text-align: left;
    }
}

/* ------------------------------------------------------------------ PPDB */

/* Langkah bernomor yang disambung garis putus-putus. */
.alur-ppdb {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alur-ppdb li {
    position: relative;
    display: flex;
    gap: 1rem;
    padding-bottom: 1.6rem;
}

.alur-ppdb li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 46px;
    bottom: 4px;
    border-left: 2px dashed var(--t-garis-putus);
}

.alur-ppdb-nomor {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--t-gradasi);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 22px -12px rgba(var(--y-primary-rgb), 0.8);
}

.kartu-ppdb {
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--t-garis);
    border-top: 4px solid var(--y-secondary);
    box-shadow: var(--t-bayangan-kartu);
}

.kartu-ppdb-bagian {
    padding: 1.4rem 1.6rem;
}

.kartu-ppdb-bagian + .kartu-ppdb-bagian {
    border-top: 2px dashed var(--t-garis-putus);
}

.kartu-ppdb-bagian h3 i {
    color: var(--y-primary);
}

.jadwal-ppdb li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
}

.jadwal-ppdb li + li {
    border-top: 1px solid var(--t-garis);
}

.jadwal-ppdb strong {
    color: var(--t-tinta);
}

.syarat-ppdb li {
    display: flex;
    gap: 0.6rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.syarat-ppdb i {
    color: var(--y-primary);
    margin-top: 0.15rem;
}

/* Kartu info di samping formulir pendaftaran ikut turun selama form digulir. */
@media (min-width: 992px) {
    .kartu-ppdb-lekat {
        position: sticky;
        top: 6.5rem;
    }
}

/* --------------------------------------------------------- panel gelap */

/* Panel navy berpendar warna sekolah, wadah kartu kaca. */
.panel-gelap {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    border-radius: 28px;
    background:
        radial-gradient(42rem 26rem at 20% 0%, rgba(var(--y-primary-rgb), 0.55), transparent 62%),
        radial-gradient(34rem 22rem at 95% 100%, rgba(var(--y-secondary-rgb), 0.22), transparent 62%),
        linear-gradient(135deg, var(--y-primary-deep) 0%, var(--y-dark) 60%, #06131d 100%);
    box-shadow: 0 36px 70px -40px rgba(var(--y-dark-rgb), 0.75);
}

/* Garis tepi gradasi tipis di atas panel, gema garis judul tema lama. */
.panel-gelap::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--y-primary-soft), var(--y-secondary));
}

.panel-gelap .judul-campur,
.panel-gelap h2,
.panel-gelap h3 {
    color: #fff;
}

.panel-gelap .teks-pengantar {
    color: rgba(255, 255, 255, 0.75);
}

.panel-ikon {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.6rem;
    color: #fff;
}

.kartu-kaca {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    padding: 1.5rem 1rem 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

a.kartu-kaca:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-4px);
}

.kartu-kaca > i {
    font-size: 2rem;
    line-height: 1;
}

.kartu-kaca .logo-kaca {
    width: 64px;
    height: 64px;
    object-fit: contain;
    padding: 6px;
    border-radius: 18px;
    background: #fff;
}

.kartu-kaca .judul-kaca {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.kartu-kaca .teks-kaca {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.kartu-kaca .lencana-kaca {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.92);
}

.pil-kaca {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.35rem 0.35rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    color: #fff;
}

.pil-kaca i {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--y-secondary);
    color: var(--y-dark);
    font-size: 0.75rem;
}

/* ------------------------------------------------ kepala halaman dalam */

/* Model desain baru: latar putih dengan garis melingkar tipis yang memudar,
   pendar warna sekolah, dan ilustrasi garis di kedua sisi; judul gelap di
   tengah, label berbentuk pil — tanpa ikon. Tepi bawahnya garis putus-putus. Menimpa gaya biru lama
   (.page-header-banner di app.scss) termasuk lingkaran putus-putus putihnya. */
.page-header-banner {
    background:
        radial-gradient(38rem 24rem at 92% -10%, rgba(var(--y-primary-rgb), 0.1), transparent 70%),
        radial-gradient(30rem 20rem at 5% 0%, rgba(var(--y-secondary-rgb), 0.08), transparent 70%),
        #fff !important;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.75rem) !important;
    isolation: isolate;
    border-bottom: 2px dashed var(--t-garis-putus);
}

.page-header-banner::before {
    content: "" !important;
    position: absolute;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    z-index: -1;
    border: 0 !important;
    border-radius: 0 !important;
    background: repeating-radial-gradient(circle at 50% 135%, transparent 0 34px, rgba(var(--y-primary-rgb), 0.07) 34px 35px) !important;
    -webkit-mask-image: radial-gradient(ellipse 65% 90% at 50% 80%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 65% 90% at 50% 80%, #000 20%, transparent 75%);
}

/* Ilustrasi garis bertema sekolah di kiri & kanan (buku, globe, gedung
   berbendera, pohon), tengahnya kosong untuk judul. Dipasang sebagai mask
   supaya warnanya ikut warna primer madrasah, bukan hitam tertanam di SVG. */
.page-header-banner::after {
    content: "" !important;
    position: absolute;
    z-index: -1;
    inset: auto 0 0 0 !important;
    width: auto !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--y-primary) !important;
    opacity: 0.16;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 260' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M30 250H400M1040 250H1420'/%3E %3Crect x='80' y='218' width='160' height='32' rx='5'/%3E%3Cpath d='M96 218v32M224 218v32'/%3E %3Crect x='96' y='188' width='136' height='30' rx='5'/%3E%3Cpath d='M112 188v30M120 203h80'/%3E %3Crect x='86' y='160' width='150' height='28' rx='5'/%3E%3Cpath d='M102 160v28M210 160v28'/%3E %3Cpath d='M120 160c18-14 40-14 48 0c8-14 30-14 48 0'/%3E%3Cpath d='M168 160v-6'/%3E %3Ccircle cx='320' cy='168' r='42'/%3E%3Cellipse cx='320' cy='168' rx='17' ry='42'/%3E%3Cpath d='M280 155h80M280 181h80'/%3E %3Cpath d='M272 168a48 48 0 0 0 96 0'/%3E%3Cpath d='M320 216v34M292 250h56'/%3E %3Cpath d='M50 120l6 6M56 120l-6 6M380 92l5 5M385 92l-5 5'/%3E%3Ccircle cx='420' cy='140' r='3'/%3E%3Ccircle cx='34' cy='186' r='3'/%3E %3Cpath d='M1105 156L1230 96L1355 156'/%3E%3Crect x='1120' y='152' width='220' height='98'/%3E %3Crect x='1210' y='196' width='40' height='54' rx='3'/%3E%3Cpath d='M1230 196v54'/%3E %3Crect x='1138' y='176' width='36' height='30' rx='3'/%3E%3Cpath d='M1156 176v30M1138 191h36'/%3E %3Crect x='1286' y='176' width='36' height='30' rx='3'/%3E%3Cpath d='M1304 176v30M1286 191h36'/%3E %3Ccircle cx='1230' cy='130' r='13'/%3E%3Cpath d='M1230 123v7l5 4'/%3E %3Cpath d='M1230 96V52'/%3E%3Cpath d='M1230 54h34l-9 10 9 10h-34'/%3E %3Cpath d='M1395 250v-46'/%3E%3Ccircle cx='1395' cy='182' r='28'/%3E%3Cpath d='M1395 214l-12-12M1395 222l12-12'/%3E %3Cpath d='M1075 250v-30'/%3E%3Ccircle cx='1075' cy='206' r='16'/%3E %3Cpath d='M1110 70l6 6M1116 70l-6 6M1410 110l5 5M1415 110l-5 5'/%3E%3Ccircle cx='1040' cy='150' r='3'/%3E%3Ccircle cx='1360' cy='60' r='3'/%3E %3C/svg%3E") bottom center / min(1440px, 100%) auto no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 260' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M30 250H400M1040 250H1420'/%3E %3Crect x='80' y='218' width='160' height='32' rx='5'/%3E%3Cpath d='M96 218v32M224 218v32'/%3E %3Crect x='96' y='188' width='136' height='30' rx='5'/%3E%3Cpath d='M112 188v30M120 203h80'/%3E %3Crect x='86' y='160' width='150' height='28' rx='5'/%3E%3Cpath d='M102 160v28M210 160v28'/%3E %3Cpath d='M120 160c18-14 40-14 48 0c8-14 30-14 48 0'/%3E%3Cpath d='M168 160v-6'/%3E %3Ccircle cx='320' cy='168' r='42'/%3E%3Cellipse cx='320' cy='168' rx='17' ry='42'/%3E%3Cpath d='M280 155h80M280 181h80'/%3E %3Cpath d='M272 168a48 48 0 0 0 96 0'/%3E%3Cpath d='M320 216v34M292 250h56'/%3E %3Cpath d='M50 120l6 6M56 120l-6 6M380 92l5 5M385 92l-5 5'/%3E%3Ccircle cx='420' cy='140' r='3'/%3E%3Ccircle cx='34' cy='186' r='3'/%3E %3Cpath d='M1105 156L1230 96L1355 156'/%3E%3Crect x='1120' y='152' width='220' height='98'/%3E %3Crect x='1210' y='196' width='40' height='54' rx='3'/%3E%3Cpath d='M1230 196v54'/%3E %3Crect x='1138' y='176' width='36' height='30' rx='3'/%3E%3Cpath d='M1156 176v30M1138 191h36'/%3E %3Crect x='1286' y='176' width='36' height='30' rx='3'/%3E%3Cpath d='M1304 176v30M1286 191h36'/%3E %3Ccircle cx='1230' cy='130' r='13'/%3E%3Cpath d='M1230 123v7l5 4'/%3E %3Cpath d='M1230 96V52'/%3E%3Cpath d='M1230 54h34l-9 10 9 10h-34'/%3E %3Cpath d='M1395 250v-46'/%3E%3Ccircle cx='1395' cy='182' r='28'/%3E%3Cpath d='M1395 214l-12-12M1395 222l12-12'/%3E %3Cpath d='M1075 250v-30'/%3E%3Ccircle cx='1075' cy='206' r='16'/%3E %3Cpath d='M1110 70l6 6M1116 70l-6 6M1410 110l5 5M1415 110l-5 5'/%3E%3Ccircle cx='1040' cy='150' r='3'/%3E%3Ccircle cx='1360' cy='60' r='3'/%3E %3C/svg%3E") bottom center / min(1440px, 100%) auto no-repeat;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .page-header-banner::after {
        opacity: 0.1;
    }
}

.page-header-banner .wave-divider {
    display: none;
}

.page-header-banner .text-white,
.page-header-banner h1,
.page-header-banner p,
.page-header-banner a:not(.btn),
.page-header-banner .breadcrumb-item,
.page-header-banner .breadcrumb-item::before {
    color: var(--t-tinta) !important;
}

.page-header-banner h1 {
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    letter-spacing: -0.01em;
}

.page-header-banner p.fs-5,
.page-header-banner .text-white-50 {
    color: var(--t-teks-lembut) !important;
    font-size: 1.05rem !important;
}

.page-header-banner .banner-eyebrow {
    background: #fff !important;
    border: 1px solid var(--t-garis);
    color: var(--y-primary) !important;
    box-shadow: var(--t-bayangan-lembut);
}

/* --------------------------------------------------------------- footer */

/* Footer navy seperti tema lama, dengan susunan kolom model landing. */
.footer-situs {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
}

.footer-situs .teks-pengantar {
    color: rgba(255, 255, 255, 0.72);
}

.footer-situs .hias-latar {
    position: absolute;
    z-index: -1;
    font-size: 8rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.footer-situs .hias-latar.kiri {
    left: -1.5rem;
    top: 1rem;
}

.footer-situs .hias-latar.kanan {
    right: -1rem;
    bottom: 4rem;
}

.judul-footer {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(var(--y-secondary-rgb), 0.6);
}

.judul-footer b {
    font-weight: inherit;
    color: var(--y-secondary);
}

.pil-tautan {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem 0.4rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.pil-tautan i {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
}

.footer-bawah {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tombol-atas {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    font-size: 0.8rem;
    text-decoration: none;
}

/* ------------------------------------------------- pita pratinjau CMS */

.pita-pratinjau {
    position: fixed;
    z-index: 1080;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: max-content;
    max-width: calc(100% - 2rem);
    padding: 0.7rem 0.75rem 0.7rem 1.1rem;
    border-radius: 16px;
    background: var(--y-dark);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.35;
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.55);
}

.pita-pratinjau > i {
    color: var(--y-secondary);
    font-size: 1.1rem;
}

.pita-pratinjau-status {
    margin-left: 0.4rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.75rem;
}

.pita-pratinjau small {
    color: rgba(255, 255, 255, 0.75);
}

/* ----------------------------------------------------- gerak & animasi */

/* Ditambahkan tema-publik.js; konten tetap tampil utuh bila skrip gagal. */
.reveal-siap {
    opacity: 0;
    translate: 0 16px;
    transition: opacity 0.6s ease, translate 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.reveal-siap.reveal-tampil {
    opacity: 1;
    translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-siap {
        opacity: 1;
        translate: none;
        transition: none;
    }
}

/* ------------------------------------------------- struktur organisasi */

/* Bagan bertingkat (Master Jenjang › Detail): satu baris per tingkat,
   tingkat di bawahnya dibingkai garis putus-putus dan disambung garis
   tegak ke tingkat atasnya. Sengaja tanpa garis cabang per kartu — kartu
   yang membungkus ke baris baru di HP membuat garis cabang menunjuk salah. */
.bagan-org {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bagan-tingkat {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin-top: 2.5rem;
    padding: 1.25rem;
    border: 2px dashed var(--t-garis-putus);
    border-radius: 26px;
}

.bagan-tingkat::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 2px;
    height: calc(2.5rem + 2px);
    background: rgba(var(--y-primary-rgb), 0.45);
    translate: -50% 0;
}

.bagan-tingkat.bagan-puncak {
    margin-top: 0;
    padding: 0;
    border: 0;
}

.bagan-tingkat.bagan-puncak::before {
    content: none;
}

.bagan-kartu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    max-width: 250px;
    padding: 1.25rem 1rem;
    background: #fff;
    border: 1px solid var(--t-garis);
    border-top: 4px solid var(--y-secondary);
    border-radius: 20px;
    box-shadow: var(--t-bayangan-lembut);
    text-align: center;
}

.bagan-ikon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 0.25rem;
    border-radius: 50%;
    background: rgba(var(--y-primary-rgb), 0.1);
    color: var(--y-primary);
    font-size: 1.35rem;
    position: relative;
    overflow: hidden;
}

/* Foto dari Profil Guru menutupi inisial berwarna tema di bawahnya (seperti
   avatar di daftar guru); bila fotonya gagal dimuat, inisialnya terlihat. */

.bagan-foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bagan-inisial {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.bagan-jabatan {
    font-weight: 700;
    line-height: 1.3;
    color: var(--t-tinta);
}

.bagan-nama {
    font-size: 0.9rem;
    color: var(--t-teks-lembut);
}

/* Pimpinan: kartu bergradasi warna madrasah. */
.bagan-puncak .bagan-kartu {
    max-width: 300px;
    background: var(--t-gradasi);
    border: 0;
    box-shadow: var(--t-bayangan-kartu);
}

.bagan-puncak .bagan-ikon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.bagan-puncak .bagan-ikon {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.bagan-puncak .bagan-jabatan,
.bagan-puncak .bagan-nama {
    color: #fff;
}

@media (min-width: 576px) {
    .bagan-kartu {
        width: 230px;
    }
}

/* ------------------------------------------------------- video profil */

.video-profil {
    overflow: hidden;
    border-radius: 22px;
    background: var(--y-dark);
    box-shadow: var(--t-bayangan-kartu);
}

.video-profil iframe,
.video-profil video {
    display: block;
    width: 100%;
    border: 0;
}

.video-profil video {
    aspect-ratio: 16 / 9;
    background: var(--y-dark);
}
