/*
 * Full Reading/Listening test theme.
 * Scoped to the Full Test body classes so the existing section-test layouts,
 * navigation flow and answer logic remain independent.
 */
body.rl-full-test-page {
    background: #f9fcfc !important;
    background-image: none !important;
    color: var(--aoe-navy);
    font-family: "Work Sans", sans-serif !important;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0 0 84px !important;
}

body.rl-full-test-page *,
body.rl-full-test-page *::before,
body.rl-full-test-page *::after {
    box-sizing: border-box;
}

.rl-full-test-page .full-test-header {
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid #e2ecee;
    box-shadow: 0 3px 14px rgba(33, 66, 82, .055);
    min-height: 64px;
    padding: 10px 18px;
}

.rl-full-test-page .full-test-header-row {
    margin: 0 auto;
    max-width: 1560px;
    min-height: 43px;
}

.rl-full-test-page .header-link {
    color: var(--aoe-navy-strong) !important;
    font-size: 1rem;
    font-weight: 850 !important;
    letter-spacing: -.02em;
    transition: color .18s ease;
}

.rl-full-test-page .header-link:hover,
.rl-full-test-page .header-link:focus {
    color: var(--aoe-teal) !important;
}

.rl-full-test-page .header-logo {
    height: 34px;
}

.rl-full-test-page .time-counter {
    align-items: center;
    background: #f0fbf8;
    border: 1px solid #c4e9e1;
    border-radius: 999px;
    box-shadow: none;
    color: var(--aoe-teal);
    display: inline-flex;
    font-size: .94rem;
    font-weight: 850;
    justify-content: center;
    letter-spacing: .04em;
    min-height: 36px;
    min-width: 82px;
    padding: 7px 13px;
}

.rl-full-test-page .full-test-actions .btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: .86rem;
    font-weight: 800;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.rl-full-test-page .full-test-actions .btn:hover {
    transform: translateY(-1px);
}

.rl-full-test-page #btnSubmit {
    background: var(--aoe-teal);
    border-color: var(--aoe-teal);
    color: #fff;
}

.rl-full-test-page #btnSubmit:hover,
.rl-full-test-page #btnSubmit:focus {
    background: var(--aoe-teal-hover);
    border-color: var(--aoe-teal-hover);
    box-shadow: 0 8px 18px rgba(15, 118, 110, .2);
    color: #fff;
}

.rl-full-test-page #btnReview {
    background: #fff;
    border-color: #9fb5bd;
    color: var(--aoe-navy);
}

.rl-full-test-page #btnReview:hover,
.rl-full-test-page #btnReview:focus {
    background: #eef5f6;
    border-color: var(--aoe-navy);
    color: var(--aoe-navy-strong);
}

.rl-full-test-page #btnRetake {
    background: #fff8f8;
    border-color: #edc7cd;
    color: var(--aoe-danger);
}

.rl-full-test-page #btnRetake:hover,
.rl-full-test-page #btnRetake:focus {
    background: #fff1f2;
    border-color: #d9939f;
    color: #8f1828;
}

.rl-full-test-page .full-test-shell {
    max-width: 1560px;
    padding: 18px 18px 14px;
}

.rl-full-test-page .full-test-panel,
.rl-full-test-page .full-section-card {
    background: var(--aoe-panel);
    border: 1px solid #e0eaec;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(33, 66, 82, .05);
}

.rl-full-test-page .full-test-panel {
    padding: 18px 20px;
}

.rl-full-test-page .breadcrumb {
    --bs-breadcrumb-divider-color: #91a5ad;
    --bs-breadcrumb-item-active-color: var(--aoe-muted);
    color: var(--aoe-muted);
}

.rl-full-test-page .breadcrumb a {
    color: var(--aoe-teal);
    font-weight: 650;
    text-decoration: none;
}

.rl-full-test-page .breadcrumb a:hover {
    color: var(--aoe-teal-hover);
    text-decoration: underline;
}

