/* Navbar Styling */
.navbar-desktop {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    /* Efek blur kaca */
    transition: all 0.3s ease-in-out;
    border-bottom: 2px solid #f1f4f9;
}

/* Shadow saat di-scroll (opsional jika pakai JS) */
.navbar-desktop.shadow-sm {
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08) !important;
}

/* Logo Divider */
.logo-divider {
    height: 40px;
    width: 1px;
    background-color: #dee2e6;
    margin: 0 15px;
}

/* Menu Typography & Hover Effect */
.navbar-nav .nav-link {
    color: var(--primary-blue) !important;
    font-weight: 700;
    /* Font Tebal */
    font-size: 15px;
    padding: 10px 15px !important;
    position: relative;
    transition: all 0.3s ease;
}

/* Efek Garis Bawah saat Hover */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--siak-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 10px;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-blue) !important;
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
    /* Garis muncul melebar */
}

/* Button Login Elegant */
.btn-login {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004a94 100%);
    color: white !important;
    font-weight: 700;
    border: none;
    padding: 10px 30px !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
    background: var(--siak-gold);
    color: var(--primary-blue) !important;
}

/* Styling Dropdown Item */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.15);
    padding: 10px;
    min-width: 220px;
}

.dropdown-item {
    padding: 10px 15px;
    font-weight: 600;
    color: var(--primary-blue);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f0f7ff;
    color: var(--accent-blue);
    transform: translateX(5px);
}


.dropdown-toggle::after {
    transition: transform 0.3s ease;
}



/* Animasi Muncul Dropdown */
@media (min-width: 992px) {

    .animate {
        animation-duration: 0.3s;
        -webkit-animation-duration: 0.3s;
        animation-fill-mode: both;
        -webkit-animation-fill-mode: both;
    }

    @keyframes slideIn {
        0% {
            transform: translateY(1rem);
            opacity: 0;
        }

        100% {
            transform: translateY(0rem);
            opacity: 1;
        }
    }

    .slideIn {
        -webkit-animation-name: slideIn;
        animation-name: slideIn;
    }

    /* Membuka Dropdown Otomatis saat Hover (Opsional) */
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }

    /* Sembunyikan semua dropdown secara default */
    .nav-item.dropdown .dropdown-menu {
        display: block;
        /* Tetap block untuk animasi */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease-in-out;
        pointer-events: none;
        /* Cegah kursor mengenai menu yang sedang sembunyi */
    }

    /* Hanya tampilkan dropdown pada menu yang sedang di-HOVER */
    .nav-item.dropdown:hover>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        /* Aktifkan klik kembali */
    }

    /* Hilangkan tanda panah bawaan jika mengganggu */
    .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
        transition: transform 0.2s;
    }



}



/* Custom Variable */
:root {
    --primary-blue: #003366;
    --accent-blue: #0056b3;
    --light-bg: #f8f9fa;
    --siak-gold: #ffd700;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}


/* Section Styling */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-blue);
}

.card-jalur {
    border: none;
    border-top: 4px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card-jalur:hover {
    transform: translateY(-10px);
}

/* Bottom Navigation (Mobile Only) */
.bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {

    .navbar-desktop,
    .topbar {
        display: none !important;
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1050;
        justify-content: space-around;
        padding: 10px 0;
        border-top: 1px solid #eee;
    }

    .bottom-nav-item {
        text-align: center;
        color: #666;
        text-decoration: none;
        font-size: 11px;
        flex: 1;
    }

    .bottom-nav-item i {
        display: block;
        font-size: 20px;
        margin-bottom: 2px;
    }

    .bottom-nav-item.active {
        color: var(--primary-blue);
        font-weight: bold;
    }

    body {
        padding-bottom: 70px;
    }
}

/* SLIDER */
/* --- SLIDER TERPADU (Desktop & Mobile) --- */

/* 1. Pengaturan Wrapper Utama */
.slider-wrapper {
    width: 100%;
    overflow: hidden;
}

/* 2. Desktop Settings (min-width: 992px) */
@media (min-width: 992px) {
    .slider-wrapper {
        margin: 0;
        /* Rapat ke atas dan samping */
        padding: 0;
    }

    #spmbSlider {
        border-radius: 0;
        /* Siku-siku di desktop */
    }

    #spmbSlider .carousel-item {
        height: 500px;
    }

    #spmbSlider .carousel-item img {
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        object-position: center;
    }

    .carousel-indicators {
        bottom: 15px;
    }
}

