body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* === HEADER FULL-WIDTH (GAYA GALERI) === */
.ppdb-header {
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #8f6dbf , #66349e);
    color: #ffffff;
}

/* Kontainer untuk menjaga teks di header tetap di tengah */
.header-content {
    max-width: 900px;
    margin: 0 auto;
}

.ppdb-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.ppdb-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

.ppdb-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 1rem auto 0;
}

/* === WRAPPER KONTEN UTAMA (KARTU PUTIH BESAR) === */
.ppdb-content-wrapper {
    max-width: 1100px; /* Lebih lebar agar tidak kosong */
    width: 100%;
    box-sizing: border-box; /* Memastikan padding tidak menambah lebar */
    margin: 60px auto 3rem auto; /* Margin atas negatif untuk menimpa header */
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    position: relative; /* Diperlukan untuk margin negatif */
    z-index: 10;
}

/* Menghapus background dari section individual */
.ppdb-section {
    margin-bottom: 3.5rem; /* Jarak antar section */
}
.ppdb-section:last-of-type {
    margin-bottom: 2rem;
}

/* JUDUL SETIAP BAGIAN */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

/* === BAGIAN JENJANG PENDIDIKAN (GRID CARDS) === */
.jenjang-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem;
}

.jenjang-card {
    /* Menambahkan position relative untuk lapisan overlay */
    position: relative; 
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Properti background dipindah ke HTML agar dinamis */
    background-size: cover;
    background-position: center;
    overflow: hidden; /* Penting agar overlay tidak keluar dari border-radius */
}

/* Ini adalah lapisan overlay semi-transparan */
.jenjang-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ganti warna ungu ini atau tingkat transparansinya (0.6) sesuai selera */
    background-color: rgba(91, 24, 84, 0.6); 
    z-index: 1; /* Overlay berada di antara background dan teks */
    transition: background-color 0.3s ease;
}


.jenjang-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(91, 24, 84, 0.2);
}

/* Efek hover pada overlay (opsional, tapi keren) */
.jenjang-card:hover::before {
    background-color: rgba(91, 24, 84, 0.4);
}


.jenjang-card h4 {
    /* Menambahkan z-index agar teks berada di ATAS overlay */
    position: relative;
    z-index: 2; 

    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    /* Warna teks diubah menjadi putih agar kontras dengan overlay gelap */
    color: #ffffff; 
}

#jenjang-pg {
    background-image: url('/theme/img/ppdb/pg1.jpg');
}

#jenjang-tk {
    background-image: url('/theme/img/ppdb/tk.jpg');
}

#jenjang-sd {
    background-image: url('/theme/img/ppdb//sd.jpg');
}

#jenjang-smp {
    background-image: url('/theme/img/ppdb/smp.jpg');
}

/* === BAGIAN SYARAT PENDAFTARAN === */
.syarat-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.syarat-box {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 5px solid rgba(92, 75, 153, 0.75);
}

.syarat-box.syarat-tambahan {
    border-left-color: #6b479e ;
}

.syarat-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

.syarat-box ul {
    padding-left: 20px;
    margin: 0;
}

.syarat-box ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* === BAGIAN TAHAPAN (TIMELINE) === */
.timeline {
    position: relative;
    padding-left: 2rem; 
    border-left: 3px solid #c0b5d0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.7rem; 
    top: 0.2rem;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 4px solid #6b479e;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background-color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
}

.timeline-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #6b479e ;
}

.timeline-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
}

/* === TOMBOL PENDAFTARAN === */
.btn-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-ppdb {
    display: inline-block;
    background-color: #6b479e ;
    color: #ffffff;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-ppdb:hover {
    background-color: rgba(92, 75, 153, 0.75); /* Warna lebih gelap saat hover */
    transform: translateY(-3px);
}


/* === DESAIN RESPONSIVE UNTUK MOBILE === */

/* Untuk Tablet dan Desktop Kecil */
@media (max-width: 992px) {
    .jenjang-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .ppdb-header {
        padding: 3rem 1.5rem;
    }

    .ppdb-header h1 {
        font-size: 2rem;
    }

    .ppdb-content-wrapper {
        margin-left: 1rem;
        margin-right: 1rem;
        width: auto; 
        margin-top: 60px;
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }

    .syarat-container {
        flex-direction: column;
    }
    
    /* === PERBAIKAN FINAL DI SINI === */
    .syarat-box {
        /* Menghapus batasan lebar minimum agar kotak bisa menyusut */
        min-width: auto;
    }
}

/* Untuk Mobile */
@media (max-width: 576px) {
    .jenjang-grid {
        grid-template-columns: 1fr;
    }
}