.rl-full-test-page .full-test-title {
    color: var(--aoe-navy-strong) !important;
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    font-weight: 900 !important;
    letter-spacing: -.025em;
}

.rl-full-test-page .full-test-panel .badge {
    background: #f4f8f8 !important;
    border-color: #cadbdd !important;
    border-radius: 999px;
    color: #46606a !important;
    font-size: .78rem;
    font-weight: 750;
    padding: 7px 10px;
}

.rl-full-test-reading .full-test-panel .full-skill-badge {
    background: var(--aoe-reading-soft) !important;
    border-color: #b7e4ca !important;
    color: var(--aoe-reading) !important;
}

.rl-full-test-listening .full-test-panel .full-skill-badge {
    background: var(--aoe-listening-soft) !important;
    border-color: #fed7aa !important;
    color: var(--aoe-listening) !important;
}

.rl-full-test-page .full-test-panel .alert-info {
    background: #eff9f8;
    border: 1px solid #c2e6df;
    border-left: 4px solid var(--aoe-teal);
    border-radius: 8px;
    color: #35515b;
}

.rl-full-test-page .full-section-card {
    margin-top: 18px;
}

.rl-full-test-page .full-section-head {
    background: #fff;
    border-bottom: 1px solid #e3ecee;
    box-shadow: none;
    min-height: 64px;
    padding: 13px 18px;
}

.rl-full-test-page .full-section-head::before {
    align-self: stretch;
    background: var(--aoe-teal);
    border-radius: 999px;
    content: "";
    flex: 0 0 4px;
}

.rl-full-test-reading .full-section-head::before {
    background: var(--aoe-reading);
}

.rl-full-test-listening .full-section-head::before {
    background: var(--aoe-listening);
}