/* 3. Mobile Settings (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .slider-wrapper {
        padding: 10px 10px;
        /* Memberi margin kanan-kiri hanya di mobile */
    }

    #spmbSlider {
        background-color: #f8f9fa;
        border-radius: 12px;
        overflow: visible;
        /* Penting agar dots di bawah kelihatan */
        margin-bottom: 35px;
        /* Ruang untuk dots */
    }

    #spmbSlider .carousel-inner {
        border-radius: 12px;
        overflow: hidden;
    }

    #spmbSlider .carousel-item {
        height: 180px !important;
    }

    #spmbSlider .carousel-item img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        /* Gambar full tidak terpotong */
        background-color: #f8f9fa;
        object-position: center;
    }

    /* Tambahan overlay agar teks caption lebih terbaca jika gambar terang */
    .carousel-item::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
    }

    /* Penyesuaian Caption Mobile */
    .carousel-caption {
        z-index: 10 !important;
        padding: 0.6rem !important;
        bottom: 10px !important;
        left: 5% !important;
        right: 5% !important;
    }

    /* --- Custom Indicators ala OLX (Dots/Pill) --- */
    .carousel-indicators {
        bottom: -35px !important;
        margin-bottom: 0;
    }

    .carousel-indicators [data-bs-target] {
        width: 6px !important;
        height: 6px !important;
        border-radius: 50%;
        background-color: #ccc !important;
        border: none;
        margin: 0 3px;
    }

    .carousel-indicators .active {
        width: 18px !important;
        border-radius: 10px !important;
        background-color: #007bff !important;
    }
}




/* Footer & Other */
.hover-link:hover {
    color: var(--siak-gold) !important;
    padding-left: 5px;
    transition: 0.3s;
}

.carousel-item img {
    object-fit: cover;
    height: 600px;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 350px;
    }
}

/* Juknis Sidebar Styling */
.juknis-sidebar {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.juknis-menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
}

.juknis-menu-item i {
    width: 25px;
    margin-right: 10px;
    font-size: 18px;
}

.juknis-menu-item:hover {
    background-color: #f0f7ff;
    color: var(--accent-blue);
    border-left: 4px solid var(--siak-gold);
    padding-left: 25px;
    /* Efek geser sedikit */
}

.juknis-menu-item.active {
    background-color: var(--primary-blue);
    color: #fff !important;
    border-left: 4px solid var(--siak-gold);
}

.juknis-content-card {
    background: #fff;
    border-radius: 15px;
    padding: 35px;
    min-height: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}





/* Styling Tabel & Search "INFO SEKOLAH"*/
.info-sekolah-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.search-box .form-control {
    padding-left: 45px;
    border-radius: 50px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.search-box .form-control:focus {
    box-shadow: 0 0 10px rgba(0, 51, 102, 0.1);
    border-color: var(--primary-blue);
}

.table thead {
    background-color: #f8f9fa;
    color: var(--primary-blue);
}

.table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #eee;
    text-align: center;
}

.badge-kuota {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
}

.table thead th.header-jalur {
    background-color: #e9ecef;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.table thead th.sub-jalur {
    font-size: 11px;
    background-color: #f8f9fa;
    text-align: center;
}

/* Meratakan teks tabel secara vertikal dan horizontal */
.table th,
.table td {
    vertical-align: middle !important;
}

/* Membatasi lebar dropdown jumlah data di bawah */
.select-limit {
    width: 120px !important;
    display: inline-block;
}


.btn-maps {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-maps:hover {
    background-color: #dc2626;
    color: white;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
}



/* INFO PENDAFTARAN */
.header-lulus {
    background-color: #e6fffa !important;
    color: #2d6a4f !important;
    border-bottom: 2px solid #2d6a4f !important;
}

.header-tidak-lulus {
    background-color: #fff5f5 !important;
    color: #c53030 !important;
    border-bottom: 2px solid #c53030 !important;
}

.row-clickable {
    cursor: pointer;
    transition: background 0.2s;
}

.row-clickable:hover {
    background-color: #f0f7ff !important;
}

/* detil pendaftaran */
.school-header-card {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.1);
}

.school-icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 1px;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
}

/* Pastikan tabel memiliki border tipis di semua sisi */
.table-bordered-thin {
    border: 1px solid #dee2e6 !important;
}

.table-bordered-thin th,
.table-bordered-thin td {
    border: 1px solid #dee2e6 !important;
    /* Menyamakan ukuran font header dan isi */
    font-size: 13px;
    padding: 12px 8px;
}

.table-bordered-thin thead th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}




