/* ==========================================================================
   ULTIMATE - Professional Design System & Stylesheet
   Strictly Zero Emojis • Ultra-Clean Architecture • High Accessibility
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    /* Color Palette */
    --primary: #1e3a8a;          /* Deep Oxford Blue */
    --primary-hover: #172554;
    --primary-light: #eff6ff;
    --secondary: #0f766e;        /* Deep Academic Teal */
    --secondary-hover: #115e59;
    --accent: #2563eb;           /* Electric Royal Blue */
    --accent-gold: #d97706;      /* Academic Amber */
    
    /* Neutrals */
    --bg-main: #e8eef6;
    --bg-surface: #ffffff;
    --bg-surface-subtle: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.07);
    
    /* Typography */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    /* Status Colors */
    --success: #059669;
    --success-light: #ecfdf5;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --info: #0284c7;
    --info-light: #f0f9ff;
    
    /* Dimensions & Shadows */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --font-stack: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 28rem),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.05), transparent 24rem);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
    overflow-x: hidden;
}

body.scroll-locked {
    overflow: hidden;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
    color: var(--text-secondary);
    font-size: 0.975rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
    border: 1px solid #bfdbfe;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.05rem;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.925rem;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background-color: var(--bg-surface-subtle);
    border-color: var(--text-muted);
}

.btn-accent {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-accent:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary-light);
    color: var(--primary);
}

a.btn:hover {
    text-decoration: none;
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.825rem;
}

.btn-lg {
    padding: 0.85rem 1.85rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.top-bar {
    background-color: #0b132b;
    color: #cbd5e1;
    font-size: 0.8rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #1e293b;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-switcher {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.top-switcher label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

.student-select-input {
    background-color: #1e293b;
    color: #f8fafc;
    border: 1px solid #334155;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
}

.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    overflow: visible;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.brand-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.nav-dropdown-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.nav-item-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 210px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 0.45rem;
    list-style: none;
    z-index: 130;
}

.nav-item-dropdown.open .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 0.65rem 0.8rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 7px;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--bg-surface-subtle);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 700;
}

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ==========================================================================
   Hero Section & Carousel
   ========================================================================== */

.hero-section {
    background: #ffffff;
    padding: 3rem 0 4.25rem;
    position: relative;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.12;
    color: #0b132b;
    margin-bottom: 0.9rem;
    letter-spacing: -0.03em;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.55;
    max-width: 36rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.hero-stat {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    min-width: 118px;
}

.hero-stat strong {
    display: block;
    font-size: 1.05rem;
    color: var(--primary);
    line-height: 1.2;
}

.hero-stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-points-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}

.hero-point-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-point-item svg {
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 3px solid #ffffff;
    background-color: #0b132b;
    height: 420px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 19, 43, 0.9) 100%);
    color: #ffffff;
    padding: 2.5rem 1.5rem 1.5rem;
}

