/* ==========================================================================
   STYLE UTAMA LANDING PAGE - TIMES NEW ROMAN EDITION
   ========================================================================== */

:root {
    --navy-deep: #0D1B2A;
    --blue-royal: #1B263B;
    --blue-accent: #2B3A4A;
    --gold-accent: #D4AF37;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    
    --font-heading: 'Times New Roman', Times, serif;
    --font-body: 'Times New Roman', Times, serif;
}

body, container, section {
    font-family: var(--font-body) !important;
}

section, .section {
    padding: 80px 0;
    overflow: hidden;
}

.section-title, h2 {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: 1.5px;
    position: relative;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* ==========================================================================
   1. HERO CAROUSEL (DIPERBAIKI AGAR GAMBAR TIDAK TERPOTONG)
   ========================================================================== */
.hero {
    background: radial-gradient(circle at top right, rgba(27, 38, 59, 0.03) 0%, #FFFFFF 100%);
    padding: 120px 0 150px 0;
}

.hero-title {
    font-family: var(--font-heading) !important;
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy-deep);
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: var(--font-body) !important;
    font-weight: 700;
    color: var(--gold-accent);
    letter-spacing: 2px;
    font-size: 1.05rem;
}

.hero-desc {
    font-family: var(--font-body) !important;
    font-size: 1.15rem;
    color: var(--blue-accent);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-image {
    width: 100%;
    height: 380px; /* Menjaga tinggi konsisten */
    object-fit: contain; /* Diubah dari cover ke contain agar gambar asli tampil seutuhnya tanpa terpotong */
    background-color: #f1f3f5; /* Memberikan latar belakang rapi jika aspek rasio gambar berbeda */
    border-radius: 16px;
    padding: 10px;
}

/* ==========================================================================
   2. STATISTIK SECTION
   ========================================================================== */
.statistik {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--blue-royal) 100%);
    color: var(--white);
    padding: 50px 0;
    border-radius: 16px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(13, 27, 42, 0.25);
    border-bottom: 4px solid var(--gold-accent);
}

.stat-card {
    padding: 20px;
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-card h2 {
    font-family: var(--font-heading) !important;
    font-size: 3.5rem;
    color: var(--gold-accent);
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stat-card p {
    font-family: var(--font-body) !important;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ==========================================================================
   3. SEJARAH SEKOLAH (RAPI, PRESISI & DIBATASI TINGGINYA)
   ========================================================================== */
.sejarah-section .row {
    align-items: center !important;
}

.sejarah-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(13, 27, 42, 0.12);
    border: 4px solid var(--white);
    transition: all 0.4s ease;
}

.sejarah-image:hover {
    transform: scale(1.015);
    box-shadow: 0 20px 40px rgba(13, 27, 42, 0.18);
}

.sejarah-section h3 {
    font-family: var(--font-heading) !important;
    color: var(--navy-deep);
    font-size: 1.8rem;
    line-height: 1.2;
}

.sejarah-text {
    font-family: var(--font-body) !important;
    color: #2B3A4A;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

/* ==========================================================================
   4. VISI MISI
   ========================================================================== */
.visi-misi {
    background-color: var(--bg-light);
}

.visi-misi .card {
    border: none !important;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.visi-misi .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(13, 27, 42, 0.12);
}

.visi-misi .bg-primary {
    background: var(--navy-deep) !important;
    border-bottom: 3px solid var(--gold-accent);
    padding: 20px 25px !important;
}

.visi-misi .bg-success {
    background: var(--blue-royal) !important;
    border-bottom: 3px solid var(--gold-accent);
    padding: 20px 25px !important;
}

.visi-misi .card-header h4 {
    font-family: var(--font-heading) !important;
    font-size: 1.35rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.visi-misi .card-body {
    padding: 30px 28px;
    font-family: var(--font-body) !important;
    color: #2B3A4A;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==========================================================================
   5. GALERI SECTION
   ========================================================================== */
.galeri-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 4px solid var(--white);
}

.galeri-image:hover {
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0 20px 40px rgba(13, 27, 42, 0.15);
    border-color: var(--gold-accent);
}

/* ==========================================================================
   6. PPDB SECTION
   ========================================================================== */
.ppdb {
    background-color: var(--white);
    padding: 90px 0;
}

.ppdb-image {
    max-width: 80%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   7. TOMBOL (BUTTONS)
   ========================================================================== */
.btn-primary {
    background-color: var(--navy-deep) !important;
    border: 2px solid var(--navy-deep) !important;
    color: var(--white) !important;
    font-family: var(--font-body) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.2px;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 27, 42, 0.15);
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--gold-accent) !important;
    border-color: var(--gold-accent) !important;
    color: var(--navy-deep) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.35);
}

/* RESPONSIVE DESIGN */
@media (max-width: 991.98px) {
    .sejarah-image {
        height: auto;
        max-height: 350px;
    }
}

@media (max-width: 767.98px) {
    .hero {
        text-align: center;
        padding: 60px 0 100px 0;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .statistik {
        margin-top: -50px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .stat-card {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 25px 0;
    }
    .stat-card:last-child {
        border-bottom: none;
    }
}