/* =========================================
   1. ROOT VARIABLES & BASIC STYLES
   ========================================= */
:root {
    --primary-blue: #007bff;
    --light-blue: #e3f2fd;
    --accent-orange: #ff8c00;
    --hover-orange: #e67e00;
    --dark-navy: #001f3f;
}

body { 
    font-family: 'Poppins', sans-serif; 
    overflow-x: hidden; 
}

.bg-light-blue { background-color: var(--light-blue); }
.text-blue { color: var(--primary-blue); }
.text-orange { color: var(--accent-orange) !important; }

/* Judul Section dengan Border Bawah */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    margin: 10px auto;
    border-radius: 2px;
}

/* =========================================
   2. NAVIGATION BAR (Redesigned & Elegant)
   ========================================= */
.navbar {
    padding: 15px 0;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background: rgba(255, 255, 255, 0.7) !important; /* Lebih transparan */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    transition: all 0.4s ease;
}

/* Navbar mengecil saat di-scroll (opsional, butuh sedikit JS) */
.navbar.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: var(--dark-navy) !important;
}

.navbar-brand span {
    color: var(--primary-blue);
}

/* Menu Links */
.nav-link {
    color: #444 !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 5px;
    padding: 8px 18px !important;
    border-radius: 50px; /* Membuat bentuk pill saat hover */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary-blue) !important;
    background: var(--light-blue);
    transform: translateY(-1px);
}

.nav-link.active {
    color: white !important;
    background: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Custom Hamburger Icon */
.navbar-toggler {
    border: none !important;
    padding: 10px;
    transition: 0.3s;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* Mengganti icon standar dengan SVG yang lebih elegan */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23001f3f' stroke-width='2.5' stroke-linecap='round' d='M4 8h24M8 16h20M12 24h16'/%3E%3C/svg%3E") !important;
    /* Lebar garis bervariasi untuk kesan artistik */
}

/* Penyesuaian Mobile (Elegant Slide-down) */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 25px;
        border-radius: 24px;
        margin-top: 15px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.05);
        animation: fadeInDown 0.4s ease forwards;
    }

    .nav-link {
        margin: 8px 0;
        padding: 12px 20px !important;
        border-bottom: none; /* Hilangkan border kaku */
    }
    
    .nav-link:hover {
        padding-left: 30px !important; /* Efek geser saat hover di mobile */
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   3. HERO SECTION & CAROUSEL
   ========================================= */
.hero {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8), rgba(0, 31, 63, 0.8)), 
                url('img/main/fotosekolah.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Slider / Carousel Effects */
.ratio-6x4 { --bs-aspect-ratio: 66.66%; }

.zoom-effect {
    object-fit: cover; 
    width: 100%;
    height: 100%;
}

.carousel-item.active .zoom-effect {
    animation: slowZoom 4s forwards;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* =========================================
   4. CARDS & FEATURES
   ========================================= */
.card { 
    border: none; 
    transition: transform 0.3s; 
    border-radius: 15px; 
}

.card:hover { transform: translateY(-10px); }

/* Feature Icon Boxes */
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--accent-orange);
    color: white;
    transform: rotateY(360deg);
}

.icon-box i {
    color: var(--accent-orange);
    transition: 0.3s;
}

.card:hover .icon-box i {
    transform: scale(1.1) rotate(5deg);
}

