/* =================================================
   PPDB.CSS - HALAMAN PPDB SEKOLAH
   Tema Biru Putih Modern - Selaras dengan Halaman Lain
   ================================================= */

/* ========== VARIABEL WARNA ========== */
:root {
    --primary-blue: #0a4d8c;
    --secondary-blue: #1e6eb5;
    --accent-blue: #3498db;
    --light-blue: #eef5fc;
    --pure-white: #ffffff;
    --soft-white: #f8fafd;
    --text-dark: #2c3e50;
    --text-light: #5a6a7a;
    --border-light: #d9e6f2;
    --shadow: 0 10px 30px rgba(10, 77, 140, 0.08);
    --shadow-hover: 0 15px 40px rgba(10, 77, 140, 0.12);
    --gradient-blue: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

/* ========== RESET & DASAR ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--soft-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== BANNER HALAMAN (SAMA DENGAN GALERI FOTO) ========== */
.page-banner {
    position: relative;
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    margin-bottom: 3rem;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.banner-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--pure-white);
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb span {
    color: var(--pure-white);
    font-weight: 500;
}

/* ========== SECTION HEADER ========== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.header-line {
    width: 80px;
    height: 4px;
    background: var(--accent-blue);
    margin: 0 auto 1rem;
    border-radius: 4px;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== STATS CONTAINER ========== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: var(--pure-white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-blue);
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* ========== INFO BOX ========== */
.info-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--light-blue);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--accent-blue);
}

.info-box i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.info-box-content h4 {
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.info-box-content p {
    color: var(--text-light);
    margin: 0;
}

/* ========== CONTENT GRID ========== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Info Card */
.info-card {
    background: var(--pure-white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.card-header {
    background: var(--light-blue);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 2px solid var(--accent-blue);
}

.card-header i {
    font-size: 1.3rem;
    color: var(--primary-blue);
}

.card-header h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.ppdb-table,
.requirement-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ppdb-table th,
.requirement-table th {
    background: var(--primary-blue);
    color: white;
    padding: 10px 12px;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: left;
}

.ppdb-table td,
.requirement-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
}

.ppdb-table tbody tr:hover,
.requirement-table tbody tr:hover {
    background: var(--light-blue);
}

.text-center {
    text-align: center;
}

/* Contact Card */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.contact-detail {
    flex: 1;
}

.contact-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-role {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.contact-phone {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

.contact-phone i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.divider {
    height: 1px;
    background: var(--border-light);
    margin: 1.5rem 0;
}

.address-info h4 {
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-info h4 i {
    color: var(--accent-blue);
}

.address-info p {
    color: var(--text-light);
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

/* Download Card */
.download-card {
    background: var(--light-blue);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    border: 2px dashed var(--accent-blue);
}

.download-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.download-card h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.download-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-blue);
    color: white;
    padding: 10px 25px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-download:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ========== TOMBOL KEMBALI ========== */
.button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-kembali {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 30px;
    background: var(--primary-blue);
    color: var(--pure-white);
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-kembali:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-kembali i {
    font-size: 0.9rem;
}

/* ========== TEXT MUTED ========== */
.text-muted {
    color: var(--text-light);
    text-align: center;
    padding: 1rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 250px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .button-wrapper {
        justify-content: center;
    }
    
    .btn-kembali {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* ========== BROSUR CARD ========== */
.brosur-card {
    background: linear-gradient(135deg, #fff, #f8fafd);
    border-radius: 15px;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.brosur-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.brosur-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.brosur-info {
    flex: 1;
}

.brosur-info h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.brosur-info p {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 0;
}

.brosur-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-view, .btn-download, .btn-disabled {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-view {
    background: var(--light-blue);
    color: var(--primary-blue);
    border: 1px solid var(--border-light);
}

.btn-view:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

.btn-download {
    background: var(--accent-blue);
    color: white;
}

.btn-download:hover {
    background: var(--primary-blue);
    transform: scale(1.1);
}

.btn-disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Responsive untuk brosur card */
@media (max-width: 768px) {
    .brosur-card {
        flex-wrap: wrap;
    }
    
    .brosur-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .brosur-card {
        flex-direction: column;
        text-align: center;
    }
    
    .brosur-actions {
        justify-content: center;
    }
}