@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* RESET */
* {
    box-sizing: border-box;
}

:root {
    --nav-height: 90px;
    --primary: #FF9F1C;    /* Oranye Cerah */
    --secondary: #2EC4B6;  /* Biru Langit */
    --accent: #FFBF69;     /* Kuning Pastel */
    --success: #38B000;    /* Hijau Segar */
    --bg-light: #FDFFFC;   /* Putih Bersih */
    --bg-blue: #E0FBFC;    /* Biru Pastel */
    --bg-green: #E8F8F5;   /* Hijau Pastel */
    --bg-orange: #FFF1E6;  /* Oranye Pastel */
    --text-dark: #2B2D42;  /* Biru Gelap/Abu-abu */
    --text-light: #FFFFFF;
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    padding-top: var(--nav-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

section {
    scroll-margin-top: var(--nav-height);
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: var(--bg-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--secondary);
}

.nav-container {
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* BRAND */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 45px;
}

.logo-text {
    color: var(--primary);
    font-weight: 900;
    font-size: 26px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* MENU */
.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links .active {
    color: var(--secondary);
    background: var(--bg-blue);
}

/* BUTTON */
.nav-btn {
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 16px;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 5px 0 #D97A00;
    transition: 0.2s;
}

.nav-btn:active, .nav-btn:hover {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #D97A00;
}

/* ================= HERO ================= */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;

    /* Gradien cerah menutupi background agar lebih fresh */
    background:
        linear-gradient(rgba(128, 186, 189, 0.6), rgba(253, 255, 252, 0.7)),
        url('background.jpg') center/cover no-repeat;
    background-attachment: fixed;

    position: relative;
}

/* TEXT */
.hero-text {
    max-width: 550px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 55px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
    color: #2B2D42;
}

.hero-text span {
    color: var(--secondary);
    color: #FF9F1C;
}

.hero-text p {
   margin-top: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #393939;
}

/* BUTTONS */
.hero-buttons {
    margin-top: 35px;
    display: flex;
    gap: 15px;
}

.btn-primary {
    display: inline-block;
    background: var(--success);
    color: white;
    font-weight: 900;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 0 #207500;
    transition: 0.2s;
    font-size: 18px;
}

.btn-primary:hover, .btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #207500;
}

.btn-secondary {
    display: inline-block;
    background: white;
    color: var(--secondary);
    font-weight: 900;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 0 #188F84, 0 0 0 3px var(--secondary) inset;
    transition: 0.2s;
    font-size: 18px;
}

.btn-secondary:hover, .btn-secondary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #188F84, 0 0 0 3px var(--secondary) inset;
}

/* IMAGE */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 550px;        
    max-width: 100%;     
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(46, 196, 182, 0.3));
    animation: float 3s ease-in-out infinite;
}

/* ================= RESPONSIVE HERO ================= */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }
    .hero-text h1 {
        font-size: 40px;
    }
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-image img {
        width: 300px;
        margin-top: 40px;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ================= MATERI ================= */
#materi {
    padding: 80px 60px;
    background: var(--bg-green);
}

/* JUDUL */
#materi h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    color: var(--success);
    margin-bottom: 50px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

/* CARD UTAMA */
.materi-card {
    background: white;
    border-radius: 30px;
    border: 4px solid var(--accent);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 0 var(--accent);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.materi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 0 var(--accent);
}

/* SUB JUDUL */
.materi-card h3 {
    color: var(--primary);
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 15px;
}

.materi-card h4 {
    margin-top: 25px;
    color: var(--secondary);
    font-size: 20px;
    font-weight: 800;
}

/* PARAGRAF & LIST */
.materi-card p {
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
}

.materi-card ul {
    padding-left: 25px;
    font-weight: 600;
}

.materi-card li {
    margin-bottom: 12px;
}

