.exam-hero,
.subject-hero,
.topic-hero {
    color: white;
    padding: 88px 0 58px;
}

.exam-hero {
    background: linear-gradient(135deg, #06132e 0%, #1358a1 100%);
}

.subject-hero {
    background: linear-gradient(135deg, #1b1b52 0%, #3a41b8 100%);
}

.topic-hero {
    background: linear-gradient(135deg, #19324f 0%, #0f6cbd 100%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 0.92rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.breadcrumb span,
.breadcrumb a:hover {
    color: white;
}

.exam-hero-content,
.concept-grid,
.question-layout,
.quick-practice-card {
    display: grid;
    gap: 24px;
}

.exam-hero-content,
.question-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.concept-grid,
.quick-practice-card {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}

.exam-icon-large,
.subject-icon-large {
    font-size: 4rem;
    margin-bottom: 12px;
}

.exam-quick-stats,
.exam-hero-actions,
.subject-stats,
.subject-actions,
.topic-stats,
.topic-meta,
.question-filters,
.filter-group,
.question-preview-header,
.question-preview-tags,
.question-preview-footer,
.topbar-content,
.topbar-left,
.question-meta,
.question-tags,
.question-actions,
.action-right,
.palette-legend div {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.exam-info-card,
.concept-card,
.tricks-card,
.question-preview-card,
.palette-card,
.stats-card,
.instructions-card,
.question-main,
.subject-card,
.related-topic-card,
.related-subject-card,
.topic-item,
.quick-practice-card,
.solution-box {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.exam-info-card,
.concept-card,
.tricks-card,
.palette-card,
.stats-card,
.instructions-card,
.question-main,
.question-preview-card,
.premium-lock-card,
.subject-card,
.related-topic-card,
.related-subject-card,
.topic-item,
.quick-practice-card {
    padding: 24px;
}

.exam-info-card ul,
.palette-legend,
.instructions-card ul,
.footer-col ul {
    list-style: none;
}

.exam-info-card li,
.instructions-card li,
.stat-row {
    padding: 10px 0;
}

.subjects-grid,
.related-subjects,
.related-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.subject-card,
.related-topic-card,
.related-subject-card {
    text-decoration: none;
    color: var(--dark);
}

.subject-topics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 18px;
}

.topic-tag {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--light);
    color: var(--muted);
    font-size: 0.8rem;
}

.topics-list {
    display: grid;
    gap: 16px;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topic-info {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.topic-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 108, 189, 0.1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.topic-progress {
    width: 180px;
}

.progress-text,
.stat-row {
    display: flex;
    justify-content: space-between;
}

.progress-bar {
    height: 8px;
    background: #e4edf5;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.question-topbar {
    position: sticky;
    top: 78px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    z-index: 500;
}

.question-container {
    padding: 28px 0 48px;
}

.question-main {
    padding: 28px;
}

.exam-badge,
.subject-badge,
.topic-badge,
.question-difficulty,
.question-source-badge,
.premium-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.question-preview-tags {
    gap: 8px;
}

.question-source-badge {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.exam-badge {
    background: var(--primary);
    color: white;
}

.subject-badge {
    background: var(--secondary);
    color: white;
}

.topic-badge {
    background: #4f46e5;
    color: white;
}

.question-difficulty.easy,
.difficulty.easy {
    color: #15803d;
}

.question-difficulty.medium,
.difficulty.medium {
    color: #b45309;
}

.question-difficulty.hard,
.difficulty.hard {
    color: #b91c1c;
}

.weightage.low { color: #64748b; }
.weightage.medium { color: #b45309; }
.weightage.high,
.weightage.very_high { color: #b91c1c; }

.language-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: var(--light);
    margin-bottom: 18px;
}

.lang-btn {
    border: 0;
    background: transparent;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.lang-btn.active {
    background: white;
    box-shadow: var(--shadow-sm);
}

.question-text {
    padding: 22px;
    background: var(--light);
    border-left: 4px solid var(--primary);
    border-radius: 16px;
    margin-bottom: 20px;
    font-size: 1.04rem;
}

.options-container {
    display: grid;
    gap: 14px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

.option-checkbox {
    width: 34px;
    height: 34px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.solution-box {
    margin-top: 24px;
    overflow: hidden;
}

.solution-header {
    padding: 16px 20px;
    background: #e9f9ef;
    border-bottom: 1px solid #caefd6;
}

.solution-content {
    padding: 20px;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.palette-item {
    aspect-ratio: 1;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--light);
    color: var(--dark);
    border: 1px solid var(--border);
}

.palette-item.current {
    background: var(--primary);
    color: white;
}

.premium-lock-card {
    background: linear-gradient(135deg, #fff0bf, #ffe08b);
    border-radius: 22px;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    max-width: 100%;
}

.pagination--compact {
    align-items: center;
}

.page-link {
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--border);
    background: white;
    color: var(--dark);
}

.page-link--ellipsis {
    border-color: transparent;
    background: transparent;
    color: var(--gray);
    pointer-events: none;
}

.page-link.active {
    background: var(--primary);
    color: white;
}

@media (max-width: 980px) {
    .exam-hero-content,
    .concept-grid,
    .question-layout,
    .quick-practice-card {
        grid-template-columns: 1fr;
    }

    .topic-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .topic-progress {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .question-topbar {
        top: 68px;
    }

    .topic-info,
    .topbar-left,
    .question-actions,
    .action-right {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Premium polish for exam/subject/topic detail pages */
.exam-hero,
.subject-hero,
.topic-hero {
    position: relative;
    overflow: hidden;
}

.exam-hero::before,
.subject-hero::before,
.topic-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.18;
    pointer-events: none;
}

.exam-hero::after,
.subject-hero::after,
.topic-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -110px;
    top: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 72%);
    pointer-events: none;
}

.exam-hero .container,
.subject-hero .container,
.topic-hero .container {
    position: relative;
    z-index: 1;
}

.exam-hero-content {
    grid-template-columns: minmax(0, 1.15fr) 360px;
    align-items: center;
    gap: 42px;
}

.subject-hero .epw-breadcrumb,
.topic-hero .epw-breadcrumb,
.exam-hero .epw-breadcrumb {
    margin-bottom: 22px;
}

.subject-hero .epw-breadcrumb__list,
.topic-hero .epw-breadcrumb__list,
.exam-hero .epw-breadcrumb__list {
    color: rgba(255, 255, 255, 0.74);
}

.subject-hero .epw-breadcrumb__item:not(:last-child)::after,
.topic-hero .epw-breadcrumb__item:not(:last-child)::after,
.exam-hero .epw-breadcrumb__item:not(:last-child)::after {
    color: rgba(255, 255, 255, 0.46);
}

.subject-hero .epw-breadcrumb__item a,
.topic-hero .epw-breadcrumb__item a,
.exam-hero .epw-breadcrumb__item a {
    color: rgba(255, 255, 255, 0.9);
}

.subject-hero .epw-breadcrumb__item a:hover,
.topic-hero .epw-breadcrumb__item a:hover,
.exam-hero .epw-breadcrumb__item a:hover {
    color: #ffffff;
}

.subject-hero .epw-breadcrumb__item--current span,
.topic-hero .epw-breadcrumb__item--current span,
.exam-hero .epw-breadcrumb__item--current span {
    color: #ffffff;
}

.exam-hero-left h1,
.subject-hero h1,
.topic-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    line-height: 1.05;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.exam-full-name {
    max-width: 620px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 20px;
}

.subject-hero > .container > p,
.topic-hero > .container > p,
.subject-hero-content > p,
.topic-hero-content > p,
.subject-hero p,
.topic-hero p {
    color: rgba(255, 255, 255, 0.9);
}

.exam-quick-stats {
    gap: 12px;
    margin-bottom: 22px;
}

.exam-quick-stats .stat,
.subject-stats .stat,
.topic-stats .stat {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.exam-quick-stats .stat i,
.subject-stats .stat i,
.topic-stats .stat i {
    color: #ffb16b;
}

.subject-stats .stat,
.topic-stats .stat {
    box-shadow: 0 10px 24px rgba(8, 17, 58, 0.18);
}

.subject-stats .stat-value,
.topic-stats .stat-value,
.exam-quick-stats .stat-value {
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1;
}

.subject-stats .stat-label,
.topic-stats .stat-label,
.exam-quick-stats .stat-label {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.subject-hero .subject-icon-large,
.subject-hero h1,
.subject-hero .subject-actions .btn,
.subject-hero .subject-stats,
.subject-hero .subject-stats * {
    position: relative;
    z-index: 1;
}

.subject-hero .subject-icon-large,
.subject-hero h1 {
    color: #ffffff;
}

.exam-hero-actions .btn-outline,
.subject-actions .btn-outline,
.topic-meta .btn-outline {
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: white !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.exam-hero-actions .btn-outline:hover,
.subject-actions .btn-outline:hover,
.topic-meta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.52) !important;
}

.exam-info-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.94));
    border: 1px solid rgba(201, 214, 235, 0.8);
    box-shadow: 0 24px 50px -26px rgba(3, 20, 53, 0.5);
    color: #183153 !important;
}

.hero-title {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.hero-description {
    color: rgba(255, 255, 255, 0.84) !important;
}

.exam-hero-card,
.exam-overview-card,
.hero-info-card,
.exam-info-card {
    background: rgba(255, 255, 255, 0.96) !important;
    color: #0b1f3a !important;
    border: 1px solid rgba(220, 228, 239, 0.9) !important;
    box-shadow: 0 12px 30px rgba(11, 31, 58, 0.16) !important;
}

.exam-info-card h3 {
    font-size: 1.18rem;
    margin-bottom: 12px;
    color: #0d2342 !important;
}

.exam-hero-card *,
.exam-overview-card *,
.hero-info-card *,
.exam-info-card,
.exam-info-card p,
.exam-info-card span,
.exam-info-card li,
.exam-info-card li strong,
.exam-info-card li i,
.exam-info-card a {
    color: #0b1f3a !important;
    opacity: 1 !important;
}

.exam-hero-card p,
.exam-overview-card p,
.hero-info-card p,
.exam-hero-card li,
.exam-overview-card li,
.hero-info-card li,
.exam-info-card p,
.exam-info-card li {
    color: #2d3f55 !important;
}

.exam-info-card ul {
    margin: 0;
    padding: 0;
}

.exam-info-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #46617f !important;
    border-top: 1px solid rgba(207, 220, 238, 0.8);
}

.exam-info-card li:first-child {
    border-top: 0;
    padding-top: 0;
}

.exam-info-card li i {
    color: var(--primary) !important;
    margin-top: 3px;
}

.exam-info-card li strong {
    color: #0d2342 !important;
}

#subjects.section,
.section.bg-light {
    position: relative;
}

#subjects.section {
    background:
        radial-gradient(circle at top left, rgba(15, 108, 189, 0.08), transparent 32%),
        linear-gradient(180deg, #f6f9fe 0%, #ffffff 75%);
}

.section.bg-light {
    background:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.06), transparent 28%),
        linear-gradient(180deg, #f7f9fd 0%, #eef3fa 100%) !important;
}

.subjects-grid {
    gap: 22px;
}

.subject-card,
.related-topic-card,
.related-subject-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
    border: 1px solid rgba(211, 223, 239, 0.95);
    box-shadow: 0 18px 36px -28px rgba(11, 31, 58, 0.26);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.subject-card::before,
.related-topic-card::before,
.related-subject-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, var(--primary), #ff8a3d);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.subject-card:hover,
.related-topic-card:hover,
.related-subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 44px -28px rgba(15, 108, 189, 0.28);
    border-color: rgba(15, 108, 189, 0.28);
}

.subject-card:hover::before,
.related-topic-card:hover::before,
.related-subject-card:hover::before {
    opacity: 1;
}

.subject-card h3,
.related-topic-card h3,
.related-subject-card h3,
.topic-item h3 {
    color: #10233f;
    margin-bottom: 8px;
}

.subject-card p,
.related-topic-card p,
.related-subject-card p {
    color: #5d7289;
    line-height: 1.6;
}

.subject-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(15, 108, 189, 0.12), rgba(255, 138, 61, 0.12));
    color: var(--primary);
    font-size: 1.75rem;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(15, 108, 189, 0.08);
    overflow: hidden;
    text-align: center;
}

.subject-topics {
    margin-top: auto;
    padding-top: 10px;
}

.topic-tag {
    background: #eef4fb;
    color: #46617f;
    border: 1px solid rgba(184, 204, 229, 0.6);
    font-weight: 600;
}

.subject-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(222, 231, 243, 0.8);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
}

.topic-item {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(209, 222, 240, 0.95);
    box-shadow: 0 16px 34px -28px rgba(11, 31, 58, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topic-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 38px -28px rgba(15, 108, 189, 0.24);
    border-color: rgba(15, 108, 189, 0.28);
}

.topic-number {
    background: linear-gradient(135deg, rgba(15, 108, 189, 0.16), rgba(255, 138, 61, 0.18));
    color: #0b2a4f;
    box-shadow: inset 0 0 0 1px rgba(15, 108, 189, 0.08);
}

.topic-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #587089;
    font-weight: 600;
}

@media (max-width: 980px) {
    .exam-hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .exam-info-card {
        max-width: 560px;
    }
}

@media (max-width: 640px) {
    .exam-hero,
    .subject-hero,
    .topic-hero {
        padding: 70px 0 44px;
    }

    .exam-quick-stats .stat,
    .subject-stats .stat,
    .topic-stats .stat {
        width: 100%;
        justify-content: flex-start;
    }

    .subject-card,
    .related-topic-card,
    .related-subject-card {
        min-height: auto;
    }
}

.exam-hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1f3a 0%, #123c72 55%, #1b5aa6 100%);
    padding: 88px 0 84px;
}

.exam-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.exam-hero-section .exam-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
    gap: 56px;
    align-items: center;
}

.exam-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.exam-breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.exam-breadcrumb a:hover {
    color: #ffffff;
}

.exam-breadcrumb span {
    color: rgba(255, 255, 255, 0.55);
}

.exam-breadcrumb .current {
    color: #ffffff;
    font-weight: 700;
}

.exam-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 22px;
}

.exam-hero-badge i {
    color: #ff8a3d;
}

.exam-hero-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.exam-icon-box {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.9rem;
    flex-shrink: 0;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.exam-title-wrap {
    flex: 1;
}

.exam-hero-title {
    margin: 0 0 10px;
    font-size: clamp(2.2rem, 4.2vw, 3.3rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.exam-hero-subtitle {
    margin: 0;
    max-width: 640px;
    font-size: 1.04rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
}

.exam-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin: 26px 0 28px;
}

.exam-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 600;
}

.exam-meta-item i {
    color: #ff8a3d;
}

.exam-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.exam-hero-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.exam-hero-cta .btn-primary {
    background: #f26522;
    border: 1px solid #f26522;
    color: #fff;
    box-shadow: 0 8px 22px rgba(242, 101, 34, 0.28);
}

.exam-hero-cta .btn-primary:hover {
    background: #ff7d3b;
    border-color: #ff7d3b;
    transform: translateY(-2px);
}

.exam-hero-cta .btn-outline-light {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.exam-hero-cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

.exam-trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
}

.exam-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    font-weight: 600;
}

.exam-trust-item i {
    color: #ff8a3d;
}

.exam-hero-right {
    position: relative;
}

.exam-overview-card {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(220, 228, 239, 0.9) !important;
    border-radius: 28px;
    padding: 28px 26px;
    box-shadow: 0 12px 30px rgba(11, 31, 58, 0.16) !important;
    color: #0b1f3a !important;
    position: relative;
    z-index: 2;
}

.exam-overview-card * {
    color: #0b1f3a !important;
    opacity: 1 !important;
}

.exam-overview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.exam-overview-top h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0b1f3a;
}

.overview-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(45, 125, 210, 0.1);
    color: #2d7dd2 !important;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid rgba(45, 125, 210, 0.16);
}

