:root {
    /* ==== WARNA TEMA MADRASAH ELEGAN ==== */
    --navy: #5C9E60;         /* Hijau Lembut (Warna Utama) */
    --gold: #C5A059;         /* Emas Redup (Aksen elegan, tidak mencolok) */
    --blue-accent: #2D5A27;  /* Hijau Tua (Untuk efek hover & teks penekanan) */
    --soft-bg: #E8F5E9;      /* Hijau Mint Sangat Pudar (Aksen background elemen) */
    --body-bg: #F9F6EE;      /* Krem Pasir (Background utama situs agar hangat) */
}

body { font-family: 'Poppins', sans-serif; background-color: var(--body-bg); }

/* OVERRIDE BOOTSTRAP: Menyesuaikan class bawaan Bootstrap dengan tema baru */
.text-navy { color: var(--navy) !important; }

.text-primary { color: var(--navy) !important; }
.bg-primary { background-color: var(--navy) !important; }
.btn-primary { background-color: var(--navy); border-color: var(--navy); color: white; }
.btn-primary:hover { background-color: var(--blue-accent); border-color: var(--blue-accent); color: white; }

/* Tombol / Elemen Warning kini menggunakan Emas Redup */
.text-warning { color: var(--gold) !important; }
.bg-warning { background-color: var(--gold) !important; color: white !important; }
.btn-warning { background-color: var(--gold); border-color: var(--gold); color: white !important;}
.btn-warning:hover { background-color: #B38E4A; border-color: #B38E4A; color: white !important;}
.border-warning { border-color: var(--gold) !important; }
/* ====================================================================== */

/* =======================================
   1. HEADER COLLAGE STYLE 
   ======================================= */
.hero-banner {
    position: relative;
    background: var(--navy);
    color: white;
    overflow: hidden;
    padding: 60px 0;
    border-bottom: 8px solid var(--gold); /* Garis batas bawah emas redup */
}

.hero-collage {
    position: absolute;
    right: -50px;
    top: 0;
    width: 50%;
    height: 100%;
    background: url('assets/ppdb/gedung_sekolah.jpg') no-repeat center center;
    background-size: cover;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.8;
}

.header-content { position: relative; z-index: 2; }
.logo-img { width: 80px; margin-bottom: 20px; filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2)); }
.title-top { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--gold); }
.title-main { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 2.8rem; line-height: 1.1; margin: 10px 0; }

/* =======================================
   2. ANIMASI SLIDESHOW FOTO (ZOOM & FADE)
   ======================================= */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-wrapper {
    position: absolute;
    width: 85%;
}

.foto-siswa-slide {
    width: 100%;
    border: 6px solid white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    opacity: 0;
    animation: zoomFadeEffect 15s infinite ease-in-out; 
    object-fit: cover;
    aspect-ratio: 4/3; 
}

.slide-wrapper:nth-child(1) .foto-siswa-slide { animation-delay: 0s; }
.slide-wrapper:nth-child(2) .foto-siswa-slide { animation-delay: 5s; }
.slide-wrapper:nth-child(3) .foto-siswa-slide { animation-delay: 10s; }

@keyframes zoomFadeEffect {
    0% { opacity: 0; transform: scale(0.8); }
    10% { opacity: 1; transform: scale(1); }
    25% { opacity: 1; transform: scale(1.03); } 
    33% { opacity: 0; transform: scale(1.1); } 
    100% { opacity: 0; transform: scale(0.8); }
}

.foto-siswa-frame { border: 5px solid white; border-radius: 20px; transform: rotate(-3deg); box-shadow: 0 10px 20px rgba(0,0,0,0.2); max-width: 100%; }

/* =======================================
   3. MODUL MENGAMBANG (VISI & INFO)
   ======================================= */
.floating-modules {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.visi-box {
    background: white;
    border-radius: 20px; 
    border-left: 10px solid var(--gold);
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); /* Shadow dibuat lebih halus */
    height: 100%;
}

.info-box-right {
    background: var(--navy);
    color: white;
    border-radius: 20px;
    border-right: 10px solid var(--gold);
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =======================================
   4. SECTION ALUR & KARTU
   ======================================= */
.section-alur {
    position: relative;
    background: url('assets/ppdb/bg_pattern.jpg') fixed center;
    padding: 80px 0;
    color: white;
}

.section-alur::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Menggunakan overlay hijau tua agar kontras teks putih lebih jelas */
    background: rgba(45, 90, 39, 0.92); 
}

.step-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s;
    text-align: center;
}
/* Saat di-hover, memancarkan emas redup */
.step-card:hover { transform: translateY(-10px); background: var(--gold); color: white; }
.step-card i { font-size: 2.5rem; margin-bottom: 15px; }

/* =======================================
   5. FORM STYLE & LIST DATA
   ======================================= */
.form-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    height: 100%;
}

.form-label, label { font-size: 0.75rem; font-weight: 700; color: var(--blue-accent); margin-bottom: 3px; }
.form-control-sm, .form-select-sm { border-radius: 8px; padding: 6px 10px; background: #fdfdfd; border: 1px solid #ddd; font-size: 0.8rem; }
.form-control-sm:focus, .form-select-sm:focus { border-color: var(--navy); box-shadow: 0 0 0 0.2rem var(--soft-bg); }

.section-title { font-size: 0.85rem; font-weight: 800; color: var(--navy); border-bottom: 2px solid var(--soft-bg); padding-bottom: 5px; margin-bottom: 15px; margin-top: 15px; }

.btn-daftar {
    background: var(--navy); color: white; font-weight: 800; padding: 12px;
    border-radius: 10px; width: 100%; border: none; text-transform: uppercase;
    letter-spacing: 1px; font-size: 0.9rem;
}
.btn-daftar:hover { background: var(--blue-accent); color: white; }

.list-pendaftar-item { border-bottom: 1px dashed #ddd; padding: 10px 0; }
.list-pendaftar-item:last-child { border-bottom: none; }
.nama-pendaftar { font-size: 0.8rem; font-weight: 700; color: var(--blue-accent); }
.waktu-pendaftar { font-size: 0.65rem; color: #888; }

/* =======================================
   6. MULTI-STEP FORM (TAB)
   ======================================= */
.step-indicator { 
    display: flex; 
    margin-bottom: 25px; 
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.03); 
    background-color: white; 
    border: 1px solid #eaeaea;
}
.step-indicator .step { 
    flex: 1; text-align: center; padding: 12px 5px; color: #8A735E; 
    font-weight: 700; font-size: 0.85rem; transition: all 0.3s ease;
    border-right: 1px solid #eaeaea; 
}
.step-indicator .step:last-child { border-right: none; }
.step-indicator .step.active { background-color: var(--navy); color: #ffffff; }

/* Tab yang sudah selesai dikerjakan akan berwarna hijau mint pudar dengan teks hijau tua */
.step-indicator .step.completed { background-color: var(--soft-bg); color: var(--blue-accent); }

.form-tab { display: none; }
.form-tab.active { display: block; animation: fadeIn 0.4s; }
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* =======================================
   7. RESPONSIVE (TAMPILAN MOBILE)
   ======================================= */
@media (max-width: 991px) {
    .floating-modules { margin-top: -20px; }
    .info-box-right { 
        margin-top: 20px; 
        border-right: none; 
        border-left: 10px solid var(--gold); 
    }
    .title-main { font-size: 2.2rem; }
}
html {
    scroll-behavior: smooth;
}