body {
    font-family: 'Poppins', serif;
    margin: 0;
    padding: 0;
}

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;
}


/* 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;
}


.main-content {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.menu-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-family: 'Poppins', serif;
}

.menu-grid .menu-item img {
    width: 150px; /* Lebar tetap */
    height: 150px; /* Tinggi tetap */
    object-fit: contain; /* Potong gambar agar sesuai ukuran tanpa distorsi */
    display: block;
    margin: 0 auto; /* Pusatkan gambar */
    background-color: #ffff;
    padding: 50px;
}

.slideshow-container {
    display: flex; /* Mengaktifkan flexbox untuk elemen container */
    justify-content: center; /* Memposisikan foto secara horizontal di tengah */
    align-items: center; /* Memposisikan foto secara vertikal di tengah */
    height: 80%; /* Tentukan tinggi container slideshow (sesuaikan dengan kebutuhan Anda) */
}
    

.slides {
    max-width: 100%; /* Membatasi lebar gambar agar tidak melampaui container */
    max-height: 100%; /* Membatasi tinggi gambar agar tidak melampaui container */
    object-fit: contain; /* Menyesuaikan gambar agar tidak terpotong */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Menambahkan bayangan lembut pada gambar */
}

.active {
    display: block;
}

/* Gaya dasar untuk materi */
.materi {
    margin: 20px auto; /* Memberikan jarak antar materi */
    padding: 20px;
    max-width: 800px; /* Membatasi lebar materi */
    background-color: #f9f9f9; /* Latar belakang untuk materi */
    border: 1px solid #ddd; /* Garis tipis di sekitar materi */
    border-radius: 8px; /* Membuat sudut materi melengkung */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan untuk estetika */
}

/* Judul materi */
.materi h2 {
    font-size: 24px;
    color: #007b5e;
    margin-bottom: 10px;
}

/* Paragraf materi */
.materi p {
    font-size: 16px;
    color: #333;
    line-height: 1.6; /* Memberikan ruang antar baris */
}

/* Container Materi */
.materi-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

.materi-container h2 {
    font-size: 28px;
    color: #007b5e;
    margin-bottom: 10px;
    font-weight: bold;
    
}

.materi-container p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    text-align: justify;
}

/* Grid Materi */
.materi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Kartu Materi */
.materi-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.materi-card:hover {
    transform: translateY(-5px);
}

.materi-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.materi-card h3 {
    font-size: 20px;
    margin: 10px 0;
    color: #333;
}

.materi-card p {
    font-size: 14px;
    color: black;
    margin-bottom: 15px;
}

/* Tombol */
.btn {
    display: inline-block;
    text-decoration: none;
    background: #008000!Important;
    color: white!Important;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s;
    font-weight: bold;
}

.btn:hover {
    background: #008000;
}

/*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;
}
