/* Quiz container */
#quiz-wrapper {
    max-width: 900px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

#sqp-back-btn {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    background-color: #0073aa;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

#sqp-back-btn:hover {
    background-color: #005177;
}

.quiz-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.quiz-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.quiz-card p {
    font-size: 16px;
    margin-bottom: 10px;
}

.option {
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option input[type="radio"] {
    margin-right: 8px;
}

.option label {
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.2s ease;
}

.option label:hover {
    background-color: #e6f2ff;
}

.option label.correct {
    background-color: #28a745 !important; /* green */
    color: #fff;
    font-weight: bold;
}

.option label.incorrect {
    background-color: #dc3545 !important; /* red */
    color: #fff;
    font-weight: bold;
}

.correct-answer {
    font-style: italic;
    color: #d8000c;
    margin-top: 5px;
}

#sqp-submit-btn, #retake-btn, #download-pdf-btn, #sim-prev, #sim-next {
    padding: 10px 20px;
    margin: 10px 5px 20px 0;
    border: none;
    border-radius: 5px;
    background-color: #0073aa;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

#sqp-submit-btn:hover, #retake-btn:hover, #download-pdf-btn:hover, #sim-prev:hover, #sim-next:hover {
    background-color: #005177;
}

#quiz-nav {
    margin-bottom: 15px;
    text-align: center;
}

#quiz-nav button.sim-q-num {
    margin: 0 3px;
    padding: 6px 10px;
    border: 1px solid #0073aa;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

#quiz-nav button.sim-q-num.active {
    background-color: #0073aa;
    color: #fff;
    font-weight: bold;
}

#quiz-nav button.sim-q-num:hover {
    background-color: #005177;
    color: #fff;
    font-weight: bold;
}

#quiz-result {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.sqp-simulate-container {
    margin: 5px 0 10px 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .quiz-card {
        padding: 12px;
    }

    .option label {
        display: block;
    }

    #sqp-submit-btn, #retake-btn, #download-pdf-btn, #sim-prev, #sim-next {
        width: 100%;
        margin-bottom: 10px;
    }

    #quiz-nav button.sim-q-num {
        padding: 5px 8px;
        margin: 0 2px;
    }
}
/* Modern Section Layout */
.modern-sections {
    max-width: 900px;
    margin: 0 auto;
}

.sections-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.section-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.section-header button.sqp-simulate-btn {
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.section-header button.sqp-simulate-btn:hover {
    background: #005bb5;
}

/* Improved Subsection Layout — One per row */
.subsection-list {
    display: flex;
    flex-direction: column; /* stack vertically */
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

.subsection-list li {
    width: 100%; /* one full row */
}

.subsection-list .sqp-sub-btn {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #ddd;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
}

.subsection-list .sqp-sub-btn:hover {
    background: linear-gradient(135deg, #e0f0ff, #d0e7ff);
    border-color: #a3cfff;
    color: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .subsection-list li {
        flex: 1 1 100%;
    }
}
/* Keep radio button and option text inline */
.quiz-card .option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.quiz-card .option input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.quiz-card .option label {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    cursor: pointer;
    color: #333;
}

/* Optional – make options look consistent on mobile */
@media (max-width: 600px) {
    .quiz-card .option {
        gap: 10px;
        font-size: 1rem;
    }
}

.show-more-btn {
    margin-top: 8px;
    background: #0073aa;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.show-more-btn:hover {
    background: #005f8d;
}