.slide-caption-overlay h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.slide-caption-overlay p {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.carousel-controls {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-arrow:hover {
    background: #ffffff;
    color: var(--primary);
}

.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 12px;
}

/* ==========================================================================
   Quick Access Bar
   ========================================================================== */

.quick-access-section {
    margin-top: -2rem;
    position: relative;
    z-index: 20;
    margin-bottom: 4rem;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.quick-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.quick-card:nth-child(1) { background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%); }
.quick-card:nth-child(2) { background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%); }
.quick-card:nth-child(3) { background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%); }
.quick-card:nth-child(4) { background: linear-gradient(180deg, #ffffff 0%, #fdf2f8 100%); }

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.quick-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.quick-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.quick-card:hover .card-cta {
    color: var(--primary-hover);
}

/* ==========================================================================
   Core Offerings Section
   ========================================================================== */

.offerings-section,
.programmes-section {
    padding: 4.25rem 0;
}

.offerings-section {
    background-color: transparent;
}

.programmes-section {
    background-color: transparent;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.offering-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-card);
}

.offering-card:hover {
    border-color: var(--border-strong);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.offering-number {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.offering-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.offering-card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.5rem;
}

.offering-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
    flex-grow: 1;
}

.offering-card .btn {
    margin-top: auto;
}

.offering-features {
    list-style: none;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
}

.offering-features li {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offering-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

/* ==========================================================================
   Programmes & Subject Catalogue
   ========================================================================== */

.catalogue-shell {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    padding: 1.5rem 1.5rem 1.75rem;
}

.programmes-section {
    padding: 2.5rem 0 4.25rem;
    background-color: transparent;
}

.audience-section {
    padding: 4.25rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.audience-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: var(--shadow-card);
}

.audience-card h3 {
    font-size: 1.15rem;
}

.audience-card p {
    font-size: 0.9rem;
}

.final-cta-section {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, #0b132b 0%, #1e3a8a 100%);
    color: #ffffff;
}

.final-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.final-cta-inner h2 {
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.final-cta-inner p {
    color: #cbd5e1;
    margin: 0;
}

.final-cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid var(--border-strong);
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--bg-surface-subtle);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.programmes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.programme-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.programme-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.prog-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

.prog-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.prog-card-header h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.prog-meta {
    font-size: 0.825rem;
    color: var(--text-muted);
}

.prog-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.prog-card-body p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.subject-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.subject-pill {
    background: var(--bg-surface-subtle);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.prog-schedule-box {
    margin-top: auto;
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prog-card-footer {
    padding: 1.25rem 1.5rem;
    background: #fafafa;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prog-fee {
    display: flex;
    flex-direction: column;
}

.prog-fee-label {
    font-size: 0.725rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.prog-fee-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* ==========================================================================
   CBT Highlight Section
   ========================================================================== */

.cbt-highlight-section {
    padding: 5rem 0;
    background: #0f172a;
    color: #ffffff;
}

.cbt-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.cbt-text-col .section-badge {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.3);
}

.cbt-text-col h2 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
}

.cbt-text-col p {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.cbt-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.cbt-feat-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.cbt-feat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    flex-shrink: 0;
}

.cbt-feat-title {
    font-weight: 700;
    color: #f1f5f9;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.cbt-feat-desc {
    font-size: 0.825rem;
    color: #94a3b8;
}

.cbt-media-col {
    position: relative;
}

.cbt-img-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.cbt-img-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.cbt-stat-float {
    position: absolute;
    bottom: -1.5rem;
    right: 2rem;
    background: #ffffff;
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
}

.stat-circle-accent {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--success-light);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* ==========================================================================
   Portal Page Common Layouts & Hub Cards
   ========================================================================== */

.page-header-banner {
    background: linear-gradient(135deg, #0b132b 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 2.25rem 0 2.5rem;
    border-bottom: 1px solid #1e293b;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.page-title-box h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.page-title-box p {
    color: #cbd5e1;
    font-size: 1rem;
    max-width: 520px;
}

.portal-container {
    padding: 3rem 0 5rem;
}

.student-context-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.student-info-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.student-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-sm);
}

.student-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.student-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

.status-active, .status-paid, .status-present {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.status-partial, .status-pending {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid #fde68a;
}

.status-unpaid, .status-absent {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #fecaca;
}

/* Tab Navigation */
.portal-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.portal-tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.portal-tab-btn:hover {
    color: var(--primary);
}

.portal-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Common Card Grid */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-kpi-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow-card);
    border-top: 3px solid var(--accent);
}

.stat-kpi-card:nth-child(2) { border-top-color: var(--secondary); }
.stat-kpi-card:nth-child(3) { border-top-color: var(--accent-gold); }
.stat-kpi-card:nth-child(4) { border-top-color: #7c3aed; }
.stat-kpi-card:nth-child(5) { border-top-color: var(--danger); }

.stat-kpi-card .label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-kpi-card .number {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.stat-kpi-card .sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tables */
.data-table-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-header-bar {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.table-header-bar h3 {
    font-size: 1.1rem;
}

.custom-table th {
    background-color: var(--bg-surface-subtle);
    padding: 0.85rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.custom-table td {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background-color: #fcfcfc;
}

/* ==========================================================================
   CBT Engine Layout
   ========================================================================== */

.cbt-exam-wrapper {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.cbt-exam-header {
    background: #0f172a;
    color: #ffffff;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cbt-test-info {
    min-width: 0;
}

.cbt-test-info h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    overflow-wrap: anywhere;
}

.cbt-test-info p {
    color: #94a3b8;
    font-size: 0.85rem;
}

.cbt-timer-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cbt-timer-display {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.05em;
}

.cbt-timer-warning {
    color: #ef4444 !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.cbt-exam-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    min-height: 480px;
}

.cbt-question-area {
    padding: 2.5rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.question-tracker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.question-num-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.question-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 2rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: #ffffff;
}

.option-item:hover {
    background-color: var(--bg-surface-subtle);
    border-color: var(--border-strong);
}

.option-item.selected {
    border-color: var(--accent);
    background-color: var(--primary-light);
}

.option-radio {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

.option-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    flex-grow: 1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cbt-nav-controls {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.cbt-palette-sidebar {
    padding: 1.5rem;
    background: var(--bg-surface-subtle);
    display: flex;
    flex-direction: column;
}

.palette-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.palette-btn {
    aspect-ratio: 1;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.palette-btn.active {
    border: 2px solid var(--accent);
    background: #ffffff;
    color: var(--accent);
}

.palette-btn.answered {
    background: var(--success);
    color: #ffffff;
    border-color: var(--success);
}

.palette-btn.flagged {
    background: var(--warning);
    color: #ffffff;
    border-color: var(--warning);
}

.palette-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.swatch-answered { background: var(--success); }
.swatch-unanswered { background: #ffffff; }
.swatch-flagged { background: var(--warning); }
.swatch-active { border: 2px solid var(--accent); }

/* CBT Results Screen */
.cbt-results-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.score-hero-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border: 4px solid var(--primary);
}

.score-pct {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.review-item {
    text-align: left;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.review-item.correct {
    border-left: 4px solid var(--success);
}

.review-item.incorrect {
    border-left: 4px solid var(--danger);
}

/* ==========================================================================
   AI Learning Assistant Chat
   ========================================================================== */

.ai-assistant-wrapper {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: 560px;
    height: min(720px, calc(100dvh - 180px));
}

.ai-sidebar {
    background: #0f172a;
    color: #ffffff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1e293b;
}

.ai-sidebar h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.ai-mode-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
}

.ai-mode-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.ai-mode-btn.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.groq-config-box {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
}

.groq-config-box label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    display: block;
    margin-bottom: 0.4rem;
}

.groq-key-input {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    color: #ffffff;
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.ai-chat-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: #fafafa;
}

.ai-messages-scroll {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.chat-bubble {
    display: flex;
    gap: 0.85rem;
    max-width: 100%;
    min-width: 0;
}

.chat-bubble.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
}

.chat-bubble.ai .chat-avatar {
    background: var(--primary);
    color: #ffffff;
}

.chat-bubble.user .chat-avatar {
    background: var(--accent);
    color: #ffffff;
}

.chat-content {
    background: var(--bg-surface-subtle);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-size: 0.925rem;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.chat-bubble.user .chat-content {
    background: var(--primary-light);
    border-color: #bfdbfe;
    color: var(--primary);
}

.chat-content pre, .chat-content code {
    background: #0f172a;
    color: #f8fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.chat-content pre {
    padding: 0.75rem;
    margin: 0.5rem 0;
    overflow-x: auto;
}

.ai-chat-input-bar {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
    background: #ffffff;
}

.ai-input-text {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.925rem;
    outline: none;
    transition: var(--transition);
}

.ai-input-text:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Prompt Chips */
.prompt-chips-row {
    padding: 0 1.5rem 0.75rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
}

.prompt-chip {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.prompt-chip:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #93c5fd;
}

/* ==========================================================================
   Paystack Modal Simulation
   ========================================================================== */

.pstk-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.pstk-modal-backdrop.visible {
    display: flex;
}

.pstk-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 460px;
    border-radius: 12px;
    overflow: visible;
    box-shadow: var(--shadow-xl);
    animation: modalSlide 0.25s ease-out;
    margin: auto;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pstk-header {
    background: #00c3f7;
    background: linear-gradient(135deg, #09a5db 0%, #087f9c 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pstk-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pstk-logo-badge {
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: #087f9c;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.pstk-brand-name {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.pstk-secured {
    font-size: 0.7rem;
    opacity: 0.85;
}

.pstk-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.8;
}

.pstk-close-btn:hover { opacity: 1; }

.pstk-body {
    padding: 1.5rem;
}

.pstk-amount-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.pstk-amount-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pstk-amount-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}

.pstk-payer-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.pstk-channel-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.pstk-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.65rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.pstk-tab-btn.active {
    color: #087f9c;
    border-bottom-color: #087f9c;
}

.pstk-tab-content {
    display: none;
}

.pstk-tab-content.active {
    display: block;
}

.pstk-form-group {
    margin-bottom: 1rem;
}

.pstk-form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.pstk-form-group input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
}

.pstk-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.pstk-pay-btn {
    width: 100%;
    background: #0ba4db;
    background: linear-gradient(135deg, #09a5db 0%, #087f9c 100%);
    color: #ffffff;
    border: none;
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.pstk-pay-btn:hover {
    filter: brightness(1.05);
}

.pstk-transfer-box {
    text-align: center;
    padding: 0.5rem 0;
}

.pstk-transfer-hint {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.pstk-bank-detail {
    background: var(--bg-surface-subtle);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
    text-align: left;
    font-size: 0.85rem;
}

.pstk-bank-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.pstk-bank-row:last-child { margin-bottom: 0; }

.pstk-bank-row .val {
    font-weight: 700;
}

.pstk-ussd-code {
    font-family: monospace;
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}

.pstk-processing-screen, .pstk-success-screen {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1rem;
}

.pstk-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-top-color: #087f9c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pstk-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--success-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.pstk-ref-badge {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-surface-subtle);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin: 0.5rem 0 1.25rem;
    display: inline-block;
}

.pstk-receipt-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 1rem;
}

.pstk-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 0.65rem 1.5rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Digital Receipt Printable Styles
   ========================================================================== */

.receipt-dialog {
    max-width: 620px;
    width: 100%;
}

.receipt-card-printable {
    background: #ffffff;
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.receipt-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.receipt-org-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.receipt-org-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.receipt-address {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.receipt-badge-verified {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    background: var(--success-light);
    color: var(--success);
    border: 1px solid #a7f3d0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.receipt-divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.receipt-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.info-group {
    display: flex;
    flex-direction: column;
}

.info-group .label {
    font-size: 0.725rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.receipt-table th {
    background: var(--bg-surface-subtle);
    padding: 0.65rem 0.85rem;
    text-align: left;
    font-size: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.receipt-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border);
}

.receipt-stamp-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
}

.stamp-circle {
    width: 110px;
    height: 110px;
    border: 2px dashed #059669;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #059669;
    font-size: 0.65rem;
    font-weight: 700;
    transform: rotate(-10deg);
}

.stamp-circle strong {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.stamp-auth {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.auth-line {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.receipt-actions-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   Modals & Registration Form
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal-backdrop.visible {
    display: flex;
}

.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    border-radius: var(--radius-md);
    overflow: visible;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    margin: auto;
}

.modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.modal-body {
    padding: 1.75rem;
    overflow: visible;
}

.modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #fafafa;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast-item {
    background: #0f172a;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease-out;
}

.toast-item.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-item.toast-success {
    background: #064e3b;
    border-left: 4px solid #10b981;
}

.toast-item.toast-error {
    background: #7f1d1d;
    border-left: 4px solid #ef4444;
}

.toast-item.toast-info {
    background: #0c4a6e;
    border-left: 4px solid #0284c7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #0b132b;
    color: #cbd5e1;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand .brand-title {
    color: #ffffff;
}

.footer-brand p {
    color: #94a3b8;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
}

/* ==========================================================================
   Print Rules
   ========================================================================== */

@media print {
    body * {
        visibility: hidden;
    }
    #printable-receipt-content, #printable-receipt-content * {
        visibility: visible;
    }
    #printable-receipt-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
        padding: 0;
    }
    .top-bar, .main-header, .site-footer, .receipt-actions-footer, .pstk-header, .pstk-footer {
        display: none !important;
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-carousel {
        height: 340px;
    }
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .programmes-grid {
        grid-template-columns: 1fr;
    }
    .cbt-split-grid {
        grid-template-columns: 1fr;
    }
    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cbt-exam-body {
        grid-template-columns: 1fr;
    }
    .cbt-palette-sidebar {
        border-top: 1px solid var(--border);
    }
    .ai-assistant-wrapper {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
    .ai-sidebar {
        border-right: none;
        border-bottom: 1px solid #1e293b;
    }
    .ai-chat-container {
        height: min(68dvh, 560px);
        min-height: 380px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .audience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-info {
        display: none;
    }
    .hero-actions .btn,
    .final-cta-actions .btn {
        width: 100%;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        z-index: 200;
        overscroll-behavior: contain;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.1rem;
    }
    .hero-points-list {
        grid-template-columns: 1fr;
    }
    .audience-grid {
        grid-template-columns: 1fr;
    }
    .nav-item-dropdown.open .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 0.5rem;
        min-width: 0;
    }
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    .offerings-grid {
        grid-template-columns: 1fr;
    }
    .stats-cards-grid {
        grid-template-columns: 1fr;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .custom-table {
        min-width: 640px;
    }
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.35rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    .dash-layout {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .dash-rail {
        position: static;
        padding: 0.75rem;
    }
    .btn {
        white-space: normal;
    }
    .modal-backdrop,
    .pstk-modal-backdrop {
        padding: 0.75rem;
        align-items: flex-start;
    }
    .modal-card,
    .pstk-modal-dialog,
    .receipt-dialog {
        margin: 0.5rem auto 1.5rem;
        max-width: 100%;
    }
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    .modal-footer {
        flex-wrap: wrap;
    }
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    .receipt-card-printable {
        padding: 1.15rem;
    }
    .receipt-info-grid,
    .receipt-stamp-box {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .receipt-table {
        font-size: 0.78rem;
        display: block;
        overflow-x: auto;
    }
    .page-header-banner {
        padding: 1.25rem 0;
    }
    .page-title-box h1 {
        font-size: 1.45rem;
    }
    .cbt-exam-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
    .cbt-exam-wrapper {
        overflow: visible;
    }
    .cbt-question-area {
        padding: 1rem;
    }
    .cbt-nav-controls .btn {
        flex: 1 1 42%;
    }
    .question-text {
        font-size: 1rem;
    }
    .ai-assistant-wrapper {
        height: auto;
        overflow: visible;
        min-height: 0;
    }
    .ai-sidebar {
        padding: 1rem;
    }
    .ai-mode-btn {
        white-space: normal;
    }
    .ai-chat-container {
        height: min(70dvh, 560px);
        min-height: 420px;
        border-top: 1px solid var(--border);
    }
    .ai-chat-header {
        padding: 0.85rem 1rem;
    }
    .ai-messages-scroll {
        padding: 1rem;
    }
    .chat-bubble {
        max-width: 100%;
    }
    .brand-sub {
        display: none;
    }
    .nav-container {
        height: 64px;
    }
    .nav-links {
        top: 64px;
        max-height: calc(100dvh - 64px);
    }
}

/* ==========================================================================
   Professional dashboard shell (SMS / Parent / Admin)
   ========================================================================== */

.dash-page {
    background: #e9eef6;
    background-image: none;
}

.dash-page .main-header {
    background: #ffffff;
}

.dash-page .main-header .container {
    max-width: none;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.dash-page .nav-container {
    height: 64px;
}

.dash-page .top-bar {
    display: none;
}

.dash-page .page-header-banner {
    display: none;
}

.dash-page .site-footer {
    padding: 0.9rem 0;
    background: #13294b;
}

.dash-page .footer-bottom {
    padding-top: 0;
    border-top: none;
}

.dash-page .portal-container {
    padding: 0;
}

.dash-page .stat-kpi-card {
    border-top: none;
    text-align: left;
    border-radius: 14px;
    padding: 1.1rem 1.15rem 1.15rem;
    box-shadow: 0 10px 30px rgba(19, 41, 75, 0.07);
}

.dash-page .data-table-card {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(19, 41, 75, 0.07);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.dash-page .table-header-bar {
    background: #ffffff;
    padding: 1rem 1.15rem;
}

.dash-page .table-header-bar h3 {
    font-size: 0.95rem;
    color: #16325c;
}

.dash-page .stat-kpi-card .number {
    font-size: 1.65rem;
    color: #16325c;
}

.dash-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 64px);
    align-items: stretch;
}

.dash-rail {
    background: linear-gradient(180deg, #16325c 0%, #0f2747 100%);
    color: #e2e8f0;
    border-radius: 0;
    padding: 1.6rem 1rem 2rem;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.dash-profile {
    text-align: center;
    padding: 0.25rem 0.5rem 1.35rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-profile-avatar {
    width: 74px;
    height: 74px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.25);
}

.dash-profile-name {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.dash-profile-role,
.dash-profile-meta {
    display: block;
    font-size: 0.75rem;
    color: #93c5fd;
    margin-top: 0.2rem;
}

.dash-rail-kicker {
    display: none;
}

.dash-page .portal-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    border-bottom: none;
    margin-bottom: 0;
    overflow: visible;
}

.dash-page .portal-tab-btn {
    width: 100%;
    justify-content: flex-start;
    gap: 0.65rem;
    color: #cbd5e1;
    padding: 0.72rem 0.85rem;
    border-radius: 10px;
    border-bottom: none;
    margin-bottom: 0;
    font-size: 0.86rem;
    font-weight: 600;
    background: transparent;
}

.dash-page .portal-tab-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dash-page .portal-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.dash-page .portal-tab-btn.active {
    color: #0f172a;
    background: #f59e0b;
    border-bottom-color: transparent;
    font-weight: 800;
}

.dash-canvas {
    min-width: 0;
    background: #e9eef6;
    padding: 1.35rem 1.6rem 2.5rem;
}

.dash-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.15rem;
}

.dash-toolbar h1 {
    font-size: 1.35rem;
    margin: 0 0 0.15rem;
    color: #16325c;
}

.dash-toolbar p {
    margin: 0;
    font-size: 0.88rem;
}

.dash-toolbar-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.dash-switcher {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    padding: 0.3rem 0.65rem;
}

.dash-switcher span {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
}

.dash-page .student-select-input {
    background: transparent;
    color: #0f172a;
    border: none;
    font-size: 0.8rem;
    max-width: 220px;
}

.dash-kpi-row {
    margin-bottom: 1.1rem;
}

.dash-charts {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.85fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.chart-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.1rem 1.15rem 1.2rem;
    box-shadow: 0 10px 30px rgba(19, 41, 75, 0.07);
    border: 1px solid rgba(226, 232, 240, 0.9);
    min-width: 0;
}

.chart-card h3 {
    font-size: 0.92rem;
    color: #16325c;
    margin-bottom: 0.85rem;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
    height: 150px;
}

.bar-col {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
}

.bar {
    width: 100%;
    max-width: 26px;
    min-height: 10px;
    border-radius: 7px 7px 2px 2px;
    background: #16325c;
}

.bar-col:nth-child(even) .bar {
    background: #f59e0b;
}

.bar-col small {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 700;
    text-align: center;
}

.area-chart {
    width: 100%;
    height: 150px;
    display: block;
}

.donut-wrap {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0.25rem auto 0;
}

.donut {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: conic-gradient(#f59e0b 0 72%, #16325c 72% 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent 58%, #000 59%);
    mask: radial-gradient(farthest-side, transparent 58%, #000 59%);
}

.donut-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #16325c;
    font-weight: 800;
    line-height: 1.1;
}

.donut-label small {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

@media (max-width: 992px) {
    .dash-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .dash-rail {
        position: static;
        height: auto;
        padding: 1rem;
        margin: 0;
    }
    .dash-profile {
        padding-bottom: 0.85rem;
        margin-bottom: 0.75rem;
    }
    .dash-profile-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.1rem;
    }
    .dash-page .portal-tabs {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }
    .dash-page .portal-tab-btn {
        width: auto;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.08);
        color: #e2e8f0;
    }
    .dash-page .portal-tab-btn.active {
        background: #f59e0b;
        color: #0f172a;
    }
    .dash-charts {
        grid-template-columns: 1fr;
    }
    .dash-canvas {
        padding: 1rem;
    }
    .dash-page .nav-links {
        top: 64px;
    }
}


