/* ==========================================================================
   1. GLOBAL STYLES & VARIABLES
   ========================================================================== */
:root {
    --primary: #0D47A1;
    --primary-dark: #0a367a;
    --accent: orange;
    --text-light: #ffffff;
    --text-dark: #333333;
    --border-color: #d5d9e0;
    --khan-link-color: #1865f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 80px; 
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* ==========================================================================
   2. NAVBAR / HEADER
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--primary);
    color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 150px; 
}

header .logo img {
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.05);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

header nav a {
    margin: 0 10px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login-header {
    display: inline-block;
    cursor: pointer;
    padding: 8px 24px;
    background-color: #0022ff;
    color: white !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-login-header:hover {
    background-color: #0019b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Profile Dropdown */
.profile-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--text-light);
}

.profile-dropdown-container {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    min-width: 220px;
    padding: 10px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1050;
}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a, 
.dropdown-content button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 20px;
    background: none;
    border: none;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.dropdown-content a:hover {
    background: #f5f5f5;
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background-color: #E2E8F0;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: var(--primary-dark);
    z-index: 999;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 15px 5%;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   3. HOME / DASHBOARD HERO & SECTIONS
   ========================================================================== */
.dashboard-hero {
    position: relative;
    width: 100%;
    height: 650px;
    display: flex;
    align-items: center;
    margin-top: 0;
    overflow: hidden;
    background-color: #0D47A1;
    background-image: url('/storage/image/school-bg.png');
    background-blend-mode: multiply;
    background-position: center;
    background-size: cover;
    clip-path: ellipse(110% 100% at 50% 0%);
}

.dashboard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #0D47A1 60%, rgba(13, 71, 161, 0.2) 100%);
    z-index: 1;
}

.dashboard-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 5%;
    z-index: 2;
}

.dashboard-text {
    flex: 2;
    max-width: 100%;
    padding-right: 20px;
    margin-top: 20px;
    color: white;
    z-index: 10;
}

.dashboard-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.dashboard-text p {
    max-width: 850px;
    margin-bottom: 35px;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    color: #f0f0f0;
}

.btn-hero {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #212121;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.dashboard-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
    position: relative;
}

.dashboard-image-wrapper img {
    position: absolute;
    bottom: 0px;
    right: -50px;
    width: auto;
    height: auto;
    max-height: 85%;
    object-fit: contain;
}

.section {
    padding: 100px 10% 80px 10%;
    text-align: center;
}

.section-title {
    margin-bottom: 15px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #666;
}

.btn-fitur {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    border-radius: 30px;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.2);
    transition: all 0.3s ease;
}

.btn-fitur:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.feature-card { 
    padding: 30px; 
    background: #fff; 
    border-radius: 15px; 
    border: 1px solid #eee; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    transition: transform 0.3s; 
}

.feature-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary); 
}

.feature-card__icon { 
    margin-bottom: 20px; 
    font-size: 2.5rem; 
    color: var(--primary); 
}

.stats-section { 
    padding: 60px 10%; 
    background: #f9f9f9; 
    text-align: center; 
}

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
}

.stat-item__number { 
    font-size: 3rem; 
    font-weight: 800; 
    color: var(--accent); 
}

.cards { 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 30px; 
}

.card { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 280px; 
    padding: 30px 20px; 
    background: #ffffff; 
    border-radius: 15px; 
    color: var(--text-dark); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    text-align: center; 
    transition: transform 0.3s ease; 
}

.card:hover { 
    transform: translateY(-10px); 
}

.card .logo img { 
    width: 70px; 
    height: 70px; 
    margin-bottom: 15px; 
    object-fit: contain; 
}

.card h3 { 
    margin: 15px 0; 
    font-size: 1.2rem; 
    color: var(--primary); 
}

.card p { 
    font-size: 0.95rem; 
    color: #666; 
}
.quiz {
  padding: 80px 10%;
  background: var(--primary);
  color: var(--text-light);
  text-align: center;
}

.quiz h2 {
  margin-bottom: 50px;
  font-size: 2.2rem;
  font-weight: 700;
}
/* ==========================================================================
   CARA BELAJAR SECTION (HOW IT WORKS)
   ========================================================================== */
