/* Import Font Keren: Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0d47a1; /* Biru Sekolah Tua */
    --accent-color: #ffc107;  /* Kuning Emas */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden; /* Mencegah scroll samping di HP */
}

/* Navbar Modern */
.navbar {
    transition: all 0.4s ease-in-out;
    padding: 1rem 0;
}

.navbar-scrolled {
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-scrolled .nav-link {
    color: #333 !important;
}

.navbar-scrolled .navbar-brand {
    color: var(--primary-color) !important;
}

/* Hero Section dengan Overlay Gelap */
.hero-section {
    position: relative;
    height: 100vh; /* Full layar */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

/* Membuat lapisan gelap di atas gambar agar tulisan terbaca */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Agar tulisan di atas overlay */
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px; /* Tombol bulat modern */
    transition: transform 0.3s;
}

.btn-primary-custom:hover {
    background-color: #082d6b;
    transform: translateY(-3px); /* Efek naik dikit pas di-hover */
}

/* --- STYLE TAMBAHAN UNTUK BERITA --- */

/* Card Berita Modern */
.card-news {
    border: none;
    border-radius: 15px; /* Sudut tumpul */
    overflow: hidden; /* Supaya gambar gak keluar pas di-zoom */
    transition: all 0.3s ease;
}

.card-news:hover {
    transform: translateY(-10px); /* Card naik dikit pas di-hover */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Container Gambar untuk efek Zoom */
.card-img-wrapper {
    overflow: hidden;
    height: 160px; /* Tinggi gambar seragam */
    position: relative;
}
.card-news .card-body {
    padding: 1rem !important; /* Padding dalam card kita kurangi biar tidak gemuk */
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar full cover tanpa gepeng */
    transition: transform 0.5s ease;
}

.card-news:hover .card-img-wrapper img {
    transform: scale(1.1); /* Efek Zoom in gambar */
}

/* Badge Kategori di atas gambar */
.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Link Judul */
.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--primary-color);
}

/* Kecilkan font judul berita */
.news-title {
    font-size: 1.1rem; /* Ukuran font lebih standar */
    line-height: 1.4;
}

/* Style untuk Isi Berita */
.blog-content p {
    margin-bottom: 1.5rem;
    color: #444;
}
.blog-content h3 {
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
}
.blog-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.blog-content li {
    margin-bottom: 0.5rem;
}

/* PRELOADER STYLE */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ffffff;
    z-index: 9999; /* Paling atas menutupi semua */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out; /* Efek memudar saat hilang */
}

/* Animasi Putar Sederhana (Ringan) */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3; /* Warna abu muda */
    border-top: 5px solid var(--primary-color); /* Warna Biru Utama */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Class untuk menyembunyikan preloader */
.preloader-hide {
    opacity: 0;
    visibility: hidden;
}


/* --- LAYOUT BERITA HERO + LIST --- */

/* Kartu Utama (Kiri) */
.news-hero-img {
    height: 260px; /* Tinggi gambar utama */
    object-fit: cover;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* List Berita (Kanan) */
.news-list-item {
    transition: transform 0.2s;
}

.news-list-item:hover {
    background-color: #f8f9fa; /* Efek hover tipis */
}

.news-list-img {
    width: 120px;       /* Lebar gambar kecil tetap */
    height: 85px;       /* Tinggi gambar kecil tetap */
    object-fit: cover;  /* Agar gambar tidak gepeng */
    border-radius: 6px;
    flex-shrink: 0;     /* Mencegah gambar mengecil */
}

.news-list-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s;
}

.news-list-title a:hover {
    color: var(--primary-color);
}

/* Garis bawah judul section yg unik (mirip gambar) */
.section-title-line {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}
.section-title-line::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color); /* Warna oranye/kuning */
    bottom: 0;
    left: 0;
}