/* VidyaExams - simple hand-written styles (no framework dependency) */

:root {
    --brand-primary: #163a8c;
    --brand-primary-dark: #0f2a66;
    --brand-bright: #2563eb;
    --brand-accent: #f5891f;
    --brand-accent-dark: #d9720f;
    --shadow-soft: 0 4px 16px rgba(22, 58, 140, 0.08);
    --shadow-card: 0 2px 10px rgba(15, 23, 42, 0.06);

    /* Light design-system tokens - used for card/badge/section variety */
    --sky-light: #e0f2fe;
    --lavender-light: #f1e9fd;
    --mint-light: #dcfce7;
    --cyan-light: #cffafe;
    --peach-light: #ffedd5;
    --yellow-light: #fef9c3;
    --pink-light: #fce7f3;
    --bg-color: #ffffff;
    --text-color: #0f172a;
    --muted-text-color: #64748b;
    --border-color: #e2e8f0;

    --font-base: 'Arvo', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-base);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
button, .btn, nav, input, select, textarea, label, table {
    font-family: var(--font-base);
}

a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--text-color); margin: 0 0 10px; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 600; }

p { margin: 0 0 10px; }

:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Top information strip (public pages) */
.top-strip { background: linear-gradient(90deg, var(--brand-primary-dark), var(--brand-primary)); color: #fff; }
.top-strip-inner {
    max-width: 1180px; margin: 0 auto; padding: 8px 24px;
    display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; column-gap: 20px;
    font-size: 12.5px;
}
.top-strip-item { color: #fff; font-weight: 600; opacity: 0.95; white-space: nowrap; }
.top-strip-item:hover { opacity: 1; text-decoration: underline; }
.top-strip-spacer { flex: 1; min-width: 12px; }
.top-strip-social { display: flex; align-items: center; flex-wrap: wrap; column-gap: 10px; }
.top-strip-social a { color: #fff; font-weight: 600; opacity: 0.9; white-space: nowrap; }
.top-strip-social a:hover { opacity: 1; text-decoration: underline; }
.top-strip-social a + a::before { content: "|"; margin-right: 10px; opacity: 0.45; font-weight: 400; }

/* Top bar (anonymous pages) */
.topbar { background: #fff; border-bottom: 1px solid #e2e8f0; }
.topbar-inner {
    max-width: 1100px; margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 20px; font-weight: 800; color: var(--brand-primary); text-decoration: none; }
.brand img { height: 34px; display: block; }
.brand-lg img { height: auto; max-height: 76px; width: auto; max-width: 260px; object-fit: contain; display: block; }
.topnav a { margin-left: 16px; color: #334155; font-weight: 500; }
.topnav a.btn { color: #fff; }

/* Buttons */
.btn {
    display: inline-block; border-radius: 8px; border: 1px solid transparent;
    padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-dark); text-decoration: none; }
.btn-accent { background: var(--brand-accent); color: #fff; }
.btn-accent:hover { background: var(--brand-accent-dark); text-decoration: none; }
.btn-secondary { background: #fff; color: #334155; border-color: #cbd5e1; }
.btn-secondary:hover { background: #f1f5f9; text-decoration: none; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--brand-primary); font-weight: 600; cursor: pointer; padding: 0; }

/* Dashboard shell */
.shell { display: flex; min-height: 100vh; min-height: 100svh; background: linear-gradient(180deg, #f8fafc, #eef2ff); }
.sidebar {
    width: 240px; flex-shrink: 0; background: #fff; border-right: 1px solid #e2e8f0;
    display: flex; flex-direction: column; transition: transform 0.25s ease;
}
.sidebar .brand { display: block; padding: 18px 22px; border-bottom: 1px solid #e2e8f0; }
.sidenav { flex: 1; padding: 12px; }
.sidenav a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    color: #334155; font-weight: 600; margin-bottom: 4px; transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    text-transform: uppercase; letter-spacing: 0.02em; font-size: 13px;
}
.sidenav a:hover { background: var(--sky-light); text-decoration: none; transform: translateX(2px); }
.sidenav a.active { background: linear-gradient(120deg, var(--brand-primary), var(--brand-bright)); color: #fff; box-shadow: var(--shadow-soft); }
.sidenav-section {
    padding: 14px 12px 4px; color: #94a3b8; font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.sidenav a.sidenav-sub { padding-left: 24px; }
.sidenav-signout-form { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2e8f0; }
.sidenav-signout {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px;
    border: none; background: none; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 13px;
    color: #dc2626; text-align: left; transition: background 0.15s ease, transform 0.15s ease;
    text-transform: uppercase; letter-spacing: 0.02em;
}
.sidenav-signout:hover { background: #fef2f2; transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .sidenav-signout { transition: none; } }
.sidenav-icon { width: 22px; height: 22px; flex-shrink: 0; display: inline-flex; }
.sidenav-icon svg { width: 22px !important; height: 22px !important; max-width: 22px; max-height: 22px; }
.sidebar-footer { border-top: 1px solid #e2e8f0; padding: 14px; }
.user-name { font-weight: 600; margin: 0; }
.user-role { color: #64748b; font-size: 12px; margin: 0 0 10px; }
.content { flex: 1; padding: 28px 32px; max-width: 1200px; }
.sidebar-toggle { display: none; }
.sidebar-overlay { display: none; }

/* Admin topbar */
.admin-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 20px; margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}
.admin-topbar-left { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.admin-topbar-title { margin: 0; font-size: 20px; color: var(--brand-primary-dark); }
.admin-topbar-school { color: #64748b; font-size: 13px; font-weight: 600; }
.admin-topbar-school small { font-weight: 500; color: #94a3b8; }
.admin-topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-icon-btn, .topbar-profile-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e2e8f0; background: #f8fafc;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
    color: #334155;
}
.topbar-icon-btn svg { width: 19px; height: 19px; }
.topbar-icon-btn:hover, .topbar-profile-btn:hover { background: var(--sky-light); transform: translateY(-1px); }
.topbar-profile-btn { background: linear-gradient(135deg, var(--brand-primary), var(--brand-bright)); color: #fff; font-weight: 700; border: none; }
.topbar-dropdown-wrap { position: relative; }
.topbar-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: var(--shadow-soft); padding: 14px; z-index: 30;
}
.topbar-dropdown-right { right: 0; left: auto; }
.topbar-dropdown.open { display: block; }
.topbar-dropdown-title { font-weight: 700; margin: 0 0 4px; font-size: 14px; }
.topbar-dropdown-empty { color: #94a3b8; font-size: 13px; margin: 0; }
.topbar-dropdown a { display: block; padding: 6px 0; font-weight: 600; font-size: 13px; }
.topbar-dropdown-link { border-top: 1px solid #f1f5f9; margin-top: 4px; padding-top: 10px !important; }

.topbar-logout { display: block; width: 100%; text-align: left; padding: 6px 0; font-weight: 600; font-size: 13px; color: #dc2626; }

/* Section heading / Quick actions / Charts */
.section-heading { font-size: 18px; margin: 28px 0 14px; color: var(--brand-primary-dark); }
.stat-card-link { text-decoration: none; display: block; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.stat-card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); text-decoration: none; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.quick-action {
    display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 14px; text-decoration: none;
    box-shadow: var(--shadow-card); transition: transform 0.18s ease, box-shadow 0.18s ease; border: 1px solid transparent;
}
.quick-action:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); text-decoration: none; }
.quick-action-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.65);
}
.quick-action-icon svg { width: 20px !important; height: 20px !important; max-width: 20px; max-height: 20px; }
.quick-action-title { font-weight: 700; margin: 0 0 2px; color: #0f172a; font-size: 14px; }
.quick-action-desc { margin: 0; font-size: 12px; color: #475569; }
.quick-action-sky { background: linear-gradient(135deg, var(--sky-light), #bfe3fb); }
.quick-action-sky .quick-action-icon { color: #0369a1; }
.quick-action-purple { background: linear-gradient(135deg, var(--lavender-light), #ddc8fb); }
.quick-action-purple .quick-action-icon { color: #7c3aed; }
.quick-action-mint { background: linear-gradient(135deg, var(--mint-light), #bbf0d1); }
.quick-action-mint .quick-action-icon { color: #15803d; }
.quick-action-peach { background: linear-gradient(135deg, var(--peach-light), #fdd9ae); }
.quick-action-peach .quick-action-icon { color: var(--brand-accent-dark); }
.quick-action-cyan { background: linear-gradient(135deg, var(--cyan-light), #a9f0f5); }
.quick-action-cyan .quick-action-icon { color: #0e7490; }

.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.chart-card { min-height: 260px; position: relative; }
.chart-card canvas { max-width: 100%; }
.chart-title { font-weight: 700; margin: 0 0 14px; color: #0f172a; }
.chart-empty { color: #94a3b8; font-size: 13px; padding: 40px 10px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
    .stat-card-link, .quick-action { transition: none; }
}
@media (max-width: 680px) {
    .quick-actions { grid-template-columns: 1fr; }
    .chart-grid { grid-template-columns: 1fr; }
}

/* Toast */
.vx-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #16a34a; color: #fff; padding: 14px 28px;
    border-radius: 10px; box-shadow: var(--shadow-soft); z-index: 100; font-weight: 700; font-size: 16px;
    animation: vxToastIn 0.25s ease; max-width: 420px; text-align: center;
}
.vx-toast.hide { opacity: 0; transform: translateX(-50%) translateY(-8px); transition: opacity 0.3s ease, transform 0.3s ease; }
@keyframes vxToastIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .vx-toast { animation: none; }
    .sidenav a, .topbar-icon-btn, .topbar-profile-btn { transition: none; }
}

/* Landing hero */
.hero { max-width: 1000px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.hero h1 { font-size: 38px; }
.hero p.lead { max-width: 640px; margin: 16px auto 0; color: #475569; font-size: 17px; }
.hero-actions { margin-top: 32px; }
.hero-actions .btn { margin: 0 8px; padding: 12px 22px; font-size: 15px; }
.features { max-width: 1000px; margin: 0 auto; padding: 0 24px 80px; display: flex; gap: 20px; flex-wrap: wrap; }
.features .card { flex: 1 1 260px; }
.footer { text-align: center; color: #64748b; padding: 20px; border-top: 1px solid #e2e8f0; background: #fff; }

/* Cards */
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.card-row { display: flex; align-items: center; justify-content: space-between; }

/* Stat grid */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.stat-grid .card { margin-bottom: 0; }
.stat-label { color: #64748b; font-size: 12px; }
.stat-value { font-size: 22px; font-weight: 800; margin-top: 2px; }
.stat-footnote { color: #94a3b8; font-size: 12px; margin-top: 18px; max-width: 760px; }

/* School dashboard welcome banner */
.school-welcome {
    background: linear-gradient(120deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff; border-radius: 14px; padding: 28px 30px; margin-bottom: 8px;
}
.school-welcome h1 { color: #fff; margin: 0 0 8px; font-size: 26px; }
.school-welcome p { margin: 0; color: #dbeafe; font-size: 14px; max-width: 640px; }
.school-info-panel {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px;
    margin-top: 20px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px; padding: 16px 18px;
}
.school-info-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.school-info-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #bfdbfe; }
.school-info-value { font-size: 14px; font-weight: 700; color: #fff; overflow-wrap: break-word; }

/* Stat cards with icon chips */
.stat-card { position: relative; padding: 14px 16px; }
.stat-icon {
    width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 8px;
}
.stat-icon svg { width: 16px !important; height: 16px !important; max-width: 16px; max-height: 16px; }
.stat-grid-icons .stat-card:nth-child(6n+1) .stat-icon { background: linear-gradient(135deg, var(--sky-light), #bfe3fb); color: #0369a1; }
.stat-grid-icons .stat-card:nth-child(6n+2) .stat-icon { background: linear-gradient(135deg, var(--peach-light), #fdd9ae); color: var(--brand-accent-dark); }
.stat-grid-icons .stat-card:nth-child(6n+3) .stat-icon { background: linear-gradient(135deg, var(--mint-light), #bbf0d1); color: #15803d; }
.stat-grid-icons .stat-card:nth-child(6n+4) .stat-icon { background: linear-gradient(135deg, var(--lavender-light), #ddc8fb); color: #7c3aed; }
.stat-grid-icons .stat-card:nth-child(6n+5) .stat-icon { background: linear-gradient(135deg, var(--cyan-light), #a9f0f5); color: #0e7490; }
.stat-grid-icons .stat-card:nth-child(6n+6) .stat-icon { background: linear-gradient(135deg, var(--yellow-light), #fde68a); color: #a16207; }

/* Forms */
form .field { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 13px; color: #334155; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=datetime-local], input[type=url], textarea, select {
    width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px;
    font-size: 14px; font-family: inherit;
}
input[type=checkbox] { margin-right: 6px; }
.checkbox-row { display: flex; align-items: center; gap: 24px; margin-bottom: 14px; font-weight: 500; }
.field-error, .validation-summary-errors { color: #dc2626; font-size: 13px; margin-top: 4px; }
.success-text { color: #16a34a; font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
table th, table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
table th { background: #f8fafc; color: #64748b; text-transform: uppercase; font-size: 11px; }
table tr:last-child td { border-bottom: none; }
table tbody tr:nth-child(even) { background: #f8fafc; }
table tbody tr:hover { background: var(--sky-light); }

.table-toolbar { margin-bottom: 10px; max-width: 320px; }
.table-search {
    width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 13px; font-family: inherit;
}
.table-search:focus { outline: none; border-color: var(--brand-bright); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }

@media (max-width: 680px) {
    table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-slate { background: #f1f5f9; color: #334155; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-indigo { background: #dbeafe; color: var(--brand-primary-dark); }

/* Exam taking */
.exam-header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid #e2e8f0; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; z-index: 10; }
.timer { font-size: 20px; font-weight: 700; color: #dc2626; }
.question-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin: 16px 24px; }
.question-meta { color: #64748b; font-size: 12px; text-transform: uppercase; margin-bottom: 6px; }
.option-row { display: block; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.option-row:hover { background: #f8fafc; }
.option-row input { margin-right: 8px; }
.exam-footer { padding: 20px 24px; }
.warning-banner { background: #fef3c7; color: #92400e; padding: 10px 24px; font-size: 13px; }

@media (max-width: 800px) {
    .shell { position: relative; }
    .sidebar-toggle {
        display: flex; align-items: center; justify-content: center; position: fixed; top: 14px; left: 14px; z-index: 40;
        width: 40px; height: 40px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font-size: 18px;
        box-shadow: var(--shadow-card);
    }
    .sidebar {
        position: fixed; top: 0; left: 0; height: 100vh; height: 100svh; width: 260px; z-index: 50;
        transform: translateX(-100%); overflow-y: auto;
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open {
        display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); z-index: 45;
    }
    .content { padding: 72px 16px 24px; max-width: 100%; }
    .admin-topbar { flex-wrap: wrap; }
    .admin-topbar-title { font-size: 17px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .vx-toast { left: 16px; right: 16px; transform: none; max-width: none; top: 70px; }
    .vx-toast.hide { transform: translateY(-8px); }
}

/* ===================== Public marketing site ===================== */

.site-header {
    background: #fff; border-bottom: 1px solid #e2e8f0;
    position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(15,23,42,0.03);
}
.site-header-inner {
    max-width: 1180px; margin: 0 auto; padding: 18px 24px; position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
    color: #1e293b; font-weight: 700; font-size: 13.5px;
    text-transform: uppercase; letter-spacing: 0.03em;
    position: relative; padding: 6px 0; transition: color 0.15s ease;
}
.site-nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
    background: var(--brand-bright); transition: right 0.2s ease;
}
.site-nav a:hover { color: var(--brand-bright); text-decoration: none; }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.site-nav a.active { color: var(--brand-bright); }
.btn-login {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-dark));
    color: #fff !important; font-weight: 800 !important; letter-spacing: 0.04em;
    padding: 11px 26px; border-radius: 10px; font-size: 14px !important;
    box-shadow: 0 4px 14px rgba(245, 137, 31, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-login::after { display: none; }
.btn-login:hover {
    color: #fff !important; text-decoration: none; transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 137, 31, 0.45);
}
.btn-login:focus-visible { outline: 3px solid var(--brand-primary-dark); outline-offset: 2px; }
.nav-toggle {
    display: none; background: none; border: 1px solid #cbd5e1; border-radius: 8px;
    padding: 7px 10px; cursor: pointer; font-size: 20px; color: var(--brand-primary);
}
.mobile-nav { display: none; flex-direction: column; padding: 10px 24px 16px; border-top: 1px solid #e2e8f0; }
.mobile-nav a {
    padding: 12px 0; border-bottom: 1px solid #f1f5f9; color: #1e293b; font-weight: 700;
    text-transform: uppercase; font-size: 13px; letter-spacing: 0.03em;
}
.mobile-nav.open { display: flex; }
.btn-login-mobile { display: none; }

/* Hero */
.hero2 {
    max-width: 1180px; margin: 0 auto; padding: 64px 24px 40px; display: flex; align-items: center; gap: 48px;
    background: radial-gradient(circle at 85% 20%, rgba(37,99,235,0.07), transparent 55%);
}
.hero2-text { flex: 1 1 480px; }
.hero2-text h1 { font-size: 44px; line-height: 1.15; font-weight: 800; }
.hero2-text p.lead { max-width: 560px; margin-top: 18px; color: #475569; font-size: 18px; }
.hero2-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero2-actions .btn { padding: 13px 24px; font-size: 15.5px; font-weight: 700; }
.hero2-visual { flex: 1 1 380px; display: flex; justify-content: center; }
.hero2-visual svg { width: 100%; max-width: 440px; height: auto; overflow: visible; }

/* Hero illustration animations - decorative only, no real data */
.hero2-text, .hero2-visual { animation: vxFadeUp 0.7s ease both; }
.hero2-visual { animation-delay: 0.1s; }

.vx-float { transform-box: fill-box; transform-origin: center; animation: vxFloat 4.5s ease-in-out infinite; }
.vx-float-slow { transform-box: fill-box; transform-origin: center; animation: vxFloat 6s ease-in-out infinite; animation-delay: 0.6s; }
.vx-float-rev { transform-box: fill-box; transform-origin: center; animation: vxFloatRev 5.2s ease-in-out infinite; animation-delay: 0.3s; }
.vx-pulse { transform-box: fill-box; transform-origin: center; animation: vxPulse 2.2s ease-in-out infinite; }
.vx-blink { animation: vxBlink 2.6s ease-in-out infinite; }
.vx-progress-fill { transform-box: fill-box; transform-origin: left center; animation: vxGrow 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both; }
.vx-dash { stroke-dasharray: 6 6; animation: vxDash 1.6s linear infinite; }

@keyframes vxFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes vxFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
@keyframes vxFloatRev {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}
@keyframes vxPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.92); }
}
@keyframes vxBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes vxGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@keyframes vxDash {
    to { stroke-dashoffset: -24; }
}

@media (prefers-reduced-motion: reduce) {
    .hero2-text, .hero2-visual, .vx-float, .vx-float-slow, .vx-float-rev, .vx-pulse, .vx-blink, .vx-progress-fill, .vx-dash {
        animation: none !important;
    }
    .vx-progress-fill { transform: scaleX(1) !important; }
}

@media (max-width: 680px) {
    .vx-float, .vx-float-slow, .vx-float-rev { animation-duration: 0s; }
    .hero-decor-mobile-hide { display: none; }
}

/* Generic section */
.section { max-width: 1180px; margin: 0 auto; padding: 60px 24px; }
.section-alt { background: linear-gradient(180deg, #f3f6fd, #f8fafc); }
.section-title { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-title h2 { font-size: 32px; font-weight: 800; }
.section-title p { color: #64748b; font-size: 16px; margin-top: 10px; }
.section-eyebrow {
    display: inline-block; color: var(--brand-bright); font-weight: 800; font-size: 12.5px;
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}

/* Icon-led feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 26px;
    box-shadow: var(--shadow-card); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.feature-icon {
    width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center;
    justify-content: center; font-size: 24px; margin-bottom: 16px;
    background: linear-gradient(135deg, #e8eefc, #dbe6fd); color: var(--brand-primary);
    transition: transform 0.18s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-icon.accent { background: linear-gradient(135deg, #fef0e0, #fde3c8); color: var(--brand-accent-dark); }
/* Vary icon badge colors across the light palette for visual rhythm, without
   turning the cards themselves into a rainbow (card backgrounds stay white). */
.feature-card:nth-child(6n+1) .feature-icon { background: linear-gradient(135deg, var(--sky-light), #bfe3fb); color: #0369a1; }
.feature-card:nth-child(6n+2) .feature-icon { background: linear-gradient(135deg, var(--peach-light), #fdd9ae); color: var(--brand-accent-dark); }
.feature-card:nth-child(6n+3) .feature-icon { background: linear-gradient(135deg, var(--mint-light), #bbf0d1); color: #15803d; }
.feature-card:nth-child(6n+4) .feature-icon { background: linear-gradient(135deg, var(--lavender-light), #ddc8fb); color: #7c3aed; }
.feature-card:nth-child(6n+5) .feature-icon { background: linear-gradient(135deg, var(--cyan-light), #a9f0f5); color: #0e7490; }
.feature-card:nth-child(6n+6) .feature-icon { background: linear-gradient(135deg, var(--yellow-light), #fde68a); color: #a16207; }
.feature-card h3 { font-size: 17px; font-weight: 700; }
.feature-card p { color: #55637a; font-size: 14px; margin: 0; line-height: 1.6; }

/* Who can use */
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.who-card {
    text-align: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px 18px;
    box-shadow: var(--shadow-card); transition: transform 0.18s ease;
}
.who-card:hover { transform: translateY(-3px); }
.who-card .feature-icon { margin: 0 auto 14px; }
.who-card h3 { font-size: 15.5px; font-weight: 700; }

/* How it works steps */
.steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; counter-reset: step;
    position: relative;
}
.step-card { position: relative; padding-top: 10px; }
.step-num {
    width: 42px; height: 42px; border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-bright), var(--brand-primary)); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
    margin-bottom: 16px; box-shadow: 0 4px 10px rgba(37,99,235,0.3);
}
.step-card h3 { font-size: 16px; font-weight: 700; }
.step-card p { color: #55637a; font-size: 14px; }

/* Benefits list */
.benefits-split { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; flex: 1 1 480px; }
.benefit-row { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.benefit-check {
    width: 26px; height: 26px; border-radius: 999px; background: #dcfce7; color: #15803d;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-size: 13px;
}

/* Results & Reports mini dashboard */
.report-card {
    flex: 1 1 280px; max-width: 320px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 22px; box-shadow: var(--shadow-soft);
}
.report-card h4 { font-size: 13px; font-weight: 800; color: var(--brand-primary); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 4px; }
.report-card .report-sub { font-size: 12px; color: #94a3b8; margin-bottom: 18px; }
.report-bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.report-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.report-bar {
    width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--brand-bright), var(--brand-primary));
}
.report-bar-col:nth-child(3n+2) .report-bar { background: linear-gradient(180deg, var(--brand-accent), var(--brand-accent-dark)); }
.report-bar-label { margin-top: 8px; font-size: 10px; color: #94a3b8; font-weight: 600; }
.bar-grow { transform: scaleY(0.1); transform-origin: bottom; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.bar-grow.in-view { transform: scaleY(1); }
.report-note { margin-top: 16px; font-size: 11.5px; color: #94a3b8; font-style: italic; }
@media (prefers-reduced-motion: reduce) {
    .bar-grow { transition: none; transform: scaleY(1); }
}

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff; border-radius: 20px; padding: 48px 32px; text-align: center;
    max-width: 1180px; margin: 0 24px 60px; margin-left: auto; margin-right: auto;
}
.cta-band h2 { color: #fff; font-size: 26px; }
.cta-band p { color: #dbe4fb; max-width: 560px; margin: 10px auto 24px; }
.cta-band .btn-secondary { background: #fff; color: var(--brand-primary); border-color: #fff; }

/* Multi-campus capability list */
.capability-block {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 26px; margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}
.capability-block h3 { font-size: 19px; font-weight: 800; color: var(--brand-primary); display: flex; align-items: center; gap: 10px; }
.capability-block > p { font-size: 14.5px; color: #475569; }
.capability-block ul { margin: 12px 0 0; padding-left: 22px; }
.capability-block li { margin-bottom: 8px; color: #334155; font-size: 14.5px; line-height: 1.6; }

/* How It Works timeline */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
    content: ""; position: absolute; left: 23px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(180deg, var(--brand-bright), var(--brand-accent));
}
.timeline-step { position: relative; display: flex; gap: 22px; padding-bottom: 38px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-marker {
    width: 48px; height: 48px; border-radius: 999px; flex-shrink: 0; z-index: 1;
    background: linear-gradient(135deg, var(--brand-bright), var(--brand-primary)); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.timeline-content { padding-top: 6px; }
.timeline-content h3 { font-size: 18px; font-weight: 800; }
.timeline-content p { color: #475569; font-size: 14.5px; }

/* Multi-campus hub diagram */
.campus-diagram { display: flex; justify-content: center; margin: 10px 0 44px; }
.campus-diagram svg { width: 100%; max-width: 640px; height: auto; }

/* Security page */
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.security-item {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px;
    box-shadow: var(--shadow-card); display: flex; gap: 14px; align-items: flex-start;
}
.security-item .feature-icon { width: 38px; height: 38px; font-size: 18px; margin-bottom: 0; flex-shrink: 0; }
.security-item h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #0f172a; }
.security-item p { margin: 0; font-size: 13.5px; color: #64748b; line-height: 1.55; }
.disclosure-box { background: #fef3c7; border: 1px solid #fcd34d; border-radius: 12px; padding: 18px 20px; color: #78350f; font-size: 13.5px; line-height: 1.6; }

/* Portal selection cards */
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.portal-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: 30px 24px; text-align: center;
    box-shadow: var(--shadow-card); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.portal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.portal-icon {
    width: 64px; height: 64px; border-radius: 999px; margin: 0 auto 16px; font-size: 28px;
    display: flex; align-items: center; justify-content: center; transition: transform 0.18s ease;
}
.portal-card:hover .portal-icon { transform: scale(1.08); }
.portal-icon-admin { background: linear-gradient(135deg, var(--sky-light), #bfe3fb); }
.portal-card:has(.portal-icon-admin):hover { border-color: #bfe3fb; }
.portal-icon-teacher { background: linear-gradient(135deg, var(--peach-light), #fdd9ae); }
.portal-card:has(.portal-icon-teacher):hover { border-color: #fdd9ae; }
.portal-icon-student { background: linear-gradient(135deg, var(--mint-light), #bbf0d1); }
.portal-card:has(.portal-icon-student):hover { border-color: #bbf0d1; }
.portal-card p { color: #64748b; font-size: 13.5px; min-height: 54px; }

/* Login pages - dedicated minimal layout (see _LoginLayout.cshtml), sized to
   fit one viewport with no scrolling: compact paddings/gaps throughout. */
.login-body {
    margin: 0; background: linear-gradient(160deg, #eef4ff 0%, #ffffff 60%);
    color: var(--text-color); min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    padding: 12px 16px; overflow: hidden;
}
.login-screen {
    width: 100%; max-width: 380px; max-height: 100svh;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.login-screen-brand { flex-shrink: 0; display: block; }
.login-screen-brand img { height: 40px; width: auto; max-width: 70vw; object-fit: contain; display: block; }
.login-screen-content { width: 100%; min-height: 0; overflow-y: auto; }

.login-card {
    text-align: center; box-shadow: var(--shadow-soft); border-radius: 16px;
    padding: 20px 24px; background: #fff; border: 1px solid var(--border-color);
}
.login-sub { color: var(--muted-text-color); font-size: 12.5px; margin-bottom: 14px; line-height: 1.4; }
.login-card h2 { font-size: 19px; margin-bottom: 2px; }
.login-card .field { text-align: left; margin-bottom: 10px; }
.login-card form { text-align: left; display: flex; flex-direction: column; }
.login-card label { font-size: 12.5px; margin-bottom: 2px; }
.login-card input[type=email], .login-card input[type=password] { padding: 9px 12px; font-size: 14px; width: 100%; }

/* Password field with eye-icon visibility toggle */
.password-input-wrap { position: relative; }
.password-input-wrap input[type=password], .password-input-wrap input[type=text] { padding-right: 42px; }
.pwd-toggle-btn {
    position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; border-radius: 8px; padding: 0; margin: 0;
    color: var(--muted-text-color); cursor: pointer; transition: color 0.15s ease, background 0.15s ease;
}
.pwd-toggle-btn:hover { color: var(--brand-primary); background: #f1f5f9; }
.pwd-toggle-btn:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 1px; color: var(--brand-primary); }

.login-card .btn-block { padding: 10px 16px; font-size: 14.5px; font-weight: 700; border-radius: 9px; }
.login-row { text-align: right; margin-bottom: 10px; font-size: 12px; }
.login-footer-links { margin-top: 12px; margin-bottom: 0; text-align: center; font-size: 12px; color: var(--muted-text-color); }

@media (max-height: 620px) {
    .login-screen-brand img { height: 32px; }
    .login-card { padding: 14px 20px; }
    .login-card h2 { font-size: 17px; }
    .login-sub { font-size: 12px; margin-bottom: 10px; }
    .login-card .field { margin-bottom: 8px; }
}

/* Login selection (portal) screen */
.portal-select-title { text-align: center; font-size: 27px; margin: 2px 0 0; }
.portal-select-footer { text-align: center; margin: 18px 0 0; color: var(--muted-text-color); font-size: 13px; }

@media (max-width: 680px) {
    .portal-select-title { font-size: 19px; margin-bottom: 0; }
    .portal-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
    .portal-card { padding: 10px 6px; border-radius: 12px; }
    .portal-icon { width: 36px; height: 36px; font-size: 16px; margin: 0 auto 6px; }
    .portal-card h3 { font-size: 11px; margin-bottom: 0; line-height: 1.25; }
    .portal-card p { display: none; }
    .portal-card .btn-block { padding: 7px 3px; font-size: 10px; margin-top: 8px; border-radius: 7px; }
    .portal-select-footer { font-size: 11.5px; margin-top: 10px; }
}

@media (max-width: 680px) and (max-height: 620px) {
    .login-screen-brand img { height: 30px; }
    .portal-select-title { font-size: 17px; }
    .portal-grid { margin-top: 10px; gap: 6px; }
    .portal-card { padding: 8px 5px; }
    .portal-icon { width: 30px; height: 30px; font-size: 14px; margin-bottom: 4px; }
    .portal-select-footer { margin-top: 8px; }
}

/* Footer (public) */
.site-footer { background: #0f1f44; color: #c7d2e8; }
.footer-grid {
    max-width: 1180px; margin: 0 auto; padding: 48px 24px 24px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px;
}
.footer-grid h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-grid a { color: #c7d2e8; display: block; margin-bottom: 9px; font-size: 13.5px; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 34px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: #9fb0d3; max-width: 280px; }
.footer-bottom {
    border-top: 1px solid #1f3466; padding: 16px 24px; text-align: center;
    font-size: 12.5px; color: #8ea0c7;
}
.footer-bottom a { color: #c7d2e8; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; }
.contact-info-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; height: fit-content; }
.contact-info-card h3 { font-size: 15px; }
.contact-info-card p { font-size: 13.5px; color: #64748b; }
.success-box { background: #dcfce7; border: 1px solid #86efac; color: #15803d; border-radius: 10px; padding: 16px; margin-bottom: 16px; }

/* Scroll-reveal (progressively enhanced; content is fully visible without JS) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* About page illustration + benefit chips */
.about-hero { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; margin-bottom: 20px; }
.about-hero-text { flex: 1 1 420px; }
.about-hero-visual { flex: 1 1 320px; display: flex; justify-content: center; }
.about-hero-visual svg { width: 100%; max-width: 320px; height: auto; }
.about-body h3 { font-size: 20px; font-weight: 800; color: var(--brand-primary); }
.about-body p { font-size: 15px; color: #475569; }

@media (max-width: 900px) {
    .hero2 { flex-direction: column; padding-top: 40px; }
    .hero2-text h1 { font-size: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-hero { flex-direction: column; }
}

@media (max-width: 680px) {
    .top-strip-inner { font-size: 11px; column-gap: 12px; padding: 6px 16px; justify-content: center; }
    .top-strip-spacer { display: none; }
    .top-strip-social { justify-content: center; width: 100%; }

    /* Mobile header: logo pinned left, hamburger pinned right (normal flex flow),
       LOGIN taken out of flow and centred with left:50%/translateX(-50%) so its
       centre is always the viewport's centre - independent of the logo's or
       hamburger's rendered width, and never fought over for flex space. */
    .site-header-inner {
        display: flex; justify-content: space-between; align-items: center;
        column-gap: 8px; padding: 12px 16px;
    }
    .site-header-inner .brand-lg { flex-shrink: 1; min-width: 0; }
    .brand-lg img { max-height: 38px; max-width: 36vw; }
    .site-nav { display: none; }
    .btn-login-mobile {
        display: inline-flex; position: absolute; left: 50%; top: 50%;
        transform: translate(-50%, -50%);
        padding: 8px 16px; font-size: 13px !important; white-space: nowrap;
    }
    .nav-toggle { display: inline-block; flex-shrink: 0; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    .brand-lg img { max-height: 32px; max-width: 32vw; }
    .btn-login-mobile { padding: 6px 11px; font-size: 11.5px !important; }
    .nav-toggle { padding: 6px 8px; font-size: 18px; }
    .site-header-inner { column-gap: 4px; padding: 10px 12px; }
}

@media (min-width: 681px) and (max-width: 900px) {
    .brand-lg img { max-height: 64px; }
}