.how-it-works {
    background-color: #f0f7ff; /* Warna latar biru sangat muda agar beda dengan section lain */
    border-top: 1px solid #e1effe;
    border-bottom: 1px solid #e1effe;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1150px;
    margin: 0 auto;
    padding-top: 30px;
}

.step-card {
    position: relative;
    background: #ffffff;
    padding: 40px 30px 30px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--primary);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(13, 71, 161, 0.15);
}

/* Lingkaran angka di atas kotak */
.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.4);
    border: 3px solid #ffffff;
}

.step-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    margin-top: 5px;
}

.step-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.step-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Animasi mengambang untuk icon */
.step-card:hover .step-icon i {
    animation: float 2s ease-in-out infinite;
}

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

/* ==========================================================================
   4. ABOUT PAGE
   ========================================================================== */
.hero-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    padding: 5% 10%;
    background: var(--primary);
    color: white;
    text-align: center;
    clip-path: ellipse(100% 100% at 50% 0%);
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeSlide 1s ease-out forwards;
}

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

.hero-about h2 { 
    margin-bottom: 20px; 
    font-size: 3rem; 
    font-weight: 800; 
}

.hero-about p { 
    max-width: 800px; 
    margin: 0 auto; 
    font-size: 1.2rem; 
    font-weight: 300; 
    line-height: 1.8; 
}

.fitur { 
    padding: 60px 40px; 
    text-align: center; 
}

.fitur h3 { 
    margin-bottom: 15px; 
    font-size: 2rem; 
    color: var(--primary); 
}

.fitur p { 
    max-width: 700px; 
    margin: auto; 
    font-size: 1.1rem; 
    color: #666; 
}

.tools, .quiz-about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 80px 10%;
}

.quiz-about { 
    background: var(--primary); 
    color: white; 
}

.tools-text, .quiz-text { 
    max-width: 500px; 
}

.quiz-text { 
    text-align: right; 
}

.tools-text h3, .quiz-text h3 { 
    margin-bottom: 15px; 
    font-size: 2rem; 
}

.tools img, .quiz-about img { 
    width: 100%; 
    max-width: 400px; 
    border-radius: 15px; 
}

/* ==========================================================================
   5. VIDEO LIST (YOUTUBE STYLE) & FILTERS
   ========================================================================== */
.filter-section {
    position: relative;
    margin-top: -60px;
    padding: 0 5%;
    z-index: 20;
}

.filter-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 25px;
    background: #07357aff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-select {
    width: 250px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 0.95rem;
    color: #333;
}

.btn-filter {
    padding: 12px 30px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-filter:hover { 
    background-color: #d6751d; 
}

.content { 
    min-height: 500px; 
    padding: 60px 5%; 
}

.yt-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.yt-video-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s;
}

.yt-video-card:hover { 
    transform: translateY(-5px); 
}

.yt-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 12px;
    background-color: #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.yt-thumbnail-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.yt-video-info { 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
}

.yt-video-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #0f0f0f;
}

.yt-video-meta { 
    display: flex; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 5px; 
    font-size: 13px; 
    color: #606060; 
}

.yt-badge { 
    padding: 2px 8px; 
    border-radius: 4px; 
    font-size: 11px; 
    font-weight: 500; 
}

.yt-badge.material { 
    background-color: #e3f2fd; 
    color: #1565c0; 
}

.yt-badge.level { 
    background-color: #f3e5f5; 
    color: #7b1fa2; 
}
/* ==========================================================================
   INFO ALERT (PETUNJUK GEMBOK & KUIS)
   ========================================================================== */
