body { font-family: Arial, sans-serif; margin: 0; padding: 0; color: #333; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
header { 
    position: absolute; 
    width: 100%; 
    z-index: 1000; 
    padding: 15px 0; 
    color: white; 
    background: rgba(0, 0, 0, 0.2); 
}
/* Perbaikan: Menggunakan flex untuk header container di semua ukuran (dasar untuk toggle) */
header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo a { color: white; text-decoration: none; font-size: 24px; font-weight: 900; }
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; }
.main-nav li { margin-left: 20px; }
.main-nav a { 
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
    transition: color 0.3s;
    padding: 5px 0;
    display: block;
}
.main-nav a:hover { color: #FF4500; } 

/* CSS Baru: Elemen Toggle (Ikon Hamburger) */
.menu-toggle {
    display: none; /* Sembunyikan di desktop */
    font-size: 2em;
    cursor: pointer;
    color: white; /* Ikon hamburger putih */
    order: 2; /* Pastikan ikon di sisi kanan jika header flex-nya flex-row */
    margin-left: auto; /* Dorong ke kanan jika diperlukan */
}

/* CSS Hero Section */
.hero-section {
    height: 100vh;
    /* Perhatikan: URL background image di sini terlihat seperti gabungan kode PHP dan string statis. 
       Pastikan formatnya benar di file HTML Anda: background-image: url('assets/img/<?php echo $foto_hero; ?>'); */
    background-image: url('../assets/img/1761336398_bg.jpeg'); /* Hanya menggunakan URL statis jika PHP tidak berfungsi di file CSS */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); }
.hero-content { position: relative; z-index: 10; color: white; max-width: 800px; padding: 20px; }
.hero-content h1 { font-size: 3.5em; margin-bottom: 10px; font-weight: 900; }
.hero-content h2 { font-size: 1.5em; margin-top: 0; margin-bottom: 30px; }

/* CSS Search Bar */
.search-bar { background: white; padding: 10px; border-radius: 5px; margin-bottom: 25px; display: flex; box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.search-bar input { flex-grow: 1; border: none; padding: 10px; font-size: 16px; outline: none; color: #333; }
.search-bar button { 
    background: #FF4500; 
    color: white; 
    border: none; 
    padding: 10px 25px; 
    font-size: 16px; 
    cursor: pointer; 
    border-radius: 5px; 
    transition: background 0.3s;
}
.search-bar button:hover { background: #e03e00; }

.cta-button { display: inline-block; background: #FF4500; color: white; padding: 15px 30px; text-decoration: none; font-weight: bold; border-radius: 5px; transition: background 0.3s; }
.cta-button:hover { background: #e03e00; }

/* CSS Konten */
.page-section { padding: 80px 0; text-align: center; }
.page-section:nth-child(even) { background-color: #f7f7f7; } 

.destinasi-grid, .penginapan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.destinasi-card, .penginapan-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: white;
    transition: transform 0.3s;
}
.destinasi-card img, .penginapan-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-content { padding: 15px; }
.card-content h3 { margin-top: 0; color: #ff5722; }

.profil-content {
    display: flex;
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}
.profil-content div { flex: 1; }

.kontak-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; 
}
.kontak-item { text-align: center; }
.kontak-item h3 { margin-bottom: 15px; color: #FF4500; }
.kontak-link { 
    display: block;
    color: #333; 
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s;
}
.kontak-link i { margin-right: 8px; color: #FF4500; }
.kontak-link:hover { color: #FF4500; }

.map-frame { 
    width: 100%; 
    height: 400px; 
    border: 0; 
    margin-top: 30px; 
    border-radius: 8px;
}

.struktur-organisasi { overflow-x: auto; padding-bottom: 20px; }
.tingkat-jabatan {
    display: flex; justify-content: center; gap: 30px; margin-top: 40px; padding: 20px 0; position: relative;
}
.anggota-card {
    background: white; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 150px; min-width: 150px; padding: 10px; text-align: center; position: relative; z-index: 5;
}
.anggota-card img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 50%; margin-bottom: 5px; border: 3px solid #FF4500;
}

.page-wrapper { padding-top: 100px; }
.detail-img { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 30px; }
.detail-info { display: flex; gap: 30px; margin-top: 20px; text-align: center; flex-wrap: wrap;}
.info-box { flex: 1; min-width: 200px; background: #f0f0f0; padding: 15px; border-radius: 5px; }

footer { background: #333; color: white; padding: 20px 0; text-align: center; }

/* ========================================================== */
/* MEDIA QUERY UNTUK MOBILE (Maksimal Lebar 992px) */
/* ========================================================== */
@media (max-width: 992px) {
    
    /* 1. Tampilkan Ikon Hamburger dan Sembunyikan Navigasi Default */
    .menu-toggle { 
        display: block; /* Tampilkan ikon hamburger */
    }

    .main-nav {
        display: none; /* Sembunyikan navigasi utama secara default */
        position: absolute;
        top: 60px; /* Jarak dari atas (sesuaikan dengan tinggi header Anda) */
        left: 0;
        width: 100%;
        background-color: rgba(34, 34, 34, 0.95); /* Latar belakang semi-transparan untuk menu */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
        z-index: 999;
        /* Tambahkan transisi untuk efek yang lebih halus */
        transition: all 0.3s ease-in-out; 
    }

    /* 2. Aturan untuk Menampilkan Menu Saat Diklik (kelas 'active' dari JS) */
    .main-nav.active {
        display: block; 
    }

    /* 3. Atur Tampilan Menu di Mobile */
    .main-nav ul {
        flex-direction: column; /* Ubah tata letak menjadi vertikal */
        width: 100%;
    }

    .main-nav li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Garis pemisah antar menu */
    }
    
    .main-nav a {
        padding: 15px 20px;
        text-align: left;
        color: white;
    }

    /* Tampilan khusus untuk tombol Login di mobile */
    .main-nav li:last-child a {
        padding: 15px 20px !important;
        text-align: center;
    }
    .main-nav li:last-child a[style*="background"] {
        background: #FF4500 !important;
        color: white !important;
        border-radius: 0 !important;
    }


    /* Tampilan Konten Lainnya untuk Mobile */
    header .container { 
        /* Pastikan elemen logo dan toggle sejajar di header mobile */
        flex-direction: row; 
    }
    
    .destinasi-grid, .penginapan-grid { grid-template-columns: 1fr; }
    .profil-content { flex-direction: column; }
    .hero-content h1 { font-size: 2.5em; }
    .hero-content h2 { font-size: 1.2em; }
    .search-bar { flex-direction: column; }
    .search-bar input { margin-bottom: 10px; }
    .kontak-info { flex-direction: column; gap: 30px; }
    .detail-info { flex-direction: column; }
}