/* ===== QUIZ PAGE STYLES ===== */
.section-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 28px auto;
}

.card {
    background: rgba(255, 244, 228, 0.95);
    border-radius: 24px;
    padding: 32px 30px;
    box-shadow: 0 10px 30px rgba(90, 45, 10, 0.12);
    text-align: left;
}

.card h2 {
    margin: 0 0 10px;
    color: #4F2D00;
    font-size: 1.4em;
}

.card p {
    color: #5c3d2e;
    line-height: 1.7;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
    justify-content: center;
}

.quiz-category,
.next-button,
.restart-button,
.return-button {
    border: none;
    border-radius: 50px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #6B4423 0%, #8b5a2b 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(62, 31, 0, 0.15);
}

.quiz-category:hover,
.next-button:hover,
.restart-button:hover,
.return-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(62, 31, 0, 0.22);
    background: linear-gradient(135deg, #8b5a2b 0%, #a06c3a 100%);
}

.quiz-container,
.quiz-summary,
.fun-facts {
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 248, 232, 0.95);
    border-radius: 24px;
    padding: 32px 30px;
    box-shadow: 0 10px 30px rgba(90, 45, 10, 0.12);
    margin-top: 28px;
    text-align: left;
}

.quiz-header h2 {
    margin: 0 0 6px;
    color: #4F2D00;
    font-size: 1.4em;
}

.quiz-header p {
    color: #6B4423;
    font-style: italic;
}

.question-box {
    margin-top: 22px;
}

.question-number {
    color: #8b5a2b;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.question-box h3 {
    color: #2c1810;
    font-size: 1.2em;
    line-height: 1.5;
}

.answers {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.answer-button {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(107, 68, 35, 0.25);
    border-radius: 14px;
    background: #fff;
    color: #3E1F00;
    text-align: left;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s ease;
    font-family: inherit;
}

.answer-button:hover:not(:disabled) {
    background: #fff0db;
    border-color: #8b5a2b;
    transform: translateX(4px);
}

.answer-button.correct {
    background: #d5f0b6;
    border-color: #5a7e27;
    color: #2d4a10;
}

.answer-button.wrong {
    background: #f7c5b1;
    border-color: #a1442c;
    color: #5c1a0a;
}

.next-button {
    margin-top: 22px;
    display: inline-block;
}

.hidden {
    display: none !important;
}

.quiz-summary h2 {
    color: #4F2D00;
    font-size: 1.5em;
    margin-bottom: 14px;
}

.quiz-summary p {
    color: #5c3d2e;
    line-height: 1.7;
    margin-bottom: 8px;
}

.summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.result-detail {
    margin-top: 18px;
    line-height: 1.7;
    color: #6B4423;
    font-style: italic;
}

.fun-facts h2 {
    color: #4F2D00;
    font-size: 1.3em;
    margin-bottom: 14px;
}

.fact-list {
    padding-left: 22px;
    line-height: 1.8;
    color: #5c3d2e;
}

.fun-facts a {
    color: #6B4423;
    font-weight: 600;
    text-decoration: underline;
}