/* ==========================================================================
   ExamLearn - Exams (listing + exam detail)
   ========================================================================== */
.ex-page {
    --ex-surface: #ffffff; --ex-border: #e9eef5; --ex-ink: #0f172a; --ex-ink-2: #475569; --ex-muted: #64748b;
    --ex-soft: #f8fafc; --ex-accent: var(--t-600, #4f46e5); --ex-accent-soft: var(--t-50, #eef2ff); --ex-track: #e2e8f0;
    --ex-ok: #15803d; --ex-ok-soft: #dcfce7; --ex-warn: #b45309; --ex-warn-soft: #fef3c7; --ex-info: #0369a1; --ex-info-soft: #e0f2fe;
    --ex-top: 76px;
    padding: 22px 0 56px;
}
[data-bs-theme="dark"] .ex-page, html.dark-theme .ex-page {
    --ex-surface: #161b22; --ex-border: #30363d; --ex-ink: #f0f6fc; --ex-ink-2: #c9d1d9; --ex-muted: #8b949e;
    --ex-soft: #0d1117; --ex-accent: var(--t-400, #818cf8); --ex-accent-soft: rgba(var(--t-400-rgb, 129, 140, 248), .14); --ex-track: #30363d;
    --ex-ok: #4ade80; --ex-ok-soft: rgba(74, 222, 128, .12); --ex-warn: #fbbf24; --ex-warn-soft: rgba(251, 191, 36, .12);
    --ex-info: #7dd3fc; --ex-info-soft: rgba(125, 211, 252, .12);
}
.ex-page .min-w-0 { min-width: 0; }

