* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Font modern */
    line-height: 1.7; /* Lebih lega */
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%); /* Background gradient lembut */
    text-align: justify;
}

/* Header */
header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); /* Gradient modern */
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Bayangan lembut */
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.8rem; /* Sedikit lebih besar */
    font-weight: 600; /* Lebih tebal */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500; /* Lebih ringan dari bold */
    padding: 0.5rem 0.8rem;
    border-radius: 6px; /* Sudut membulat */
    transition: all 0.3s ease; /* Transisi halus */
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Efek hover transparan */
    transform: translateY(-2px); /* Angkat sedikit saat hover */
}

/* Main */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem; /* Sedikit lebih lebar */
    background-color: white;
    border-radius: 12px; /* Sudut membulat */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05); /* Bayangan halus untuk konten */
    padding-bottom: 2rem;
}

section {
    margin-bottom: 2rem;
}

section h2, section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee; /* Garis bawah judul */
}

/* Footer */
footer {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%); /* Gradient untuk footer */
    color: white;
    text-align: center;
    padding: 1.5rem 0; /* Sedikit lebih tebal */
    margin-top: 2rem;
    border-radius: 0 0 12px 12px; /* Sudut membulat bawah */
}

/* Style untuk tombol toggle navigasi */
.nav-toggle {
    background: rgba(255, 255, 255, 0.2); /* Transparan lembut */
    border: 1px solid white;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    border-radius: 6px; /* Sudut membulat */
    transition: background-color 0.3s; /* Transisi saat hover */
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- Tombol Navigasi Pertemuan --- */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 1rem 0;
    flex-wrap: wrap; /* Fleksibel di layar kecil */
    gap: 1rem; /* Jarak antar tombol */
}

.nav-button {
    flex: 1; /* Tombol mengisi ruang secara merata */
    padding: 0.8rem 1.3rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); /* Gradient untuk tombol */
    color: white;
    text-decoration: none;
    border-radius: 8px; /* Lebih membulat */
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2); /* Bayangan lembut */
}

.nav-button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%); /* Gradient terbalik saat hover */
    transform: translateY(-3px); /* Angkat saat hover */
    box-shadow: 0 6px 8px rgba(52, 152, 219, 0.3); /* Bayangan lebih dalam */
    color: white;
}

.nav-button.prev {
    margin-right: auto;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%); /* Warna berbeda untuk "prev" */
    box-shadow: 0 4px 6px rgba(149, 165, 166, 0.2);
}

.nav-button.prev:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    box-shadow: 0 6px 8px rgba(149, 165, 166, 0.3);
}


/* Style untuk tombol scroll ke atas */
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); /* Sama dengan header */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s; /* Transisi untuk hover dan posisi */
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Bayangan */
}

#scrollToTop:hover {
    opacity: 1;
    transform: translateY(-3px); /* Angkat sedikit saat hover */
}

#hero {
    text-align: center;
    padding: 2.5rem 1.5rem; /* Sedikit lebih besar */
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%); /* Gradient untuk hero */
    border-radius: 12px 12px 0 0; /* Sudut membulat atas */
    margin-bottom: 2rem;
    color: #2c3e50;
}

#hero h2 {
    color: #2c3e50;
    font-size: 1.8rem; /* Sedikit lebih besar */
    margin-bottom: 0.8rem;
}

#materi ul {
    list-style-type: none;
    padding-left: 0;
}

#materi li {
    margin-bottom: 1rem; /* Lebih jauh */
    padding: 0.8rem; /* Lebih tebal */
    border-left: 4px solid #3498db; /* Garis aksen */
    background-color: #f8f9fa; /* Latar belakang item */
    border-radius: 0 8px 8px 0; /* Sudut membulat */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Transisi saat hover */
}

#materi li:hover {
    transform: translateX(5px); /* Geser sedikit saat hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan saat hover */
}

#materi a {
    text-decoration: none;
    color: #2980b9;
    font-weight: 600; /* Lebih tebal */
    display: block; /* Agar hover merata */
}

#materi a:hover {
    color: #1a5ca3;
    text-decoration: underline;
}


/* Responsif */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
        gap: 0.8rem; /* Lebih rapat di mobile */
    }

    main {
        padding: 1rem; /* Lebih lebar di mobile */
        margin: 1rem;
    }
}