/* ================= GRID GAMBAR ================= */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.image-grid div {
    background: white;
    border-radius: 25px;
    border: 4px solid var(--bg-blue);
    padding: 15px;
    text-align: center;
    box-shadow: 0 8px 0 var(--bg-blue);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-grid img {
    width: 100%;
    border-radius: 15px;
}

.image-grid h5 {
    margin-top: 15px;
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
}

/* ================= TABLE ================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

th {
    background: var(--success);
    color: white;
    padding: 15px;
    font-weight: 800;
    font-size: 18px;
}

td {
    padding: 15px;
    border-bottom: 2px solid var(--bg-green);
    background: white;
    font-weight: 600;
}



/* ===== GRID BUTTON ===== */
.materi-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.materi-btn {
    padding: 16px 32px;
    background: var(--secondary);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 6px 0 #188F84;
    transition: 0.2s;
}

.materi-btn:hover, .materi-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #188F84;
}

/* ===== POPUP ===== */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(43, 45, 66, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9999; 
    backdrop-filter: blur(5px);
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    width: 85%;
    max-width: 900px;
    padding: 40px;
    border-radius: 35px;
    border: 6px solid var(--primary);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 0 var(--primary);
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 900;
    transition: 0.2s;
    z-index: 10000;
}
.close:hover {
    color: var(--primary);
    transform: scale(1.2);
}

.popup-content .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.popup-content img {
    width: 100%;
    border-radius: 15px;
}

/* ================= SUMBER PREMIUM ================= */
#sumber {
    padding: 80px 60px;
    background: var(--bg-light);
}

#sumber h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
}

#sumber h3 {
    text-align: center;
    color: var(--success);
    font-weight: 800;
    font-size: 28px;
    margin-top: 50px;
    margin-bottom: 30px;
}

/* GRID VIDEO */
.sumber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

/* CARD */
.sumber-card {
    background: white;
    border-radius: 30px;
    border: 4px solid var(--secondary);
    overflow: hidden;
    box-shadow: 0 10px 0 var(--secondary);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* BADGE */
.sumber-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 0 #D97A00;
    z-index: 10;
}

/* THUMBNAIL */
.video-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 4px solid var(--secondary);
}

/* CONTENT */
.sumber-content {
    padding: 25px;
}

.sumber-content h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 20px;
}

.sumber-content p {
    color: #4A4E69;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* BUTTON */
.btn-sumber {
    display: inline-block;
    padding: 12px 24px;
    background: var(--success);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 5px 0 #207500;
    transition: 0.2s;
}

.btn-sumber:hover, .btn-sumber:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #207500;
}

/* ================= SECTION BESAR ================= */
.sumber-large {
    margin-top: 40px;
    border-radius: 30px;
    border: 5px solid var(--accent);
    overflow: hidden;
    box-shadow: 0 12px 0 var(--accent);
    transition: 0.3s;
    background: white;
}


.sumber-large iframe {
    width: 100%;
    height: 550px;
    border: none;
    display: block;
}


