/* Import Google Font Modern */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #4a69bd; /* Biru Laut Modern */
    --secondary-color: #6a89cc;
    --accent-color: #f6b93b;  /* Kuning Energetik */
    --dark-bg: #0c2461;
    --text-color: #2f3640;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
     background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                url('../uploads/OIP.jpg') !important;

    /* 2. Agar gambar tidak gepeng di HP (Responsif) */
    background-size: cover;      /* Memaksa gambar memenuhi area navbar */
    background-position: center; /* Fokus gambar di tengah */
    background-repeat: no-repeat;
    
    /* Style lama tetap dipertahankan */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

/* --- Navbar Cantik --- */
.navbar {
    /* 1. Teknik Overlay: 
       Kita tumpuk warna Putih (255,255,255) dengan transparansi 0.85 (85%).
       Artinya gambar di belakangnya hanya akan terlihat sekitar 15-20% (sangat soft).
       Ganti URL di bawah dengan link gambar pola batik/gedung sekolah Anda.
    */
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                url('../uploads/OIP.jpg') !important;

    /* 2. Agar gambar tidak gepeng di HP (Responsif) */
    background-size: cover;      /* Memaksa gambar memenuhi area navbar */
    background-position: center; /* Fokus gambar di tengah */
    background-repeat: no-repeat;
    
    /* Style lama tetap dipertahankan */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}
.navbar-brand span {
    color: var(--primary-color);
    font-weight: 800;
}
.nav-link {
    color: #555 !important;
    font-weight: 500;
    transition: all 0.3s;
}
.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* --- Hero Slider --- */
.carousel-item img {
    height: 600px;
    object-fit: cover;
    filter: brightness(0.8); /* Gelapkan foto sedikit agar tulisan terbaca */
    border-radius: 0 0 50px 50px; /* Lengkungan unik di bawah slider */
}
.carousel-caption {
    bottom: 20%;
}
.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* --- Kartu Berita (Glassy & Hover) --- */
.card-hover {
    border: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}
.card-hover:hover {
    transform: translateY(-10px); /* Efek naik */
    box-shadow: 0 15px 30px rgba(74, 105, 189, 0.2);
}
.card-img-top {
    height: 200px;
    object-fit: cover;
}
.card-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- Pengumuman Sidebar --- */
.sidebar-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent-color);
}
.list-pengumuman li {
    border-bottom: 1px dashed #eee;
    padding: 15px 0;
}
.list-pengumuman li:last-child { border-bottom: none; }
.badge-custom {
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}

/* --- Agenda Section --- */
.agenda-section {
    background: var(--dark-bg);
    color: white;
    border-radius: 30px;
    padding: 50px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}
.agenda-date-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}
.agenda-date-box h3 { font-size: 2.5rem; font-weight: 700; margin: 0; }

/* --- Footer --- */
footer {
    background: #1e272e;
    color: #d2dae2;
    padding-top: 60px;
}
footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ... Kode CSS lama di atas ... */

/* --- RESPONSIVE FIX (Khusus HP) --- */
@media (max-width: 768px) {
    
    /* 1. Kurangi tinggi gambar agar proporsional di HP */
    .carousel-item img {
        height: 300px; /* Ubah dari 600px jadi 300px */
        border-radius: 0 0 25px 25px; /* Lengkungan diperkecil agar tidak aneh */
    }

    /* 2. Sesuaikan ukuran huruf judul */
    .carousel-caption h2 {
        font-size: 1.5rem; /* Ukuran font lebih kecil */
        margin-bottom: 5px;
    }

    /* 3. Sesuaikan ukuran teks deskripsi */
    .carousel-caption p {
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 10px;
        display: -webkit-box; /* Trik memotong teks kepanjangan */
        -webkit-line-clamp: 2; /* Hanya tampilkan 2 baris */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 4. Sesuaikan posisi caption agar tidak terlalu turun */
    .carousel-caption {
        bottom: 10%;
        padding-bottom: 0;
    }

    /* 5. Perkecil tombol */
    .carousel-caption .btn {
        padding: 5px 15px;
        font-size: 0.8rem;
    }
}