body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between; /* Logo di kiri, menu di kanan */
    align-items: center;
    padding: 15px 20px;
    background: #008000;
    color: white;
}

.logo {
    display: flex; /* Mengaktifkan Flexbox */
    align-items: center; /* Menyelaraskan secara vertikal */
    gap: 10px; /* Jarak antara logo dan teks */
}

.logo img {
    width: 50px; /* Sesuaikan ukuran logo */
    height: auto;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 0;
}

.mobile-menu-icon {
    display: none; /* Tidak terlihat di mode desktop */
    font-size: 24px;
    cursor: pointer;
    color: white;
    margin-right: 20px;
}

/* Navigasi utama */
nav {
    display: flex;
    gap: 10px;
}

.desktop-nav {
    display: flex; /* Tampilkan menu di desktop */
    gap: 15px;
}

.desktop-nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: 0.3s;
    font-weight: bold;
}

.desktop-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}


/* Tombol menu hanya muncul di layar kecil */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.materi-detail {
    background: white;
    margin: 20px auto;
    padding: 20px;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.materi-detail h2 {
    color: #006400;
}

.materi-detail img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
}

.materi-detail ul {
    padding-left: 20px;
}

@media (max-width: 768px) {
    .materi-detail {
        margin: 10px;
        padding: 15px;
    }

    .logo h1 {
        font-size: 18px;
    }

    /* Navigasi responsif */
@media (max-width: 768px) {

    header {
        justify-content: center; /* Pusatkan elemen di mobile */
        position: relative; /* Agar tombol menu bisa diposisikan */
    }

    .desktop-nav {
        display: none; /* Sembunyikan menu navbar di mobile */
    }


    nav a {
        display: block;
        padding: 10px;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }


    .menu-toggle {
        display: flex; /* Tombol menu tetap terlihat */
        position: absolute;
        left: 20px;
        cursor: pointer;
    }

    nav.show {
        display: flex;
        max-height: 500px; /* Tampilkan seluruh menu */
    }

    
}
}

/* Sidebar Menu */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* Awalnya tersembunyi di kiri */
    width: 250px;
    height: 100%;
    background: #ffffff;
    transition: left 0.3s ease-in-out;
    padding-top: 60px;
    z-index: 1000;
}

.sidebar a {
    display: block;
    text-align: left;
    padding: 15px;
    color: rgb(5, 5, 5);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.sidebar a:hover {
    background: rgba(5, 5, 5, 0.2);
}

/* Tombol Close */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    color: rgb(5, 5, 5);
    cursor: pointer;
}

.container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: green;
    text-decoration: none;
    border-radius: 5px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding-bottom: 100px;
}

.container {
    max-width: 900px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

h2 {
    font-weight: 700;
    color: #343a40;
}

.info-section h4 {
    margin-top: 25px;
    font-weight: 600;
    color: #007bff;
}

.info-section p {
    font-size: 16px;
    line-height: 1.6;
}


/*footer */
footer {
    background: green; /* Warna ungu */
    color: white;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 10px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section p, .footer-section a {
    font-size: 14px;
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Gaya ikon media sosial */
.social-icons {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 5px;
    color: black;
    font-size: 18px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #ddd;
}

/* Footer bawah */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-bottom p {
    font-size: 14px;
    margin: 5px 0;
}

.footer-bottom a {
    color: green;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}