/* ===== BOX UTAMA POPUP ===== */
.popup-box {
    width: 90%;
    height: 90vh;
    margin: auto;
    margin-top: 40px;
    background: white;
    border-radius: 35px;
    border: 6px solid var(--secondary);
    box-shadow: 0 20px 0 var(--secondary);
    display: flex;
    overflow: hidden;
    transform: translateY(50px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup:target .popup-box {
    transform: translateY(0);
}

/* CONTENT */
.popup-main {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.popup-main h2 {
    color: var(--primary);
    font-weight: 900;
    font-size: 32px;
}

/* CLOSE BUTTON (POPUP-BOX) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    text-decoration: none;
    color: white;
    font-weight: 900;
    z-index: 10000;
    background: var(--primary);
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 0 #D97A00;
}
.close-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #D97A00;
}

/* IMAGE GRID IN POPUP */
.popup-main .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.popup-main img {
    width: 100%;
    border-radius: 15px;
    transition: 0.3s;
}


/* THUMBNAIL VIDEO (Popups) */
.video-thumb {
    position: relative;
    display: block;
    cursor: pointer;
}

.video-thumb img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    font-size: 35px;
    padding: 15px 20px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 6px 0 rgba(0,0,0,0.2);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== POPUP FULLSCREEN ===== */
.video-popup {
    position: fixed;
    inset: 0;
    background: rgba(43, 45, 66, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9999;
}

.video-popup:target {
    opacity: 1;
    visibility: visible;
}

.video-box {
    width: 80%;
    max-width: 1000px;
    aspect-ratio: 16/9;
}

.video-box iframe {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 5px solid var(--secondary);
    box-shadow: 0 15px 0 var(--secondary);
}

.video-close {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 50px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
    transition: 0.2s;
}
.video-close:hover {
    transform: scale(1.2);
}

/* ================= BANK SOAL PREMIUM ================= */
#soal {
    padding: 80px 60px;
    background: var(--bg-orange);
    text-align: center;
}

#soal h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

.soal-desc {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 18px;
    margin-top: 15px;
}

/* WRAPPER */
.quiz-wrapper {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: stretch;
}

/* INFO BOX */
.quiz-info {
    background: white;
    border-radius: 30px;
    border: 4px solid var(--primary);
    padding: 35px;
    text-align: left;
    box-shadow: 0 10px 0 var(--primary);
}

.quiz-info h3 {
    color: var(--secondary);
    font-weight: 900;
    font-size: 26px;
    margin-bottom: 20px;
}

.quiz-info ul {
    margin-top: 15px;
    padding-left: 20px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.8;
}

.quiz-info li {
    margin-bottom: 15px;
}

/* QUIZ */
.quiz-container {
    width: 100%;
}

.quiz-card {
    width: 100%;
    background: white;
    border-radius: 30px;
    border: 4px solid var(--secondary);
    overflow: hidden;
    box-shadow: 0 10px 0 var(--secondary);
    transition: 0.3s;
}

.quiz-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 0 var(--secondary);
}

.quiz-card iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    display: block;
    aspect-ratio: 16/9;
}

.quiz-card {
    display: block;
    width: 100%;
}

.quiz-wrapper {
    grid-template-columns: 1fr 1.5fr;
}

/* HEADER QUIZ */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* BUTTON FULLSCREEN */
.btn-full {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 5px 0 #D97A00;
    transition: 0.2s;
}

.btn-full:hover, .btn-full:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #D97A00;
}

/* ===== TAMBAHAN UNTUK ZOOM QUIZ ===== */

/* overlay hover */
.zoom-trigger {
    position: relative;
    display: block;
}

.zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    color: white;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    border-radius: 30px;
    transition: 0.3s;
    pointer-events: none;
}

.zoom-trigger:hover .zoom-overlay {
    opacity: 1;
}

/* popup fullscreen */
.quiz-zoom {
    position: fixed;
    inset: 0;
    background: rgba(43, 45, 66, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9999;
}

.quiz-zoom:target {
    opacity: 1;
    visibility: visible;
}

/* isi popup */
.zoom-content {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: white;
    border-radius: 30px;
    border: 5px solid var(--secondary);
    box-shadow: 0 15px 0 var(--secondary);
    overflow: hidden;
}

.zoom-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* tombol close */
.zoom-close {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 45px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
}

/* ================= PROFIL ================= */
#profil {
    padding: 100px 20px;
    background: var(--bg-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

/* CARD */
.profil-card {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 50px;
    border-radius: 40px;
    max-width: 950px;
    width: 100%;
    background: white;
    border: 5px solid var(--secondary);
    box-shadow: 0 15px 0 var(--secondary);
}

/* FOTO */
.profil-img img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--primary);
    box-shadow: 0 10px 0 var(--primary);
}

/* INFO */
.profil-info h2 {
    margin-bottom: 12px;
    color: var(--success);
    font-weight: 900;
    font-size: 34px;
}

.profil-info p {
    margin: 8px 0;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 18px;
}

/* DESKRIPSI */
.profil-desc {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-green);
    border-radius: 20px;
    border: 3px solid var(--success);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}

