/* Blog-aligned exam theme */

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

.exam-entry-card {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid #e8ecf0;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.exam-entry-card h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.2;
    color: #1a1a2e;
}

.exam-entry-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.exam-entry-meta {
    margin-top: 0.7rem !important;
    font-weight: 600;
}

.exam-entry-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.exam-attempt-shell {
    width: 100%;
}

.exam-attempt-content {
    width: 100%;
}

.exam-attempt-header {
    margin-bottom: 0.65rem;
}

.exam-attempt-header h1 {
    margin: 0;
    color: #0f2b43;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 650;
    line-height: 1.2;
}

.exam-detail-header {
    margin-bottom: 1rem;
}

.exam-detail-course-label {
    margin: 0;
    color: #4b5563;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.exam-detail-header h1 {
    margin: 0.35rem 0 0.5rem;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
}

.exam-detail-description {
    margin: 0;
    max-width: 64ch;
    color: #4b5563;
}

.exam-attempt-content .micro-quiz {
    max-width: none;
    margin: 0;
    padding: 0.9rem 1.5rem 1.5rem;
    box-shadow: none;
}

.exam-top-ad-band {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 1rem;
    padding: 0;
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.exam-top-ad-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: nowrap;
}

.exam-top-ad-slot,
.exam-top-ad-slot-secondary {
    margin: 0;
    padding: 0;
    display: block;
    overflow: hidden;
}

.exam-top-ad-slot .adsbygoogle,
.exam-top-ad-slot .dev-ad-placeholder,
.exam-top-ad-slot-secondary .adsbygoogle,
.exam-top-ad-slot-secondary .dev-ad-placeholder {
    height: 90px;
    margin: 0;
    overflow: hidden !important;
}

.exam-top-ad-slot .adsbygoogle,
.exam-top-ad-slot .dev-ad-placeholder {
    width: 100%;
    max-width: 728px;
}

.exam-top-ad-slot-secondary .adsbygoogle,
.exam-top-ad-slot-secondary .dev-ad-placeholder {
    width: 300px;
    max-width: 300px;
}

@media (min-width: 1200px) {
    .exam-top-ad-slot {
        width: 800px;
        max-width: calc(100% - 320px);
        flex: 0 0 800px;
    }

    .exam-top-ad-slot-secondary {
        width: 300px;
        max-width: 300px;
        flex: 0 0 300px;
    }
}

@media (max-width: 767px) {
    .exam-top-ad-slot .adsbygoogle,
    .exam-top-ad-slot .dev-ad-placeholder {
        width: 100%;
        max-width: 320px;
        height: 50px;
    }
}

.exam-attempt-rail {
    display: none;
}

.exam-attempt-rail-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.exam-attempt-rail-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 600;
}

.exam-attempt-rail-slot-wrap {
    width: 300px;
    max-width: 100%;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.exam-attempt-rail-slot {
    margin: 0;
    max-width: 100%;
    min-height: 0;
}

.exam-attempt-rail-slot-wrap .ad-slot,
.exam-attempt-rail-slot-wrap .notes-side-live-slot {
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
}

.exam-attempt-rail-slot-wrap:has(.adsbygoogle[data-ad-status="unfilled"]) {
    display: none;
}

.exam-attempt-shell.has-rail:has(.adsbygoogle[data-ad-status="unfilled"]):not(:has(.adsbygoogle[data-ad-status="filled"])) .exam-attempt-rail {
    display: none !important;
    float: none;
    width: 0;
    margin: 0;
}

.exam-attempt-shell.has-rail:has(.adsbygoogle[data-ad-status="unfilled"]):not(:has(.adsbygoogle[data-ad-status="filled"])) .exam-attempt-content {
    width: 100%;
}

.exam-attempt-bottom-band {
    width: 100%;
    margin-top: 1.2rem;
    margin-bottom: 0;
    padding: 0.75rem 1rem 0.45rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.exams-hub.exams-hub--attempt,
.exams-hub:has(.exam-attempt-bottom-band),
.exams-hub:has(.exam-attempt-shell) {
    padding-bottom: 1.25rem;
}

.exam-attempt-bottom-slot {
    width: 100%;
    max-width: 100%;
    min-height: 120px;
}

@media (min-width: 1200px) {
    .exam-attempt-shell.has-rail {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
    }

    .exam-attempt-shell.has-rail::after {
        display: none;
    }

    .exam-attempt-shell.has-rail .exam-attempt-rail {
        display: block;
        float: none;
        flex: 0 0 300px;
        width: 300px;
        margin: 3.5rem 0 1rem 0;
    }

    .exam-attempt-shell.has-rail .exam-attempt-content {
        float: none;
        flex: 1 1 0%;
        min-width: 0;
        width: auto;
    }
}

.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: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #111827;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.qc-option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2e8f0;
    font-size: 0.55rem;
    font-weight: 700;
    color: #475569;
    flex-shrink: 0;
    line-height: 1;
}

.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;
}/* ── Exams hub & two-level tile UI ──────────────────────── */

