:root {
  --ink: #171127;
  --muted: #645e6c;
  --line: #e5ddce;
  --canvas: #f8f5ef;
  --surface: #ffffff;
  --brand-900: #14084e;
  --brand-800: #21106c;
  --brand-700: #30207f;
  --brand: #392687;
  --brand-light: #eeeafd;
  --gold: #f6e4b1;
  --brown: #77400f;
  --shadow: 0 22px 60px rgba(20, 8, 78, .13);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--brand-700); text-underline-offset: 3px; }
a:hover { color: var(--brand-900); }

.btn { border-radius: .7rem; font-weight: 700; padding: .65rem 1rem; }
.btn-brand { --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-800); --bs-btn-hover-border-color: var(--brand-800); --bs-btn-active-bg: var(--brand-900); --bs-btn-active-border-color: var(--brand-900); box-shadow: 0 8px 20px rgba(10, 128, 102, .18); }
.btn-brand i, .btn-light i { margin-right: .3rem; }
.btn-brand .bi-arrow-right, .btn-light .bi-arrow-right { margin-right: 0; margin-left: .35rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--brand-700); font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Public home */
.site-body { background: var(--canvas); }
.site-header { position: relative; z-index: 1; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(220,230,225,.8); }
.site-nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.login-logo { display: inline-flex; gap: .7rem; align-items: center; color: var(--ink); text-decoration: none; }
.login-logo > span:last-child { display: grid; line-height: 1.05; }
.login-logo strong { font-size: 1rem; letter-spacing: .02em; }
.login-logo small { margin-top: .24rem; color: var(--muted); font-size: .69rem; font-weight: 650; letter-spacing: .05em; }
.brand-badge { display: grid; place-items: center; min-width: 35px; height: 35px; padding: 0 .32rem; border-radius: .65rem; background: linear-gradient(145deg, var(--brand), var(--brand-900)); color: #fff; font-size: .69rem; font-weight: 900; letter-spacing: -.04em; box-shadow: 0 7px 16px rgba(7, 91, 73, .22); }
.brand-badge-lg { width: 44px; height: 44px; border-radius: .8rem; font-size: .77rem; }
.brand-crest { width: 42px; height: 42px; object-fit: contain; border-radius: .55rem; background: #fff; padding: 2px; }
.brand-crest-lg { width: 58px; height: 58px; }
.portal-hero { overflow: hidden; padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(4.5rem, 8vw, 7rem); background: radial-gradient(circle at 90% 12%, rgba(61, 182, 142, .14), transparent 27rem), radial-gradient(circle at 18% 90%, rgba(247,201,72,.14), transparent 25rem), var(--canvas); }
.portal-hero h1 { max-width: 720px; margin: 1rem 0 1.3rem; color: var(--brand-900); font-size: clamp(2.5rem, 5vw, 4.7rem); font-weight: 800; letter-spacing: -.06em; line-height: .99; }
.portal-hero h1 span { color: var(--brand); }
.hero-copy { max-width: 620px; margin-bottom: 1.8rem; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.15rem; }
.hero-actions .btn { padding: .85rem 1.15rem; }
.text-link { font-size: .95rem; font-weight: 750; text-decoration: none; }
.text-link i { margin-right: .3rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; color: var(--muted); font-size: .84rem; font-weight: 650; }
.trust-row i { color: var(--brand); margin-right: .28rem; }
.hero-panel { max-width: 440px; margin: 0 auto; padding: 1.1rem; border: 1px solid rgba(255,255,255,.9); border-radius: 1.55rem; background: rgba(255,255,255,.78); box-shadow: var(--shadow); transform: rotate(1.7deg); backdrop-filter: blur(10px); }
.hero-panel-photo { position: relative; overflow: hidden; background: linear-gradient(rgba(20,8,78,.82),rgba(20,8,78,.82)), url('../images/geography club.jpg') center/cover; }
.hero-panel-photo .mini-grid > div { background: rgba(255,255,255,.94); }
.hero-panel-top, .hero-panel-footer { display: flex; align-items: center; gap: .48rem; padding: .25rem .2rem 1.05rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #43bd80; box-shadow: 0 0 0 4px #def7e8; }
.progress-card { display: flex; align-items: center; gap: .78rem; padding: 1rem; border-radius: 1rem; background: var(--brand-900); color: #fff; box-shadow: 0 9px 18px rgba(7,61,50,.18); }
.progress-card strong, .mini-grid strong { display: block; font-size: .9rem; }
.progress-card small, .mini-grid small { display: block; margin-top: .15rem; font-size: .7rem; opacity: .75; }
.progress-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: .7rem; background: rgba(255,255,255,.14); font-size: 1.1rem; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .8rem 0; }
.mini-grid > div { min-height: 112px; padding: 1rem; border: 1px solid #e5edea; border-radius: 1rem; background: #fff; }
.mini-grid i { display: block; margin-bottom: .75rem; color: var(--brand); font-size: 1.3rem; }
.mini-grid small { color: var(--muted); opacity: 1; }
.hero-panel-footer { padding: .25rem .2rem 0; }
.avatar-stack { display: flex; padding-left: .5rem; }
.avatar-stack b { display: grid; place-items: center; width: 24px; height: 24px; margin-left: -.5rem; border: 2px solid #fff; border-radius: 50%; background: #e5b643; color: #fff; font-size: .6rem; }
.avatar-stack b:nth-child(2) { background: #1594b8; }
.avatar-stack b:nth-child(3) { background: var(--brand); }
.feature-section { padding: clamp(4rem, 8vw, 6rem) 0; background: #fff; }
.section-heading { max-width: 660px; margin-bottom: 2.2rem; }
.section-heading h2, .access-section h2 { margin-top: .6rem; font-size: clamp(2rem, 3.7vw, 3.1rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; }
.feature-card { height: 100%; padding: 1.6rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { box-shadow: 0 16px 34px rgba(14,61,48,.09); transform: translateY(-3px); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1.1rem; border-radius: .8rem; background: var(--brand-light); color: var(--brand-700); font-size: 1.25rem; }
.feature-card h3 { font-size: 1.04rem; font-weight: 800; }
.feature-card p { margin-bottom: 0; color: var(--muted); font-size: .91rem; line-height: 1.6; }
.access-section { background: linear-gradient(120deg, var(--brand-900), var(--brand-700)); color: #fff; }
.access-section .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 3.8rem; padding-bottom: 3.8rem; }
.access-section h2 { margin-bottom: .55rem; }
.access-section p { margin: 0; color: rgba(255,255,255,.72); }
.eyebrow-light { color: #b9eddb; }
.site-footer { background: #fff; color: var(--muted); font-size: .82rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.35rem; padding-bottom: 1.35rem; }
.site-footer a { color: inherit; }
.footer-divider { margin: 0 .45rem; color: #a9b7b1; }

/* Sign in */
.login-body { overflow-x: hidden; background: var(--canvas); }
.login-wrap { display: grid; grid-template-columns: minmax(390px, 1fr) minmax(440px, .85fr); min-height: 100vh; }
.login-side { display: flex; position: relative; flex-direction: column; min-height: 100vh; padding: clamp(2rem, 6vw, 5rem); color: #fff; background: linear-gradient(135deg, rgba(20,8,78,.96), rgba(48,32,127,.84)), url('../images/ict lab.jpg') center/cover; }
.login-side .login-logo { color: #fff; }
.login-side .login-logo small { color: rgba(255,255,255,.64); }
.login-side .brand-badge { background: #fff; color: var(--brand-800); box-shadow: none; }
.login-title { max-width: 550px; margin: auto 0 1.1rem; font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -.065em; line-height: .96; }
.login-photo { display: none; }
.login-tag { max-width: 470px; margin-bottom: 2rem; color: rgba(255,255,255,.74); font-size: 1.04rem; line-height: 1.65; }
.login-features { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: .82rem; max-width: 560px; }
.login-features div { display: flex; align-items: center; gap: .62rem; color: rgba(255,255,255,.9); font-size: .86rem; font-weight: 650; }
.login-features i { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: .55rem; background: rgba(255,255,255,.12); color: #b9eddb; font-size: .88rem; }
.login-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.35rem; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.62); font-size: .75rem; }
.login-foot a { color: #d5f8eb; }
.login-card-col { display: grid; align-content: center; padding: 2rem clamp(1.5rem, 6vw, 5.5rem); background: #fff; }
.login-card { width: 100%; max-width: 420px; margin: 0 auto; }
.login-card-head { margin-bottom: 2rem; }
.login-card-head h2 { margin-bottom: .35rem; font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.login-card-head p { margin: 0; color: var(--muted); }
.login-card .form-label { color: #34463f; font-size: .82rem; font-weight: 750; }
.login-card .input-group { border-radius: .7rem; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s ease; }
.login-card .input-group:focus-within { box-shadow: 0 0 0 3px rgba(10,128,102,.17); }
.login-card .form-control, .login-card .input-group-text, .password-toggle { min-height: 48px; border: 0; background: #fff; }
.login-card .form-control { color: var(--ink); font-size: .94rem; }
.login-card .form-control:focus { box-shadow: none; }
.login-card .input-group-text { color: #789087; }
.password-toggle { color: #638177; }
.password-toggle:hover, .password-toggle:focus { color: var(--brand-800); background: #f8fbf9; }
.login-card .btn-brand { min-height: 49px; }
.login-card .alert { display: flex; align-items: flex-start; gap: .55rem; border: 0; border-radius: .7rem; font-size: .84rem; }
.login-card .alert i { padding-top: .1rem; }
.login-help { margin-top: 1.6rem; text-align: center; }
.login-help p { margin-bottom: .55rem; color: var(--muted); font-size: .84rem; }
.login-help a { font-weight: 750; }
.login-note { max-width: 340px; margin: 1rem auto 0 !important; font-size: .72rem !important; line-height: 1.55; }
.login-copyright { max-width: 420px; margin: 3rem auto 0; color: #94a49e; font-size: .74rem; }
.caps-warning { margin: .5rem 0 0; color: #966b03; font-size: .76rem; font-weight: 650; }
.was-validated .form-control:invalid { border-color: #dc3545; }
.was-validated .input-group:has(.form-control:invalid) { box-shadow: 0 0 0 1px #dc3545; }

/* Help page */
.help-body { display: grid; min-height: 100vh; background: radial-gradient(circle at 90% 5%, #dff4ea, transparent 25rem), var(--canvas); }
.help-wrap { width: min(100% - 2rem, 510px); margin: auto; padding: 2rem 0; }
.back-link { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.25rem; color: var(--muted); font-size: .86rem; font-weight: 700; text-decoration: none; }
.help-card { padding: clamp(1.7rem, 5vw, 2.5rem); border: 1px solid rgba(220,230,225,.85); border-radius: 1.25rem; background: #fff; box-shadow: var(--shadow); }
.help-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.3rem; border-radius: .9rem; background: var(--brand-light); color: var(--brand-700); font-size: 1.35rem; }
.help-card h1 { margin: .6rem 0 .85rem; font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.help-card > p { color: var(--muted); line-height: 1.65; }
.help-options { display: grid; gap: .7rem; margin: 1.5rem 0; }
.help-options a { display: flex; align-items: center; gap: .8rem; padding: .9rem; border: 1px solid var(--line); border-radius: .8rem; color: var(--ink); text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.help-options a:hover { border-color: var(--brand); background: #f8fcfa; }
.help-options > a > i:first-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: .6rem; background: var(--brand-light); color: var(--brand-700); }
.help-options strong, .help-options small { display: block; }
.help-options strong { font-size: .86rem; }
.help-options small { margin-top: .1rem; color: var(--muted); font-size: .76rem; }
.help-note { margin: 0 !important; font-size: .77rem; }
.help-note i { color: var(--brand); margin-right: .25rem; }

/* Dashboard shell used by the supplied shared templates */
.app-body { background: var(--canvas); }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { display: flex; position: sticky; top: 0; flex: 0 0 252px; flex-direction: column; height: 100vh; padding: 1.3rem .85rem; background: var(--brand-900); color: #fff; }
.sidebar-brand > span { display: grid; line-height: 1.05; }.sidebar-brand small { margin-top: .22rem; color: rgba(255,255,255,.62); font-size: .63rem; font-weight: 650; }
.sidebar-brand { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem 1.45rem; }
.sidebar-user { display: flex; align-items: center; gap: .65rem; margin: 0 .3rem 1.3rem; padding: .75rem; border-radius: .85rem; background: rgba(255,255,255,.09); }
.sidebar-user strong, .sidebar-user small { display: block; max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: .77rem; }.sidebar-user small { margin-top: .15rem; color: rgba(255,255,255,.62); font-size: .68rem; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--brand-900); font-size: .73rem; font-weight: 900; }
.sidebar-nav .nav-item a, .sidebar-foot .nav-link { display: flex; align-items: center; gap: .75rem; margin: .12rem 0; padding: .65rem .75rem; border-radius: .6rem; color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 650; text-decoration: none; }
.sidebar-nav .nav-item a:hover, .sidebar-nav .nav-item a.active { background: rgba(255,255,255,.13); color: #fff; }.sidebar-nav i { width: 1rem; text-align: center; }
.sidebar-foot { margin-top: auto; }.sidebar-foot .nav-link:hover { color: #fff; }
.main-panel { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.topbar { display: flex; align-items: center; min-height: 78px; padding: 1rem clamp(1.2rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); background: #fff; }
.topbar-title h1 { margin: 0; font-size: 1.2rem; font-weight: 800; }.topbar-title small { color: var(--muted); font-size: .72rem; }.topbar-actions { margin-left: auto; }.sidebar-toggle { display: none; margin-right: .75rem; }
.main-content { flex: 1; padding: clamp(1.2rem, 4vw, 2.5rem); }.app-footer { display: flex; justify-content: space-between; gap: .5rem; padding: 1rem clamp(1.2rem, 4vw, 2.5rem); color: var(--muted); font-size: .75rem; }

@media (max-width: 991.98px) {
  .login-wrap { grid-template-columns: 1fr; }.login-side { min-height: auto; padding: 2rem; }.login-title { margin-top: 3.7rem; }.login-foot { display: none; }.login-card-col { min-height: 570px; }.hero-panel { transform: none; }
  .sidebar { position: fixed; z-index: 1030; width: 252px; transform: translateX(-100%); transition: transform .2s ease; }.sidebar.is-open { transform: translateX(0); }.sidebar-toggle { display: inline-flex; }.main-panel { width: 100%; }.sidebar.is-open::after { content: ""; position: fixed; inset: 0 0 0 252px; background: rgba(0,0,0,.25); }
}
@media (max-width: 575.98px) {
  .site-nav { min-height: 68px; }.site-nav .login-logo small { display: none; }.portal-hero { padding-top: 3.7rem; }.hero-actions .btn { width: 100%; }.trust-row { display: grid; gap: .55rem; }.access-section .container, .site-footer .container { align-items: flex-start; flex-direction: column; }.access-section .btn { width: 100%; }.login-side { padding: 1.5rem; }.login-title { margin-top: 3rem; font-size: 2.7rem; }.login-features { grid-template-columns: 1fr; }.login-card-col { padding: 2.2rem 1.5rem; }.login-card-head h2 { font-size: 1.75rem; }.login-copyright { margin-top: 2rem; }.app-footer { flex-direction: column; }
}

/* LMS workspace */
.page-lead { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.65rem; }
.page-lead h2 { margin: 0 0 .3rem; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 850; letter-spacing: -.04em; }.page-lead p { margin: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.metric-card, .content-card { border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 8px 24px rgba(20,8,78,.04); }
.metric-card { min-height: 126px; padding: 1.1rem; }.metric-card .metric-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: .75rem; border-radius: .65rem; background: var(--brand-light); color: var(--brand-700); }.metric-card b { display: block; font-size: 1.55rem; line-height: 1; }.metric-card small { color: var(--muted); font-weight: 700; }
.content-card { margin-bottom: 1.25rem; overflow: hidden; }.content-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }.content-card-head h3 { margin: 0; font-size: 1rem; font-weight: 800; }.content-card-body { padding: 1.15rem; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .65rem; }.quick-actions .btn { font-size: .84rem; }
.table { margin: 0; font-size: .86rem; }.table > :not(caption) > * > * { padding: .75rem .85rem; vertical-align: middle; }.table thead th { border-bottom-width: 1px; color: var(--muted); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.form-label { font-size: .78rem; font-weight: 750; color: #3d3547; }.form-control, .form-select { border-color: var(--line); border-radius: .65rem; min-height: 42px; }.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(57,38,135,.13); }
.empty-state { padding: 2rem; color: var(--muted); text-align: center; }.empty-state i { display: block; margin-bottom: .7rem; color: var(--brand); font-size: 2rem; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); background: #fcfbf8; }.filter-bar > div { min-width: 150px; }.filter-bar .form-label { margin-bottom: .25rem; }
.severity-critical { color: #fff; background: #181818; }.report-paper { width: min(100% - 2rem, 900px); margin: 2rem auto; padding: clamp(1.25rem,4vw,3rem); border: 1px solid var(--line); background: #fff; }.report-brand { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 3px solid var(--brand); }.report-brand img { width: 70px; height: 70px; object-fit: contain; }.report-brand h1 { margin: 0; font-size: 1.4rem; font-weight: 850; }.report-brand p { margin: .2rem 0 0; color: var(--muted); }.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1.25rem 0; }.report-summary div { padding: .75rem; border-radius: .65rem; background: var(--brand-light); }.report-summary span, .report-summary b { display: block; }.report-summary span { color: var(--muted); font-size: .72rem; }.report-summary b { margin-top: .2rem; }
@media (max-width: 991.98px) { .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575.98px) { .metric-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }.metric-card { min-height: 110px; padding: .85rem; }.page-lead { display: block; }.page-lead .btn { margin-top: .8rem; }.report-summary { grid-template-columns: repeat(2, 1fr); } }
@media print { body { background: #fff; }.print-hidden { display: none !important; }.report-paper { width: 100%; margin: 0; border: 0; padding: 0; }.report-paper .table { font-size: 10pt; } }
