/* ====================================================================
   🎨 1. RESET DAN DASAR STYLING
==================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: #fdfdfd;
    color: #333;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
    background-color: #121212;
    color: #f5f5f5;
}


/* ====================================================================
   🧭 2. HEADER DAN NAVIGASI
==================================================================== */
header {
    background-color: #007bff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffc107;
}

#theme-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}


/* ====================================================================
   🖼️ 3. SECTION DAN JUDUL
==================================================================== */
.section {
    padding: 20px 20px;
    max-width: 1000px;
    margin: auto;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.main-title {
    font-size: 2.5rem;
    color: #007bff;
    text-align: center;
    margin: 2rem auto 1rem;
    max-width: 1000px;
}


/* ====================================================================
   📦 4. ITEM DAN KOMPONEN BARANG
==================================================================== */
.item-rundown {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.barang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.barang-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
}

.barang-item i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 0.5rem;
    display: block;
}

/* ✅ Tambahan yang diperbaiki */
.barang-item h3 {
    margin: 0.5rem 0 0.3rem;
    font-size: 1.2rem;
    color: #007bff;
    font-family: 'Segoe UI', sans-serif;
}

.barang-subtitle {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.barang-catatan {
    background-color: #eef6ff;
    border-left: 4px solid #007bff;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
}

.barang-catatan a {
    color: #007bff;
    text-decoration: underline;
}

.barang-img {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}



/* ====================================================================
   🏢 5. FASILITAS
==================================================================== */
.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1rem 0 2rem;
}

.fasilitas-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.fasilitas-item img {
    width: 100%;
    max-width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.fasilitas-item h3 {
    margin: 0.5rem 0 0.3rem;
    font-size: 1.2rem;
    color: #007bff;
}

.fasilitas-item p {
    font-size: 0.95rem;
    color: #333;
}


/* ====================================================================
   🗺️ 6. DENAH LOKASI
==================================================================== */
.denah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.denah-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.denah-item h3 {
    color: #007bff;
    margin-bottom: 0.5rem;
}


/* ====================================================================
   ❓ 7. TANYA JAWAB (QnA)
==================================================================== */
.qna-section {
    margin-top: 2rem;
}

.qna-item {
    background: #f9f9f9;
    border-left: 4px solid #007bff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.qna-item .q {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.qna-item .a {
    margin-left: 1rem;
    line-height: 1.6;
}

.qna-note {
    margin-top: 2rem;
    font-style: italic;
    font-size: 0.95rem;
    color: #444;
    background-color: #eef6ff;
    border-left: 4px solid #007bff;
    padding: 1rem;
    border-radius: 8px;
}


/* ====================================================================
   📱 8. RESPONSIVE DAN MENU MOBILE
==================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px;
        right: 20px;
        background-color: #007bff;
        padding: 1rem;
        border-radius: 8px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}


/* ====================================================================
   🌙 9. MODE GELAP (DARK MODE)
==================================================================== */
body.dark header {
    background-color: #1e1e1e;
}

body.dark .section h2,
body.dark .main-title {
    color: #66b2ff;
}

body.dark footer {
    background-color: #1e1e1e;
    color: #ccc;
}


/* ====================================================================
   ⚓ 10. FOOTER
==================================================================== */
footer {
    background-color: #f1f1f1;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
}