.exams-hub {
    padding: 0.1rem 0.5rem 4rem;
    min-height: 60vh;
    background: #f8fafc;
}

.exams-hub-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Small gap to separate sticky site header from exams hero when rendered near top */
.exams-hub-container>.exams-hub-header,
.exams-hub-container>.exams-group-header {
    margin-top: 1.2rem;
}

.exams-hub-header-copy {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
}

/* ── Group detail header ────────────────────────────────── */
.exams-group-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.exams-group-header-icon {
    font-size: 2.5rem;
    color: #20c997;
    line-height: 1;
    flex-shrink: 0;
}

.exams-group-header h1 {
    margin: 0 0 0.25rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #1a1a2e;
}

.exams-group-header p {
    margin: 0;
    color: #4b5563;
}

/* ── Search ─────────────────────────────────────────────── */
.exams-search {
    margin-bottom: 2rem;
}

.exams-search input {
    width: 100%;
    max-width: 420px;
    padding: 0.65rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.exams-search input:focus {
    border-color: #20c997;
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.12);
}

/* ── Section ────────────────────────────────────────────── */
.exams-section {
    margin-bottom: 3rem;
}

.exams-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e8ecf0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Tile grid ──────────────────────────────────────────── */
.exams-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* ── Group tile (hub level) ─────────────────────────────── */
.exam-group-tile {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.exam-group-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.11);
    border-color: #20c997;
    text-decoration: none;
    color: inherit;
}

.exam-group-tile-icon {
    font-size: 2.25rem;
    color: #20c997;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.exam-group-tile-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.exam-group-tile-desc {
    color: #4b5563;
    font-size: 0.875rem;
    margin: 0;
    flex: 1;
    line-height: 1.6;
}

