:root {
    --primary-color: #0D499F;
    --bg-light: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix untuk AOS agar tidak merusak lebar layar di mobile */
[data-aos] {
    pointer-events: none;
}

.aos-animate {
    pointer-events: auto;
}

/* Pastikan row tidak memiliki margin negatif yang keluar dari container */
.row {
    --bs-gutter-x: 1.5rem;
    margin-right: 0;
    margin-left: 0;
}

/* Perbaikan khusus untuk hero section di mobile */
@media (max-width: 576px) {
    .display-3 {
        font-size: 2.2rem;
        /* Ukuran font judul diperkecil agar tidak overflow */
    }

    .hero-overlay .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* --- Realistic Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-ring {
    width: 70px;
    height: 70px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.75rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

body.loading {
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Global Styles --- */
.section-title {
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.badge-new {
    background-color: rgba(13, 73, 159, 0.1); 
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-new2 {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Navbar with Dynamic Shadow --- */
/* Navbar Fixed dari Awal */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    padding: 1.2rem 0; /* Lebih lebar di awal */
    background-color: transparent; /* Transparan saat di paling atas */
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-bottom: 1px solid transparent;
}

/* Transformasi Halus saat di-Scroll */
.navbar.scrolled {
    padding: 0.7rem 0; /* Mengecil perlahan */
    background-color: rgba(255, 255, 255, 0.9); /* Menjadi semi-transparan */
    backdrop-filter: blur(15px); /* Efek kaca (blur background) */
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Penyesuaian Link agar kontras dengan Hero Image */
.navbar .nav-link {
    color: #ffffff !important; /* Putih saat di atas hero */
    transition: color 0.3s ease;
}

/* Link berubah warna saat navbar berubah jadi putih/glass */
.navbar.scrolled .nav-link {
    color: var(--text-main) !important;
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-color) !important;
}

.navbar-brand {
    font-weight: 400;
    color: var(--primary-color) !important;
    letter-spacing: -1px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* --- Hero --- */
.hero {
    padding: 120px 0 80px;
    background: radial-gradient(circle at 90% 10%, rgba(13, 73, 159, 0.05), transparent 40%);
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    box-shadow: 0 10px 20px -5px rgba(13, 73, 159, 0.3);
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #0a3a7f;
    transform: translateY(-3px);
    color: white;
}

/* --- Carousel --- */
.carousel-item {
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.6);
}

.carousel-caption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 40px;
    text-align: left;
}

/* --- Alur Pendaftaran --- */
.flow-container {
    position: relative;
}

@media (min-width: 992px) {
    .flow-line {
        position: absolute;
        top: 50px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: repeating-linear-gradient(to right, #E2E8F0 0, #E2E8F0 10px, transparent 10px, transparent 20px);
        z-index: 0;
    }
}

.step-card {
    position: relative;
    z-index: 1;
    background: white;
    border: 1px solid #F1F5F9;
    border-radius: 24px;
    padding: 35px;
    height: 100%;
    transition: all 0.4s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 73, 159, 0.08);
    border-color: var(--primary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* --- Jalur Cards --- */
.card-custom {
    background: #ffffff;
    border: 1px solid #F1F5F9;
    border-radius: 20px;
    padding: 2.5rem;
    transition: 0.4s;
    height: 100%;
}

.card-custom:hover {
    border-color: rgba(13, 73, 159, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    transform: scale(1.02);
}

.icon-box {
    width: 56px;
    height: 56px;
    background-color: #F0F5FF;
    color: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- Table --- */
.table-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #F1F5F9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

@media (min-width: 992px) {
    .table-container {
        max-width: 70%;
        margin: 0 auto; /* biar tetap di tengah */
    }
}

.table thead th {
    background-color: #F8FAFC;
    padding: 1.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Contact --- */
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: #F0F5FF;
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.form-control {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
}

/* --- Footer --- */
footer {
    background-color: #FFFFFF;
    border-top: 1px solid #F1F5F9;
    padding: 40px 0;
}

/* --- WhatsApp Floating Button --- */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.wa-float:hover {
    background-color: #20ba5a;
    transform: scale(1.05);
    color: white;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.wa-float i {
    font-size: 24px;
    margin-right: 12px;
}

.wa-text {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

/* Responsif untuk HP agar tidak terlalu menutupi layar */
@media (max-width: 576px) {
    .wa-float {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
    }

    .wa-text {
        font-size: 0.75rem;
    }
}

/* --- Hero Slider Full Screen Custom --- */
.hero-slider-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.hero-slider-section .carousel-inner,
.hero-slider-section .carousel-item {
    height: 100vh;
    border-radius: 0 !important;
    /* Menghilangkan rounded */
}

.hero-slider-section .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 0 !important;
    filter: brightness(0.45);
}

/* Styling Titik Indikator (Dots) */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    /* Membuat titik bulat */
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--primary-color);
    transform: scale(1.3);
    border-color: white;
}

/* Pastikan ini ada di tag <style> Anda */
.hero-slider-section .carousel-item img {
    object-fit: cover !important;
    height: 100vh !important;
    width: 100% !important;
    display: block;
    /* Memastikan image dirender */
}

/* Gradient Overlay khusus sisi kiri */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient dari gelap di kiri ke transparan di kanan */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 25%, transparent 80%);
    z-index: 5;
    pointer-events: none;
}

/* Overlay Konten tetap di atas gradient */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
    /* Lebih tinggi dari gradient */
    pointer-events: none;
}

.hero-overlay .container {
    pointer-events: auto;
}

/* Shadow tambahan pada teks agar makin tajam */
.hero-overlay h1 {
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
    /* font-size: 4rem; */
}

/* Navigasi Panah (Opsional, jika ingin disembunyikan hapus bagian ini) */
.carousel-control-prev,
.carousel-control-next {
    z-index: 11;
    width: 5%;
}

/* --- Perbaikan WhatsApp Floating Button Mobile --- */
@media (max-width: 576px) {
    .wa-float {
        bottom: 10px;
        right: 10px;
        padding: 5px 10px;
        border-radius: 40px;
        /* Border radius menyesuaikan ukuran baru */
    }

    .wa-float i {
        font-size: 18px;
        /* Ukuran ikon WA dikecilkan */
        margin-right: 8px;
        /* Jarak ikon ke teks dikurangi */
    }

    .wa-text {
        font-size: 0.65rem;
        /* Ukuran font teks utama dikecilkan */
        line-height: 1.1;
        /* Jarak antar baris teks lebih rapat */
    }

    .wa-text span {
        font-size: 0.55rem;
        /* Ukuran teks "Silahkan hubungi kami" lebih kecil lagi */
        display: block;
        /* Memastikan teks bawah tetap rapi */
    }
}

/* --- FAQ Accordion --- */
.accordion-item {
    border: 1px solid #F1F5F9;
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button:not(.collapsed) {
    background-color: #F0F5FF;
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

/* --- Persyaratan Card --- */
.req-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- Table Styles --- */
.table-quota thead {
    background-color: var(--primary-color);
    color: white;
}
@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem !important; 
    }
    
    #kuota h4 {
        font-size: 1.2rem !important; 
    }

    #kuota .fs-3 {
        font-size: 1.35rem !important;
    }

    #kuota .x-small {
        font-size: 0.65rem !important;
        letter-spacing: 0.5px !important;
    }

    #kuota .card {
        padding: 1.5rem !important; 
        border-radius: 20px !important;
    }

    #kuota .badge {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }

    #kuota .progress {
        height: 10px !important; /* Membuat progress bar sedikit lebih tipis di mobile */
    }

    .navbar {
        padding: 0.7rem 0;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .navbar .nav-link {
        color: var(--text-main) !important;
    }
}