/* File: ppdb-aplikasi/style.css (Versi Perbaikan) */

/* =================================
   GAYA DASAR & GLOBAL
   ================================= */
body { 
    font-family: 'Segoe UI', sans-serif; 
    background-color: #f4f7f6; 
    margin: 0; 
    padding: 0; 
    color: #333; 
}

h1, h2 { 
    color: #0056b3; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px; 
}

.btn { 
    display: inline-block; 
    padding: 10px 20px; 
    font-size: 16px; 
    color: #fff; 
    background-color: #007bff; 
    border: none; 
    border-radius: 5px; 
    text-decoration: none; 
    text-align: center; 
    cursor: pointer; 
    margin-top: 10px; 
    transition: background-color 0.2s;
}
.btn:hover {
    background-color: #0056b3;
}
.btn-sukses { background-color: #28a745; }
.btn-sukses:hover { background-color: #218838; }
.btn-info { background-color: #17a2b8; }
.btn-info:hover { background-color: #138496; }
.btn-danger { background-color: #dc3545; }
.btn-danger:hover { background-color: #c82333; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea, .form-group select { 
    width: 100%; 
    padding: 10px; /* Dibuat sedikit lebih besar */
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 16px;
}

/* =================================
   HALAMAN UTAMA (LANDING PAGE)
   ================================= */
.landing-page { 
    background-image: url('img/background.jpg'); 
    background-size: cover; 
    background-position: center; 
    color: white; 
    padding-top: 60px; /* Ruang untuk header */
}

.main-header { 
    background-color: rgba(29, 53, 87, 0.9); 
    padding: 10px 40px; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    box-sizing: border-box; 
    z-index: 100; 
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.logo-text { font-size: 24px; font-weight: bold; color: white; }
.main-nav a { color: #f1faee; text-decoration: none; margin-left: 20px; font-size: 16px; }

.content-area { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: calc(100vh - 60px); 
    text-align: center; 
    background-color: rgba(0, 0, 0, 0.5); 
}

/* Perbaikan Warna Judul Hero Section */
.hero-section h1, .hero-section h2 {
    color: white;
    border-bottom: none;
}
.hero-section h2 { font-size: 24px; font-weight: normal; margin-bottom: 40px; text-shadow: 1px 1px 2px rgba(0,0,0,0.7); border: none; color: white; }

.cta-buttons .btn { margin: 0 10px; }
.btn-large { padding: 15px 30px; font-size: 18px; }

/* Modal/Pop-up Cek Status */
.modal-overlay { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.6); align-items: center; justify-content: center; }
.modal-content { background-color: #fefefe; color: #333; padding: 20px 30px; border-radius: 8px; width: 90%; max-width: 450px; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.modal-close { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; border: none; background: none; cursor: pointer; }
.modal-close:hover, .modal-close:focus { color: black; }
.modal-header { text-align: center; margin-bottom: 20px; }
.modal-header h3 { margin-top: 10px; margin-bottom: 5px; }
.modal-header p { font-size: 14px; color: #666; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* Countdown Timer */
.countdown-container { margin-top: 40px; background-color: rgba(0, 0, 0, 0.3); padding: 20px; border-radius: 10px; display: inline-block; }
.countdown-timer { display: flex; gap: 20px; justify-content: center; }
.time-box { text-align: center; }
.time-box span { font-size: 36px; font-weight: bold; display: block; }

/* =================================
   HALAMAN FORMULIR, TENTANG, INFORMASI (KONTEN STATIS)
   ================================= */
.sub-page { 
    padding-top: 80px; /* Ruang untuk header yang fixed */
}

/* Container untuk konten utama di sub-page */
.content-container { 
    max-width: 1000px; 
    margin: 20px auto; 
    background: #fff; 
    padding: 30px 40px; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

.page-title { text-align: center; margin-bottom: 40px; font-size: 36px; }
.content-section { margin-bottom: 50px; }
.content-section h2 { text-align: center; margin-bottom: 30px; }

/* Sambutan Kasek */
.sambutan-section { display: flex; gap: 30px; align-items: center; }
.sambutan-img img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; border: 5px solid #eee; }
.sambutan-text { flex-grow: 1; }
.content-section h4 { color: #0056b3; margin-top: 20px; }
.content-section ul { padding-left: 20px; }
.content-section li { margin-bottom: 10px; }

/* Grid Keunggulan & Jurusan */
.advantages-grid, .jurusan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.advantage-item, .jurusan-item { text-align: center; padding: 20px; border: 1px solid #eee; border-radius: 8px; transition: box-shadow 0.3s; }
.advantage-item:hover, .jurusan-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.advantage-item i, .jurusan-item i { font-size: 40px; color: #3498db; margin-bottom: 15px; }

/* Galeri Foto */
/* Galeri Foto (Ukuran Kotak seperti IG) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Membuat gambar menjadi kotak persegi */
    border-radius: 8px;
    object-fit: cover; /* Memastikan gambar tetap proporsional */
    cursor: pointer;
    transition: transform 0.2s;
}
.gallery-grid img:hover {
    transform: scale(1.05); /* Efek zoom kecil saat disentuh mouse */
}

/* Timeline (Halaman Informasi) */
.timeline { position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; width: 4px; height: 100%; background-color: #e9ecef; }
.timeline-item { position: relative; margin-bottom: 30px; padding-left: 40px; }
.timeline-dot { position: absolute; left: 0; top: 5px; width: 20px; height: 20px; background-color: white; border: 4px solid #3498db; border-radius: 50%; }
.timeline-content h3 { margin: 0 0 5px 0; border: none; padding: 0; color: #333;}
.timeline-content p { margin: 0; color: #666; }

/* Checklist, Step list, Biaya, FAQ, Narahubung (Halaman Informasi) */
.checklist { list-style: none; padding: 0; }
.checklist li { margin-bottom: 10px; display: flex; align-items: center; }
.checklist i { color: #28a745; margin-right: 10px; }
.step-list { padding-left: 20px; }
.free-tag { background-color: #28a745; color: white; padding: 3px 8px; border-radius: 5px; font-weight: bold; }
.faq-item { margin-bottom: 20px; }
.faq-item h3 { margin-bottom: 5px; border: none; padding: 0; color: #333;}
.faq-item p { margin: 0; padding-left: 20px; border-left: 3px solid #eee; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.contact-card { text-align: center; padding: 20px; border: 1px solid #eee; border-radius: 8px; }
.contact-card i { font-size: 30px; color: #25D366; margin-bottom: 10px; }
.contact-card h4 { margin: 0 0 5px 0; border: none; padding: 0; color: #333;}
.contact-card p { margin: 0; }

/* =================================
   LAYOUT DASBOR ADMIN
   ================================= */
.admin-wrapper { display: flex; }
.sidebar { width: 240px; background-color: #2c3e50; color: white; height: 100vh; flex-shrink: 0; }
.sidebar-header { padding: 20px; text-align: center; background-color: #1f2b3a; border-bottom: 1px solid #444; }
.sidebar-header h3 { margin: 0; color: #ecf0f1; border: none; padding: 0;}
.sidebar-menu { list-style: none; padding: 0; margin: 20px 0; }
.sidebar-menu li a { display: block; padding: 15px 20px; color: #ecf0f1; text-decoration: none; transition: background-color 0.3s; }
.sidebar-menu li a:hover { background-color: #34495e; }
.sidebar-menu li.active a { background-color: #3498db; }
.sidebar-menu li a i { margin-right: 10px; width: 20px; text-align: center; }

.main-content { flex-grow: 1; height: 100vh; overflow-y: auto; }
.content-header { background-color: #3498db; padding: 15px 30px; color: white; }
.content-header h2 { margin: 0; border: none; color: white;}
.content-body { padding: 30px; }
.content-box { background-color: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }
.content-box h3 { border: none; padding: 0; color: #0056b3; }
.content-box table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.content-box table th, .content-box table td { padding: 12px; border: 1px solid #ddd; text-align: left; vertical-align: middle; }
.content-box table thead { background-color: #f2f2f2; }
.btn-sm { padding: 5px 10px; font-size: 14px; margin-top: 0; }

/* Filter & Pencarian Dasbor Admin */
.filter-box { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.filter-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-form input[type="text"] { width: 300px; }

/* =================================
   HALAMAN LOGIN ADMIN
   ================================= */
.login-page { background-color: #f4f7f6; display: flex; justify-content: center; align-items: center; height: 100vh; padding: 20px; box-sizing: border-box;}
.login-wrapper { width: 100%; }
.login-box { max-width: 400px; margin: auto; background: #fff; padding: 30px 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-top: 5px solid #3498db; }
.login-header { text-align: center; margin-bottom: 25px; }
.login-header h1 { margin: 0; font-size: 24px; border: none; }
.login-header p { margin: 5px 0 0 0; color: #666; }
.login-error { background-color: #f8d7da; color: #721c24; padding: 10px; border-radius: 5px; text-align: center; margin-bottom: 15px; }


/* =================================
   MEDIA QUERIES & RESPONSIVE
   ================================= */
@media (max-width: 768px) {
    .sambutan-section { flex-direction: column; text-align: center; }
    .header-content { flex-direction: column; gap: 10px;}
    .main-nav { margin-top: 10px; }
}
/* CSS untuk Galeri di Halaman Admin */
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}
.gallery-admin-item {
    position: relative;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
}
.gallery-admin-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}
.btn-hapus-galeri {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
}
/* Membuat judul section di halaman 'Tentang' ke tengah */
.about-section h2 {
    text-align: center;
}
/* CSS untuk membuat Visi Misi ke tengah */
.visi-misi-section {
    text-align: center;
}
.visi-misi-section ul {
    display: inline-block;
    text-align: left;
    margin-top: 10px;
    list-style-type: none; /* Menghilangkan tanda bullet */
    padding-left: 0;       /* Menghapus spasi kosong di kiri */
}
/* CSS untuk Header Halaman Konten (Judul & Tombol) */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px; /* Jarak ke konten di bawahnya */
    border-bottom: 2px solid #eee; /* Menambahkan garis bawah seperti h1 sebelumnya */
    padding-bottom: 10px; /* Jarak garis bawah */
}