.exam-group-tile-footer {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.exam-group-tile-count {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.exam-group-tile-tag {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
}

/* ── Set tile (group-detail level) ──────────────────────── */
.exam-set-tile {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.exam-set-tile--completed {
    border-color: #b7ebcd;
    background: linear-gradient(180deg, #f4fbf6 0%, #ffffff 72%);
}

.exam-set-tile--inprogress {
    border-color: #f3cf8e;
    border-style: solid;
    border-width: 2px;
    box-shadow: 0 10px 30px rgba(243, 207, 142, 0.04);
    background: #ffffff;
}

.exam-set-tile--inprogress .exam-set-progress-pill {
    background: #fff7e6;
    border-color: #f3cf8e;
    color: #9a5b00;
}

.exam-set-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    border-color: #20c997;
    text-decoration: none;
    color: inherit;
}

.exam-set-tile-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}

.exam-set-tile-badge {
    background: #eff9f0;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.exam-set-progress-pill {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.exam-set-tile--completed .exam-set-progress-pill {
    background: #e8f7ee;
    color: #166534;
    border-color: #b7ebcd;
}

.exam-set-tile-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.exam-set-tile-desc {
    color: #4b5563;
    font-size: 0.85rem;
    margin: 0;
    flex: 1;
    line-height: 1.55;
}

.exam-set-tile-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.exam-set-tile-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Detail page badges ─────────────────────────────────── */

/* ── Tag pills ──────────────────────────────────────────── */
.exams-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.75rem;
}

.exams-tag-pill {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    user-select: none;
    line-height: 1.4;
}

.exams-tag-pill:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

.exams-tag-pill.active {
    background: #20c997;
    color: #fff;
    border-color: #20c997;
}

/* ── Empty state ────────────────────────────────────────── */
.exams-empty {
    color: #6b7280;
    font-style: italic;
    padding: 1rem 0;
}

/* ── Completed-quiz modal overlay ───────────────────────── */
.quiz-completed-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: overlayFadeIn 0.18s ease;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quiz-completed-modal {
    background: #fff;
    border-radius: 20px;
    padding: 2.25rem 2rem 1.75rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    text-align: center;
    animation: modalSlideUp 0.22s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quiz-completed-modal-icon {
    font-size: 3rem;
    color: #20c997;
    line-height: 1;
    margin-bottom: 0.85rem;
}

.quiz-completed-modal h3 {
    margin: 0 0 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
}

.quiz-completed-modal p {
    margin: 0 0 1.5rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.quiz-completed-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quiz-completed-btn-primary {
    background: #20c997;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.15s ease;
}

.quiz-completed-btn-primary:hover {
    background: #17a589;
    transform: translateY(-1px);
}

.quiz-completed-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease;
}

.quiz-completed-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .exams-hub {
        padding: 1.5rem 0.75rem 3rem;
    }

    .exams-hub.exams-hub--attempt,
    .exams-hub:has(.exam-attempt-bottom-band) {
        padding-bottom: 1rem;
    }

    .exams-tiles-grid {
        grid-template-columns: 1fr;
    }

    .exams-group-header {
        flex-direction: column;
        gap: 0.75rem;
    }
}
/* Quizzes-inspired catalogue card language, deliberately limited to hub route.
   Exam/quiz attempt, saved progress and nested group styles remain unchanged. */
.exams-hub--catalog {
    padding: clamp(1rem, 2.5vw, 2rem) 1rem 3rem;
    background: #f8fafc;
}
.exams-hub--catalog .exams-hub-container {
    max-width: 1160px;
}
.exams-hub--catalog .exams-hub-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 0 0 1.4rem;
}
.exams-hub--catalog .exams-hub-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: #126f9c;
    color: #fff;
    font-size: 1.6rem;
}
.exams-hub--catalog .exams-hub-header-copy {
    display: block;
    min-width: 0;
}
.exams-hub--catalog .exams-hub-header h1 {
    margin: 0 0 0.4rem;
    color: #172b43;
    font-size: clamp(1.6rem, 2.7vw, 2rem);
    font-weight: 750;
    line-height: 1.2;
}
.exams-hub--catalog .exams-hub-header p {
    margin: 0;
    max-width: 670px;
    color: #536477;
    font-size: 0.96rem;
    line-height: 1.55;
}
.exams-hub--catalog .exams-tags {
    margin-bottom: 1.2rem;
}
.exams-hub--catalog .exams-tag-pill:focus-visible,
.exams-hub--catalog .exam-group-tile:focus-visible {
    outline: 3px solid #087cad;
    outline-offset: 3px;
}
.exams-hub--catalog .exams-tiles-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}
.exams-hub--catalog .exam-group-tile {
    display: flex;
    gap: 0.7rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid #dce5ed;
    border-radius: 13px;
    box-shadow: none;
    background: #fff;
    transform: none;
}
.exams-hub--catalog .exam-group-tile:hover {
    transform: none;
    border-color: #66aacf;
    box-shadow: 0 7px 20px rgba(18, 65, 98, 0.1);
}
.exams-hub--catalog .exam-group-tile-context {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.exams-hub--catalog .exam-group-tile-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #126f9c;
    background: #e8f3fa;
    font-size: 1.3rem;
}
.exams-hub--catalog .exam-group-tile-type {
    color: #52677b;
    font-size: 0.75rem;
    font-weight: 700;
}
.exams-hub--catalog .exam-group-tile-title {
    font-size: 1.2rem;
    line-height: 1.28;
    color: #182f4a;
    overflow-wrap: anywhere;
}
.exams-hub--catalog .exam-group-tile-desc {
    line-height: 1.5;
    font-size: 0.89rem;
}
.exams-hub--catalog .exam-group-tile-footer {
    margin-top: auto;
    padding-top: 0.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}
.exams-hub--catalog .exam-group-tile-cta {
    color: #075b82;
    font-size: 0.83rem;
    font-weight: 750;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .exams-hub--catalog .exams-hub-header-icon { flex-basis: 44px; width: 44px; height: 44px; }
    .exams-hub--catalog .exam-group-tile { padding: 1rem; }
}

.exams-hub .category-back__link {
    color: #075d83 !important;
}