.rl-full-test-page .full-section-head .small {
    color: var(--aoe-muted) !important;
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.rl-full-test-page .full-section-head h2 {
    color: var(--aoe-navy-strong);
    font-size: 1.08rem;
    font-weight: 900 !important;
    letter-spacing: -.01em;
    margin-top: 2px;
}

.rl-full-test-page .full-section-body {
    gap: 18px;
    padding: 18px;
}

.rl-full-test-page .full-material {
    background: #fffdf9;
    border: 1px solid #f0e7dc;
    border-radius: 8px;
    color: #293f49;
    line-height: 1.75;
    padding: clamp(18px, 2.2vw, 30px);
    scrollbar-color: #b8c9ce transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.rl-full-test-page .full-material::-webkit-scrollbar,
.rl-full-test-page .full-questions-panel::-webkit-scrollbar {
    width: 10px;
}

.rl-full-test-page .full-material::-webkit-scrollbar-track,
.rl-full-test-page .full-questions-panel::-webkit-scrollbar-track {
    background: transparent;
}

.rl-full-test-page .full-material::-webkit-scrollbar-thumb,
.rl-full-test-page .full-questions-panel::-webkit-scrollbar-thumb {
    background: #b8c9ce;
    background-clip: padding-box;
    border: 2px solid transparent;
    border-radius: 999px;
}

.rl-full-test-page .full-material::-webkit-scrollbar-thumb:hover,
.rl-full-test-page .full-questions-panel::-webkit-scrollbar-thumb:hover {
    background: #8fa9b1;
    background-clip: padding-box;
}

.rl-full-test-page .full-questions-panel {
    min-width: 0;
    padding: 0 6px 10px 0;
    scrollbar-color: #b8c9ce transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.rl-full-test-page .full-question-group {
    border-bottom-color: var(--aoe-border);
    margin-bottom: 22px;
    padding-bottom: 20px;
}

.rl-full-test-page .full-question-group:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.rl-full-test-page .full-question-group > h3 {
    align-items: center;
    color: var(--aoe-navy-strong) !important;
    display: flex;
    font-size: 1rem;
    font-weight: 900 !important;
    gap: 8px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.rl-full-test-page .full-question-group > h3::before {
    background: var(--aoe-teal);
    border-radius: 999px;
    content: "";
    flex: 0 0 auto;
    height: 18px;
    width: 4px;
}

.rl-full-test-reading .full-question-group > h3::before {
    background: var(--aoe-reading);
}

.rl-full-test-listening .full-question-group > h3::before {
    background: var(--aoe-listening);
}

.rl-full-test-page .full-question {
    background: #fff;
    border: 1px solid #e1eaec;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(33, 66, 82, .035);
    margin-top: 12px;
    padding: 15px 16px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.rl-full-test-page .full-question:focus-within {
    border-color: #7bcaba;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .1);
}

.rl-full-test-page .full-question-text {
    color: var(--aoe-navy-strong);
    font-size: 1rem;
    font-weight: 750 !important;
    line-height: 1.55;
}

.rl-full-test-page .full-section-card[data-section-type="reading"] .full-question-text,
.rl-full-test-page .full-section-card[data-section-type="listening"] .full-question-text {
    font-size: 1rem;
}

.rl-full-test-page .full-option {
    align-items: flex-start;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #344e59;
    display: flex;
    font-size: .98rem;
    font-weight: 500;
    gap: 9px;
    line-height: 1.45;
    margin: 4px 0;
    padding: 9px 10px;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
    width: 100%;
}

.rl-full-test-page .full-option:hover {
    background: #f1f8f7;
    border-color: #c8e4df;
    color: var(--aoe-navy-strong);
}

.rl-full-test-page .full-option:has(input:checked) {
    background: var(--aoe-teal-soft);
    border-color: #77d4c5;
    color: var(--aoe-teal-hover);
    font-weight: 700;
}

.rl-full-test-page .full-option input {
    accent-color: var(--aoe-teal);
    height: 17px;
    margin: 2px 0 0;
    width: 17px;
}

.rl-full-test-page .form-control {
    border-color: #bdcfd3;
    border-radius: 7px;
    color: var(--aoe-navy-strong);
    min-height: 40px;
}

.rl-full-test-page .form-control:focus {
    border-color: #62bcae;
    box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .12);
}

/* Listening keeps its single content flow and optional ad rail. */
.rl-full-test-page .full-section-card[data-section-type="listening"] .full-section-body {
    background: #fff;
    padding: 18px;
}

.rl-full-test-page .full-section-card[data-section-type="listening"] .full-material {
    background: linear-gradient(135deg, #f7fcfb, #fff);
    border-color: #d4eae6;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.rl-full-test-page .full-section-card[data-section-type="listening"] .full-material .ratio,
.rl-full-test-page .full-section-card[data-section-type="listening"] .full-material audio {
    border-radius: 7px;
    overflow: hidden;
}

.rl-full-test-page .full-listening-question-layout {
    gap: 20px;
    margin-top: 0;
}

.rl-full-test-page .full-listening-ad-unit {
    background: #fff;
    border: 1px dashed #c9d8db;
    border-radius: 8px;
    min-height: 120px;
    overflow: hidden;
}

.rl-full-test-page .full-listening-ad-unit + .full-listening-ad-unit {
    margin-top: 14px;
}

/* Fixed navigator uses the same navy/teal state language as section tests. */
.rl-full-test-page .full-test-footer {
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid #e0eaec;
    box-shadow: 0 -6px 20px rgba(33, 66, 82, .07);
    padding: 9px 14px;
}

.rl-full-test-page .full-footer-sections {
    gap: 8px;
    margin: 0 auto;
    max-width: 1560px;
}

.rl-full-test-page .full-section-btn {
    background: #fff;
    border: 1px solid #c8d8dc;
    border-radius: 8px;
    color: var(--aoe-navy);
    min-height: 44px;
    padding: 7px 11px;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.rl-full-test-page .full-section-btn:hover {
    background: #f1f8f7;
    border-color: #65b9ad;
}

.rl-full-test-page .full-section-btn.is-active {
    background: #eaf8f5;
    border-color: #79c8bb;
    box-shadow: 0 4px 12px rgba(15, 118, 110, .1);
    color: var(--aoe-teal-hover);
}

.rl-full-test-page .full-section-label {
    font-size: .84rem;
    font-weight: 850;
}

.rl-full-test-page .question-number {
    background: #fff;
    border: 1px solid #b7c9cd;
    color: var(--aoe-navy);
    height: 28px;
    line-height: 26px;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
    width: 28px;
}

.rl-full-test-page .full-section-btn.is-active .question-number {
    background: #fff;
    border-color: #9ccfc6;
    color: var(--aoe-teal-hover);
}

.rl-full-test-page .question-number.done {
    background: #dff5f0;
    border-color: #a8ddd3;
    color: #12665f;
}

.rl-full-test-page .full-section-btn.is-active .question-number.done {
    background: #caeee7;
    border-color: #a9ded4;
    color: #155d57;
}

.rl-full-test-page #reviewPopup {
    border: 1px solid var(--aoe-border);
    box-shadow: 0 22px 60px rgba(23, 56, 74, .2) !important;
    color: var(--aoe-navy);
    font-family: "Work Sans", sans-serif;
}

.rl-full-test-page #reviewPopup h4,
.rl-full-test-page .modal-title {
    color: var(--aoe-navy-strong);
    font-weight: 850;
}

.rl-full-test-page .modal-content {
    border: 1px solid var(--aoe-border);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(23, 56, 74, .18);
}

.rl-full-test-page .modal-header,
.rl-full-test-page .modal-footer {
    border-color: var(--aoe-border);
}

@media (max-width: 991.98px) {
    .rl-full-test-page .full-test-shell {
        padding: 14px 12px 10px;
    }

    .rl-full-test-page .full-section-body {
        gap: 14px;
        padding: 14px;
    }

    .rl-full-test-page .full-material,
    .rl-full-test-page .full-questions-panel {
        max-height: min(42vh, 440px);
    }

    .rl-full-test-page .full-section-card[data-section-type="listening"] .full-material,
    .rl-full-test-page .full-section-card[data-section-type="listening"] .full-questions-panel {
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    body.rl-full-test-page {
        padding-bottom: 78px !important;
    }

    .rl-full-test-page .full-test-panel {
        padding: 15px;
    }

    .rl-full-test-page .full-section-head {
        padding: 12px 14px;
    }

    .rl-full-test-page .full-material {
        padding: 17px;
    }

    .rl-full-test-page .full-question {
        padding: 13px;
    }
}

@media (max-width: 575.98px) {
    body.rl-full-test-page {
        padding-bottom: 76px !important;
    }

    .rl-full-test-page .full-test-header {
        padding: 8px 10px;
    }

    .rl-full-test-page .full-test-header-row {
        min-height: 0;
    }

    .rl-full-test-page .full-test-actions {
        justify-content: flex-start;
    }

    .rl-full-test-page .full-test-actions .btn {
        flex: 1 1 0;
        min-height: 36px;
        padding: 7px 9px;
    }

    .rl-full-test-page .time-counter {
        min-height: 36px;
    }

    .rl-full-test-page .full-test-shell {
        padding: 10px 8px 8px;
    }

    .rl-full-test-page .full-test-panel,
    .rl-full-test-page .full-section-card {
        border-radius: 7px;
    }

    .rl-full-test-page .full-test-title {
        font-size: 1.35rem;
    }

    .rl-full-test-page .full-section-body {
        padding: 10px;
    }

    .rl-full-test-page .full-material {
        padding: 14px;
    }

    .rl-full-test-page .full-test-footer {
        padding: 8px;
    }

    .rl-full-test-page .full-section-btn {
        min-height: 42px;
        padding: 6px 9px;
    }

    .rl-full-test-page .full-section-btn.is-active .full-section-progress {
        max-width: 54vw;
        overflow-x: auto;
        scrollbar-width: thin;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rl-full-test-page .btn,
    .rl-full-test-page .full-option,
    .rl-full-test-page .full-question,
    .rl-full-test-page .full-section-btn {
        transition: none !important;
    }
}
