/* --- Quiz Section Styling --- */

.quiz-section {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
}

.question-text {
    font: Noto Sans Sinhala;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-primary); /* Uses your existing educational blue color */
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-btn {
    width: 100%;
    padding: 12px 15px;
    text-align: left;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s, border-color 0.2s;
    position: relative; /* Needed for positioning the feedback icons */
}

.answer-btn:hover:not(.disabled) {
    background-color: #eef;
    border-color: var(--color-secondary);
}

/* Style for correct/incorrect answers */
.correct {
    background-color: #e6ffe6; /* Light green background */
    border-color: #4CAF50; /* Green border */
    font-weight: 700;
}

.wrong {
    background-color: #ffe6e6; /* Light red background */
    border-color: #f44336; /* Red border */
    font-weight: 700;
}

/* Feedback Icon Styling (The right mark and cross mark) */
.answer-btn::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    display: none; /* Hide by default */
}

/* Show the checkmark icon for the correct answer */
.answer-btn.correct::after {
    content: '✓'; /* Unicode character for checkmark */
    color: #4CAF50; /* Green */
    display: block;
}

/* Show the cross icon for the wrong answer */
.answer-btn.wrong::after {
    content: '✕'; /* Unicode character for cross/multiplication sign */
    color: #f44336; /* Red */
    display: block;
}

.answer-btn.disabled {
    cursor: not-allowed;
    pointer-events: none; /* Prevents further clicks */
}