/* ==========================================================================
   STYLE CSS UTAMA - SMP NEGERI 16 JAKARTA
   Warna Utama: Biru (Navy) & Kuning Emas
   ========================================================================== */

/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

/* --- HEADER & NAVIGASI --- */
header {
    background-color: #0b2240; /* Warna Biru Navy Tua */
    border-bottom: 4px solid #d4af37; /* Garis Kuning Emas */
    color: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 60px; /* Sesuaikan tinggi logo sekolah */
    width: auto;
}

.logo-text h1 {
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 0.85rem;
    color: #d4af37; /* Teks Kuning Emas */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #d4af37;
    border-bottom: 2px solid #d4af37;
}

/* --- HERO BANNER (Bagian Atas Depan) --- */
.hero {
    background: linear-gradient(rgba(11, 34, 64, 0.8), rgba(11, 34, 64, 0.8)), url('images/bg-sekolah.jpg') no-repeat center center/cover;
    height: 400px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #d4af37;
    max-width: 600px;
}

/* --- KONTEN UTAMA & GRID BERITA --- */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    color: #0b2240;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #d4af37;
    margin: 10px auto 0;
}

/* Layout Kartu Berita */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    color: #0b2240;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-baca {
    display: inline-block;
    color: #0b2240;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-baca:hover {
    color: #d4af37;
}

/* --- FOOTER --- */
footer {
    background-color: #0b2240;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    border-top: 4px solid #d4af37;
    font-size: 0.9rem;
}

footer p span {
    color: #d4af37;
}

/* --- RESPONSIVITAS (Untuk Handphone) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }
}