.ex-card-box { background: var(--ex-surface); border: 1px solid var(--ex-border); border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(15, 23, 42, .03); }
.ex-h2 { font-size: 17px; font-weight: 800; color: var(--ex-ink); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.ex-h2 > i { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; background: var(--ex-accent-soft); color: var(--ex-accent); flex-shrink: 0; }
.ex-h3 { font-size: 14.5px; font-weight: 700; color: var(--ex-ink); margin: 18px 0 10px; }
.ex-text { font-size: 14.5px; line-height: 1.75; color: var(--ex-ink-2); white-space: pre-line; }
.ex-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 11px; font-size: 13.5px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: all .15s ease; }
.ex-btn-primary { background: var(--t-600, #4f46e5); color: #fff; }
.ex-btn-primary:hover { background: var(--t-700, #4338ca); color: #fff; }
.ex-btn-soft { background: var(--ex-soft); color: var(--ex-ink-2); border-color: var(--ex-border); }
.ex-btn-soft:hover { border-color: var(--ex-accent); color: var(--ex-accent); }

/* category tones (emblems) */
.tone-indigo { --tone: var(--t-600, #4f46e5); --tone-soft: var(--t-50, #eef2ff); } .tone-rose { --tone: #e11d48; --tone-soft: #ffe4e6; }
.tone-sky { --tone: #0284c7; --tone-soft: #e0f2fe; } .tone-amber { --tone: #d97706; --tone-soft: #fef3c7; }
.tone-teal { --tone: #0d9488; --tone-soft: #ccfbf1; } .tone-green { --tone: #16a34a; --tone-soft: #dcfce7; }
.tone-slate { --tone: #475569; --tone-soft: #e2e8f0; } .tone-violet { --tone: #7c3aed; --tone-soft: #ede9fe; }
.tone-red { --tone: #dc2626; --tone-soft: #fee2e2; } .tone-blue { --tone: #2563eb; --tone-soft: #dbeafe; }
.tone-orange { --tone: #ea580c; --tone-soft: #ffedd5; } .tone-brown { --tone: #92400e; --tone-soft: #fef3c7; }
.tone-cyan { --tone: #0891b2; --tone-soft: #cffafe; }
[data-bs-theme="dark"] .ex-page [class*="tone-"], html.dark-theme .ex-page [class*="tone-"] { --tone-soft: rgba(255, 255, 255, .07); }
[data-bs-theme="dark"] .ex-page .tone-slate, html.dark-theme .ex-page .tone-slate { --tone: #94a3b8; }
[data-bs-theme="dark"] .ex-page .tone-brown, html.dark-theme .ex-page .tone-brown { --tone: #fbbf24; }
.ex-emblem { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; background: var(--tone-soft); color: var(--tone); flex-shrink: 0; }

/* status badges (always icon + text) */
.ex-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.st-upcoming { background: var(--ex-info-soft); color: var(--ex-info); }
.st-ongoing { background: var(--ex-ok-soft); color: var(--ex-ok); }
.st-completed { background: var(--ex-soft); color: var(--ex-muted); border: 1px solid var(--ex-border); }

/* ---------- hero ---------- */
.ex-hero {
    position: relative; overflow: hidden; border-radius: 22px; padding: 26px 30px; margin-bottom: 18px; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, rgba(168, 85, 247, .5) 0%, rgba(168, 85, 247, 0) 55%), linear-gradient(135deg, var(--t-950, #1e1b4b) 0%, var(--t-900, #312e81) 55%, var(--t-700, #4338ca) 100%);
}
.ex-hero::after { content: ''; position: absolute; right: -70px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); pointer-events: none; }
.ex-hero > * { position: relative; z-index: 1; }
.ex-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; margin-bottom: 14px; color: rgba(255, 255, 255, .7); }
.ex-crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.ex-crumbs a:hover { color: #fff; text-decoration: underline; }
.ex-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; color: #fff; }
.ex-hero p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14.5px; line-height: 1.6; max-width: 700px; }
.ex-hero-search { position: relative; max-width: 560px; margin-top: 18px; }
.ex-hero-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #64748b; }
.ex-hero-search input { width: 100%; height: 50px; border-radius: 14px; border: 0; padding: 0 16px 0 44px; font-size: 14.5px; color: #0f172a; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .2); outline: none; }
.ex-hero-search input:focus { box-shadow: 0 0 0 3px rgba(var(--t-300-rgb, 165, 180, 252), .6), 0 10px 24px rgba(15, 23, 42, .2); }
.ex-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ex-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .92); text-decoration: none; }
.ex-pill b { color: #fff; }
a.ex-pill:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- listing filters ---------- */
.ex-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; scrollbar-width: thin; }
.ex-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ex-ink-2); background: var(--ex-surface); border: 1px solid var(--ex-border); text-decoration: none; transition: all .15s ease; }
.ex-chip i { color: var(--tone, var(--ex-accent)); }
.ex-chip span { font-size: 11px; font-weight: 700; color: var(--ex-muted); }
.ex-chip:hover { border-color: var(--ex-accent); color: var(--ex-accent); }
.ex-chip.active { background: var(--t-600, #4f46e5); border-color: var(--t-600, #4f46e5); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(var(--t-600-rgb, 79, 70, 229), .25); }
.ex-chip.active i, .ex-chip.active span { color: #fff; }
.ex-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ex-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ex-surface); border: 1px solid var(--ex-border); }
.ex-seg a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ex-ink-2); text-decoration: none; }
.ex-seg a span { font-size: 11px; opacity: .7; }
.ex-seg a:hover { color: var(--ex-accent); }
.ex-seg a.active { background: var(--t-600, #4f46e5); color: #fff; }
.ex-sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ex-muted); }
.ex-sort select { height: 42px; border-radius: 11px; border: 1px solid var(--ex-border); background-color: var(--ex-surface); color: var(--ex-ink); font-size: 13px; padding: 0 34px 0 12px; }
.ex-count { font-size: 13px; color: var(--ex-muted); }
.ex-count b { color: var(--ex-ink); }

/* ---------- exam cards ---------- */
.ex-card {
    position: relative; display: flex; flex-direction: column; height: 100%; padding: 18px; border-radius: 16px; text-decoration: none; color: inherit;
    background: var(--ex-surface); border: 1px solid var(--ex-border); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ex-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 16px 16px 0 0; background: var(--tone); opacity: .9; }
.ex-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, .09); border-color: color-mix(in srgb, var(--tone) 45%, var(--ex-border)); color: inherit; }
.ex-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ex-card h3 { font-size: 16px; font-weight: 800; color: var(--ex-ink); margin: 0 0 4px; line-height: 1.3; }
.ex-card-sub { font-size: 12.8px; color: var(--ex-muted); line-height: 1.5; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ex-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ex-tag { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: var(--ex-soft); color: var(--ex-ink-2); border: 1px solid var(--ex-border); }
.ex-date { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: var(--ex-warn-soft); color: var(--ex-warn); margin-bottom: 12px; }
.ex-date b { font-weight: 700; }
.ex-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--ex-border); font-size: 12.5px; color: var(--ex-muted); }
.ex-card-foot .go { font-weight: 700; color: var(--ex-accent); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ex-card:hover .go i { transform: translateX(3px); }
.ex-card .go i { transition: transform .15s ease; }
.ex-res { display: flex; gap: 12px; flex-wrap: wrap; }
.ex-res span { display: inline-flex; align-items: center; gap: 5px; }
.ex-featured { position: absolute; top: 12px; right: 12px; }
.ex-star { color: #f59e0b; font-size: 13px; }

.ex-empty { text-align: center; padding: 44px 20px; }
.ex-empty-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--ex-accent-soft); color: var(--ex-accent); }
.ex-empty h3 { font-size: 18px; font-weight: 700; color: var(--ex-ink); }
.ex-empty p { color: var(--ex-muted); font-size: 14px; max-width: 440px; margin: 0 auto 16px; }
.ex-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding: 20px 22px; border-radius: 16px; background: var(--ex-accent-soft); border: 1px dashed var(--ex-accent); }
.ex-cta h3 { font-size: 16px; font-weight: 800; color: var(--ex-ink); margin: 0 0 2px; }
.ex-cta p { margin: 0; font-size: 13.5px; color: var(--ex-muted); }

/* ---------- detail hero ---------- */
.ex-dhero-main { display: flex; gap: 18px; align-items: flex-start; }
.ex-dhero .ex-emblem { width: 68px; height: 68px; font-size: 30px; border-radius: 20px; background: rgba(255, 255, 255, .95); box-shadow: 0 10px 24px rgba(15, 23, 42, .25); }
.ex-dhero .ex-status { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.ex-dhero-sub { font-size: 14.5px; color: rgba(255, 255, 255, .85); margin: 0 0 4px; }
.ex-dhero-body { flex: 1; min-width: 0; }
.ex-dhero-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.ex-dhero-title h1 { margin: 0; }
.ex-dhero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.ex-dhero-actions .ex-btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.ex-dhero-actions .ex-btn:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.ex-dhero-actions .ex-btn.primary { background: #fff; color: var(--t-800, #3730a3); border-color: #fff; }
.ex-dhero-actions .ex-btn.primary:hover { background: var(--t-50, #eef2ff); color: var(--t-800, #3730a3); }
.ex-next { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 14px; border-radius: 12px; background: rgba(251, 191, 36, .18); border: 1px solid rgba(251, 191, 36, .35); color: #fde68a; font-size: 13px; }
.ex-next b { color: #fff; }

.ex-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.ex-kpi { background: var(--ex-surface); border: 1px solid var(--ex-border); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.ex-kpi > i { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; background: var(--ex-accent-soft); color: var(--ex-accent); flex-shrink: 0; }
.ex-kpi b { display: block; font-size: 19px; font-weight: 800; color: var(--ex-ink); line-height: 1.15; }
.ex-kpi span { font-size: 12px; color: var(--ex-muted); }
a.ex-kpi:hover { border-color: var(--ex-accent); }

/* sticky section nav */
.ex-secnav { position: sticky; top: calc(var(--ex-top) + 8px); z-index: 20; display: flex; gap: 4px; padding: 5px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none;
    background: color-mix(in srgb, var(--ex-surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--ex-border); border-radius: 14px; box-shadow: 0 6px 18px rgba(15, 23, 42, .06); }
.ex-secnav::-webkit-scrollbar { display: none; }
.ex-secnav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ex-muted); text-decoration: none; white-space: nowrap; }
.ex-secnav a:hover { color: var(--ex-ink); background: var(--ex-soft); }
.ex-secnav a.active { background: var(--t-600, #4f46e5); color: #fff; }
.ex-section { scroll-margin-top: calc(var(--ex-top) + 80px); }

.ex-typical { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; padding: 9px 12px; border-radius: 10px; background: var(--ex-warn-soft); color: var(--ex-warn); margin-bottom: 14px; }

.ex-hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ex-hl { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--ex-soft); border: 1px solid var(--ex-border); min-width: 0; }
.ex-hl > i { color: var(--ex-accent); font-size: 16px; margin-top: 1px; }
.ex-hl small { display: block; font-size: 11.5px; color: var(--ex-muted); }
.ex-hl b { display: block; font-size: 13.5px; color: var(--ex-ink); line-height: 1.35; overflow-wrap: anywhere; }

/* timeline */
.ex-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ex-timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--ex-track); }
.ex-timeline li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 10px 36px; border-bottom: 1px dashed var(--ex-border); font-size: 14px; }
.ex-timeline li:last-child { border-bottom: 0; }
.ex-timeline li::before { content: ''; position: absolute; left: 4px; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--ex-surface); border: 3px solid var(--t-600, #4f46e5); }
.ex-timeline li.past::before { border-color: var(--ex-track); background: var(--ex-track); }
.ex-timeline li.past { opacity: .7; }
.ex-timeline .lbl { color: var(--ex-ink-2); }
.ex-timeline .lbl small { display: block; color: var(--ex-muted); font-size: 12px; }
.ex-timeline .val { font-weight: 700; color: var(--ex-ink); text-align: right; white-space: nowrap; }

/* stages */
.ex-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; counter-reset: stage; }
.ex-stage { position: relative; padding: 16px; border-radius: 14px; background: var(--ex-soft); border: 1px solid var(--ex-border); }
.ex-stage-no { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 9px; background: var(--t-600, #4f46e5); color: #fff; font-size: 12.5px; font-weight: 800; margin-bottom: 10px; }
.ex-stage h4 { font-size: 14.5px; font-weight: 700; color: var(--ex-ink); margin: 0 0 2px; }
.ex-stage .mode { font-size: 12px; color: var(--ex-accent); font-weight: 600; margin-bottom: 8px; }
.ex-stage p { font-size: 13px; color: var(--ex-ink-2); line-height: 1.55; margin: 0 0 10px; }
.ex-stage .nature { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ex-accent-soft); color: var(--ex-accent); }

.ex-table-wrap { overflow-x: auto; border: 1px solid var(--ex-border); border-radius: 12px; }
.ex-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13.5px; }
.ex-table th { background: var(--ex-soft); color: var(--ex-ink); font-weight: 700; text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--ex-border); white-space: nowrap; }
.ex-table td { padding: 11px 12px; border-bottom: 1px solid var(--ex-border); color: var(--ex-ink-2); vertical-align: top; }
.ex-table tr:last-child td { border-bottom: 0; }
.ex-table td:first-child { font-weight: 700; color: var(--ex-ink); white-space: nowrap; }
.ex-table .subj { white-space: pre-line; min-width: 220px; }

.ex-list-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; list-style: none; padding: 0; margin: 0; }
.ex-list-2 li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ex-ink-2); line-height: 1.5; }
.ex-list-2 li i { color: var(--ex-ok); margin-top: 3px; }
.ex-posts { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-post { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; background: var(--ex-soft); border: 1px solid var(--ex-border); font-size: 13px; font-weight: 600; color: var(--ex-ink); }
.ex-post i { color: var(--ex-accent); }

.ex-prep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ex-prep a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; text-decoration: none; background: var(--ex-soft); border: 1px solid var(--ex-border); transition: all .15s ease; }
.ex-prep a:hover { border-color: var(--ex-accent); transform: translateY(-2px); }
.ex-prep i { font-size: 20px; color: var(--ex-accent); margin-bottom: 6px; }
.ex-prep b { font-size: 14px; color: var(--ex-ink); }
.ex-prep span { font-size: 12.5px; color: var(--ex-muted); line-height: 1.45; }
.ex-mock { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--ex-border); text-decoration: none; margin-bottom: 8px; background: var(--ex-surface); }
.ex-mock:hover { border-color: var(--ex-accent); }
.ex-mock > i { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--ex-accent-soft); color: var(--ex-accent); flex-shrink: 0; }
.ex-mock b { display: block; font-size: 13.5px; color: var(--ex-ink); }
.ex-mock small { font-size: 12px; color: var(--ex-muted); }

.ex-faq .accordion-item { background: var(--ex-surface); border: 1px solid var(--ex-border); border-radius: 12px !important; margin-bottom: 8px; overflow: hidden; }
.ex-faq .accordion-button { background: var(--ex-surface); color: var(--ex-ink); font-size: 14px; font-weight: 600; box-shadow: none; }
.ex-faq .accordion-button:not(.collapsed) { background: var(--ex-accent-soft); color: var(--ex-accent); }
.ex-faq .accordion-body { font-size: 14px; line-height: 1.7; color: var(--ex-ink-2); }
[data-bs-theme="dark"] .ex-faq .accordion-button::after, html.dark-theme .ex-faq .accordion-button::after { filter: invert(1) brightness(1.6); }

/* sidebar */
.ex-side-title { font-size: 14.5px; font-weight: 700; color: var(--ex-ink); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.ex-side-title i { color: var(--ex-accent); }
.ex-qi { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--ex-border); font-size: 13px; }
.ex-qi:last-child { border-bottom: 0; }
.ex-qi span { color: var(--ex-muted); }
.ex-qi b { color: var(--ex-ink); text-align: right; overflow-wrap: anywhere; }
.ex-links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ex-ink-2); text-decoration: none; }
.ex-links a:hover { background: var(--ex-soft); color: var(--ex-accent); }
.ex-links a i:last-child { margin-left: auto; font-size: 11px; opacity: .6; }
.ex-prep-cta { position: relative; overflow: hidden; border-radius: 16px; padding: 20px; margin-bottom: 20px; color: #fff; background: linear-gradient(135deg, #7c3aed 0%, var(--t-600, #4f46e5) 100%); }
.ex-prep-cta::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.ex-prep-cta h3 { font-size: 16px; font-weight: 800; margin: 0 0 4px; color: #fff; }
.ex-prep-cta p { font-size: 13px; opacity: .88; margin: 0 0 14px; }
.ex-prep-cta .ex-btn { position: relative; z-index: 1; background: #fff; color: var(--t-700, #4338ca); width: 100%; }
.ex-prep-cta .ex-btn + .ex-btn { margin-top: 8px; background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .3); }
.ex-rel { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; }
.ex-rel:hover { background: var(--ex-soft); }
.ex-rel .ex-emblem { width: 38px; height: 38px; font-size: 16px; border-radius: 11px; }
.ex-rel b { display: block; font-size: 13.5px; color: var(--ex-ink); }
.ex-rel small { font-size: 12px; color: var(--ex-muted); }

/* ---------- responsive ---------- */
@media (min-width: 992px) { .ex-side { position: sticky; top: calc(var(--ex-top) + 12px); } }
@media (max-width: 1199.98px) { .ex-hl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991.98px) { .ex-page { padding-top: 14px; } .ex-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px) {
    .ex-hero { padding: 20px 16px; border-radius: 18px; }
    .ex-hero h1 { font-size: 23px; }
    .ex-hero p { font-size: 13.5px; }
    .ex-dhero-main { gap: 12px; }
    .ex-dhero .ex-emblem { width: 52px; height: 52px; font-size: 23px; border-radius: 15px; }
    .ex-dhero-actions .ex-btn { flex: 1 1 calc(50% - 8px); }
    .ex-hl-grid, .ex-list-2, .ex-prep { grid-template-columns: 1fr; }
    .ex-card-box { padding: 16px; }
    .ex-toolbar { flex-direction: column; align-items: stretch; }
    .ex-sort { justify-content: space-between; }
    .ex-seg { overflow-x: auto; flex-wrap: nowrap; min-width: 0; max-width: 100%; scrollbar-width: none; }
    .ex-seg a { flex-shrink: 0; }
    .ex-sort { min-width: 0; flex-wrap: wrap; }
    .ex-sort form { flex: 1 1 160px; }
    .ex-sort select { width: 100%; }
    .ex-timeline li { flex-direction: column; gap: 2px; }
    .ex-timeline .val { text-align: left; }
}
@media (max-width: 420px) { .ex-kpis { grid-template-columns: 1fr 1fr; gap: 8px; } .ex-kpi { padding: 12px; } .ex-kpi > i { display: none; } }
