:root {
    --exam-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
    --exam-soft-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    --exam-surface: rgba(30, 41, 59, 0.92);
    --exam-border: rgba(148, 163, 184, 0.16);
}

.exam-shell {
    margin-top: 50px;
    margin-bottom: 44px;
    min-height: calc(100vh - 94px);
    display: block !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 0 30px !important;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 25%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.content-area.exam-shell,
.main-content.exam-shell {
    width: 100%;
    max-width: none !important;
    padding: 0 !important;
}

.exam-page-home {
    --exam-accent: #3b82f6;
    --exam-accent-2: #1d4ed8;
    --exam-soft: rgba(59, 130, 246, 0.14);
}

.exam-page-exams {
    --exam-accent: #6366f1;
    --exam-accent-2: #4338ca;
    --exam-soft: rgba(99, 102, 241, 0.14);
}

.exam-page-take {
    --exam-accent: #0ea5e9;
    --exam-accent-2: #0369a1;
    --exam-soft: rgba(14, 165, 233, 0.14);
}

.exam-page-quiz {
    --exam-accent: #22c55e;
    --exam-accent-2: #166534;
    --exam-soft: rgba(34, 197, 94, 0.14);
}

.exam-page-certs {
    --exam-accent: #f59e0b;
    --exam-accent-2: #b45309;
    --exam-soft: rgba(245, 158, 11, 0.16);
}

.exam-shell .eh-banner,
.exam-shell .be-banner,
.exam-shell .te-banner,
.exam-shell .bq-banner,
.exam-shell .tc-banner {
    position: relative;
    left: auto;
    width: auto;
    margin: 0 calc(50% - 50vw) 18px;
    padding: 24px clamp(18px, 3.5vw, 34px) !important;
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: var(--exam-shadow);
}

.exam-shell .eh-banner::before,
.exam-shell .be-banner::before,
.exam-shell .te-banner::before,
.exam-shell .bq-banner::before,
.exam-shell .tc-banner::before,
.exam-shell .eh-banner::after,
.exam-shell .be-banner::after,
.exam-shell .te-banner::after,
.exam-shell .bq-banner::after,
.exam-shell .tc-banner::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.exam-shell .eh-banner::before,
.exam-shell .be-banner::before,
.exam-shell .te-banner::before,
.exam-shell .bq-banner::before,
.exam-shell .tc-banner::before {
    width: 320px;
    height: 320px;
    right: -90px;
    top: -180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 72%);
    animation: examFloat 18s ease-in-out infinite;
}

.exam-shell .eh-banner::after,
.exam-shell .be-banner::after,
.exam-shell .te-banner::after,
.exam-shell .bq-banner::after,
.exam-shell .tc-banner::after {
    width: 220px;
    height: 220px;
    left: -70px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 74%);
    animation: examFloat 20s ease-in-out infinite reverse;
}

.exam-shell .eh-banner > *,
.exam-shell .be-banner > *,
.exam-shell .te-banner > *,
.exam-shell .bq-banner > *,
.exam-shell .tc-banner > * {
    position: relative;
    z-index: 1;
}

.exam-module-strip {
    max-width: 1260px;
    margin: -2px auto 22px;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.exam-module-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.exam-module-card {
    min-height: 118px;
    padding: 16px;
    border-radius: 18px;
    text-decoration: none;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: var(--exam-soft-shadow);
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.exam-module-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.22);
}

.exam-module-card.is-active {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(30, 41, 59, 0.84));
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.28);
}

.exam-module-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--exam-soft), rgba(255, 255, 255, 0.1));
    color: #fff;
    font-size: 15px;
}

.exam-module-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.exam-module-title {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
}

.exam-module-text {
    font-size: 12px;
    line-height: 1.55;
    color: #94a3b8;
}

.exam-shell .eh-layout,
.exam-shell .be-layout,
.exam-shell .te-layout,
.exam-shell .bq-layout,
.exam-shell .tc-layout {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 16px;
}

.exam-shell .eh-hero,
.exam-shell .eh-card,
.exam-shell .be-filters,
.exam-shell .be-card,
.exam-shell .be-my-card,
.exam-shell .be-stat-card,
.exam-shell .te-intro,
.exam-shell .te-exam-header,
.exam-shell .te-q-card,
.exam-shell .te-result-hero,
.exam-shell .te-review,
.exam-shell .te-sb-card,
.exam-shell .bq-daily,
.exam-shell .bq-quiz-card,
.exam-shell .bq-sb-card,
.exam-shell .tc-history,
.exam-shell .tc-cert-card,
.exam-shell .tc-sb-card {
    box-shadow: var(--exam-soft-shadow);
    border-color: var(--exam-border) !important;
}

.exam-shell .eh-hero,
.exam-shell .be-filters,
.exam-shell .te-intro,
.exam-shell .bq-daily,
.exam-shell .tc-history,
.exam-shell .bq-quiz-card,
.exam-shell .te-q-card,
.exam-shell .te-result-hero {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.exam-shell .eh-section-title i,
.exam-shell .eh-card h3 i,
.exam-shell .be-banner .be-ban-icon,
.exam-shell .be-my-card h3 i,
.exam-shell .be-stat-card h3 i,
.exam-shell .te-sb-card h3 i,
.exam-shell .bq-sb-card h3 i,
.exam-shell .tc-sb-card h3 i {
    filter: saturate(1.1);
}

@keyframes examFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 12px, 0) scale(1.04);
    }
}

@media (max-width: 1100px) {
    .exam-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .exam-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .exam-module-card {
        min-height: 108px;
        padding: 14px;
    }

    .exam-shell .eh-banner,
    .exam-shell .be-banner,
    .exam-shell .te-banner,
    .exam-shell .bq-banner,
    .exam-shell .tc-banner {
        padding: 20px 16px !important;
    }
}

@media (max-width: 520px) {
    .exam-module-grid {
        grid-template-columns: 1fr;
    }
}
