:root {
    --kuning-pastel: #FFF8C9;
    --hijau: #28A745;
    --biru-lembut: #E3F2FD;
    --teks: #333333;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Comic Sans MS', sans-serif; }
body { background-color: var(--kuning-pastel); color: var(--teks); line-height: 1.6; }
.wadah { max-width: 900px; margin: 0 auto; padding: 30px; text-align: center; }
.logo { height: 80px; margin-bottom: 20px; }
h1 { font-size: 2.5rem; color: #5D4037; margin-bottom: 10px; }
button { background: var(--hijau); color: white; border: none; padding: 12px 30px; font-size: 1.1rem; border-radius: 10px; cursor: pointer; margin: 8px; transition: 0.2s; }
button:hover { transform: scale(1.05); }
input { padding: 10px; width: 280px; margin: 8px; border-radius: 8px; border: 2px solid #FFD54F; font-size: 1rem; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-top: 30px; }
.menu-item { background: white; padding: 20px; border-radius: 12px; border: 3px solid #FFD54F; cursor: pointer; transition: 0.2s; }
.menu-item:hover { background: #FFF3E0; transform: translateY(-5px); }

/* ============================================
   LEMATIF - Style Lengkap
   ============================================ */

:root {
    --kuning-pastel: #FFF8C9;
    --kuning-muda: #FFF3E0;
    --hijau: #28A745;
    --hijau-tua: #218838;
    --biru-lembut: #E3F2FD;
    --biru: #2196F3;
    --oren: #FF9800;
    --ungu: #9C27B0;
    --merah: #E91E63;
    --teks: #333333;
    --putih: #FFFFFF;
    --bayangan: 0 4px 15px rgba(0,0,0,0.1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Comic Sans MS', 'Segoe UI', sans-serif; 
}

body { 
    background-color: var(--kuning-pastel); 
    color: var(--teks); 
    line-height: 1.6; 
    min-height: 100vh;
}

.wadah { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 20px; 
}

/* ============= HALAMAN COVER ============= */
.halaman-cover {
    text-align: center;
    padding-top: 20px;
}

.logo-area {
    margin-bottom: 15px;
}

.logo-ump svg {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.kartun-siswa {
    margin: 10px auto;
    animation: melambai 2s ease-in-out infinite;
}

@keyframes melambai {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.judul-utama {
    font-size: 3.5rem;
    color: #5D4037;
    text-shadow: 3px 3px 0 #FFD54F;
    margin-bottom: 5px;
    letter-spacing: 5px;
}

.sub-judul {
    font-size: 1.1rem;
    color: #795548;
    margin-bottom: 5px;
}

.materi {
    font-size: 1.4rem;
    color: #D84315;
    font-weight: bold;
    margin-bottom: 20px;
    background: white;
    display: inline-block;
    padding: 8px 25px;
    border-radius: 25px;
    border: 3px solid #FFD54F;
}

.nama-penyusun {
    margin-bottom: 30px;
    color: #5D4037;
    font-size: 0.95rem;
}

.form-siswa {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--bayangan);
    max-width: 450px;
    margin: 0 auto;
    border: 4px solid #FFD54F;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #5D4037;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #FFD54F;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--hijau);
    box-shadow: 0 0 0 3px rgba(40,167,69,0.2);
}

.tombol-mulai {
    background: var(--hijau);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.3rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 5px 0 var(--hijau-tua);
    transition: 0.1s;
    width: 100%;
}

.tombol-mulai:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--hijau-tua);
}

.tombol-mulai:active {
    transform: translateY(5px);
    box-shadow: none;
}

/* ============= HALAMAN MENU ============= */
.halaman-menu {
    padding-top: 10px;
}

.header-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 3px solid #FFD54F;
}

.info-siswa {
    font-size: 1.1rem;
    color: #5D4037;
    font-weight: bold;
}

.tombol-keluar {
    background: #DC3545;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.tombol-keluar:hover {
    background: #C82333;
}

.judul-menu {
    font-size: 2.2rem;
    color: #5D4037;
    text-align: center;
    margin-bottom: 5px;
}

.petunjuk {
    text-align: center;
    color: #795548;
    margin-bottom: 20px;
}

.papan-tulis {
    text-align: center;
    margin-bottom: 30px;
}

.papan-tulis svg {
    max-width: 100%;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.2));
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.menu-item {
    background: white;
    padding: 25px 15px;
    border-radius: 18px;
    border: 4px solid #FFD54F;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-color: var(--hijau);
}

.menu-ikon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.menu-item h3 {
    color: #5D4037;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.menu-item p {
    font-size: 0.85rem;
    color: #795548;
}

/* ============= HALAMAN MATERI ============= */
.halaman-materi {
    padding-top: 15px;
}

.navigasi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 3px solid #FFD54F;
}

.navigasi h2 {
    color: #5D4037;
    font-size: 1.4rem;
}

.tombol-kembali, .tombol-lanjut {
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.2s;
}

.tombol-kembali {
    background: #6C757D;
    color: white;
}

.tombol-kembali:hover {
    background: #5A6268;
}

.tombol-lanjut {
    background: var(--hijau);
    color: white;
}

.tombol-lanjut:hover {
    background: var(--hijau-tua);
}

.video-container {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 25px;
    border: 3px solid #FFD54F;
    box-shadow: var(--bayangan);
}

.video-placeholder {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.studi-kasus {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 3px solid #FFD54F;
}

.studi-kasus h3 {
    color: #D84315;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.kotak-cerita {
    background: var(--biru-lembut);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.kotak-cerita p {
    margin-bottom: 12px;
}

.soal-masalah {
    background: var(--kuning-muda);
    padding: 18px;
    border-radius: 12px;
    border-left: 5px solid #FF9800;
}

.soal-masalah ol {
    margin-left: 25px;
    margin-top: 10px;
}

.soal-masalah li {
    margin-bottom: 8px;
}

.tab-metode {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 15px;
    border: 3px solid #FFD54F;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    color: #5D4037;
    transition: 0.3s;
    font-size: 1rem;
}

.tab-btn:hover {
    background: var(--kuning-muda);
}

.tab-btn.aktif {
    background: var(--hijau);
    color: white;
    border-color: var(--hijau-tua);
}

.konten-metode {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 3px solid #FFD54F;
}

.konten-metode.aktif {
    display: block;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.konten-metode h3 {
    color: var(--biru);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.langkah {
    margin-left: 25px;
    margin-bottom: 20px;
}

.langkah li {
    margin-bottom: 8px;
}

.pembahasan {
    background: var(--biru-lembut);
    padding: 20px;
    border-radius: 12px;
}

.pembahasan h4 {
    color: #1565C0;
    margin-bottom: 12px;
}

.pembahasan p {
    margin-bottom: 6px;
}

.navigasi-bawah {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    .judul-utama {
        font-size: 2.5rem;
    }
    
    .navigasi {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigasi-bawah {
        flex-direction: column;
    }
    
    .tab-metode {
        flex-direction: column;
    }
    
    .header-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.logo-ump img {
    width: 80px;
    height: auto;
    border-radius: 50%; /* Jika logo bulat, hapus jika tidak perlu */
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.kartun-siswa img {
    width: 50px;
    height: 50px;
    animation: melambai 2s ease-in-out infinite;
}