:root {
    --primary: #0b5e40;
    --primary-light: #e8f5e9;
    --secondary: #f1c40f;
    --dark: #1e293b;
    --gray: #64748b;
    --bg-body: #f8fafc;
    --radius-lg: 24px;
    --radius-xl: 40px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--dark);
    overflow-x: hidden;
}

/* Glassmorphism Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    margin: 0 5px;
    border-radius: 30px;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-light);
}

/* Hero Section */
.hero {
    padding: 140px 0 60px;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--secondary);
    z-index: -1;
    border-radius: 10px;
    opacity: 0.6;
}

.btn-main {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.btn-main:hover {
    background: #084932;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(11, 94, 64, 0.2);
    color: white;
}

.hero-img-box {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-img-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Banner Moto */
.banner-moto {
    background: linear-gradient(135deg, var(--primary), #084932);
    color: white;
    padding: 50px 0;
    text-align: center;
    border-radius: var(--radius-xl);
    margin: 20px 15px;
    position: relative;
    overflow: hidden;
}

.banner-moto::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.05);
    top: -10px;
    left: 20px;
}

.moto-text {
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Global Section Utilities */
.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
}

.section-subtitle {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* Kustomisasi Teks Tentang Kami */
.tentang-content { color: #000000 !important; }
.tentang-content p, .tentang-content span, .tentang-content div { color: #000000 !important; text-align: justify; }

/* Kustomisasi List (ul li) dengan Ikon Centang Hijau */
.tentang-content ul {
    list-style: none !important;
    padding-left: 0;
    margin-top: 15px;
}
.tentang-content ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    color: #000000 !important;
    line-height: 1.6;
}
.tentang-content ul li::before {
    content: "\f058"; /* Kode FontAwesome untuk circle-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #198754; /* Warna hijau sukses yang bagus */
    font-size: 1.2rem;
}

/* Fitur Scroll Untuk Misi (> 3 item) */
.misi-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 15px;
}
/* Desain Scrollbar Custom agar lebih estetik */
.misi-scroll::-webkit-scrollbar { width: 6px; }
.misi-scroll::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.misi-scroll::-webkit-scrollbar-thumb { background: #0b5e40; border-radius: 10px; }

/* Penyesuaian Mobile Friendly */
@media (max-width: 768px) {
    .hero-img-box img, .tentang-img-box img {
        width: 100% !important;
        height: auto !important;
    }
    .banner-moto { padding: 20px 10px !important; }
    .moto-text { font-size: 1.3rem !important; text-align: center; }
    .section-header { flex-direction: column; align-items: flex-start !important; gap: 15px; }
}

           

.floating-badge {
    bottom: -20px;
    right: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.visi-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    height: 100%;
    border-top: 5px solid var(--secondary);
}

.misi-list li {
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.misi-icon {
    background: var(--primary-light);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-weight: bold;
}

/* =========================================
Kustomisasi Bagian Program Unggulan
========================================= */

/* Memastikan kolom grid memiliki tinggi yang sama untuk flexbox child */
/* Slider Program Unggulan */
/* Slider Program Unggulan Rata Tengah */
.programSwiper {
    padding-bottom: 50px !important;
}

.program-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    /* Membuat teks rata tengah */
}

.program-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.program-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-card-body {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.program-card-body h5 {
    font-size: 0.85rem;
    /* Ukuran pas untuk 2 kolom di mobile */
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    width: 100%;
}

.program-card-body p {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Penyesuaian Desktop */
@media (min-width: 768px) {
    .program-card-body {
        padding: 20px;
    }

    .program-card-body h5 {
        font-size: 1.15rem;
    }

    .program-card-body p {
        font-size: 0.9rem;
        -webkit-line-clamp: 4;
    }
}

/* Ekstrakurikuler Scroll Horizontal */
.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0 30px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.ekstra-card {
    width: 380px;
    /* Kunci lebar card agar semua sama */
    height: 240px;
    /* Kunci tinggi card agar semua sama */
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    /* Efek bayangan opsional */
    display: flex;
    flex-direction: column;
}

.ekstra-img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    /* Tengah rata horizontal */
    border-radius: 50%;
    /* Opsional: Membuat border bulat */
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ekstra-img i {
    font-size: 3rem;
    color: #6c757d;
    /* Warna default ikon */
}

/* Berita */
.news-card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
    background: white;
    height: 100%;
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.news-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.news-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Footer & Map */
.footer-wrap {
    background: var(--dark);
    color: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.map-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 250px;
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================
    OPTIMASI TAMPILAN MOBILE (HP)
    ========================================= */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: var(--radius-lg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
    }

    .hero {
        padding: 110px 0 40px;
        text-align: center;
    }

    .hero-text-area {
        margin-bottom: 40px;
    }

    .hero-btn-group {
        justify-content: center;
    }

    .scroll-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Kurangi padding vertikal di HP agar tidak terlalu kosong */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .banner-moto {
        padding: 30px 15px;
    }

    /* Sembunyikan badge melayang di HP agar gambar utama jelas */
    .floating-badge {
        display: none !important;
    }

    .tentang-img-box img {
        height: 250px;
    }
}