/* Registration Box & Steps */
.registration-box {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.info-step {
    position: relative;
    padding-left: 45px;
    margin-bottom: 25px;
}

.info-step .step-number {
    position: absolute;
    left: 0; top: 0;
    width: 30px; height: 30px;
    background: var(--accent-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* =========================================
   5. GALLERY & ALUMNI
   ========================================= */
.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.gallery-container img {
    transition: 0.5s;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 123, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
    color: white;
    padding: 15px;
}

.gallery-container:hover .gallery-overlay { opacity: 1; }
.gallery-container:hover img { transform: scale(1.1); }

/* Alumni Section */
.alumni-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.alumni-img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-orange);
}

.quote-icon {
    color: var(--accent-orange);
    opacity: 0.2;
    font-size: 3rem;
    position: absolute;
    right: 20px; top: 20px;
}

/* =========================================
   6. BUTTONS & UI ELEMENTS
   ========================================= */
.btn-gradient {
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    border: none;
    color: white;
    transition: 0.3s;
}

.btn-orange {
    background: var(--accent-orange);
    border: none;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.btn-orange:hover {
    background: var(--hover-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.btn-contact {
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-view-more {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    transition: 0.3s;
}

.btn-view-more:hover {
    background-color: var(--primary-blue);
    color: white !important;
    transform: translateX(10px);
}

/* =========================================
   7. MISC & ANIMATIONS
   ========================================= */
.float-icon {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.mou-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.mou-logo {
    max-width: 120px;
    transition: 0.3s;
}

.mou-logo:hover { transform: scale(1.1); }


    :root {
        --accent-orange: #f97316; /* Orange Cerah */
        --soft-blue: #eff6ff;   /* Biru Sangat Muda (Background) */
        --brand-blue: #3b82f6;  /* Biru Muda Utama */
        --deep-blue: #1e40af;   /* Biru Gelap untuk Teks */
    }

    .news-card {
        position: relative;
        height: 400px;
        border-radius: 30px;
        overflow: hidden;
        background: var(--soft-blue);
        border: 1px solid rgba(59, 130, 246, 0.1);
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }

    /* Container Gambar dengan Overlay Biru Tipis */
    .news-img-container {
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .news-img-container::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(59, 130, 246, 0.1), rgba(30, 64, 175, 0.2));
        z-index: 2;
    }

    .news-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s ease;
    }

    /* Badge Tanggal Nuansa Putih-Orange */
    .news-date-tag {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
        padding: 5px 15px;
        border-radius: 100px;
        z-index: 10;
        display: flex;
        align-items: center;
        gap: 8px;
        border: 1px solid white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .news-date-tag i { color: var(--accent-orange); font-size: 0.8rem; }
    .news-date-tag span { color: var(--deep-blue); font-weight: 700; font-size: 0.75rem; }

    /* Panel Kaca Teks */
    .news-glass-box {
        position: absolute;
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 22px;
        background: rgba(255, 255, 255, 0.88); /* Kaca Putih Bersih */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        z-index: 5;
        transition: all 0.4s ease;
        box-shadow: 0 10px 30px rgba(30, 64, 175, 0.08);
    }

    .news-category {
        color: var(--brand-blue);
        font-weight: 800;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 8px;
        display: block;
    }

    .news-title-text {
        font-size: 1.15rem;
        font-weight: 900;
        color: var(--deep-blue);
        line-height: 1.3;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-summary {
        font-size: 0.85rem;
        color: #475569;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0;
    }

    /* Hover Animation */
    .news-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25);
    }

    .news-card:hover .news-img-container img {
        transform: scale(1.1);
    }

    .news-card:hover .news-glass-box {
        background: #ffffff;
        bottom: 20px;
        border: 1px solid var(--brand-blue);
    }

    /* Penyesuaian Tombol Selengkapnya */
    .read-more-link {
        margin-top: 15px;
        display: flex;
        align-items: center;
        color: var(--accent-orange);
        font-weight: 800;
        font-size: 0.8rem;
        text-decoration: none;
        gap: 5px;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .news-card:hover .read-more-link {
        opacity: 1;
    }

/* Penyesuaian khusus Mobile (Layar di bawah 768px) */
@media (max-width: 767px) {
    .news-card {
        height: 350px; /* Lebih pendek sedikit di HP */
        border-radius: 24px;
    }

    .news-glass-box {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px; /* Padding lebih kecil agar teks tidak sesak */
    }

    .news-title-text {
        font-size: 1rem; /* Ukuran font judul menyesuaikan layar kecil */
    }

    .news-summary {
        display: none; /* Sembunyikan ringkasan di HP agar lebih bersih, atau batasi 1 baris */
    }

    .read-more-link {
        opacity: 1; /* Di mobile langsung munculkan saja karena tidak ada hover */
        margin-top: 8px;
    }

    .news-date-tag {
        top: 15px;
        right: 15px;
        padding: 4px 12px;
    }
}