.exam-overview-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.exam-overview-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e8edf5;
}

.exam-overview-list li:last-child {
    border-bottom: none;
}

.exam-overview-list li i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f4f7fb;
    color: #2d7dd2 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.exam-overview-list li strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0b1f3a !important;
}

.exam-overview-list li span {
    display: block;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #4e6278 !important;
}

.exam-overview-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e8edf5;
}

.overview-stat strong {
    display: block;
    margin-bottom: 4px;
    color: #0b1f3a;
    font-size: 0.95rem;
    font-weight: 800;
}

.overview-stat span {
    display: block;
    color: #5a6e85;
    font-size: 0.88rem;
    line-height: 1.6;
}

.exam-floating-mini {
    position: absolute;
    left: -26px;
    bottom: -18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 14px 34px rgba(11, 31, 58, 0.14);
    max-width: 230px;
    z-index: 3;
}

.exam-floating-mini i {
    color: #f26522;
    font-size: 1.15rem;
}

.exam-floating-mini strong {
    display: block;
    color: #0b1f3a;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.3;
}

.exam-floating-mini p {
    margin: 2px 0 0;
    color: #5a6e85;
    font-size: 0.78rem;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .exam-hero-section .exam-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .exam-hero-left {
        text-align: center;
    }

    .exam-breadcrumb,
    .exam-meta-row,
    .exam-hero-cta,
    .exam-trust-points {
        justify-content: center;
    }

    .exam-hero-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .exam-hero-right {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }

    .exam-floating-mini {
        left: 0;
        bottom: -16px;
    }
}

