/* Reset & Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header & Navigasi Desktop */
header {
    background-color: #cc0000; /* Merah portal berita */
    color: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

/* --- PERBAIKAN FINAL UKURAN LOGO --- */

/* 1. Pastikan container logo di header posisinya pas */
header .logo {
    display: flex;
    align-items: center;
    height: 100%; /* Menyesuaikan tinggi header */
}

/* 2. Reset link pembungkus gambar agar tidak ada spasi aneh */
header .logo a {
    display: block;
    line-height: 0;
    font-size: 0;
}

/* 3. Paksa ukuran gambar menjadi kecil */
header .logo a img {
    /* Kita kunci tingginya maksimal 35 pixel saja */
    max-height: 35px !important; 
    
    /* Lebar menyesuaikan otomatis agar proporsional */
    width: auto !important;
    
    /* Pastikan tidak ada margin/padding yang mengganggu */
    margin: 0;
    padding: 0;
    display: block;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffcccc;
}

/* Tombol Mobile disembunyikan di Desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.close-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

/* Penataan Konten */
main {
    padding: 2rem 5%;
    min-height: 70vh;
}

.hero, .page-content {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.latest-news article {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #cc0000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.latest-news h3 {
    margin-bottom: 10px;
}

.latest-news a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.latest-news a:hover {
    color: #cc0000;
}

footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
}

/* Responsif Mobile & Dropdown Menu Behavior */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Disembunyikan ke sisi kanan layar */
        width: 250px;
        height: 100vh;
        background-color: #1a1a1a;
        flex-direction: column;
        padding-top: 70px;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0,0,0,0.5);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0; /* Menu muncul ketika kelas 'active' ditambahkan lewat JS */
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
        gap: 1.5rem;
    }

    .close-btn {
        display: block;
    }
    
    /* Overlay Hitam Transparan untuk menutup menu jika diklik di luar */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 999;
    }
}