/* Stexo layout: TDA brand — navy sidebar, orange accent, white content */
:root {
    --stexo-sidebar-width: 260px;
    --stexo-sidebar-bg: #1a3050;
    --stexo-sidebar-hover: rgba(255, 255, 255, 0.08);
    --stexo-sidebar-active: rgba(233, 104, 35, 0.22);
    --stexo-topbar-height: 70px;
    --stexo-topbar-bg: #f99058;
    --stexo-primary: #1a3050;
    --stexo-primary-dark: #132438;
    --stexo-accent: #f99058;
    --stexo-accent-dark: #f99058;
    --stexo-body-bg: #fff;
    --stexo-card-shadow: 0 0 35px 0 rgba(26, 48, 80, 0.08);
}

.table-light {
    --bs-table-color: #000;
    --bs-table-bg: rgba(26, 48, 80, 0.08);
}
.form-control {
    font-size: 13px;
}
.stexo-page-title {
    font-size: 18px !important;
    font-weight: 600 !important;
}
.btn-primary.stexo-btn-primary, .stexo-btn-primary {
    font-size: 14px !important;
}
button.btn.btn-primary.stexo-btn-primary {
    font-size: 12px !important;
}
a.btn.btn-light {
    font-size: 14px;
}
.stexo-table {
     font-size: 12px !important;
}
.stexo-table thead th
{
    font-size: 11px !important;
    padding: 10px 10px !important;
}

/* Bootstrap tooltip font size */
.tooltip {
    font-size: 11px !important;
}
 
  

/* Bootstrap tooltip theme: light yellow bg + black text */
.tooltip .tooltip-inner {
    background-color: #fff3cd !important; /* Bootstrap warning light */
    color: #000 !important;
    border: 1px solid #ffe69c;
}
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: #fff3cd !important;
}
.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: #fff3cd !important;
}
.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: #fff3cd !important;
}
.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: #fff3cd !important;
}
.px-3.py-2.bg-primary.text-white.fw-semibold.small {
    background: var(--stexo-sidebar-bg) !important;
}
button.btn.btn-secondary {
    font-size: 12px;
}

.stexo-sidebar-brand {
    border-bottom:none !important;
}
.stexo-card .card-body {
    padding: 10px !important;
}
.stexo-table tbody td {
    padding: 10px 10px !important;
    vertical-align: middle ;
}
.form-select {
    font-size: 12px;
}

body.stexo-body {
    background: var(--stexo-body-bg);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 12px;
}

/* Layout wrapper: sidebar + right side */
.stexo-layout {
    display: flex;
    min-height: 100vh;
}

/* ========== LEFT SIDEBAR (dark) ========== */
.stexo-sidebar {
    width: var(--stexo-sidebar-width);
    min-width: var(--stexo-sidebar-width);
    background: var(--stexo-sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, margin 0.2s;
}

.stexo-sidebar-brand {
    height: var(--stexo-topbar-height);
    min-height: var(--stexo-topbar-height);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Full-color TDA logo: white chip so navy blocks read on navy sidebar / header */
.stexo-brand-logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 44px;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    box-sizing: content-box;
}
.stexo-auth-header .stexo-brand-logo {
    max-height: 52px;
    margin-left: auto;
    margin-right: auto;
}

.stexo-sidebar-brand a {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.stexo-sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 6px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stexo-sidebar-nav .nav-group {
    flex-shrink: 0;
}

.stexo-sidebar-nav .nav-group--flat {
    padding-bottom: 2px;
}

.stexo-sidebar-nav .nav-section {
    margin-bottom: 4px;
}

.stexo-sidebar-nav .nav-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.45);
    padding: 8px 16px 4px;
}

.stexo-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    padding: 7px 16px;
    min-height: 34px;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1.25;
}

.stexo-sidebar-nav .nav-link span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stexo-sidebar-nav .nav-link:hover {
    background: var(--stexo-sidebar-hover);
    color: #fff;
}

.stexo-sidebar-nav .nav-link.active {
    background: var(--stexo-sidebar-active);
    color: #fff;
    border-left-color: var(--stexo-accent);
}

.stexo-sidebar-nav .nav-link i {
    font-size: 1rem;
    width: 1.25rem;
    margin-right: 10px;
    flex-shrink: 0;
    opacity: 0.9;
    text-align: center;
}

/* Main menu (collapsible sections) */
.stexo-sidebar-nav .nav-section-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    padding: 7px 16px;
    min-height: 34px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s;
}