@media (max-width: 576px) {
    .exam-hero-section {
        padding: 58px 0 54px;
    }

    .exam-hero-title {
        font-size: 2rem;
    }

    .exam-hero-subtitle {
        font-size: 0.96rem;
    }

    .exam-hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .exam-hero-cta .btn {
        justify-content: center;
    }

    .exam-meta-row,
    .exam-trust-points {
        gap: 12px;
    }

    .exam-overview-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .exam-floating-mini {
        display: none;
    }
}

/* Extra mobile safety overrides */
@media (max-width: 640px) {
    .question-topbar {
        top: 64px;
    }

    .topbar-content,
    .question-preview-header,
    .question-preview-footer,
    .question-meta,
    .question-tags,
    .topic-item,
    .topic-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .topic-progress,
    .question-actions,
    .action-right {
        width: 100%;
    }

    .palette-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .palette-item,
    .page-link {
        min-width: 0;
    }

    .pagination--compact {
        gap: 6px;
    }

    .pagination--compact .page-link {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 0.92rem;
    }

    .pagination--compact .page-link--mobile-extra {
        display: none;
    }

    .question-main,
    .solution-content,
    .instructions-card,
    .stats-card,
    .palette-card,
    .question-preview-card,
    .exam-info-card,
    .subject-card,
    .related-topic-card,
    .related-subject-card,
    .topic-item,
    .quick-practice-card {
        padding: 18px;
    }

    .exam-overview-top,
    .exam-overview-list li,
    .exam-hero-header {
        align-items: flex-start;
    }

    .exam-overview-top {
        flex-direction: column;
    }

    .exam-icon-box {
        width: 60px;
        height: 60px;
        border-radius: 18px;
        font-size: 1.5rem;
    }
}

@media (max-width: 420px) {
    .palette-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .topic-number,
    .option-checkbox {
        flex-shrink: 0;
    }
}