.info-alert {
    display: flex;
    align-items: center;
    background-color: #fffbeb; /* Kuning sangat muda yang lembut */
    border-left: 5px solid var(--accent); /* Garis oranye di kiri */
    padding: 15px 25px;
    border-radius: 8px;
    margin: 40px auto 40px auto; /* Memberi jarak dengan grid video di bawahnya */
    max-width: 1000px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.info-alert:hover {
    transform: translateY(-3px);
}

.info-icon {
    font-size: 2rem;
    color: var(--accent); /* Warna oranye */
    margin-right: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

.info-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.info-text strong {
    color: var(--primary); /* Teks tebal warna biru Edumath */
}

/* Animasi cahaya berkedip untuk ikon lampu */
@keyframes glow {
    from { text-shadow: 0 0 5px rgba(255, 165, 0, 0.2); }
    to { text-shadow: 0 0 15px rgba(255, 165, 0, 0.8); }
}

/* Penyesuaian untuk layar HP */
@media (max-width: 768px) {
    .info-alert {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .info-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
/* ==========================================================================
   BADGE GEMBOK PADA THUMBNAIL VIDEO
   ========================================================================== */
.yt-thumbnail-container {
    position: relative; /* Pastikan ini ada agar gembok bisa absolute */
}

.video-locked-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(239, 68, 68, 0.9); /* Merah terang dengan sedikit transparansi */
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 10;
    backdrop-filter: blur(4px); /* Efek kaca kekinian */
}
/* ==========================================================================
   6. VIDEO PLAYER (SHOW PAGE)
   ========================================================================== */
.slebew {
    padding: 95px 2% 40px 2%;
    background-color: var(--primary);
    color: white;
    text-align: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin-bottom: 40px;
}

.video-frame-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 0;
    padding-bottom: 56.25%;
    margin: 0 auto 20px auto;
    max-height: 80vh;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

@media (min-aspect-ratio: 16/9) {
    .video-frame-container { 
        height: 56.25vw; 
        padding-bottom: 0; 
        max-height: 620px; 
    }
}

.video-frame-container iframe,
.video-frame-container video {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: 0; 
    object-fit: contain;
}

.video-info { 
    width: 100%; 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 10px; 
    text-align: left; 
}

.video-info h3 { 
    margin-bottom: 5px; 
    font-size: 1.8rem; 
    font-weight: 700; 
}

.video-info p { 
    font-size: 0.95rem; 
    opacity: 0.9; 
}

.video-container { 
    display: flex; 
    gap: 30px; 
    max-width: 1150px; 
    margin: 0 auto 60px auto; 
    padding: 0 20px; 
    align-items: flex-start; 
}

.desc-box { 
    flex: 2; 
    padding: 25px; 
    background: white; 
    border: 1px solid #eee; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.desc-box h3 { 
    margin-bottom: 15px; 
    padding-bottom: 10px; 
    color: var(--primary); 
    border-bottom: 2px solid #f0f0f0; 
}

.desc-box p { 
    font-size: 0.95rem; 
    line-height: 1.7; 
    color: #555; 
    white-space: pre-wrap; 
}

.btn-quiz-link { 
    display: inline-block; 
    margin-top: 20px; 
    padding: 10px 25px; 
    background-color: var(--accent); 
    color: white; 
    font-weight: 600; 
    text-decoration: none; 
    border-radius: 8px; 
    transition: background 0.3s; 
}

.btn-quiz-link:hover { 
    background-color: #d67618; 
}

.video-list { 
    flex: 1; 
    padding: 20px; 
    background: white; 
    border: 1px solid #eee; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.list-title { 
    margin-bottom: 20px; 
    padding-left: 10px; 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: #333; 
    border-left: 4px solid var(--primary); 
}

.video-card-small { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    margin-bottom: 20px; 
    color: inherit; 
    text-decoration: none; 
    transition: transform 0.2s; 
}

.video-card-small:hover { 
    transform: translateX(5px); 
}

.video-card-small img { 
    width: 100%; 
    aspect-ratio: 16/9; 
    object-fit: cover; 
    border-radius: 8px; 
}

.video-card-small h4 { 
    font-size: 0.9rem; 
    font-weight: 600; 
    line-height: 1.4; 
    color: #333; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

/* ==========================================================================
   7. QUIZ LIST (KHAN ACADEMY STYLE)
   ========================================================================== */
.container { 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
    flex-grow: 1; 
}

.quiz-section-title { 
    margin-bottom: 40px; 
    font-size: 2rem; 
    font-weight: 700; 
    color: #1d2234; 
    text-align: center; 
}

.khan-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px 60px; 
    align-items: start; 
}

.khan-category-block { 
    margin-bottom: 20px; 
}

.khan-category-header { 
    display: flex; 
    align-items: center; 
    padding-bottom: 15px; 
    margin-bottom: 20px; 
    border-bottom: 1px solid var(--border-color); 
    cursor: pointer; 
    transition: opacity 0.2s; 
}

.khan-category-header:hover { 
    opacity: 0.8; 
}

.khan-icon { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background-color: #ffb100; 
    color: white; 
    font-size: 18px; 
    margin-right: 15px; 
    flex-shrink: 0; 
}

.khan-title { 
    font-size: 1.3rem; 
    font-weight: 600; 
    color: var(--text-dark); 
    flex-grow: 1; 
}

.khan-chevron { 
    color: var(--text-dark); 
    font-size: 1rem; 
    transition: transform 0.3s ease; 
}

.khan-links-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px 20px; 
}

.khan-link-item { 
    list-style: none; 
}

.khan-link { 
    text-decoration: none; 
    color: #4a5568; 
    font-size: 0.95rem; 
    transition: color 0.2s ease; 
    display: flex; 
    align-items: flex-start; 
    gap: 8px; 
    line-height: 1.4; 
    padding: 5px 0; 
}

.khan-link:hover { 
    color: var(--khan-link-color); 
}

.khan-link:hover .khan-link-text { 
    text-decoration: underline; 
}

.khan-link-text { 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

/* Icon Jenis Soal */
.quiz-type-icons { 
    display: flex; 
    gap: 4px; 
    flex-shrink: 0; 
    margin-top: 2px; 
}

.q-icon { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 20px; 
    height: 20px; 
    border-radius: 4px; 
    color: white; 
    font-size: 10px; 
}

.q-mc { background-color: #0ea5e9; }
.q-tf { background-color: #10b981; }
.q-es { background-color: #f59e0b; }

/* ==========================================================================
   8. QUIZ EXECUTION (PLAYER/SOAL)
   ========================================================================== */
.main-wrapper { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    width: 100%; 
    padding: 40px 20px; 
}

.quiz-layout { 
    display: flex; 
    align-items: flex-start; 
    gap: 30px; 
    width: 100%; 
    max-width: 1100px; 
}

/* Sidebar Navigasi */
.quiz-sidebar { 
    flex: 0 0 280px; 
    position: sticky; 
    top: 100px; 
    padding: 25px; 
    background: white; 
    border-radius: 16px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
}

.sidebar-title { 
    margin-bottom: 15px; 
    padding-bottom: 10px; 
    font-size: 1rem; 
    font-weight: 600; 
    color: #444; 
    border-bottom: 2px solid #f0f0f0; 
}

.nav-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 10px; 
}

.nav-item { 
    aspect-ratio: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    background-color: #fff; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    font-weight: 500; 
    font-size: 0.9rem; 
    color: #555; 
    cursor: pointer; 
    transition: all 0.2s; 
}

.nav-item:hover { 
    background-color: #f0f0f0; 
    border-color: #ccc; 
}

.nav-item.active { 
    background-color: var(--primary) !important; 
    color: white !important; 
    border-color: var(--primary) !important; 
    transform: scale(1.1); 
    z-index: 2; 
}

.nav-item.answered { 
    background-color: #198754; 
    color: white; 
    border-color: #198754; 
}

.nav-item.skipped { 
    background-color: #dc3545; 
    color: white; 
    border-color: #dc3545; 
}

/* Timer */
.timer-wrapper { 
    margin-top: 30px; 
    padding: 15px; 
    background: #ebf8ff; 
    border: 1px solid #bee3f8; 
    border-radius: 8px; 
    text-align: center; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
}

.timer-title { 
    margin-bottom: 5px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: #2b6cb0; 
    text-transform: uppercase; 
}

.timer-display { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #2c5282; 
    line-height: 1; 
}

.timer-display.critical { 
    color: #e53e3e; 
    animation: pulse 1s infinite; 
}

/* Konten Soal */
.quiz-content { 
    flex: 1; 
    min-width: 0; 
    padding: 40px; 
    background: white; 
    border-radius: 16px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
}

.quiz-header-info { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
}

.badge-soal { 
    padding: 6px 15px; 
    background: #e3f2fd; 
    color: var(--primary); 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 600; 
}

.question-text { 
    margin-bottom: 30px; 
    font-size: 1.25rem; 
    font-weight: 600; 
    line-height: 1.6; 
    color: #222; 
}

/* Pilihan Jawaban & Essay */
.choice-container { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.choice-item input[type="radio"] { 
    display: none; 
}

.choice-label { 
    position: relative; 
    display: flex; 
    align-items: center; 
    padding: 15px 20px; 
    border: 2px solid #eaecf0; 
    border-radius: 12px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
}

.choice-label:hover { 
    background-color: #f9fafb; 
    border-color: #d0d5dd; 
}

.choice-item input[type="radio"]:checked + .choice-label { 
    border-color: var(--primary); 
    background-color: #f0f7ff; 
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1); 
}

.choice-indicator { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 20px; 
    height: 20px; 
    margin-right: 15px; 
    border: 2px solid #ccc; 
    border-radius: 50%; 
    flex-shrink: 0; 
}

.choice-indicator::after { 
    content: ''; 
    display: none; 
    width: 10px; 
    height: 10px; 
    background: var(--primary); 
    border-radius: 50%; 
}

.choice-item input[type="radio"]:checked + .choice-label .choice-indicator { 
    border-color: var(--primary); 
}

.choice-item input[type="radio"]:checked + .choice-label .choice-indicator::after { 
    display: block; 
}

.essay-input { 
    width: 100%; 
    min-height: 150px; 
    padding: 15px; 
    font-size: 1rem; 
    line-height: 1.5; 
    color: #333; 
    background-color: #fff; 
    border: 2px solid #eaecf0; 
    border-radius: 12px; 
    resize: vertical; 
    transition: border-color 0.2s ease, box-shadow 0.2s ease; 
}

.essay-input:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1); 
}

/* Tombol Navigasi Soal Bawah */
.quiz-actions { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 40px; 
    padding-top: 20px; 
    border-top: 1px solid #eee; 
}

.btn { 
    padding: 12px 24px; 
    border: none; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 0.95rem; 
    cursor: pointer; 
    transition: transform 0.2s, box-shadow 0.2s; 
}

.btn:active { 
    transform: scale(0.98); 
}

.btn-prev { 
    background: #f2f4f7; 
    color: #475467; 
}

.btn-prev:hover { 
    background: #eaecf0; 
}

.btn-next { 
    background: var(--primary); 
    color: white; 
}

.btn-next:hover { 
    background: var(--primary-dark); 
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2); 
}

.btn-submit { 
    background: #12b886; 
    color: white; 
}

.btn-submit:hover { 
    background: #0ca678; 
    box-shadow: 0 4px 12px rgba(18,184,134,0.2); 
}

.question-block { 
    display: none; 
}

.question-block.active { 
    display: block; 
    animation: fadeIn 0.3s ease; 
}

/* ==========================================================================
   9. QUIZ RESULTS & REVIEW
   ========================================================================== */
.results-container { 
    max-width: 850px; 
    margin: 40px auto; 
    padding: 40px; 
    background: #fff; 
    border-radius: 16px; 
    box-shadow: 0 4px 25px rgba(0,0,0,0.08); 
    text-align: center; 
    flex-grow: 1; 
}

.results-container h2 { 
    font-size: 2.2rem; 
    margin-bottom: 10px; 
    font-weight: 700; 
}

.score-circle { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 160px; 
    height: 160px; 
    margin: 30px auto; 
    border-radius: 50%; 
    color: white; 
    font-size: 3.5rem; 
    font-weight: 800; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.score-summary { 
    margin-bottom: 35px; 
    font-size: 1.2rem; 
    color: #555; 
}

.warning-text { 
    color: #d97706; 
    background-color: #fef3c7; 
    padding: 10px 20px; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 0.95rem; 
    margin: -20px auto 30px auto; 
    display: inline-block; 
}

.results-actions { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 50px; 
}

/* Review Section */
.review-section { 
    text-align: left; 
    border-top: 2px solid #f0f0f0; 
    padding-top: 35px; 
}

.review-section h3 { 
    font-size: 1.5rem; 
    margin-bottom: 25px; 
    color: var(--primary-dark); 
}

.review-question { 
    margin-bottom: 30px; 
    padding: 20px; 
    border-radius: 12px; 
    background: #fafafa; 
}

.review-question p { 
    font-size: 1.05rem; 
    font-weight: 600; 
    margin-bottom: 15px; 
    color: #222; 
}

.review-choice { 
    padding: 12px 18px; 
    border-radius: 8px; 
    margin-bottom: 10px; 
    border: 1px solid #ddd; 
    font-size: 0.95rem; 
}

.user-answer.wrong { 
    background-color: #f8d7da; 
    border-color: #f5c2c7; 
    color: #842029; 
}

.correct-answer { 
    background-color: #d1e7dd; 
    border-color: #badbcc; 
    color: #0f5132; 
    font-weight: 600; 
}

.essay-answer { 
    background-color: #e2e3e5; 
    border-color: #d6d8db; 
    color: #383d41; 
}

.essay-status { 
    background-color: #cff4fc; 
    border-color: #b6effb; 
    color: #055160; 
    font-weight: 600; 
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 5%; 
    background: #1a1f2e;
    color: white;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer nav { 
    display: flex; 
    gap: 25px; 
}

footer nav a { 
    color: rgba(255,255,255,0.7); 
    text-decoration: none; 
    transition: 0.3s; 
}

footer nav a:hover { 
    color: white; 
}

footer .top-btn { 
    padding: 8px 16px; 
    background: #007bff; 
    color: white; 
    border-radius: 20px; 
    text-decoration: none; 
}

/* ==========================================================================
   11. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    header { padding: 0 5%; }
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .dashboard-text h1 { font-size: 2.8rem; }
    .dashboard-image-wrapper img { right: -150px; opacity: 0.6; }
    .video-container { flex-direction: column; }
    .video-list { width: 100%; }
}

@media (max-width: 768px) {
    /* Hero / Dashboard */
    .dashboard-hero { 
        height: auto; 
        flex-direction: column; 
        padding-top: 100px; 
        padding-bottom: 60px; 
        background-position: center; 
    }
    
    .dashboard-overlay { 
        background: linear-gradient(to bottom, #0D47A1 50%, rgba(13, 71, 161, 0.5) 100%); 
    }
    
    .dashboard-text { 
        flex: none; 
        width: 100%; 
        padding-right: 0; 
        margin-bottom: 30px; 
        text-align: center; 
    }
    
    .dashboard-image-wrapper { 
        flex: none; 
        width: 100%; 
        height: 350px; 
        justify-content: center; 
    }
    
    .dashboard-image-wrapper img { 
        position: relative; 
        right: auto; 
        max-height: 100%; 
        opacity: 1; 
    }
    
    /* About */
    .hero-about { 
        height: auto; 
        padding: 100px 20px; 
        clip-path: ellipse(150% 100% at 50% 0%); 
    }
    
    .tools, .quiz-about { 
        flex-direction: column; 
        text-align: center; 
        gap: 40px; 
    }
    
    .quiz-text { 
        order: 2; 
        text-align: center; 
    }
    
    .quiz-about img { 
        order: 1; 
    }

    /* Video & Quizzes */
    .filter-box { 
        flex-direction: column; 
        width: 90%; 
    }
    
    .form-select, .btn-filter { 
        width: 100%; 
    }
    
    .slebew { 
        padding: 90px 5% 30px 5%; 
        border-radius: 0 0 25px 25px; 
    }
    
    .video-info { 
        text-align: center; 
    }
    
    .khan-grid, .khan-links-container { 
        grid-template-columns: 1fr; 
    }
    
    .quiz-layout { 
        flex-direction: column-reverse; 
    }
    
    .quiz-sidebar { 
        position: static; 
        width: 100%; 
        margin-bottom: 20px; 
    }
    
    .nav-grid { 
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); 
    }
    
    .results-actions { 
        flex-direction: column; 
    }

    /* General Layout */
    .features-grid, .stats-grid, .cards { 
        grid-template-columns: 1fr; 
        flex-direction: column; 
        align-items: center; 
    }
    
    footer { 
        flex-direction: column; 
        gap: 30px; 
        text-align: center; 
        margin-top: 50px; 
    }
}

/* Animations */
.reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.8s ease-out; 
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}