/* Layout Defaults */
.exam-body {
    background-color: var(--bg-soft);
    color: var(--text);
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.exam-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sticky Header */
.exam-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.exam-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
}

.exam-title {
    font-size: 1.05rem;
    margin: 2px 0 0;
}

.student-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.timer-box {
    background: var(--bg-soft);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--secondary);
    border: 1px solid var(--border);
}

/* Progress Bar */
.progress-wrapper {
    margin-top: 1rem;
}

.progress-bar-container {
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.5s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 8px;
}

/* Section & Passage */
.exam-section {
    padding: 24px 0;
}

.section-intro {
    margin-bottom: 1.25rem;
    text-align: center;
}

.section-name {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.section-instructions {
    color: var(--muted);
    font-style: italic;
}

.reading-passage {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
        max-width: 850px;
    margin-inline: auto;
}

/* 🔥 IMPORTANT */
.reading-passage p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
    font-size: 0.98rem;
    margin-bottom: 0.6rem;
}


.passage-label {
    margin-top: 0;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.passage-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Question Cards */
.questions-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    transition: transform 0.3s ease;
}

.question-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.question-text {
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0.5rem 0 1rem;
}

/* Custom Radio Options */
.options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.option-item input {
    display: none;
}

.option-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.2s ease;
}

.option-item input:checked + .option-indicator {
    border-color: var(--primary);
}

.option-item input:checked + .option-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.option-item input:checked ~ .option-label {
    color: var(--primary);
    font-weight: 600;
}

/* Navigation */
.exam-navigation {
    display: flex;
    justify-content: space-between;
    padding: 24px 0 60px;
}

.btn-finish {
    background: var(--success);
    color: #fff;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}


.exam-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* BUTTON BASE FIX */
.exam-navigation button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* OPTIONAL: SAME SIZE */
.btn-prev,
.btn-next {
    min-width: 110px;
    justify-content: center;
}