


/* =============== QUIZ SECTION =============== */
.quiz {
    padding: 100px 20px;
    background: linear-gradient(120deg, var(--background-gradient-start), var(--background-gradient-end));
    font-family: 'Poppins', sans-serif;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-shadow: 1px 1px 5px var(--highlight-color);
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.quiz-card {
    max-width: 540px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 45px 30px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.quiz-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--highlight-color), var(--accent-color));
    border-radius: 12px;
    transition: width 0.5s ease;
}

.quiz-question {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-option {
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    background: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(199, 62, 62, 0.3);
}

.quiz-option:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(199, 62, 62, 0.5);
    background: var(--highlight-color);
}

.quiz-option.correct-answer {
    background: var(--primary-color);
    animation: pop 0.3s ease;
}

.quiz-option.wrong-answer {
    background: var(--wrong-color);
    animation: shake 0.3s ease;
}

.quiz-result {
    margin-top: 18px;
    font-weight: 700;
    font-size: 1.2rem;
    min-height: 26px;
    transition: all 0.3s ease;
}

.next-btn {
    margin-top: 25px;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(90deg, var(--highlight-color), var(--accent-color));
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.next-btn:hover {
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    box-shadow: 0 8px 20px rgba(199, 62, 62, 0.4);
}

/* Animations */
@keyframes pop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.celebrate {
    animation: pop 0.5s ease;
    color: var(--celebrate-color);
    font-size: 1.4rem;
}

@media (max-width: 480px) {
    .section-title { font-size: 2.2rem; }
    .quiz-question { font-size: 1.3rem; }
    .quiz-option { font-size: 0.95rem; padding: 12px 20px; }
}
