/* Blog-aligned exam theme */

.exam-page {
    padding: 2rem 1rem;
    background: #f8fafc;
    min-height: 100vh;
}

.exam-root {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.exam-root.distraction-free {
    background: #071123;
    color: #f4f7fb;
}

.exam-header,
.exam-summary,
.exam-meta,
.related-exams {
    margin-bottom: 2rem;
}

.exam-header {
    display: grid;
    gap: 1rem;
}

.exam-header h1,
.exam-header h2,
.exam-header h3,
.exam-header h4 {
    color: #1a1a2e;
}

.exam-header p,
.exam-desc,
.exam-controls label,
.related-exams p,
.exam-summary p {
    color: #4b5563;
}

.exam-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.exam-header p {
    max-width: 780px;
    line-height: 1.9;
}

.exam-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.exam-start,
.exam-controls {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.exam-start {
    padding: 2rem;
}


.exam-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.exam-start .primary,
.exam-controls .primary {
    background: linear-gradient(90deg, #20c997 0%, #128565 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.95rem 1.4rem;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.exam-start .primary:hover,
.exam-controls .primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(32, 201, 151, 0.24);
}

.exam-controls .secondary {
    background: #f1f9f3;
    border: 1px solid #d9e8df;
    color: #134e37;
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.exam-controls .secondary:hover {
    background: #e5f6e8;
    border-color: #b8dcc8;
}

.exam-controls {
    padding: 1.5rem;
    gap: 1rem;
    justify-content: space-between;
}

.exam-controls-middle {
    flex: 1;
    min-width: 180px;
    max-width: 420px;
}

.exam-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.exam-progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #20c997 0%, #3b82f6 100%);
    transform-origin: left center;
    transition: transform 0.3s ease;
}


.exam-timer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #374151;
}


.exam-timer strong {
    color: #111827;
}

.question-text {
    margin-bottom: 1.5rem;
    line-height: 1.85;
    color: #374151;
}

.qc {
    display: grid;
    gap: 0.95rem;
}

.qc-option {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8ecf0;
    background: #f8fafc;
}

.qc-option button {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 1rem 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #111827;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.qc-option button:hover,
.qc-option button:focus {
    background: #eff9f0;
    border-color: #c7e8d2;
}

.qc-option.selected button {
    background: #def4df;
    border-color: #20c997;
    box-shadow: inset 0 0 0 1px rgba(32, 201, 151, 0.18);
}

.exam-summary {
    padding: 1.75rem;
}

.exam-summary h2,
.related-exams h2 {
    margin-top: 0;
    color: #1a1a2e;
}

.summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.related-exams {
    padding: 1.75rem;
}

@media (max-width: 880px) {

    .exam-meta,
    .exam-controls,
    .summary-row {
        grid-template-columns: 1fr;
    }

    .exam-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 600px) {
    .exam-page {
        padding: 1rem;
    }

    .exam-root {
        padding-top: 1rem;
    }
}

/* Blog-style exam theme overrides */
.exam-page {
    padding: 2rem 1rem;
    background: #f8fafc;
}

.exam-root {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 2rem 0 3rem;
    background: transparent;
}

.exam-header h1,
.exam-header h2,
.exam-header h3,
.exam-header h4 {
    color: #1a1a2e;
}

.exam-desc,
.exam-controls label,
.related-exams p,
.exam-summary p {
    color: #4b5563;
}

.exam-meta,
.exam-start,
.exam-controls {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.exam-controls {
    padding: 1.5rem;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.exam-start .primary,
.exam-controls .primary {
    background: linear-gradient(90deg, #20c997 0%, #128565 100%);
    color: #fff;
}

.exam-controls .secondary {
    background: #f1f9f3;
    border: 1px solid #d9e8df;
    color: #134e37;
}

.qc {
    background: #f8fafc;
    border: 1px solid #e8ecf0;
}

.qc-option {
    border: 1px solid #e8ecf0;
    background: #f8fafc;
}

.qc-option button {
    background: transparent;
    color: #111827;
}

.qc-option.selected button,
.qc-option button:focus {
    background: #def4df;
    border-color: #20c997;
    box-shadow: inset 0 0 0 1px rgba(32, 201, 151, 0.18);
}

.related-exams {
    background: #fff;
    border-color: #e8ecf0;
}