/* =========================================================
   STYLE WEBSITE DINAMIS MADRASAH / SEKOLAH
   File: assets/css/style.css
   ========================================================= */

/* =========================
   Root Variable Dinamis
   Warna utama, aksen, dan hero-background dikirim dari header.php.
   Jika belum ada pengaturan dari admin, fallback tetap dipakai.
   ========================= */
:root {
    /* Nilai ini boleh ditimpa dari header.php */
    --warna-utama: #0f5132;
    --warna-aksen: #f4c542;
    --hero-background: url("../img/hero-madrasah.jpg");

    /* Palet utama */
    --hijau: var(--warna-utama, #0f5132);
    --hijau-2: #198754;
    --hijau-3: #0b3d26;
    --hijau-soft: #eaf7ef;
    --hijau-soft-2: #f6fbf8;
    --hijau-border: #dfe8e3;

    /* Palet aksen */
    --emas: var(--warna-aksen, #f4c542);
    --emas-2: #dfb62f;
    --emas-3: #967000;
    --emas-soft: #fff6d8;

    /* Warna netral yang tetap dipengaruhi warna utama */
    --gelap: #16251d;
    --abu: #f8f9fa;
    --abu-2: #eef3f0;
    --teks: #34403a;
    --muted: #6c757d;
    --putih: #ffffff;
    --hitam: #000000;

    /* Overlay dan efek berbasis tema */
    --overlay-utama-96: rgba(15, 81, 50, 0.96);
    --overlay-utama-94: rgba(15, 81, 50, 0.94);
    --overlay-utama-72: rgba(15, 81, 50, 0.72);
    --overlay-utama-20: rgba(15, 81, 50, 0.20);
    --overlay-utama-12: rgba(15, 81, 50, 0.12);
    --overlay-utama-08: rgba(15, 81, 50, 0.08);
    --overlay-utama-06: rgba(15, 81, 50, 0.06);

    --overlay-utama2-88: rgba(25, 135, 84, 0.88);
    --overlay-utama2-78: rgba(25, 135, 84, 0.78);
    --overlay-utama2-32: rgba(25, 135, 84, 0.32);
    --overlay-utama2-12: rgba(25, 135, 84, 0.12);

    --overlay-aksen-28: rgba(244, 197, 66, 0.28);
    --overlay-aksen-24: rgba(244, 197, 66, 0.24);
    --overlay-aksen-22: rgba(244, 197, 66, 0.22);
    --overlay-aksen-20: rgba(244, 197, 66, 0.20);
    --overlay-aksen-18: rgba(244, 197, 66, 0.18);
    --overlay-aksen-12: rgba(244, 197, 66, 0.12);

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 14px 40px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 12px 34px rgba(15, 81, 50, 0.12);
    --shadow-primary-strong: 0 18px 48px rgba(15, 81, 50, 0.20);
    --shadow-accent: 0 8px 20px rgba(244, 197, 66, 0.28);

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 30px;
    --radius-xl: 38px;
}

@supports (color: color-mix(in srgb, red 50%, white)) {
    :root {
        --hijau-2: color-mix(in srgb, var(--warna-utama, #0f5132) 82%, white);
        --hijau-3: color-mix(in srgb, var(--warna-utama, #0f5132) 72%, black);
        --hijau-soft: color-mix(in srgb, var(--warna-utama, #0f5132) 12%, white);
        --hijau-soft-2: color-mix(in srgb, var(--warna-utama, #0f5132) 5%, white);
        --hijau-border: color-mix(in srgb, var(--warna-utama, #0f5132) 14%, white);

        --emas-2: color-mix(in srgb, var(--warna-aksen, #f4c542) 86%, black);
        --emas-3: color-mix(in srgb, var(--warna-aksen, #f4c542) 60%, black);
        --emas-soft: color-mix(in srgb, var(--warna-aksen, #f4c542) 22%, white);

        --gelap: color-mix(in srgb, var(--warna-utama, #0f5132) 35%, black);
        --abu-2: color-mix(in srgb, var(--warna-utama, #0f5132) 6%, #f8f9fa);
        --teks: color-mix(in srgb, var(--warna-utama, #0f5132) 24%, #34403a);

        --overlay-utama-96: color-mix(in srgb, var(--warna-utama, #0f5132) 96%, transparent);
        --overlay-utama-94: color-mix(in srgb, var(--warna-utama, #0f5132) 94%, transparent);
        --overlay-utama-72: color-mix(in srgb, var(--warna-utama, #0f5132) 72%, transparent);
        --overlay-utama-20: color-mix(in srgb, var(--warna-utama, #0f5132) 20%, transparent);
        --overlay-utama-12: color-mix(in srgb, var(--warna-utama, #0f5132) 12%, transparent);
        --overlay-utama-08: color-mix(in srgb, var(--warna-utama, #0f5132) 8%, transparent);
        --overlay-utama-06: color-mix(in srgb, var(--warna-utama, #0f5132) 6%, transparent);

        --overlay-utama2-88: color-mix(in srgb, var(--hijau-2, #198754) 88%, transparent);
        --overlay-utama2-78: color-mix(in srgb, var(--hijau-2, #198754) 78%, transparent);
        --overlay-utama2-32: color-mix(in srgb, var(--hijau-2, #198754) 32%, transparent);
        --overlay-utama2-12: color-mix(in srgb, var(--hijau-2, #198754) 12%, transparent);

        --overlay-aksen-28: color-mix(in srgb, var(--warna-aksen, #f4c542) 28%, transparent);
        --overlay-aksen-24: color-mix(in srgb, var(--warna-aksen, #f4c542) 24%, transparent);
        --overlay-aksen-22: color-mix(in srgb, var(--warna-aksen, #f4c542) 22%, transparent);
        --overlay-aksen-20: color-mix(in srgb, var(--warna-aksen, #f4c542) 20%, transparent);
        --overlay-aksen-18: color-mix(in srgb, var(--warna-aksen, #f4c542) 18%, transparent);
        --overlay-aksen-12: color-mix(in srgb, var(--warna-aksen, #f4c542) 12%, transparent);

        --shadow-primary: 0 12px 34px color-mix(in srgb, var(--warna-utama, #0f5132) 12%, transparent);
        --shadow-primary-strong: 0 18px 48px color-mix(in srgb, var(--warna-utama, #0f5132) 20%, transparent);
        --shadow-accent: 0 8px 20px color-mix(in srgb, var(--warna-aksen, #f4c542) 28%, transparent);
    }
}

/* =========================
   Reset Dasar
   ========================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--teks);
    background: var(--putih);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

p {
    margin-bottom: 1rem;
}

section {
    position: relative;
}

/* =========================
   Navbar
   ========================= */
.navbar-madrasah {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    padding-top: 10px;
    padding-bottom: 10px;
    z-index: 1030;
}

.navbar-brand {
    color: var(--hijau) !important;
    font-weight: 900;
    line-height: 1.1;
    max-width: 280px;
}

.navbar-brand span {
    display: block;
    font-size: 17px;
    white-space: normal;
}

.navbar-brand small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}

.brand-logo {
    width: 46px;
    min-width: 46px;
    height: 46px;
    background: var(--putih);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--hijau) 14%, transparent);
    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.navbar-toggler {
    border: 0;
    box-shadow: none !important;
}

.nav-link {
    font-weight: 700;
    color: var(--hijau);
    /*var(--teks) !important;*/
    
    margin: 3px;
    border-radius: 999px;
    padding: 8px 14px !important;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--hijau-soft);
    color: var(--hijau) !important;
}
/* ===============================
   Dropdown Menu Berita Navbar
   =============================== */

.navbar-madrasah .dropdown-menu {
    border: 0;
    border-radius: 18px;
    padding: 10px;
    min-width: 230px;
    background: var(--putih);
    box-shadow: 0 18px 45px color-mix(in srgb, var(--hijau) 16%, transparent);
}

.navbar-madrasah .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 24px;
    width: 16px;
    height: 16px;
    background: var(--putih);
    transform: rotate(45deg);
    border-radius: 3px;
}

.navbar-madrasah .dropdown-item {
    position: relative;
    z-index: 1;
    border-radius: 13px;
    padding: 10px 14px;
    color: var(--teks);
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s ease;
}

.navbar-madrasah .dropdown-item:hover,
.navbar-madrasah .dropdown-item:focus {
    background: var(--hijau-soft);
    color: var(--hijau);
    padding-left: 18px;
}

.navbar-madrasah .dropdown-item.active,
.navbar-madrasah .dropdown-item:active {
    background: linear-gradient(135deg, var(--hijau), var(--hijau-2));
    color: var(--putih);
}

.navbar-madrasah .dropdown-item.active::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    margin-right: 8px;
    font-size: 13px;
}

.navbar-madrasah .dropdown-divider {
    border-top-color: var(--overlay-utama-12);
    margin: 8px 6px;
}

.navbar-madrasah .dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 6px;
    border-top-color: currentColor;
}
/* =========================
   Button
   ========================= */
.btn-gold {
    background: var(--emas);
    color: var(--gelap);
    border: 0;
    border-radius: 999px;
    padding: 11px 24px;
    font-weight: 800;
    box-shadow: 0 8px 20px var(--overlay-aksen-28);
}

.btn-gold:hover {
    background: var(--emas-2);
    color: var(--gelap);
}

.btn-green {
    background: var(--hijau);
    color: var(--putih);
    border: 0;
    border-radius: 999px;
    padding: 11px 24px;
    font-weight: 800;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--hijau) 22%, transparent);
}

.btn-green:hover {
    background: var(--hijau-2);
    color: var(--putih);
}

.btn-outline-success {
    font-weight: 700;
}

/* =========================
   Fallback background hero untuk browser lama
   ========================= */
.page-hero {
    background:
        linear-gradient(120deg, var(--overlay-utama-94), var(--overlay-utama2-78)),
        var(--hero-background, url("../img/hero-madrasah.jpg")) center/cover no-repeat;
}

.home-hero {
    background:
        radial-gradient(circle at top right, var(--overlay-aksen-28), transparent 34%),
        linear-gradient(120deg, var(--overlay-utama-96), var(--overlay-utama2-88)),
        var(--hero-background, url("../img/hero-madrasah.jpg")) center/cover no-repeat;
}

/* =========================
   Hero Umum Halaman
   ========================= */
.page-hero {
    position: relative;
    padding: 105px 0;
    background:
        linear-gradient(
            120deg,
            color-mix(in srgb, var(--warna-utama, #0f5132) 94%, transparent),
            color-mix(in srgb, var(--hijau-2, var(--hijau-2)) 78%, transparent)
        ),
        var(--hero-background, url("../img/hero-madrasah.jpg")) center/cover no-repeat;
    color: var(--putih);
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    left: -120px;
    top: -120px;
    width: 300px;
    height: 300px;
    background: color-mix(in srgb, var(--hijau-soft, var(--hijau-2)) 20%, transparent);
    border-radius: 50%;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 300px;
    height: 300px;
    background: color-mix(in srgb, var(--hijau-soft, var(--hijau-2)) 20%, transparent);
    border-radius: 50%;
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-weight: 900;
    font-size: 2.85rem;
    line-height: 1.15;
}

.page-hero .lead {
    color: rgba(255, 255, 255, 0.92);
}

.hero-badge {
    background: var(--emas);
    color: var(--gelap);
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 16px;
    font-size: 14px;
}

/* =========================
   Hero Beranda
   ========================= */

.home-hero {
    position: relative;
    padding: 95px 0 120px;
    background:
        radial-gradient(
            circle at top right,
            color-mix(in srgb, var(--warna-aksen, var(--emas)) 28%, transparent),
            transparent 34%
        ),
        linear-gradient(
            120deg,
            color-mix(in srgb, var(--warna-utama, #0f5132) 96%, transparent),
            color-mix(in srgb, var(--hijau-2, var(--hijau-2)) 88%, transparent)
        ),
        var(--hero-background, url("../img/hero-madrasah.jpg")) center/cover no-repeat;
    color: var(--putih);
    overflow: hidden;
}
.home-hero::before {
    content: "";
    position: absolute;
    left: -120px;
    top: -120px;
    width: 300px;
    height: 300px;
    background: color-mix(in srgb, var(--hijau-soft, var(--hijau-2)) 20%, transparent);
    border-radius: 50%;
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -130px;
    width: 320px;
    height: 320px;
    background: color-mix(in srgb, var(--hijau-soft, var(--hijau-2)) 20%, transparent);

    border-radius: 50%;
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.home-hero h1 {
    font-size: 3.35rem;
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 18px;
}

.home-hero .lead {
    color: rgba(255, 255, 255, 0.92);
    max-width: 760px;
}

.hero-photo-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
    border: 8px solid rgba(255, 255, 255, 0.18);
    background: var(--putih);
}

.hero-photo-card img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    display: block;
}

.hero-floating-card {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--hijau);
    border-radius: 22px;
    padding: 18px 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.hero-floating-card strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
}

.hero-floating-card span {
    display: block;
    color: var(--muted);
}

/* =========================
   Statistik Beranda
   ========================= */
.stat-section {
    margin-top: -58px;
    position: relative;
    z-index: 5;
}

.stat-mini-card {
    background: var(--putih);
    border-radius: 22px;
    padding: 24px 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.10);
    text-align: center;
    height: 100%;
}

.stat-mini-card i {
    display: inline-flex;
    width: 52px;
    height: 52px;
    background: var(--hijau-soft);
    color: var(--hijau);
    border-radius: 18px;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
}

.stat-mini-card span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.stat-mini-card strong {
    display: block;
    color: var(--hijau);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

/* =========================
   Section Umum
   ========================= */
.section-padding {
    padding: 75px 0;
}

.section-title {
    color: var(--hijau);
    font-weight: 900;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--muted);
    max-width: 720px;
    margin: 12px auto 0;
}

.section-kicker {
    display: inline-block;
    background: var(--emas-soft);
    color: var(--emas-3);
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
    font-size: 13px;
}

/* =========================
   Background Soft
   ========================= */
.bg-soft-green {
    background: var(--hijau-soft);
}

.bg-soft-gold {
    background: var(--emas-soft);
}

.bg-light {
    background-color: var(--abu) !important;
}

/* =========================
   Card Umum
   ========================= */
.card-fresh {
    border: 0;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.25s ease;
    background: var(--putih);
}

.card-fresh:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--hijau-soft);
    color: var(--hijau);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.icon-box.gold {
    background: var(--emas-soft);
    color: var(--emas-3);
}

.program-card {
    padding: 30px;
}

.program-card h5 {
    color: var(--hijau);
    font-weight: 900;
}

/* =========================
   Mini Feature
   ========================= */
.mini-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--putih);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.mini-feature i {
    color: var(--hijau);
    font-size: 22px;
    margin-top: 2px;
}

.mini-feature strong {
    display: block;
    color: var(--hijau);
}

.mini-feature span {
    display: block;
    font-size: 14px;
    color: var(--muted);
}

/* =========================
   Video
   ========================= */
.video-card {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    background: var(--hitam);
}

.video-ratio {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.video-ratio iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* =========================
   Data List Profil
   ========================= */
.data-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.data-list li {
    display: flex;
    gap: 14px;
    border-bottom: 1px dashed var(--hijau-border);
    padding: 11px 0;
}

.data-list li:last-child {
    border-bottom: 0;
}

.data-list strong {
    width: 42%;
    min-width: 42%;
    color: var(--hijau);
}

.data-list span {
    width: 58%;
}

/* =========================
   Berita
   ========================= */
.news-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.news-card h5 {
    color: var(--gelap);
    line-height: 1.35;
}

.news-meta {
    font-size: 13px;
    color: var(--muted);
}

/* =========================
   Galeri
   ========================= */
.gallery-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--hitam);
    height: 100%;
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: all 0.35s ease;
}

.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 60%);
    z-index: 1;
}

.gallery-card:hover img {
    transform: scale(1.08);
    opacity: 0.84;
}

.gallery-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: var(--putih);
    z-index: 2;
}

.gallery-caption span {
    display: inline-block;
    background: color-mix(in srgb, var(--emas) 95%, transparent);
    color: var(--gelap);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

/* =========================
   Timeline PPDB
   ========================= */
.timeline-box {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
}

.timeline-number {
    min-width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--hijau), var(--hijau-2));
    color: var(--putih);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--hijau) 26%, transparent);
}

.timeline-item h5 {
    color: var(--hijau);
    font-weight: 900;
}

/* =========================
   Checklist
   ========================= */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding: 11px 0 11px 34px;
    border-bottom: 1px dashed var(--hijau-border);
}

.check-list li:last-child {
    border-bottom: 0;
}

.check-list li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 11px;
    color: var(--hijau);
    font-weight: bold;
}

/* =========================
   Form
   ========================= */
.form-modern-card {
    background: var(--putih);
    border-radius: 30px;
    padding: 38px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
}

.form-modern-card .form-label {
    font-weight: 700;
    color: var(--gelap);
}

.form-modern-card .form-control,
.form-modern-card .form-select {
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid var(--hijau-border);
}

.form-modern-card .form-control:focus,
.form-modern-card .form-select:focus {
    border-color: var(--hijau-2);
    box-shadow: 0 0 0 0.2rem var(--overlay-utama2-12);
}

/* =========================
   Kontak
   ========================= */
.contact-modern-card {
    padding: 32px 24px;
}

.contact-modern-card h5 {
    color: var(--hijau);
    font-weight: 900;
}

.map-modern-card {
    border-radius: 30px;
    overflow: hidden;
    min-height: 520px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
    background: var(--hijau-border);
}

.map-modern-card iframe {
    width: 100%;
    height: 520px;
    border: 0;
    display: block;
}

.cta-side-card {
    background: linear-gradient(135deg, var(--hijau), var(--hijau-2));
    color: var(--putih);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.cta-side-card h3 {
    font-weight: 900;
}

/* =========================
   CTA Section
   ========================= */
.cta-section {
    background: linear-gradient(135deg, var(--hijau), var(--hijau-2));
    color: var(--putih);
    border-radius: 34px;
    padding: 45px;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--overlay-aksen-24);
    z-index: 0;
}

.cta-section .row,
.cta-section .position-relative {
    position: relative;
    z-index: 2;
}

/* =========================
   Table
   ========================= */
.table {
    vertical-align: middle;
}

.table th {
    font-weight: 800;
}

/* =========================
   Responsive Tablet
   ========================= */
@media (max-width: 991.98px) {
    .navbar-brand {
        max-width: 235px;
    }

    .navbar-brand span {
        font-size: 15px;
    }

    .home-hero {
        padding: 80px 0 100px;
        text-align: center;
    }

    .home-hero .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero h1 {
        font-size: 2.55rem;
    }

    .hero-photo-card {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-hero {
        padding: 82px 0;
        text-align: center;
    }

    .page-hero h1 {
        font-size: 2.35rem;
    }

    .section-padding {
        padding: 62px 0;
    }

    .map-modern-card,
    .map-modern-card iframe {
        min-height: 420px;
        height: 420px;
    }
}

/* =========================
   Responsive Mobile
   ========================= */
@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    .navbar-madrasah {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .navbar-brand {
        max-width: 220px;
    }

    .navbar-brand span {
        font-size: 14px;
    }

    .navbar-brand small {
        font-size: 10px;
    }

    .brand-logo {
        width: 40px;
        min-width: 40px;
        height: 40px;
        border-radius: 12px;
        padding: 3px;
    }

    .home-hero {
        padding: 70px 0 92px;
        text-align: center;
    }

    .home-hero h1 {
        font-size: 2.15rem;
    }

    .home-hero .lead {
        font-size: 1rem;
    }

    .hero-photo-card img {
        height: 275px;
    }

    .hero-floating-card {
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 14px 16px;
        border-radius: 18px;
    }

    .hero-floating-card strong {
        font-size: 17px;
    }

    .stat-section {
        margin-top: -42px;
    }

    .stat-mini-card {
        padding: 20px 12px;
    }

    .stat-mini-card strong {
        font-size: 16px;
    }

    .page-hero {
        padding: 72px 0;
        text-align: center;
    }

    .page-hero h1 {
        font-size: 2.05rem;
    }

    .section-padding {
        padding: 52px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card-fresh:hover {
        transform: none;
    }

    .program-card {
        padding: 24px;
    }

    .data-list li {
        display: block;
    }

    .data-list strong,
    .data-list span {
        display: block;
        width: 100%;
        min-width: 100%;
    }

    .data-list span {
        margin-top: 3px;
    }

    .news-card img,
    .gallery-card img {
        height: 210px;
    }

    .timeline-item {
        gap: 14px;
    }

    .timeline-number {
        min-width: 46px;
        height: 46px;
        border-radius: 15px;
        font-size: 18px;
    }

    .form-modern-card {
        padding: 26px 20px;
        border-radius: 24px;
    }

    .map-modern-card,
    .map-modern-card iframe {
        min-height: 360px;
        height: 360px;
    }

    .cta-section {
        padding: 32px 24px;
        border-radius: 26px;
        text-align: center;
    }

    .cta-side-card {
        padding: 30px 24px;
        text-align: center;
    }

    .footer-madrasah {
        padding: 42px 0 20px;
        text-align: left;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        right: 16px;
        bottom: 16px;
        font-size: 26px;
    }
}

/* =========================
   Responsive Extra Small
   ========================= */
@media (max-width: 575.98px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-hero h1 {
        font-size: 1.95rem;
    }

    .page-hero h1 {
        font-size: 1.85rem;
    }

    .hero-badge,
    .section-kicker {
        font-size: 12px;
    }

    .btn-gold,
    .btn-green {
        padding: 10px 20px;
        font-size: 14px;
    }

    .stat-mini-card i {
        width: 46px;
        height: 46px;
        font-size: 23px;
    }

    .icon-box {
        width: 56px;
        height: 56px;
        font-size: 26px;
        border-radius: 18px;
    }
}
/* =========================
   Sambutan Kepala Madrasah
   ========================= */
.sambutan-photo-card {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
    background: var(--putih);
}

.sambutan-photo-card img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    display: block;
}

.sambutan-photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--overlay-utama-72), transparent 55%);
}

.sambutan-name-card {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    padding: 18px 20px;
    z-index: 2;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.sambutan-name-card h5 {
    margin: 0;
    color: var(--hijau);
    font-weight: 900;
}

.sambutan-name-card span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.sambutan-text {
    background: var(--putih);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.sambutan-text p {
    text-align: justify;
}

@media (max-width: 767.98px) {
    .sambutan-photo-card img {
        height: 390px;
    }

    .sambutan-text {
        padding: 22px;
    }

    .sambutan-text p {
        text-align: left;
    }
}
.kategori-filter-card {
    background: var(--putih);
    border: 1px solid var(--hijau-border);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,.05);
}
/* =========================
   Detail Berita
   ========================= */
.berita-detail-card {
    border-radius: 32px;
}

.berita-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.berita-meta-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--muted);
    font-size: 14px;
}

.berita-meta-box span {
    display: inline-flex;
    align-items: center;
}

.berita-meta-box i {
    color: var(--hijau);
}

.berita-summary-box {
    background: var(--hijau-soft);
    border-left: 5px solid var(--hijau);
    border-radius: 18px;
    padding: 18px 20px;
    font-weight: 600;
    color: var(--hijau);
}

.berita-detail-content {
    font-size: 17px;
    line-height: 1;
    color: var(--teks);
}

.berita-detail-content p {
    line-height: 1.5;
}

.berita-share-box {
    background: var(--hijau-soft); /*var(--hijau-soft-2);*/
    border: 1px solid var(--hijau-border);
    border-radius: 24px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

@media (max-width: 767.98px) {
    .berita-detail-content {
        font-size: 16px;
        line-height: 1;
    }

    .berita-share-box {
        display: block;
    }

    .berita-share-box .d-flex {
        margin-top: 16px;
    }
}

.berita-detail-content h2,
.berita-detail-content h3,
.berita-detail-content h4 {
    color: var(--hijau);
    font-weight: 800;
    margin-top: 24px;
    margin-bottom: 14px;
}

.berita-detail-content ul,
.berita-detail-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.berita-detail-content blockquote {
    border-left: 5px solid var(--hijau);
    background: var(--hijau-soft);
    padding: 16px 20px;
    border-radius: 16px;
    font-style: italic;
}

.berita-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.berita-detail-content table th,
.berita-detail-content table td {
    border: 1px solid var(--hijau);/*var(--hijau-border);*/
    padding: 10px;
}

.berita-detail-content table th {
    background: var(--hijau-soft);
    color: var(--hijau);
}

.berita-gallery-item {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    background: var(--hijau);/*var(--abu);*/
}

.berita-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: .25s ease;
}

.berita-gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 575.98px) {
    .berita-gallery-item img {
        height: 140px;
    }
}
.contact-modern-card {
    height: 100%;
    padding: 28px 22px;
}

.contact-modern-card h5 {
    color: var(--hijau);
    font-weight: 800;
    margin-bottom: 10px;
}

.contact-modern-card p {
    color: var(--gelap);/*var(--muted);*/
    font-size: 15px;
}

.contact-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--hijau-soft);
    color: var(--hijau);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: .25s ease;
}

.contact-social-btn:hover {
    background: var(--hijau);
    color: var(--putih);
    transform: translateY(-3px);
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 16px;
    padding: 12px 14px;
}

.map-info-card {
    background: var(--putih);
    border-radius: 30px;
    padding: 16px;
    box-shadow: 0 16px 44px rgba(0,0,0,.08);
}

.map-modern-card {
    height: 360px;
    border-radius: 24px;
    overflow: hidden;
}

.map-modern-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-contact-summary {
    padding: 22px 8px 4px;
}

.map-contact-summary h4 {
    color: var(--hijau);
    font-weight: 800;
}

.map-contact-summary p {
    color: var(--gelap);/*var(--muted);*/
}

.social-channel-card {
    padding: 32px 24px;
}

.social-channel-card h4 {
    color: var(--hijau);
    font-weight: 800;
    margin-top: 16px;
}

.social-channel-card p {
    color: var(--gelap);/*var(--muted);*/
}

.social-channel-icon {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.social-channel-icon.facebook {
    background: rgba(13, 110, 253, .12);
    color: var(--hijau-2);
}

.social-channel-icon.instagram {
    background: rgba(220, 53, 69, .12);
    color: var(--emas-2);
}

.social-channel-icon.tiktok {
    background: rgba(0, 0, 0, .12);
    color: var(--gelap);
}
.social-channel-icon.youtube {
    background: rgba(220, 53, 69, .12);
    color: var(--emas-2);
}

@media (max-width: 767.98px) {
    .map-modern-card {
        height: 300px;
    }

    .contact-modern-card {
        padding: 24px 18px;
    }
}

.profile-hero .profile-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.profile-info-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.profile-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--putih);
    border: 1px solid var(--hijau-border);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,.05);
    transition: .25s ease;
}

.profile-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.profile-info-item i {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--hijau-soft);
    color: var(--hijau);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.profile-info-item span {
    display: block;
    color:var(--gelap);/*var(--muted);*/
    font-size: 13px;
}

.profile-info-item strong {
    color: var(--hijau);/*var(--hijau-3);*/
}

.profile-highlight-card {
    border-radius: 32px;
    overflow: hidden;
    background: var(--putih);
    box-shadow: 0 18px 48px rgba(0,0,0,.1);
    position: relative;
}

.profile-highlight-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.profile-highlight-body {
    padding: 26px;
}

.profile-highlight-body .mini-badge {
    display: inline-flex;
    background: var(--hijau-soft);
    color: var(--hijau);
    font-weight: 800;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.profile-highlight-body h4 {
    color: var(--hijau);
    font-weight: 900;
}

.profile-highlight-body p {
    color:var(--gelap);/*var(--muted);*/
    margin-bottom: 0;
}

.kepala-card {
    background: var(--putih);
    border-radius: 32px;
    padding: 16px;
    box-shadow: 0 18px 48px rgba(0,0,0,.1);
}

.kepala-photo {
    border-radius: 26px;
    overflow: hidden;
    background: var(--hijau-soft-2);
}

.kepala-photo img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    display: block;
}

.kepala-info {
    padding: 22px 10px 8px;
    text-align: center;
}

.kepala-info span {
    color: var(--hijau-2);
    font-weight: 800;
}

.kepala-info h3 {
    font-weight: 900;
    color:var(--hijau);/*var(--hijau-3);*/
    margin: 6px 0;
}

.kepala-info p {
    color:var(--hijau-3);/*var(--muted);*/
    margin-bottom: 0;
}

.sambutan-box {
    background: var(--putih);
    border-radius: 28px;
    padding: 32px;
    line-height: 1.9;
    color:var(--gelap);/*var(--teks);*/
    box-shadow: 0 14px 38px rgba(0,0,0,.07);
    border-left: 6px solid var(--hijau);
    position: relative;
}

.sambutan-quote {
    position: absolute;
    right: 26px;
    top: 18px;
    font-size: 54px;
    color: var(--overlay-utama-08);
}

.profile-history-section {
    background:
        radial-gradient(circle at top right, var(--overlay-utama-06), transparent 30%),
        var(--putih);
}

.history-sticky {
    position: sticky;
    top: 110px;
}

.video-card {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0,0,0,.1);
    background: var(--hitam);
}

.history-timeline {
    position: relative;
    display: grid;
    gap: 18px;
}

.history-timeline::before {
    content: "";
    position: absolute;
    left: 92px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: color-mix(in srgb, var(--hijau) 16%, transparent);
}

.history-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    position: relative;
}

.history-year {
    position: relative;
    z-index: 2;
    background: var(--hijau);
    color: var(--putih);
    border-radius: 18px;
    padding: 12px 10px;
    text-align: center;
    font-weight: 900;
    font-size: 0.8rem;
    height: fit-content;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--hijau) 18%, transparent);
}

.history-content {
    background: var(--putih);
    border: 1px solid var(--hijau-border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(0,0,0,.05);
}

.history-content h4 {
    color: var(--hijau);
    font-weight: 900;
    margin-bottom: 10px;
}

.history-content p {
    color: var(--gelap); /* var(--muted) */
    line-height: 1.8;
    margin-bottom: 0;
}

.visi-card,
.misi-card {
    background: var(--putih);
    border-radius: 30px;
    padding: 32px;
    box-shadow: 0 14px 38px rgba(0,0,0,.07);
}

.visi-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: var(--hijau-soft);
    color: var(--hijau);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 18px;
}

.visi-card h3,
.misi-card h3 {
    color: var(--hijau);
    font-weight: 900;
}

.visi-card p {
    color:var(--gelap);/*var(--teks);*/
    font-size: 18px;
    line-height: 1.8;
}

.misi-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.misi-list li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 14px;
    color: var(--gelap);/*var(--teks);*/
}

.misi-list li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--hijau);
    font-size: 20px;
}

.teacher-card {
    background: var(--putih);
    border-radius: 26px;
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: 0 12px 34px rgba(0,0,0,.06);
    border: 1px solid var(--hijau-border);
    transition: .25s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-avatar {
    width: 58px;
    min-width: 58px;
    height: 58px;
    border-radius: 20px;
    background: var(--hijau-soft);
    color: var(--hijau);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.teacher-card h5 {
    color: var(--hijau);
    font-weight: 800;
    margin-bottom: 2px;
}

.teacher-card span {
    display: block;
    color:var(--gelap);/*var(--hijau-3);*/
    font-weight: 700;
    font-size: 14px;
}

.teacher-card p {
    color: var(--gelap);/*var(--muted);*/
    margin-bottom: 0;
    font-size: 14px;
}

/* ===============================
   Struktur Organisasi Profil
   Aman untuk desktop, tablet, dan HP
   =============================== */
.org-chart-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
}

.org-level {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.org-level-top {
    margin-bottom: 28px;
}

.org-level-middle {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, .95fr);
    align-items: stretch;
    gap: 22px;
    margin-bottom: 34px;
}

.org-middle-slot {
    display: flex;
    min-width: 0;
}

.org-middle-slot .org-node {
    max-width: none;
}

.org-middle-center .org-node {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px color-mix(in srgb, var(--hijau) 15%, transparent);
}

.org-level-bottom {
    display: block;
    margin-top: 4px;
    color: var(--hijau);
}

.org-connector {
    width: 3px;
    height: 34px;
    background: linear-gradient(180deg, var(--hijau), color-mix(in srgb, var(--hijau) 18%, transparent));
    border-radius: 999px;
    margin: -8px auto 18px;
}

.org-section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 20px;
    color: var(--hijau);
}

.org-section-label i {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--hijau-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.org-section-label h4 {
    margin: 0;
    font-weight: 900;
}

.org-node {
    background: var(--putih);
    border: 1px solid color-mix(in srgb, var(--hijau) 14%, transparent);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 16px 42px color-mix(in srgb, var(--hijau) 10%, transparent);
    text-align: center;
    width: 100%;
    max-width: 340px;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}

.org-node-yayasan {
    max-width: 390px;
    border-color: color-mix(in srgb, var(--emas) 70%, transparent);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--emas) 20%, transparent), transparent 34%),
        var(--putih);
}

.org-node-kepala {
    border-top: 6px solid var(--hijau);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--hijau-2) 12%, transparent), transparent 36%),
        var(--putih);
}

.org-node-penasihat {
    border-top: 5px solid var(--emas);
}

.org-node-komite {
    border-top: 5px solid var(--hijau-2);
}

.org-node-lainnya {
    border-top: 5px solid var(--muted);
}

.org-node-photo,
.org-member-photo,
.org-group-icon {
    background: var(--hijau-soft);
    color: var(--hijau);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.org-node-photo {
    width: 104px;
    height: 104px;
    border-radius: 30px;
    margin: 0 auto 16px;
    font-size: 42px;
    box-shadow: 0 12px 26px var(--overlay-utama-12);
}

.org-node-photo img,
.org-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-node span,
.org-group-member span,
.org-member-row span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.org-node > span {
    color: var(--hijau-2);
    font-weight: 800;
    margin-bottom: 5px;
}

.org-node h4 {
    color: var(--hijau);
    font-weight: 900;
    margin-bottom: 0;
    font-size: 20px;
}

.org-group-node {
    max-width: none;
    text-align: left;
}

.org-group-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}

.org-group-icon {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 20px;
    font-size: 26px;
}

.org-group-heading h4 {
    margin: 2px 0 0;
}

.org-group-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.org-group-member,
.org-member-row {
    background: var(--abu);
    border: 1px solid var(--abu-2);
    border-radius: 18px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.org-member-photo {
    width: 54px;
    min-width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 24px;
}

.org-group-member strong,
.org-member-row strong {
    display: block;
    color: var(--hijau);
    font-weight: 900;
    line-height: 1.25;
}

.org-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.org-team-card {
    background: var(--putih);
    border: 1px solid color-mix(in srgb, var(--hijau) 12%, transparent);
    border-radius: 26px;
    box-shadow: 0 12px 34px color-mix(in srgb, var(--hijau) 8%, transparent);
    overflow: hidden;
    height: 100%;
}

.org-team-header {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--emas) 18%, transparent), transparent 35%),
        linear-gradient(135deg, var(--hijau), var(--hijau-2));
    color: var(--putih);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.org-team-header h4 {
    margin: 0;
    font-weight: 900;
    font-size: 18px;
    color: var(--putih);
}

.org-team-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(255,255,255,.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.org-team-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.org-member-empty {
    background: var(--abu);
    border: 1px dashed var(--abu-2);
    border-radius: 16px;
    padding: 14px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.org-empty-box {
    background: var(--putih);
    border: 1px dashed color-mix(in srgb, var(--hijau) 25%, transparent);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

.org-node-placeholder {
    opacity: .78;
    border-style: dashed;
}

.org-placeholder-text {
    color: var(--muted);
    margin: 10px 0 0;
    font-size: 14px;
}

@media (max-width: 991.98px) {
    .org-level-middle {
        grid-template-columns: 1fr;
    }

    .org-middle-center .org-node {
        transform: none;
    }

    .org-node {
        max-width: 580px;
    }

    .org-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 767.98px) {
    .org-team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .org-level {
        gap: 16px;
        margin-bottom: 22px;
    }

    .org-level-middle,
    .org-team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .org-node {
        border-radius: 22px;
        padding: 20px;
        max-width: 100%;
    }

    .org-node-photo {
        width: 86px;
        height: 86px;
        border-radius: 24px;
        font-size: 34px;
    }

    .org-node h4 {
        font-size: 18px;
    }

    .org-group-heading {
        align-items: flex-start;
    }

    .org-group-member,
    .org-member-row {
        align-items: flex-start;
    }

    .org-member-photo {
        width: 48px;
        min-width: 48px;
        height: 48px;
        border-radius: 16px;
    }
}
.tugas-card {
    background: var(--putih);
    border: 1px solid color-mix(in srgb, var(--hijau) 10%, transparent);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 12px 34px var(--overlay-utama-08);
    transition: .25s ease;
}

.tugas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px color-mix(in srgb, var(--hijau) 13%, transparent);
}

.tugas-icon {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    background: var(--hijau-soft);
    color: var(--hijau);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 18px;
}

.tugas-card h4 {
    color: var(--hijau);
    font-weight: 900;
    margin-bottom: 10px;
}

.tugas-card p {
    color: var(--muted);
    margin-bottom: 14px;
}

.tugas-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.tugas-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 9px;
    color: var(--teks);
    font-size: 14px;
}

.tugas-list li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--hijau-2);
}

.tugas-detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tugas-detail-item {
    background: var(--abu);
    border: 1px solid var(--abu-2);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    gap: 12px;
}

.tugas-detail-item span {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--hijau);
    color: var(--putih);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tugas-detail-item p {
    margin: 0;
    color: var(--teks);
}

@media (max-width: 575.98px) {
    .tugas-card {
        padding: 20px;
        border-radius: 22px;
    }

    .tugas-icon {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        font-size: 26px;
    }

    .tugas-detail-item {
        align-items: flex-start;
    }
}

.facility-card {
    background: var(--putih);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 12px 34px rgba(0,0,0,.06);
    border: 1px solid var(--hijau-border);
    transition: .25s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
}

.facility-icon {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    background: var(--hijau-soft);
    color: var(--hijau);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 18px;
}

.facility-card h5 {
    color: var(--hijau);
    font-weight: 800;
}

.facility-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.cta-wide-card {
    background:
        radial-gradient(circle at top right, var(--overlay-aksen-24), transparent 32%),
        linear-gradient(135deg, var(--hijau), var(--hijau-2));
    color: var(--putih);
    border-radius: 34px;
    padding: 42px 28px;
    box-shadow: 0 18px 48px var(--overlay-utama-20);
}

.cta-wide-card span {
    color: rgba(255,255,255,.78);
    font-weight: 800;
}

.cta-wide-card h2 {
    font-weight: 900;
    margin: 8px 0 12px;
}

.cta-wide-card p {
    max-width: 720px;
    margin: 0 auto 24px;
    color: rgba(255,255,255,.84);
}

@media (max-width: 991.98px) {
    .history-sticky {
        position: relative;
        top: auto;
    }

    .history-timeline::before {
        left: 18px;
    }

    .history-item {
        grid-template-columns: 1fr;
        padding-left: 46px;
        gap: 10px;
    }

    .history-year {
        width: fit-content;
    }
}

@media (max-width: 767.98px) {
    .profile-highlight-card img,
    .kepala-photo img {
        height: 300px;
    }

    .sambutan-box,
    .visi-card,
    .misi-card {
        padding: 24px;
    }

    .teacher-card {
        align-items: flex-start;
    }

    .history-content {
        padding: 18px;
    }
}

.ppdb-total-card {
    background: linear-gradient(135deg, var(--hijau), var(--hijau-2));
    color: var(--putih);
    border-radius: 24px;
    padding: 18px 22px;
    display: inline-flex;
    flex-direction: column;
    min-width: 190px;
    box-shadow: 0 14px 34px color-mix(in srgb, var(--hijau) 18%, transparent);
}

.ppdb-total-card span {
    color: rgba(255,255,255,.78);
    font-weight: 700;
    font-size: 14px;
}

.ppdb-total-card strong {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
}

.ppdb-public-table th {
    white-space: nowrap;
}

.ppdb-public-table td {
    vertical-align: middle;
}

@media (max-width: 991.98px) {
    .ppdb-total-card {
        margin-top: 18px;
        width: 100%;
        text-align: center;
        align-items: center;
    }
}

/* =========================================================
   ENHANCEMENT TAMBAHAN - Animasi & Interaksi (update)
   ========================================================= */

/* Animasi fade-up saat halaman dimuat / discroll */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: .1s; }
.fade-up.delay-2 { transition-delay: .2s; }
.fade-up.delay-3 { transition-delay: .3s; }
.fade-up.delay-4 { transition-delay: .4s; }

/* Hero: animasi masuk halus tanpa menunggu JS */
.home-hero h1,
.home-hero .lead,
.home-hero .d-flex.flex-wrap {
    animation: heroFadeUp .9s ease both;
}

.home-hero .lead { animation-delay: .15s; }
.home-hero .d-flex.flex-wrap { animation-delay: .3s; }

.home-hero .col-lg-5 .hero-photo-card {
    animation: heroFadeIn 1s ease both;
    animation-delay: .2s;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

/* Tombol: efek hover lebih hidup */
.btn-gold,
.btn-green,
.btn-outline-success,
.btn-outline-light {
    transition: all .25s ease;
}

.btn-gold:hover,
.btn-green:hover {
    transform: translateY(-3px);
}

.btn-outline-success:hover {
    background: var(--hijau);
    color: var(--putih) !important;
    border-color: var(--hijau);
    transform: translateY(-3px);
}

.btn-outline-light:hover {
    transform: translateY(-3px);
}

/* Stat mini card: hover lift + ikon membesar */
.stat-mini-card {
    transition: transform .25s ease, box-shadow .25s ease;
}

.stat-mini-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.stat-mini-card:hover i {
    transform: scale(1.1);
}

.stat-mini-card i {
    transition: transform .25s ease;
}

/* News card: zoom gambar saat hover */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card img {
    transition: transform .5s ease;
}

.news-card:hover img {
    transform: scale(1.06);
}

.news-card .p-4 {
    overflow: hidden;
}

/* Mini feature: hover */
.mini-feature {
    transition: transform .25s ease, box-shadow .25s ease;
}

.mini-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

/* Tombol sambutan: ikon chevron berputar saat dibuka */
.btn-sambutan-toggle .bi-chevron-down {
    transition: transform .3s ease;
    margin-left: 6px;
}

.btn-sambutan-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* Program card: ikon membesar saat hover */
.program-card .icon-box {
    transition: transform .3s ease, background .3s ease;
}

.program-card:hover .icon-box {
    transform: scale(1.1) rotate(-4deg);
    background: var(--emas-soft);
    color: var(--emas-3);
}

/* Video card: hover shadow */
.video-card {
    transition: box-shadow .3s ease;
}

.video-card:hover {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

/* Sambutan photo card: efek hover ringan */
.sambutan-photo-card {
    transition: transform .3s ease;
}

.sambutan-photo-card:hover {
    transform: translateY(-4px);
}

/* CTA section: sedikit shine saat hover */
.cta-section {
    transition: transform .3s ease, box-shadow .3s ease;
}

.cta-section:hover {
    transform: translateY(-3px);
}

/* Respeksi pengguna yang mematikan animasi */
@media (prefers-reduced-motion: reduce) {
    .fade-up,
    .home-hero h1,
    .home-hero .lead,
    .home-hero .d-flex.flex-wrap,
    .home-hero .col-lg-5 .hero-photo-card {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* =========================================================
   ENHANCEMENT TAMBAHAN 2 - Stagger Animasi Halaman Profil
   ========================================================= */

/* Profil info list: animasi berurutan */
.profile-info-list .profile-info-item.fade-up:nth-child(1) { transition-delay: .00s; }
.profile-info-list .profile-info-item.fade-up:nth-child(2) { transition-delay: .06s; }
.profile-info-list .profile-info-item.fade-up:nth-child(3) { transition-delay: .12s; }
.profile-info-list .profile-info-item.fade-up:nth-child(4) { transition-delay: .18s; }
.profile-info-list .profile-info-item.fade-up:nth-child(5) { transition-delay: .24s; }
.profile-info-list .profile-info-item.fade-up:nth-child(6) { transition-delay: .30s; }

/* Timeline sejarah: animasi berurutan dari atas ke bawah */
.history-timeline .history-item.fade-up:nth-child(odd) {
    transform: translateX(-24px);
}

.history-timeline .history-item.fade-up:nth-child(even) {
    transform: translateX(24px);
}

.history-timeline .history-item.fade-up.show {
    transform: translateY(0) translateX(0);
}

/* Fasilitas: animasi berurutan per kartu */
.row .col-md-6.col-lg-4 .facility-card.fade-up:nth-of-type(1) { transition-delay: 0s; }
.row .col-md-6.col-lg-4:nth-child(2) .facility-card.fade-up { transition-delay: .05s; }
.row .col-md-6.col-lg-4:nth-child(3) .facility-card.fade-up { transition-delay: .10s; }
.row .col-md-6.col-lg-4:nth-child(4) .facility-card.fade-up { transition-delay: .15s; }
.row .col-md-6.col-lg-4:nth-child(5) .facility-card.fade-up { transition-delay: .20s; }
.row .col-md-6.col-lg-4:nth-child(6) .facility-card.fade-up { transition-delay: .25s; }

/* Hover lebih hidup untuk foto struktur organisasi */
.org-node-photo img,
.org-member-photo img {
    transition: transform .35s ease;
}

.org-node:hover .org-node-photo img {
    transform: scale(1.06);
}

.org-member-row:hover .org-member-photo img {
    transform: scale(1.08);
}

/* Kepala madrasah: foto sedikit membesar saat hover kartu */
.kepala-photo img {
    transition: transform .4s ease;
}

.kepala-card:hover .kepala-photo img {
    transform: scale(1.05);
}

/* History item: hover sedikit terangkat */
.history-content {
    transition: transform .25s ease, box-shadow .25s ease;
}

.history-item:hover .history-content {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.09);
}

/* Visi card: ikon sedikit berputar saat hover */
.visi-icon {
    transition: transform .35s ease;
}

.visi-card:hover .visi-icon {
    transform: rotate(15deg) scale(1.08);
}

/* Misi list: highlight saat hover per item */
.misi-list li {
    transition: color .2s ease, padding-left .2s ease;
}

.misi-list li:hover {
    color: var(--hijau);
    padding-left: 4px;
}

/* CTA wide card: efek hover */
.cta-wide-card {
    transition: transform .3s ease, box-shadow .3s ease;
}

.cta-wide-card:hover {
    transform: translateY(-3px);
}


/* =========================================================
   ENHANCEMENT TAMBAHAN 3 - Konsistensi Halaman Lain
   ========================================================= */

/* Alur PPDB: animasi timeline berurutan */
.timeline-box .timeline-item.fade-up:nth-child(1) { transition-delay: 0s; }
.timeline-box .timeline-item.fade-up:nth-child(2) { transition-delay: .08s; }
.timeline-box .timeline-item.fade-up:nth-child(3) { transition-delay: .16s; }
.timeline-box .timeline-item.fade-up:nth-child(4) { transition-delay: .24s; }

.timeline-number {
    transition: transform .3s ease;
}

.timeline-item:hover .timeline-number {
    transform: scale(1.1) rotate(-6deg);
}

/* Galeri foto pada detail berita: animasi berurutan + hover zoom */
.berita-gallery .col-md-4.col-6:nth-child(1) .berita-gallery-item.fade-up { transition-delay: 0s; }
.berita-gallery .col-md-4.col-6:nth-child(2) .berita-gallery-item.fade-up { transition-delay: .05s; }
.berita-gallery .col-md-4.col-6:nth-child(3) .berita-gallery-item.fade-up { transition-delay: .10s; }
.berita-gallery .col-md-4.col-6:nth-child(4) .berita-gallery-item.fade-up { transition-delay: .15s; }
.berita-gallery .col-md-4.col-6:nth-child(5) .berita-gallery-item.fade-up { transition-delay: .20s; }
.berita-gallery .col-md-4.col-6:nth-child(6) .berita-gallery-item.fade-up { transition-delay: .25s; }

.berita-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 18px;
}

.berita-gallery-item img {
    transition: transform .4s ease;
    border-radius: 18px;
}

.berita-gallery-item:hover img {
    transform: scale(1.08);
}

/* Kategori filter berita: tombol kategori sedikit naik saat hover */
.kategori-filter-card .btn {
    transition: transform .2s ease;
}

.kategori-filter-card .btn:hover {
    transform: translateY(-2px);
}

/* Kartu fitur kecil (Islami/Aktif/Kreatif/Kolaboratif di Program) */
.row .col-6 > .card-fresh.p-3.fade-up:nth-child(1) { transition-delay: 0s; }

/* Form pendaftar PPDB & tabel: highlight baris saat hover sudah ditangani table-hover bootstrap */


/* =========================================================
   ENHANCEMENT TAMBAHAN 4 - Halaman Kontak
   ========================================================= */

/* 4 kartu info kontak: animasi berurutan */
.row .col-md-6.col-lg-3:nth-child(1) .contact-modern-card.fade-up { transition-delay: 0s; }
.row .col-md-6.col-lg-3:nth-child(2) .contact-modern-card.fade-up { transition-delay: .06s; }
.row .col-md-6.col-lg-3:nth-child(3) .contact-modern-card.fade-up { transition-delay: .12s; }
.row .col-md-6.col-lg-3:nth-child(4) .contact-modern-card.fade-up { transition-delay: .18s; }

.contact-modern-card .icon-box {
    transition: transform .3s ease, background .3s ease;
}

.contact-modern-card:hover .icon-box {
    transform: scale(1.1) rotate(-4deg);
    background: var(--emas-soft);
    color: var(--emas-3);
}

/* 4 kartu media sosial: animasi berurutan + ikon hover */
.row.justify-content-center .col-md-4:nth-child(1) .social-channel-card.fade-up { transition-delay: 0s; }
.row.justify-content-center .col-md-4:nth-child(2) .social-channel-card.fade-up { transition-delay: .06s; }
.row.justify-content-center .col-md-4:nth-child(3) .social-channel-card.fade-up { transition-delay: .12s; }
.row.justify-content-center .col-md-4:nth-child(4) .social-channel-card.fade-up { transition-delay: .18s; }

.social-channel-icon {
    transition: transform .3s ease;
}

.social-channel-card:hover .social-channel-icon {
    transform: scale(1.1) rotate(-6deg);
}

/* Kartu jam layanan: highlight baris saat hover (dibantu table-hover bootstrap) */
.cta-side-card {
    transition: transform .3s ease, box-shadow .3s ease;
}

.cta-side-card:hover {
    transform: translateY(-4px);
}

/* Peta lokasi: efek hover ringan */
.map-info-card {
    transition: transform .3s ease, box-shadow .3s ease;
}

.map-info-card:hover {
    transform: translateY(-3px);
}
/* ===============================
   Footer Madrasah
   =============================== */

.footer-madrasah {
    position: relative;
    color: rgba(255, 255, 255, 0.84);
    background:
        radial-gradient(circle at top right, var(--overlay-aksen-18), transparent 34%),
        radial-gradient(circle at bottom left, var(--overlay-utama2-32), transparent 30%),
        linear-gradient(180deg, var(--hijau), var(--hijau-3));
    overflow: hidden;
}

.footer-main {
    padding: 62px 0 34px;
}

.footer-top-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.footer-brand-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-logo {
    width: 74px;
    min-width: 74px;
    height: 74px;
    border-radius: 24px;
    background: var(--putih);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--hijau) 14%, transparent);
    overflow: hidden;
    padding:4px 4px 4px 12px;
    /*background: var(--putih);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;*/
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-mini-badge {
    display: inline-block;
    background: var(--emas);
    color: var(--gelap);
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 8px;
}

.footer-brand-wrap h4 {
    color: var(--putih);
    font-weight: 900;
    margin-bottom: 6px;
}

.footer-brand-wrap p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
}

.footer-widget {
    height: 100%;
}

.footer-widget h5 {
    color: var(--emas);
    font-weight: 900;
    margin-bottom: 18px;
    position: relative;
}

.footer-widget h5::after {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    border-radius: 999px;
    background: var(--emas);
    margin-top: 9px;
}

.footer-widget p {
    line-height: 1.8;
    margin-bottom: 18px;
}

.footer-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--putih);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.25s ease;
}

.footer-social:hover {
    background: var(--emas);
    color: var(--hijau);
    transform: translateY(-3px);
}

.footer-menu,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: 0.2s ease;
}

.footer-menu a:hover,
.footer-contact a:hover {
    color: var(--emas);
    padding-left: 4px;
}

.footer-related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-related-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: 0.25s ease;
}

.footer-related-item:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--putih);
    transform: translateX(4px);
}

.footer-related-item > span {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 15px;
    background: var(--overlay-aksen-18);
    color: var(--emas);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-related-item strong {
    display: block;
    color: var(--putih);
    font-size: 14px;
    line-height: 1.2;
}

.footer-related-item small {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.4;
    margin-top: 3px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 13px;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--emas);
    margin-top: 3px;
}

.footer-map-link {
    margin-top: 16px;
}

.footer-map-link a {
    display: inline-flex;
    align-items: center;
    color: var(--emas);
    font-weight: 800;
    text-decoration: none;
}

.footer-map-link a:hover {
    color: var(--putih);
}

.footer-counter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.footer-counter-item {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-counter-item i {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 17px;
    background: var(--overlay-aksen-18);
    color: var(--emas);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.footer-counter-item span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.2;
}

.footer-counter-item strong {
    display: block;
    color: var(--putih);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    color: rgba(255, 255, 255, 0.70);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--hijau-2);
    color: var(--putih);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.38);
    z-index: 999;
    transition: 0.25s ease;
}

.whatsapp-float:hover {
    color: var(--putih);
    transform: translateY(-4px) scale(1.03);
}

@media (max-width: 991.98px) {
    .footer-main {
        padding: 48px 0 28px;
    }

    .footer-counter {
        grid-template-columns: 1fr;
    }

    .footer-top-card {
        text-align: center;
    }

    .footer-brand-wrap {
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .footer-brand-wrap {
        display: block;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 14px;
    }

    .footer-top-card {
        border-radius: 24px;
        padding: 20px;
    }

    .footer-social-list {
        justify-content: center;
    }

    .footer-related-item {
        align-items: flex-start;
    }

    .footer-counter-item {
        align-items: flex-start;
    }

    .footer-bottom-content {
        display: block;
        text-align: center;
    }

    .footer-bottom-content small {
        display: block;
        margin-bottom: 6px;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 16px;
        bottom: 16px;
        font-size: 27px;
    }
}

.profile-slider-card {
    overflow: hidden;
}

.profile-slider-card .carousel {
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.profile-slider-card .carousel-item img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

.profile-slider-card .carousel-control-prev,
.profile-slider-card .carousel-control-next {
    width: 12%;
}

.profile-slider-card .carousel-indicators {
    margin-bottom: 12px;
}

.profile-slider-card .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

@media (max-width: 991.98px) {
    .profile-slider-card .carousel-item img {
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    .profile-slider-card .carousel-item img {
        height: 230px;
    }
}


/* =========================
   Penyelarasan Warna Dinamis Global
   Semua komponen penting mengikuti --warna-utama dan --warna-aksen.
   ========================= */
.text-success,
.link-success {
    color: var(--hijau) !important;
}

.bg-success,
.text-bg-success {
    background-color: var(--hijau) !important;
    color: var(--putih) !important;
}

.border-success {
    border-color: var(--hijau) !important;
}

.btn-success {
    --bs-btn-bg: var(--hijau);
    --bs-btn-border-color: var(--hijau);
    --bs-btn-hover-bg: var(--hijau-2);
    --bs-btn-hover-border-color: var(--hijau-2);
    --bs-btn-active-bg: var(--hijau-3);
    --bs-btn-active-border-color: var(--hijau-3);
    --bs-btn-color: var(--putih);
    --bs-btn-hover-color: var(--putih);
}

.btn-outline-success {
    --bs-btn-color: var(--hijau);
    --bs-btn-border-color: var(--hijau);
    --bs-btn-hover-bg: var(--hijau);
    --bs-btn-hover-border-color: var(--hijau);
    --bs-btn-active-bg: var(--hijau-3);
    --bs-btn-active-border-color: var(--hijau-3);
    --bs-btn-hover-color: var(--putih);
}

.badge.text-bg-light,
.bg-secondary-subtle {
    background-color: var(--hijau-soft) !important;
    color: var(--hijau) !important;
}

.card-fresh,
.stat-mini-card,
.program-card,
.mini-feature,
.form-modern-card,
.contact-modern-card,
.profile-info-item,
.profile-highlight-card,
.kepala-card,
.sambutan-box,
.history-content,
.visi-card,
.misi-card,
.teacher-card,
.facility-card,
.tugas-card,
.org-node,
.org-team-card,
.map-info-card {
    border-color: var(--hijau-border);
}

.section-kicker,
.hero-badge,
.footer-mini-badge {
    background: var(--emas-soft);
    color: var(--emas-3);
}

.hero-badge,
.footer-mini-badge {
    background: var(--emas);
    color: var(--gelap);
}

.page-hero,
.home-hero {
    background-color: var(--hijau);
}

.page-hero::before,
.page-hero::after,
.home-hero::before,
.home-hero::after {
    background: var(--overlay-aksen-22);
}

.cta-section,
.cta-side-card,
.cta-wide-card,
.ppdb-total-card,
.org-team-header {
    background:
        radial-gradient(circle at top right, var(--overlay-aksen-24), transparent 34%),
        linear-gradient(135deg, var(--hijau), var(--hijau-2));
}

.social-channel-icon.facebook,
.social-channel-icon.instagram,
.social-channel-icon.tiktok,
.social-channel-icon.youtube {
    background: var(--hijau-soft);
    color: var(--hijau);
}

.social-channel-card:hover .social-channel-icon,
.contact-social-btn:hover,
.footer-social:hover {
    background: var(--emas);
    color: var(--gelap);
}

.whatsapp-float {
    background: linear-gradient(135deg, var(--hijau), var(--hijau-2));
    box-shadow: var(--shadow-primary-strong);
}

.table th,
.berita-detail-content table th {
    background: var(--hijau-soft);
    color: var(--hijau);
}

.kategori-filter-card,
.berita-share-box,
.berita-summary-box,
.org-member-empty,
.tugas-detail-item,
.org-group-member,
.org-member-row {
    background: var(--hijau-soft-2);
    border-color: var(--hijau-border);
}


/* =========================
   PERBAIKAN TAMPILAN - v2.0
   Peningkatan visual, UX, dan konsistensi
   ========================= */

/* --- Smooth transition global --- */
*, *::before, *::after {
    transition-property: background-color, color, border-color, box-shadow, transform, opacity;
    transition-duration: 0.18s;
    transition-timing-function: ease;
}

/* --- Typography Enhancement --- */
body {
    font-size: 16px;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* --- Navbar Enhancement --- */
.navbar-madrasah {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.navbar-madrasah .nav-link {
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 0.01em;
    padding: 8px 14px !important;
    border-radius: 10px;
}

.navbar-madrasah .nav-link:hover,
.navbar-madrasah .nav-link:focus {
    color: var(--hijau) !important;
    background: var(--hijau-soft);
}

.navbar-madrasah .nav-link.active {
    color: var(--hijau) !important;
    background: var(--hijau-soft);
    font-weight: 800;
}

/* --- Tombol lebih tegas --- */
.btn {
    font-size: 14.5px;
    letter-spacing: 0.01em;
    transition: all 0.22s ease;
}

.btn-gold:hover,
.btn-gold:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--overlay-aksen-28);
}

.btn-green:hover,
.btn-green:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--hijau) 28%, transparent);
}

/* --- Hero Section Enhancement --- */
.home-hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.home-hero h1 {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.home-hero .lead {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
    font-size: 1.12rem;
    max-width: 520px;
}

/* --- Stat cards border gradient accent --- */
.stat-mini-card {
    border-top: 4px solid var(--emas);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.13);
}

/* --- Card Fresh improvement --- */
.card-fresh {
    border: 1px solid var(--hijau-border);
    transition: all 0.25s ease;
}

.card-fresh:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--hijau-soft);
}

/* --- Program cards --- */
.program-card {
    border-left: 4px solid var(--emas);
    position: relative;
    overflow: hidden;
}

.program-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--overlay-aksen-12);
    pointer-events: none;
}

/* --- News card image better aspect ratio --- */
.news-card img {
    height: 220px;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.news-card:hover img {
    transform: scale(1.05);
    opacity: 0.92;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card .p-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card h5 {
    flex: 1;
}

/* --- Gallery card hover zoom improvement --- */
.gallery-card {
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
}

/* --- Form controls lebih clean --- */
.form-control,
.form-select {
    border-radius: 12px;
    padding: 11px 14px;
    border: 1.5px solid var(--hijau-border);
    font-size: 15px;
    background: var(--putih);
    color: var(--teks);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hijau);
    box-shadow: 0 0 0 3px var(--overlay-utama-08);
    background: var(--putih);
}

.form-control::placeholder {
    color: #adb5bd;
}

/* --- Alert styling --- */
.alert {
    border-radius: 16px;
    border: 0;
    padding: 16px 20px;
}

.alert-success {
    background: color-mix(in srgb, var(--hijau) 10%, white);
    color: var(--hijau);
}

.alert-danger {
    background: #fdf0f0;
    color: #b91c1c;
}

.alert-info {
    background: #eff6ff;
    color: #1d4ed8;
}

/* --- Sambutan section improvement --- */
.sambutan-photo-card {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-primary-strong);
    border: 4px solid var(--emas);
}

.sambutan-text p {
    line-height: 1.85;
    color: var(--teks);
}

/* --- Map card --- */
.map-info-card {
    border-radius: 30px;
    overflow: hidden;
    background: var(--putih);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.map-contact-summary {
    padding: 24px;
    border-top: 1px solid var(--hijau-border);
}

.map-contact-summary h4 {
    color: var(--hijau);
    font-weight: 800;
    margin-bottom: 12px;
}

/* --- Social channel card icon size larger --- */
.social-channel-icon {
    width: 68px;
    height: 68px;
    font-size: 32px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: all 0.22s ease;
}

.social-channel-card:hover .social-channel-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* --- Footer logo padding fix --- */
.footer-logo {
    padding: 6px;
}

/* --- WhatsApp floating button pulse --- */
.whatsapp-float {
    animation: wa-pulse 2.4s infinite;
}

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(15, 81, 50, 0.40); }
    50% { box-shadow: 0 8px 40px rgba(15, 81, 50, 0.70), 0 0 0 10px rgba(15, 81, 50, 0.08); }
}

/* --- Fade-up animation --- */
.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible,
.fade-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* --- Table improvement --- */
.table {
    border-radius: 14px;
    overflow: hidden;
}

.table thead th {
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 16px;
}

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 15px;
}

.table-hover tbody tr:hover {
    background: var(--hijau-soft);
}

/* --- Badge consistency --- */
.badge.rounded-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    letter-spacing: 0.02em;
}

/* --- Page hero - teks lebih jelas mobile --- */
@media (max-width: 575.98px) {
    .page-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .home-hero h1 {
        font-size: 2.1rem;
    }

    .section-padding {
        padding: 52px 0;
    }

    .form-modern-card {
        padding: 24px 18px;
    }

    .card-fresh:hover {
        transform: none;
    }
}

/* --- Scrollbar custom --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--abu);
}

::-webkit-scrollbar-thumb {
    background: var(--hijau-border);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hijau-2);
}

/* --- Selection color --- */
::selection {
    background: var(--emas);
    color: var(--gelap);
}

/* --- Link terkait footer hover --- */
.footer-related-item {
    transition: all 0.22s ease;
}

.footer-related-item:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(4px);
}

/* --- Dropdown menu enhanced --- */
.dropdown-menu {
    border: 1px solid var(--hijau-border);
    border-radius: 18px !important;
    padding: 8px;
    min-width: 220px;
}

.dropdown-item {
    border-radius: 12px;
    padding: 9px 14px;
    font-size: 14.5px;
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--hijau-soft);
    color: var(--hijau);
}

.dropdown-item.active {
    background: var(--hijau);
    color: var(--putih);
    font-weight: 700;
}

/* --- Icon box hover animation --- */
.icon-box {
    transition: all 0.25s ease;
}

.card-fresh:hover .icon-box {
    background: var(--emas-soft);
    color: var(--emas-3);
    transform: rotate(-6deg) scale(1.08);
}

/* --- Profile highlight card improvement --- */
.profile-highlight-card {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-primary-strong);
    border: 3px solid var(--emas);
}

/* --- Contact form card map fix height --- */
.map-modern-card {
    min-height: 380px;
}

.map-modern-card iframe {
    height: 380px;
}

/* --- Timeline PPDB enhanced --- */
.timeline-number {
    border-radius: 16px;
    font-size: 17px;
}

.timeline-item {
    position: relative;
    padding-left: 0;
}
