/* =========================================================
   STYLE WEBSITE MI SULTAN AGUNG 1 KALIPOH
   File: assets/css/style.css
   ========================================================= */

/* =========================
   Root Variable
   ========================= */
:root {
    --hijau: #0f5132;
    --hijau-2: #198754;
    --hijau-3: #0b3d26;
    --hijau-soft: #eaf7ef;
    --emas: #f4c542;
    --emas-2: #dfb62f;
    --emas-soft: #fff6d8;
    --gelap: #16251d;
    --abu: #f8f9fa;
    --abu-2: #eef3f0;
    --teks: #34403a;
    --muted: #6c757d;
    --putih: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 14px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 30px;
    --radius-xl: 38px;
}

/* =========================
   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: #777;
}

.brand-logo {
    width: 46px;
    min-width: 46px;
    height: 46px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 4px 14px rgba(15, 81, 50, 0.14);
    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: #34403a !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;
}

/* =========================
   Button
   ========================= */
.btn-gold {
    background: var(--emas);
    color: #212529;
    border: 0;
    border-radius: 999px;
    padding: 11px 24px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(244, 197, 66, 0.28);
}

.btn-gold:hover {
    background: var(--emas-2);
    color: #111;
}

.btn-green {
    background: var(--hijau);
    color: white;
    border: 0;
    border-radius: 999px;
    padding: 11px 24px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(15, 81, 50, 0.22);
}

.btn-green:hover {
    background: var(--hijau-2);
    color: white;
}

.btn-outline-success {
    font-weight: 700;
}

/* =========================
   Hero Umum Halaman
   ========================= */
.page-hero {
    position: relative;
    padding: 105px 0;
    background:
        linear-gradient(120deg, rgba(15, 81, 50, 0.94), rgba(25, 135, 84, 0.78)),
        url("../img/hero-madrasah.jpg") center/cover no-repeat;
    color: white;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 300px;
    height: 300px;
    background: rgba(244, 197, 66, 0.22);
    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: #2d2d2d;
    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, rgba(244, 197, 66, 0.28), transparent 34%),
        linear-gradient(120deg, rgba(15, 81, 50, 0.96), rgba(25, 135, 84, 0.88)),
        url("../img/hero-madrasah.jpg") center/cover no-repeat;
    color: white;
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    left: -120px;
    top: -120px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -130px;
    width: 320px;
    height: 320px;
    background: rgba(244, 197, 66, 0.22);
    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: white;
}

.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: #667;
}

/* =========================
   Statistik Beranda
   ========================= */
.stat-section {
    margin-top: -58px;
    position: relative;
    z-index: 5;
}

.stat-mini-card {
    background: white;
    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: #777;
    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: #967000;
    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: white;
}

.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: #b08300;
}

.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: #fff;
    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: #666;
}

/* =========================
   Video
   ========================= */
.video-card {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    background: #000;
}

.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 #ddd;
    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: #777;
}

/* =========================
   Galeri
   ========================= */
.gallery-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #000;
    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: white;
    z-index: 2;
}

.gallery-caption span {
    display: inline-block;
    background: rgba(244, 197, 66, 0.95);
    color: #222;
    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: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 8px 22px rgba(15, 81, 50, 0.26);
}

.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 #ddd;
}

.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: white;
    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 #dfe7e2;
}

.form-modern-card .form-control:focus,
.form-modern-card .form-select:focus {
    border-color: var(--hijau-2);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.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: #ddd;
}

.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: white;
    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: white;
    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: rgba(244, 197, 66, 0.24);
    z-index: 0;
}

.cta-section .row,
.cta-section .position-relative {
    position: relative;
    z-index: 2;
}

/* =========================
   Footer
   ========================= */
.footer-madrasah {
    background: #0b2e1f;
    color: white;
    padding: 55px 0 22px;
}

.footer-madrasah h5 {
    font-weight: 900;
    margin-bottom: 18px;
}

.footer-madrasah p {
    color: rgba(255, 255, 255, 0.86);
}

.footer-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.86);
}

.footer-menu a:hover {
    color: var(--emas);
}

.footer-social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social:hover {
    background: var(--emas);
    color: #222;
}

.footer-madrasah hr {
    border-color: rgba(255, 255, 255, 0.16);
}

/* =========================
   Floating WhatsApp
   ========================= */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    background: #25D366;
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    z-index: 999;
    font-size: 28px;
    transition: 0.2s ease;
}

.whatsapp-float:hover {
    color: white;
    transform: scale(1.05);
}

/* =========================
   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: white;
}

.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, rgba(15, 81, 50, 0.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: #666;
    font-size: 14px;
}

.sambutan-text {
    background: white;
    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;
    }
}