/* SECTION TIMELINE PENDAFTARAN */
/* Background & Overlay */
.what_we_area {
    background: url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?q=80&w=1920&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 60px 0;
}

.what_we_area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Overlay gelap agar teks terbaca */
}

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

/* Judul & Tahun */
.judul-kuning {
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.tahun-biru {
    color: #00bcd4 !important;
    font-weight: bold;
}



/* SECTION PENGADUAN ONLINE */
/* Container Utama */
.anti-kkn-box {
    background: linear-gradient(135deg, #0d6efd 0%, #004dbb 100%);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Efek Cahaya di Pojok (Dekorasi) */
.anti-kkn-box::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Efek Hover pada Tombol */
.btn-hover-effect {
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
}

.btn-hover-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    background-color: #fff !important;
    border-color: #ffd700 !important;
    /* Border kuning saat hover */
}

/* Animasi Icon */
.fa-spin-hover:hover i {
    animation: fa-spin 2s infinite linear;
}


/* TIMELINE */
/* Styling Utama Section Jadwal */
.styling-jadwal {
    background-color: #0a0a0a !important;
    /* Hitam Pekat */
}

/* Judul Utama dengan Gradasi */
.judul-ppdb {
    background: linear-gradient(135deg, #fff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* Header Jenjang Berwarna */
.jenjang-header {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.icon-jenjang {
    width: 60px;
    height: 60px;
    d-flex align-items-center justify-content-center;
}

/* KARTU JADWAL (PUTIH TIDAK TRANSPARAN) */
.card-putih {
    background-color: #ffffff !important;
    /* Putih Solid */
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Border Kiri Aksen Warna */
.border-start-primary {
    border-left: 5px solid #0d6efd !important;
}

.border-start-success {
    border-left: 5px solid #198754 !important;
}

.border-start-warning {
    border-left: 5px solid #ffc107 !important;
}

.border-start-info {
    border-left: 5px solid #0dcaf0 !important;
}

/* Styling Bagian dalam Kartu */
.card-header-ppdb {
    padding: 1.25rem 1.5rem 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body-ppdb {
    padding: 0 1.5rem 1.5rem;
}

/* TIMELINE MODERN DENGAN ICON CEKLIS */
.modern-timeline {
    border-left: 2px solid rgba(0, 0, 0, 0.05);
    margin-left: 8px;
    padding-left: 25px;
}

.modern-timeline li {
    position: relative;
    padding-bottom: 1.5rem;
}

.modern-timeline li:last-child {
    padding-bottom: 0;
}

/* Dasar Indikator Bulat */
.modern-timeline li::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

/* STATUS 1: Belum Waktunya (Bulat Abu-abu Biasa) */
.status-future::before {
    background-color: #e0e0e0;
    border: 2px solid #fff;
}

/* STATUS 2: Sedang Terjadi / Sudah Lewat (Ceklis Hijau & Glow) */
.status-passed::before {
    content: "\f00c";
    /* FontAwesome Check Icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 9px;
    color: #fff;
    d-flex align-items-center justify-content-center;
    background-color: #198754;
    /* Hijau */
    border: 2px solid #198754;
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.8);
    /* Neon Glow */
}

/* Styling Teks di Timeline */
.time-box {
    font-size: 0.8rem;
    font-weight: bold;
    color: #0d6efd;
    /* Biru */
}

.desc-box {
    font-size: 0.9rem;
    color: #495057;
}

/* HOVER EFFECT PADA KARTU */
.btn-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Helper Class */
.ls-2 {
    letter-spacing: 2px;
}

.z-index-1 {
    z-index: 1;
}

/* Efek Hover Card */
.btn-hover-effect {
    transition: all 0.3s ease-in-out;
}

.btn-hover-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    background-color: #f8f9fa !important;
    /* Berubah warna sedikit saat hover */
}

/* Timeline Indicators */
.timeline-v3 li::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Status Belum Mulai (Bulat Kecil) */
.status-future::before {
    background-color: #dee2e6;
    border: 3px solid #fff;
    width: 14px;
    height: 14px;
    left: -8px;
}

/* Status Sudah/Sedang Berlangsung (Ceklis Hijau) */
.status-passed::before {
    content: "\f00c";
    /* FontAwesome Check Icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 8px;
    color: white;
    background-color: #198754;
    border: 2px solid #198754;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(25, 135, 84, 0.5);
}

/* Tambahan Warna Badge Soft */
.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1);
}

.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-info-soft {
    background-color: rgba(13, 202, 240, 0.1);
}

.ls-2 {
    letter-spacing: 2px;
}

.z-index-1 {
    z-index: 1;
}