.stexo-sidebar-nav .nav-section-toggle:hover {
    background: var(--stexo-sidebar-hover);
    color: #fff;
}

.stexo-sidebar-nav .nav-section-toggle .nav-toggle-label {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.stexo-sidebar-nav .nav-section-toggle .nav-toggle-label i {
    font-size: 1rem;
    width: 1.25rem;
    margin-right: 10px;
    flex-shrink: 0;
    text-align: center;
}

.stexo-sidebar-nav .nav-section-toggle .nav-toggle-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stexo-sidebar-nav .nav-section-toggle .nav-chevron {
    font-size: 0.75rem;
    opacity: 0.75;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.stexo-sidebar-nav .nav-section-toggle:not(.collapsed) .nav-chevron,
.stexo-sidebar-nav .nav-section-toggle[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

.stexo-sidebar-nav .nav-section-menu {
    padding: 0;
    margin: 0;
}

.stexo-sidebar-nav .nav-section-menu .nav-sublink {
    padding: 6px 16px 6px 42px;
    min-height: 32px;
    font-size: 0.78rem;
    font-weight: 500;
    border-left-width: 3px;
}

.stexo-sidebar-nav .nav-section-menu .nav-sublink i {
    font-size: 0.9rem;
    width: 1.1rem;
    margin-right: 8px;
}

/* Fallback scroll only on very short viewports */
@media (max-height: 520px) {
    .stexo-sidebar-nav {
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

.stexo-sidebar-nav .nav-section-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* ========== RIGHT SIDE: Topbar + Content ========== */
.stexo-right {
    flex: 1;
    margin-left: var(--stexo-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top header bar (TDA orange accent) */
.stexo-topbar {
    height: var(--stexo-topbar-height);
    background: var(--stexo-topbar-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.stexo-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stexo-topbar-page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stexo-topbar .btn-sidebar-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    color: var(--stexo-primary);
}

.stexo-topbar .btn-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--stexo-primary-dark);
}

.stexo-topbar-search {
    position: relative;
    width: 280px;
}

.stexo-topbar-search input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
}

.stexo-topbar-search input::placeholder {
    color: #9ca3af;
}

.stexo-topbar-search .bi-search {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
}

.stexo-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stexo-topbar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    position: relative;
}

.stexo-topbar-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.stexo-topbar-icon .badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stexo-topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.stexo-topbar-avatar-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--stexo-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Main content area */
.stexo-main {
    flex: 1;
    padding: 0;
}

.stexo-content {
    padding: 24px;
    background: #fff;
    min-height: calc(100vh - var(--stexo-topbar-height));
}

/* Page header: breadcrumb left, actions (e.g. Add button) right */
.stexo-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.stexo-page-breadcrumb-wrap {
    order: 1;
}

.stexo-page-header-actions {
    margin-left: auto;
    order: 2;
}

.stexo-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #374151;
    letter-spacing: -0.02em;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stexo-page-breadcrumb {
    font-size: 0.875rem;
    color: #6b7280;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Filter bar (search + dropdown + Search button) - same style across Client, Media, Display, User, Role, Report */
.stexo-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.stexo-filter-bar .form-control,
.stexo-filter-bar .form-select {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    min-height: 38px;
    width: auto;
    min-width: 200px;
}
.stexo-filter-bar .form-control:focus,
.stexo-filter-bar .form-select:focus {
    border-color: var(--stexo-primary, #1a3050);
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(26, 48, 80, 0.18);
}
.stexo-filter-bar .btn.stexo-btn-primary {
    min-height: 38px;
    border-radius: 6px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Report request: multiple-choice dropdowns */
.stexo-multiselect {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    padding: 6px 10px !important;
    min-height: 100px !important;
    font-size: 13px !important;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.stexo-multiselect:hover {
    border-color: #cbd5e1 !important;
    background-color: #fff !important;
}
.stexo-multiselect:focus {
    border-color: var(--stexo-primary) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 2px rgba(26, 48, 80, 0.2) !important;
    outline: none !important;
}
.stexo-multiselect option {
    padding: 8px 12px;
    border-radius: 4px;
    margin: 2px 0;
}
.stexo-multiselect option:hover {
    background-color: rgba(26, 48, 80, 0.06);
}
.stexo-multiselect option:checked {
    background: linear-gradient(0deg, rgba(233, 104, 35, 0.14), rgba(26, 48, 80, 0.1));
    color: var(--stexo-primary-dark);
    font-weight: 500;
}
/* Scrollbar for multiselect (WebKit) */
.stexo-multiselect::-webkit-scrollbar {
    width: 8px;
}
.stexo-multiselect::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.stexo-multiselect::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.stexo-multiselect::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Cards */
.stexo-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--stexo-card-shadow);
    border: 1px solid #eff2f7;
}

/* Dashboard: hero strip */
.stexo-dashboard-hero {
    border: none !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4fa 42%, #fff7ed 100%) !important;
    box-shadow: 0 12px 40px rgba(26, 48, 80, 0.1), 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    position: relative;
    overflow: hidden;
}
.stexo-dashboard-hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--stexo-primary) 0%, #3d5a80 38%, var(--stexo-accent) 100%);
    border-radius: 16px 16px 0 0;
}
.stexo-dashboard-hero .card-body {
    position: relative;
    z-index: 1;
}
.stexo-dashboard-hero .bg-light {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(26, 48, 80, 0.1) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* Dashboard: activity panels (tables) */
.stexo-dashboard-panel {
    border-radius: 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    overflow: hidden;
}
.stexo-dashboard-panel:hover {
    box-shadow: 0 16px 40px rgba(26, 48, 80, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}
.stexo-dashboard-panel .card-header {
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%) !important;
    border-bottom: 1px solid rgba(26, 48, 80, 0.1) !important;
    font-size: 0.9rem;
}

/* Dashboard stat cards */
.stexo-dashboard-cards .stexo-stat-card {
    min-height: 124px;
    padding: 0 !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: 14px !important;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 55%, #ffffff 100%) !important;
    box-shadow: 0 6px 28px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.2s ease;
}
.stexo-dashboard-cards .stexo-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--stexo-primary), #3d5a80, var(--stexo-accent));
    opacity: 0.95;
    border-radius: 14px 14px 0 0;
}
.stexo-dashboard-cards .stexo-stat-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(233, 104, 35, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.stexo-dashboard-cards .stexo-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(26, 48, 80, 0.14), 0 8px 20px rgba(233, 104, 35, 0.12) !important;
    border-color: rgba(26, 48, 80, 0.14) !important;
}
.stexo-dashboard-cards .stexo-stat-card .card-body {
    padding: 1.35rem 1.25rem 1.15rem !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 1;
}
.stexo-dashboard-cards .stexo-stat-card a.small {
    color: var(--stexo-primary) !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.15s ease, transform 0.15s ease;
}
.stexo-dashboard-cards .stexo-stat-card a.small:hover {
    color: var(--stexo-primary-dark) !important;
}
.stexo-stat-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.stexo-stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.stexo-stat-subtitle {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #94a3b8;
}
.stexo-stat-pct {
    font-weight: 500;
    color: #6b7280;
}
/* Circular icon — gradient + glow */
.stexo-stat-icon {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}
.stexo-dashboard-cards .stexo-stat-card:hover .stexo-stat-icon {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}
.stexo-stat-icon-primary {
    background: linear-gradient(145deg, #2a4d7a 0%, var(--stexo-primary) 45%, #0f1a2e 100%);
    box-shadow: 0 10px 24px rgba(26, 48, 80, 0.45);
}
.stexo-stat-icon-success {
    background: linear-gradient(145deg, #34d399 0%, #10b981 50%, #047857 100%);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.38);
}
.stexo-stat-icon-warning {
    background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.38);
}
.stexo-stat-icon-danger {
    background: linear-gradient(145deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
}
.stexo-stat-icon-info {
    background: linear-gradient(145deg, #38bdf8 0%, #0ea5e9 50%, #0369a1 100%);
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35);
}
.stexo-stat-icon-indigo {
    background: linear-gradient(145deg, #818cf8 0%, #6366f1 50%, #4338ca 100%);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}
.stexo-stat-icon-teal {
    background: linear-gradient(145deg, #fb923c 0%, var(--stexo-accent) 50%, #c2410c 100%);
    box-shadow: 0 10px 24px rgba(233, 104, 35, 0.38);
}
/* Highlighted academy card on dashboard */
.stexo-dashboard-cards .stexo-stat-card.border-primary {
    border-color: rgba(233, 104, 35, 0.35) !important;
    background: linear-gradient(160deg, #ffffff 0%, #fff7ed 40%, #ffffff 100%) !important;
}
.stexo-dashboard-cards .stexo-stat-card.border-primary::before {
    height: 4px;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .stexo-dashboard-cards .stexo-stat-card,
    .stexo-dashboard-cards .stexo-stat-icon,
    .stexo-dashboard-panel {
        transition: none !important;
    }
    .stexo-dashboard-cards .stexo-stat-card:hover {
        transform: none !important;
    }
    .stexo-dashboard-cards .stexo-stat-card:hover .stexo-stat-icon {
        transform: none !important;
    }
}

/* Progress bar in stat cards */
.stexo-stat-progress {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
}
.stexo-stat-progress .progress-bar {
    border-radius: 3px;
    background: var(--stexo-primary);
}

.stexo-card .card-body { padding: 24px; }
.stexo-card .card-header {
    background: transparent;
    border-bottom: 1px solid #eff2f7;
    padding: 16px 24px;
    font-weight: 600;
    color: #495057;
    
}

/* Buttons - blue like image */
a.btn.btn-primary.stexo-btn-primary {
    font-size:13px;
}
.btn-primary.stexo-btn-primary,
.stexo-btn-primary,
.exam-portal-ctas .btn.stexo-btn-primary {
    background: var(--stexo-primary);
    border-color: var(--stexo-primary);
    border-radius: 6px;
    color: #fff;
    min-height: 35px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-weight: 600;
}
.btn-primary.stexo-btn-primary:hover,
.stexo-btn-primary:hover {
    background: var(--stexo-primary-dark);
    border-color: var(--stexo-primary-dark);
    color: #fff;
}
.btn-primary.stexo-btn-primary:focus-visible,
.stexo-btn-primary:focus-visible {
    color: #fff;
}

/* Pagination - theme-aligned Previous/Next and page links (Bootstrap 5 markup) */
.pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    gap: 4px;
}
.pagination .page-item {
    display: inline-block;
}
.pagination .page-link {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #374151;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    text-decoration: none;
    min-width: 2.25rem;
    text-align: center;
}
.pagination .page-link:hover {
    background: #f8fafc;
    border-color: var(--stexo-primary, #1a3050);
    color: var(--stexo-primary, #1a3050);
}
.pagination .page-item.active .page-link {
    background: var(--stexo-primary, #1a3050);
    border-color: var(--stexo-primary, #1a3050);
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* User dropdown */
.stexo-user-dropdown .dropdown-toggle::after { margin-left: 8px; color:white;}
.stexo-user-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 8px 0;
}
.stexo-user-dropdown .dropdown-item {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Tables */
.stexo-table { margin-bottom: 0; }
.stexo-table thead th {
    border-bottom: 1px solid #eff2f7;
    color: #495057;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px;
}
.stexo-table tbody td {
    padding: 16px 24px;
    vertical-align: middle;
}
.stexo-table tbody tr:hover { background: #f8f9fa; }

/* Alerts */
.stexo-alert { border: none; border-radius: 8px; }

/* Badges */
.badge.bg-soft-success { background: rgba(40, 199, 111, 0.15); color: #28a745; }
.badge.bg-soft-secondary { background: rgba(108, 117, 125, 0.15); color: #6c757d; }
.badge.bg-soft-danger { background: rgba(220, 53, 69, 0.15); color: #dc3545; }
.badge.bg-soft-primary { background: rgba(26, 48, 80, 0.12); color: var(--stexo-primary); }

/* Sidebar collapse on mobile */
@media (max-width: 991.98px) {
    .stexo-sidebar {
        transform: translateX(-100%);
    }
    .stexo-sidebar.show {
        transform: translateX(0);
    }
    .stexo-right {
        margin-left: 0;
    }
}

/* Vertical menu toggle (desktop): collapsed sidebar */
.stexo-sidebar-collapsed .stexo-sidebar {
    width: 72px;
    min-width: 72px;
}
.stexo-sidebar-collapsed .stexo-right {
    margin-left: 72px;
}
.stexo-sidebar-collapsed .stexo-sidebar-brand a {
    font-size: 1.25rem;
    overflow: hidden;
    text-indent: -999px;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle {
    padding: 10px 12px;
    justify-content: center;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle .nav-toggle-label span,
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle .nav-chevron {
    display: none;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle .nav-toggle-label i {
    margin-right: 0;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-menu {
    display: none !important;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link {
    padding: 10px 12px;
    justify-content: center;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link span,
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link .nav-section-badge {
    display: none;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link i {
    margin-right: 0;
}

/* Login page */
.stexo-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3050 0%, #0f1a2e 55%, #132438 100%);
    padding: 24px;
}
.stexo-auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 440px;
    width: 100%;
}
.stexo-auth-header {
    background: var(--stexo-primary);
    color: #fff;
    padding: 32px 24px;
    text-align: center;
}
.stexo-auth-header h4 { margin: 0; font-weight: 600; font-size: 1.5rem; }
.stexo-auth-body { padding: 32px 24px; }
.stexo-auth-body .form-control { border-radius: 6px; padding: 10px 14px; }
.stexo-auth-body .btn-primary {
    padding: 10px 24px;
    border-radius: 6px;
    width: 100%;
    background: var(--stexo-accent);
    border-color: var(--stexo-accent);
}
.stexo-auth-body .btn-primary:hover {
    background: var(--stexo-accent-dark);
    border-color: var(--stexo-accent-dark);
}

/* ---------- Examinee dashboard — welcome + exam catalog ---------- */
.stexo-examinee-dashboard {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.stexo-examinee-welcome-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, var(--stexo-primary) 0%, #3d5a80 55%, var(--stexo-accent) 160%);
    box-shadow: 0 8px 24px rgba(26, 48, 80, 0.35);
    flex-shrink: 0;
}

.stexo-exam-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 400px));
    gap: 1.5rem;
    justify-content: center;
}

.stexo-exam-catalog-card {
    border-radius: 14px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(26, 48, 80, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.28s ease;
}

.stexo-exam-catalog-card:not(.stexo-exam-catalog-card--disabled):hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(26, 48, 80, 0.14), 0 6px 16px rgba(233, 104, 35, 0.1);
}

.stexo-exam-catalog-card--disabled {
    opacity: 0.88;
}

.stexo-exam-catalog-card__media {
    position: relative;
    aspect-ratio: 21 / 9;
    min-height: 132px;
    background: linear-gradient(135deg, #1a3050 0%, #2d4a6f 45%, #c45c26 130%);
}

.stexo-exam-catalog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stexo-exam-catalog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 2rem;
}

.stexo-exam-catalog-card .card-body {
    padding: 1.25rem 1.35rem 1.35rem !important;
}

.stexo-exam-catalog-card .card-title {
    font-size: 1rem !important;
    line-height: 1.35;
    color: #0f172a;
}

.stexo-exam-catalog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.stexo-exam-catalog-meta__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid rgba(26, 48, 80, 0.08);
}

.stexo-exam-catalog-meta__pill i {
    font-size: 0.85rem;
    opacity: 0.85;
}

.stexo-exam-catalog-card__actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.stexo-examinee-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px dashed rgba(26, 48, 80, 0.15);
}

.stexo-examinee-empty .bi {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .stexo-exam-catalog-card:not(.stexo-exam-catalog-card--disabled):hover {
        transform: none;
    }
}

/* Career MRI™ results (submissions) */
.career-mri-panel {
    box-shadow: 0 12px 48px rgba(26, 48, 80, 0.12);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(26, 48, 80, 0.1);
}
.career-mri-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a3050 40%, #8a4a1e 100%);
    position: relative;
}
.career-mri-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 100% at 20% 0%, rgba(233, 104, 35, 0.18) 0%, transparent 55%);
    pointer-events: none;
}
.career-mri-hero > * {
    position: relative;
    z-index: 1;
}
.career-mri-hero__eyebrow {
    letter-spacing: 0.14em;
    opacity: 0.9;
    font-size: 0.65rem;
}
.career-mri-hero__lede {
    opacity: 0.95;
}
.career-mri-active--failure { border-color: #fecaca; background: linear-gradient(180deg, #fff5f5 0%, #fff 100%); }
.career-mri-active--friction { border-color: #fed7aa; background: linear-gradient(180deg, #fffbeb 0%, #fff 100%); }
.career-mri-active--progress { border-color: #bae6fd; background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%); }
.career-mri-active--expansion { border-color: #bbf7d0; background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); }

.career-mri-ref--active { border-width: 2px !important; }
.career-mri-ref--active.career-mri-ref--failure { background: #fff5f5 !important; color: #334155 !important; }
.career-mri-ref--active.career-mri-ref--friction { background: #fffbeb !important; color: #334155 !important; }
.career-mri-ref--active.career-mri-ref--progress { background: #f0f9ff !important; color: #334155 !important; }
.career-mri-ref--active.career-mri-ref--expansion { background: #f0fdf4 !important; color: #334155 !important; }
.career-mri-cta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.career-mri-range-pill--failure { background: #fee2e2; color: #991b1b; }
.career-mri-range-pill--friction { background: #ffedd5; color: #9a3412; }
.career-mri-range-pill--progress { background: #e0f2fe; color: #075985; }
.career-mri-range-pill--expansion { background: #dcfce7; color: #166534; }

/* Career MRI™ report layout (DeciNova-style) */
.career-mri-report {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

/* PDF-style blocks reused on web result page */
.career-pdf-report,
.result-report-layout {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px 24px;
    background: #fff;
    box-shadow: 0 12px 44px rgba(26, 48, 80, 0.10);
    max-width: 760px;
    margin: 0 auto 16px auto;
}

.result-report-layout {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.result-report-layout > .result-report-block {
    margin: 0;
    min-width: 0;
}

/* Extra space after career breakdown → lowest-score insight */
.result-report-block--section_scores {
    padding-bottom: 0.15rem;
}

.result-section-breakdown-title {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0 0 12px 0;
}

.result-report-layout .career-pdf-report table[style*="margin-bottom"] {
    margin-bottom: 12px !important;
}

.result-report-block--lowest_constraint .career-pdf-insight {
    margin-top: 0;
    margin-bottom: 0;
    padding: 14px 16px;
}

.result-report-score-band {
    margin-top: 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    padding: 16px 18px !important;
}

.result-report-score-band--pdf {
    padding: 12px 14px !important;
    background: #fafafa !important;
}

.result-report-block--zone_narrative {
    padding-top: 0.25rem;
}

.result-report-block--zone_narrative .career-mri-zone-page {
    margin-top: 0;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}
.career-pdf-brand {
    text-align: right;
    font-size: 0.75rem;
    line-height: 1.35;
    margin-bottom: 6px;
}
.career-pdf-main-title {
    color: #ea580c;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 4px 0 12px 0;
}
.career-pdf-score-block {
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 0;
    margin: 12px 0;
    background: linear-gradient(180deg, #fffdfb 0%, #fff 60%);
}

.result-report-layout .career-pdf-score-block {
    margin: 0;
}
.career-pdf-score-label {
    color: #ea580c;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 10px 0 6px 0;
}
.career-pdf-insight {
    background: #fffbeb;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 14px;
    border: 1px solid rgba(234, 88, 12, 0.25);
    color: #78350f;
}

/* Legacy career-mri-results (no per-block wrappers) */
.result-report-layout .career-pdf-insight {
    margin-top: 1.35rem;
}

.result-report-layout > .border-top.bg-light:not(.result-report-score-band) {
    margin-top: 1.35rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

.result-report-layout .result-section-breakdown-title {
    margin-top: 0.5rem;
}

/* Admin preview wrapper */
.stexo-content .result-report-layout,
.result-preview-wrap .result-report-layout {
    margin-top: 0.5rem;
}
.career-pdf-next-step {
    border: 1px solid #2563eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 16px;
    background: #f8fafc;
}
.career-pdf-next-step h3 {
    font-size: 0.95rem;
    margin: 0 0 8px 0;
    color: #1e3a8a;
    font-weight: 800;
}
.career-pdf-next-step .apply-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.career-pdf-next-step a {
    color: #1a3050;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.career-disclaimer-cta {
    max-width: 760px;
    margin: 0 auto 14px auto;
    padding: 0 4px;
}
.career-disclaimer-cta__pin {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}
@media (max-width: 576px) {
    .career-disclaimer-cta__pin {
        text-align: center;
    }
}

.career-limited-seats-cta {
    max-width: 760px;
    margin: 0 auto 14px auto;
    padding: 0 4px;
}
.career-limited-seats-cta__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
    text-align: center;
}
.career-limited-seats-cta__pin {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}
.career-limited-seats-cta__btn {
    flex-shrink: 0;
}
.career-mri-report__main-title {
    color: #ea580c;
    letter-spacing: 0.04em;
}
.career-mri-report__brand {
    min-width: 7rem;
}
.career-mri-report__score-block {
    background: linear-gradient(180deg, #fffdfb 0%, #fff 55%);
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}
.career-mri-report__score-label {
    color: #ea580c;
    letter-spacing: 0.06em;
}
.career-mri-report__donut-wrap {
    width: 200px;
    height: 200px;
}
.career-mri-report__donut-percent {
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}
@media (max-width: 576px) {
    .career-mri-report__donut-percent {
        font-size: 2.6rem;
    }
}
.career-mri-report__track {
    height: 14px;
    background: #f1f5f9;
    overflow: hidden;
}
.career-mri-report__fill {
    height: 100%;
    min-width: 0;
    transition: width 0.35s ease;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.06);
}
.career-mri-report__bar--clarity {
    background: linear-gradient(90deg, #f87171, #dc2626);
}
.career-mri-report__bar--income {
    background: linear-gradient(90deg, #fcd34d, #d97706);
}
.career-mri-report__bar--execution {
    background: linear-gradient(90deg, #86efac, #16a34a);
}
.career-mri-report__bar--positioning {
    background: linear-gradient(90deg, #4ade80, #14532d);
}
.career-mri-report__pillar-label--clarity {
    color: #b91c1c;
}
.career-mri-report__pillar-label--income {
    color: #b45309;
}
.career-mri-report__pillar-label--execution {
    color: #15803d;
}
.career-mri-report__pillar-label--positioning {
    color: #14532d;
}
.career-mri-report__insight {
    background: #fffbeb !important;
    color: #78350f;
    border-radius: 10px;
}

/* Career MRI™ zone narrative (screen + print page 2) */
.career-mri-zone-page {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 2px solid #e2e8f0;
}
@media print {
    .career-mri-zone-page {
        page-break-before: always;
        border-top: none;
        padding-top: 0;
    }
}
.career-mri-zone-page__overall {
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}
.career-mri-zone-page__headline {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.career-mri-zone-page__subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.career-mri-zone-page__intro {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 1rem;
}
.career-mri-zone-page__section-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 1rem 0 0.35rem 0;
}
.career-mri-zone-page ul {
    margin: 0 0 0.75rem 0;
    padding-left: 1.15rem;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
}
.career-mri-zone-page__strategic {
    border: 1px solid #ea580c;
    border-radius: 10px;
    background: #fffbeb;
    padding: 0.85rem 1rem;
    margin: 0.75rem 0 1rem 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #78350f;
}
.career-mri-zone-page__strategic strong {
    display: block;
    margin-bottom: 0.35rem;
}
.career-mri-zone-page__next {
    border: 1px solid #2563eb;
    border-radius: 10px;
    background: #011243;
    padding: 0.85rem 1rem;
    margin: 1rem 0 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #fff;
}
.career-mri-zone-page__next p {
    color: #fff;
}
.career-mri-zone-page__next .fw-bold {
    color: #fff;
}
.career-mri-zone-page__disclaimer {
    font-size: 0.7rem;
    line-height: 1.45;
    color: #64748b;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Public exam result (first page + sticky actions) */
.exam-result-public {
    padding-bottom: 5.5rem;
}
.exam-result-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
    padding: 0.65rem 0 calc(0.65rem + env(safe-area-inset-bottom, 0));
}
.exam-result-footer__inner {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

/* ---------- Public exam portal (/exam/{link}) ---------- */
body.stexo-body.exam-public-layout {
    background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 35%, #f1f5f9 100%) !important;
}

/* Exam take: highlight unanswered questions */
.exam-question--missing {
    border-left: 3px solid #dc2626;
    padding-left: 12px;
    background: rgba(220, 38, 38, 0.04);
    border-radius: 8px;
}
.exam-question--missing .fw-bold,
.exam-question--missing p,
.exam-question--missing .form-check-label {
    color: #b91c1c !important;
}
.exam-question--missing .form-check-input {
    border-color: #dc2626;
}

.exam-public-layout .exam-public-inner {
    max-width: 800px;
}

.exam-hero {
    position: relative;
    min-height: min(52vh, 420px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #0a1628;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

@media (max-width: 576px) {
    .exam-hero {
        /* Mobile: avoid full-screen hero; keep content visible */
        min-height: 40vh;
    }
    .exam-hero__content {
        padding: 1.5rem 0 2rem;
    }
}

.exam-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(3, 12, 28, 0.85) 0%,
        rgba(3, 12, 28, 0.45) 42%,
        rgba(3, 12, 28, 0.9) 100%
    );
    z-index: 0;
}

.exam-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(26, 48, 80, 0.55) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.exam-hero__content {
    position: relative;
    z-index: 1;
    padding: 2.25rem 0 2.75rem;
    width: 100%;
}

.exam-hero__title {
    color: #fff;
    font-weight: 700;
    font-size: clamp(1.4rem, 3.2vw, 2.15rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
    max-width: 46rem;
}

.exam-hero__prose {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 42rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.exam-hero__prose p {
    margin-bottom: 0.5rem;
}
.exam-hero__prose p:last-child {
    margin-bottom: 0;
}
.exam-hero__prose a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.exam-hero__prose strong {
    color: #fff;
    font-weight: 600;
}

/* Hero without image — brand gradient */
.exam-hero--static {
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #0a1628 0%, #1a3050 40%, #8a4a1e 100%);
    padding: 0;
}
.exam-hero--static::before,
.exam-hero--static::after {
    display: none;
}
.exam-hero--static .exam-hero__content {
    padding-top: 2.5rem;
    padding-bottom: 2.25rem;
}
.exam-hero--static .exam-hero__prose a {
    color: rgba(255, 255, 255, 0.95);
}

.exam-public-layout .card.exam-portal-card {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(26, 48, 80, 0.1), 0 2px 8px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    border: 1px solid rgba(26, 48, 80, 0.08);
    background: #fff;
}
.exam-public-layout .card.exam-portal-card .card-body {
    padding: 1.75rem 1.5rem;
}
@media (min-width: 768px) {
    .exam-public-layout .card.exam-portal-card .card-body {
        padding: 2.25rem 2rem;
    }
}

.exam-portal-surface-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* Stat strip */
.exam-portal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    background: #fff;
    margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
    .exam-portal-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}
.exam-portal-stat {
    padding: 1.1rem 1rem;
    text-align: center;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    transition: background 0.2s ease;
}
.exam-portal-stat:hover {
    background: #f8fafc;
}
/* 2x2: internal dividers */
.exam-portal-stat:nth-child(1),
.exam-portal-stat:nth-child(2) {
    border-bottom: 1px solid #e2e8f0;
}
.exam-portal-stat:nth-child(1),
.exam-portal-stat:nth-child(3) {
    border-right: 1px solid #e2e8f0;
}
@media (min-width: 768px) {
    .exam-portal-stat:nth-child(1),
    .exam-portal-stat:nth-child(2) {
        border-bottom: none;
    }
    .exam-portal-stat:nth-child(1),
    .exam-portal-stat:nth-child(3) {
        border-right: none;
    }
    .exam-portal-stat {
        border-right: 1px solid #e2e8f0;
    }
    .exam-portal-stat:last-child {
        border-right: none;
    }
}
.exam-portal-stat__icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    background: linear-gradient(145deg, #1a3050 0%, #2a4a72 100%);
    box-shadow: 0 4px 12px rgba(26, 48, 80, 0.25);
}
.exam-portal-stat__label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.exam-portal-stat__value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.exam-portal-summary {
    padding: 1.15rem 1.35rem;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    border-color: #e2e8f0 !important;
}
.exam-portal-summary .exam-portal-surface-title {
    margin-bottom: 0.65rem;
}
.exam-portal-summary__body {
    line-height: 1.65;
}
.exam-portal-summary__body p:last-child {
    margin-bottom: 0;
}
.exam-portal-summary__body p {
    margin-bottom: 0.45rem;
}
.exam-portal-summary__body a {
    color: var(--stexo-primary, #1a3050);
    font-weight: 500;
}

.examinee-report-leaflet-map {
    height: min(55vh, 480px);
    min-height: 280px;
    z-index: 0;
    background: #e2e8f0;
}

/* CTAs */
.exam-portal-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}
@media (min-width: 480px) {
    .exam-portal-ctas {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
}
.exam-portal-ctas .btn,
.exam-portal-ctas button.btn,
.exam-portal-ctas a.btn {
    white-space: nowrap;
}
.exam-portal-ctas .btn:not(.w-100),
.exam-portal-ctas button.btn:not(.w-100),
.exam-portal-ctas a.btn:not(.w-100) {
    max-width: 100%;
}
.exam-portal-ctas > span.small {
    width: 100%;
    text-align: center;
}
.exam-portal-ctas .btn-outline-primary,
.exam-portal-ctas .btn-outline-secondary,
.exam-portal-ctas .btn-light {
    min-height: 35px;
    border-radius: 8px;
}

.exam-portal-hint {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: #f1f5f9;
    border-left: 3px solid var(--stexo-primary, #1a3050);
    margin-bottom: 1.25rem;
}