.profil-card {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUpProfil 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeUpProfil {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profil-img img {
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.3s;
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================= KELAS MAYA (LOGIN) ================= */
#kelas-login {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-blue);
    padding: 60px 20px;
}

.login-wrapper {
    display: flex;
    background: white;
    max-width: 1000px;
    width: 100%;
    border-radius: 40px;
    border: 5px solid var(--secondary);
    box-shadow: 0 15px 0 var(--secondary);
    overflow: hidden;
}

/* GAMBAR LOGIN */
.login-image {
    flex: 1;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    border-right: 5px solid var(--secondary);
}

.login-image img {
    width: 100%;
    max-width: 350px;
    animation: float 4s ease-in-out infinite;
}

/* FORM LOGIN */
.login-form {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form h2 {
    color: var(--primary);
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 10px;
}

.login-form p {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 900;
    color: var(--success);
    margin-bottom: 8px;
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 20px;
    border: 4px solid var(--bg-blue);
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: 0.3s;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary);
    background: white;
}

.btn-login {
    width: 100%;
    background: var(--primary);
    color: white;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 20px;
    padding: 18px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 0 #D97A00;
    transition: 0.2s;
    margin-top: 10px;
}

.btn-login:hover, .btn-login:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #D97A00;
}

.login-help {
    text-align: center;
    margin-top: 25px;
}

.login-help a {
    color: var(--secondary);
    font-weight: 800;
    text-decoration: none;
    font-size: 16px;
}

.login-help a:hover {
    text-decoration: underline;
}

/* ================= WIKI (ENSIKLOPEDIA) ================= */
#wiki {
    padding: 80px 60px;
    background: var(--bg-blue);
    flex: 1;
}

.wiki-header {
    text-align: center;
    margin-bottom: 50px;
}

.wiki-header h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

.wiki-header p {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.wiki-card {
    background: white;
    border-radius: 30px;
    border: 5px solid var(--secondary);
    box-shadow: 0 12px 0 var(--secondary);
    overflow: hidden;
    transition: 0.3s;
}

.wiki-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 5px solid var(--secondary);
}

.wiki-content {
    padding: 30px;
    text-align: center;
}

.wiki-content h3 {
    color: var(--success);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
}

.wiki-content p {
    color: #4A4E69;
    font-weight: 600;
    margin-bottom: 25px;
}

.btn-wiki {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    border-radius: 25px;
    box-shadow: 0 5px 0 #D97A00;
    transition: 0.2s;
}

.btn-wiki:hover, .btn-wiki:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #D97A00;
}

/* ================= FOOTER ================= */
footer {
    background: var(--secondary);
    color: white;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 10;
    border-top: 5px solid #188F84;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 50px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--bg-light);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.footer-col p {
    margin: 10px 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-bottom {
    background: #188F84;
    text-align: center;
    padding: 20px;
}

.footer-bottom p {
    margin: 0;
    font-weight: 800;
    font-size: 15px;
}

/* ================= RESPONSIVE GENERAL ================= */
@media (max-width: 768px) {
    #materi, #sumber, #soal, #wiki {
        padding: 60px 20px;
    }

    #materi h2, #sumber h2, #soal h2 {
        font-size: 32px;
    }

    .profil-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .profil-img img {
        width: 150px;
        height: 150px;
    }

    .quiz-wrapper {
        grid-template-columns: 1fr;
    }

    .sumber-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
    }

    .sumber-card {
        min-width: 300px;
        flex: 0 0 auto;
        scroll-snap-align: center;
    }

    .sumber-grid::-webkit-scrollbar {
        display: none;
    }

    #kelas-login {
        padding: 40px 20px;
    }

    .login-wrapper {
        flex-direction: column;
    }
    
    .login-image {
        border-right: none;
        border-bottom: 5px solid var(--secondary);
        padding: 30px;
    }
    
    .login-image img {
        width: 200px;
    }
    
    .login-form {
        padding: 40px 25px;
    }
    
    .login-form h2 {
        font-size: 28px;
    }

    .footer-container {
        padding: 40px 20px;
        text-align: center;
    }

    .footer-links a:hover {
        padding-left: 0;
        text-decoration: underline;
    }
}