/* ============================================================
   PTS Kumba School Management System — Design System v5
   Color scheme: Navy + Purple accent (gold replaced by purple)
   Alziron Systems · 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Core palette */
  --pts-navy:        #1a2744;
  --pts-navy-dark:   #111b33;
  --pts-purple:      #5b21b6;   /* accent (was gold) */
  --pts-purple-light:#7c3aed;
  --pts-purple-pale: #f5f3ff;
  --pts-white:       #ffffff;
  --pts-off-white:   #f8f7f4;
  --pts-text:        #1f2937;   /* dark body text on light bg */
  --pts-text-muted:  #6b7280;
  --pts-border:      #e5e7eb;

  /* Keep --pts-gold pointing to purple for backward compatibility */
  --pts-gold:        #5b21b6;
  --pts-gold-light:  #7c3aed;
  --pts-gold-pale:   #f5f3ff;

  /* Status colours */
  --pts-success:     #16a34a;
  --pts-success-bg:  #f0fdf4;
  --pts-danger:      #dc2626;
  --pts-danger-bg:   #fef2f2;
  --pts-warning:     #d97706;
  --pts-warning-bg:  #fffbeb;
  --pts-info:        #2563eb;
  --pts-info-bg:     #eff6ff;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --sp-1:  4px;  --sp-2:  8px;  --sp-3:  12px; --sp-4:  16px;
  --sp-6:  24px; --sp-8:  32px; --sp-12: 48px;
  --sp-16: 64px; --sp-24: 96px;

  /* Borders */
  --radius-sm: 4px; --radius: 8px; --radius-lg: 12px;
  --radius-xl: 16px; --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.1);
  --shadow:    0 1px 3px rgba(0,0,0,.1),  0 4px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.1),0 10px 10px rgba(0,0,0,.04);
  --transition: .2s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--pts-text);          /* dark text on white by default */
  background: var(--pts-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* Links: navy on light backgrounds */
a { color: var(--pts-navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pts-purple); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--pts-navy);          /* headings always navy on light bg */
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: .875rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.125rem; color: var(--pts-text-muted); line-height: 1.7; }

/* ── On dark/navy backgrounds — override text to white ───── */
/* Applied when parent has navy/purple background */
.section--navy h1, .section--navy h2, .section--navy h3,
.section--navy h4, .section--navy p, .section--navy .lead {
  color: #ffffff;
}
.section--navy a { color: rgba(255,255,255,.85); }
.section--navy a:hover { color: var(--pts-purple-light); }

/* ── Section utilities ────────────────────────────────────── */
.section { padding: var(--sp-16) 0; }
.section--alt { background: var(--pts-off-white); }
.section--navy { background: var(--pts-navy); color: #ffffff; }
.section-header { text-align: center; margin-bottom: var(--sp-12); }
.section-header .eyebrow {
  font-family: var(--font-body);
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--pts-purple);        /* purple accent on light bg */
  margin-bottom: var(--sp-2);
}
.section-header h2 { margin-bottom: var(--sp-4); color: var(--pts-navy); }
.section-header p  { color: var(--pts-text-muted); max-width: 600px; margin: 0 auto; }
.gold-rule {
  width: 60px; height: 3px;
  background: var(--pts-purple);
  margin: var(--sp-4) auto 0;
  border-radius: var(--radius-full);
}
/* Eyebrow on dark backgrounds */
.section--navy .eyebrow,
[style*="background:var(--pts-navy)"] .eyebrow {
  color: var(--pts-purple-light);
}

/* ── Layout ───────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
@media (max-width: 640px) { .container { padding: 0 var(--sp-4); } }

/* ── Navigation ───────────────────────────────────────────── */
/* Navy navbar — all text white/light */
.navbar { background: var(--pts-navy); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.navbar__brand { display: flex; align-items: center; gap: var(--sp-3); color: #ffffff; text-decoration: none; }
.navbar__brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pts-purple-light); }
.navbar__brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.navbar__brand-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: #ffffff; }
.navbar__brand-tagline { font-size: .7rem; color: rgba(255,255,255,.7); letter-spacing: .04em; }
.navbar__links { display: flex; align-items: center; gap: var(--sp-2); list-style: none; }
.navbar__links a { color: rgba(255,255,255,.85); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; transition: color var(--transition), background var(--transition); }
.navbar__links a:hover, .navbar__links a.active { color: #ffffff; background: rgba(255,255,255,.12); }
.navbar__cta { display: flex; gap: var(--sp-2); }
.navbar__toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--sp-2); }
.navbar__toggle span { display: block; width: 24px; height: 2px; background: #ffffff; margin: 5px 0; transition: var(--transition); }
@media (max-width: 900px) {
  .navbar__links, .navbar__cta { display: none; }
  .navbar__toggle { display: block; }
  .navbar__mobile-menu { display: contents; }
  .navbar.open .navbar__mobile-menu {
    display: block;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--pts-navy-dark); z-index: 999;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .navbar.open .navbar__links, .navbar.open .navbar__cta {
    display: flex; flex-direction: column;
    position: static;
    padding: var(--sp-4); gap: var(--sp-2);
  }
  .navbar.open .navbar__cta { flex-direction: row; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 10px 22px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
/* Primary: purple background, WHITE text */
.btn-primary { background: var(--pts-purple); color: #ffffff; border-color: var(--pts-purple); }
.btn-primary:hover { background: var(--pts-purple-light); border-color: var(--pts-purple-light); color: #ffffff; transform: translateY(-1px); box-shadow: var(--shadow); }

/* Outline on dark bg: white border, white text */
.btn-outline { background: transparent; color: #ffffff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #ffffff; color: #ffffff; }

/* Outline on light bg: navy border, navy text */
.btn-outline-navy { background: transparent; color: var(--pts-navy); border-color: var(--pts-navy); }
.btn-outline-navy:hover { background: var(--pts-navy); color: #ffffff; }

/* Size variants */
.btn-sm  { padding: 6px 14px; font-size: .8125rem; }
.btn-lg  { padding: 13px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* Status buttons */
.btn-success { background: var(--pts-success); color: #ffffff; border-color: var(--pts-success); }
.btn-success:hover { background: #15803d; color: #ffffff; }
.btn-danger  { background: var(--pts-danger);  color: #ffffff; border-color: var(--pts-danger); }
.btn-danger:hover  { background: #b91c1c; color: #ffffff; }
.btn-warning { background: var(--pts-warning); color: #ffffff; border-color: var(--pts-warning); }
.btn-warning:hover { background: #b45309; color: #ffffff; }

/* ── Cards ────────────────────────────────────────────────── */
/* Cards: white background, dark text */
.card { background: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--sp-6); border: 1px solid var(--pts-border); }
.card-sm { padding: var(--sp-4); }
.card-header { border-bottom: 1px solid var(--pts-border); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); }
.card-header h3, .card-header h4 { margin: 0; color: var(--pts-navy); }

/* Stat cards: white bg, navy values */
.stat-card { background: #ffffff; border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow); border-left: 4px solid var(--pts-purple); display: flex; align-items: flex-start; gap: var(--sp-4); }
.stat-card__icon { width: 48px; height: 48px; background: var(--pts-purple-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.stat-card__value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--pts-navy); line-height: 1; }
.stat-card__label { font-size: .8125rem; color: var(--pts-text-muted); margin-top: 2px; }

/* ── Hero Section ─────────────────────────────────────────── */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--pts-navy); width: 100%; }
.hero__slides { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero__slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center center; background-repeat: no-repeat; opacity: 0; transition: opacity 1s ease; }
.hero__slide.active { opacity: 1; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26,39,68,.55) 0%, rgba(26,39,68,.80) 100%); }
/* Hero content — always white text (dark overlay underneath) */
.hero__content { position: relative; z-index: 2; color: #ffffff; max-width: 760px; }
.hero__badge { display: inline-flex; align-items: center; gap: var(--sp-2); background: rgba(123,58,237,.25); border: 1px solid rgba(124,58,237,.5); color: #e9d5ff; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-full); margin-bottom: var(--sp-6); }
.hero__title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; line-height: 1.1; color: #ffffff; margin-bottom: var(--sp-4); }
.hero__title em { font-style: italic; color: #c4b5fd; }
.hero__subtitle { font-size: 1.125rem; color: rgba(255,255,255,.82); margin-bottom: var(--sp-8); max-width: 560px; }
.hero__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* Key dates bar — navy bg, white/purple text */
.key-dates { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; background: rgba(26,39,68,.88); backdrop-filter: blur(8px); border-top: 1px solid rgba(124,58,237,.3); }
.key-dates__inner { display: flex; align-items: stretch; overflow-x: auto; }
.key-date-item { flex: 1; min-width: 160px; padding: var(--sp-4) var(--sp-6); border-right: 1px solid rgba(255,255,255,.1); text-align: center; }
.key-date-item:last-child { border-right: none; }
.key-date-item__label { font-size: .75rem; color: #c4b5fd; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.key-date-item__value { font-size: .9375rem; color: #ffffff; font-weight: 600; margin-top: 2px; }
.key-date-item__label a { color: #c4b5fd; }

/* Hero dots */
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); border: 2px solid rgba(255,255,255,.6); cursor: pointer; padding: 0; transition: all .3s ease; }
.hero-dot.active, .hero-dot:hover { background: var(--pts-purple-light); border-color: var(--pts-purple-light); transform: scale(1.2); }

/* ── Stats Band — navy bg, white/purple text ─────────────── */
.stats-band { background: var(--pts-navy); padding: var(--sp-12) 0; }
.stats-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: var(--sp-6); text-align: center; }
.stats-band__number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: #c4b5fd; line-height: 1; }
.stats-band__label { font-size: .8125rem; color: rgba(255,255,255,.7); margin-top: var(--sp-2); }

/* ── Programme Cards — white bg, navy/purple text ────────── */
.programme-card { background: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--pts-border); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.programme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.programme-card__tag { background: var(--pts-navy); color: #c4b5fd; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: var(--sp-2) var(--sp-4); }
.programme-card__tag--popular { background: var(--pts-purple); color: #ffffff; }
.programme-card__body { padding: var(--sp-6); flex: 1; }
.programme-card__acronym { font-family: var(--font-display); font-size: 2rem; color: var(--pts-purple); font-weight: 700; }
.programme-card__title { font-size: 1.1rem; color: var(--pts-navy); margin-bottom: var(--sp-2); }
.programme-card__duration { font-size: .8125rem; color: var(--pts-text-muted); margin-bottom: var(--sp-4); }
.programme-card__desc { font-size: .9rem; color: var(--pts-text); line-height: 1.6; }
.programme-card__footer { padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--pts-border); }

/* ── Timeline — white bg, navy text ─────────────────────── */
.timeline { position: relative; padding-left: var(--sp-8); }
.timeline::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: var(--pts-purple); opacity: .3; }
.timeline-item { position: relative; margin-bottom: var(--sp-8); }
.timeline-item__dot { position: absolute; left: calc(-1 * var(--sp-8) - 1px); top: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--pts-navy); border: 2px solid var(--pts-purple); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: #c4b5fd; font-family: var(--font-body); flex-shrink: 0; }
.timeline-item__year { font-size: .8rem; font-weight: 600; color: var(--pts-purple); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--sp-1); }
.timeline-item__title { font-size: 1rem; color: var(--pts-navy); margin-bottom: var(--sp-1); }
.timeline-item__desc { font-size: .9rem; color: var(--pts-text-muted); }

/* ── Leader Cards — white bg ─────────────────────────────── */
.leader-card { display: flex; gap: var(--sp-4); align-items: flex-start; background: #ffffff; border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow); border: 1px solid var(--pts-border); }
.leader-card__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--pts-purple); flex-shrink: 0; }
.leader-card__initials { width: 72px; height: 72px; border-radius: 50%; background: var(--pts-navy); color: #c4b5fd; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; flex-shrink: 0; }
.leader-card__name  { font-size: 1rem; color: var(--pts-navy); margin-bottom: 2px; }
.leader-card__title { font-size: .8125rem; color: var(--pts-purple); font-weight: 600; }
.leader-card__since { font-size: .75rem; color: var(--pts-text-muted); margin-bottom: var(--sp-3); }
.leader-card__bio   { font-size: .875rem; color: var(--pts-text); line-height: 1.6; }

/* ── Admissions Steps ─────────────────────────────────────── */
.admission-step { display: flex; gap: var(--sp-4); align-items: flex-start; margin-bottom: var(--sp-6); }
.admission-step__number { width: 40px; height: 40px; border-radius: 50%; background: var(--pts-purple); color: #ffffff; font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.admission-step__title { font-size: 1rem; color: var(--pts-navy); margin-bottom: 4px; }
.admission-step__desc  { font-size: .875rem; color: var(--pts-text-muted); }

/* ── Partner pills — white bg ────────────────────────────── */
.partner-pill { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-6); background: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--pts-border); text-align: center; }
.partner-pill__acronym { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--pts-purple); }
.partner-pill__name    { font-size: .875rem; font-weight: 600; color: var(--pts-navy); }
.partner-pill__role    { font-size: .75rem; color: var(--pts-text-muted); }

/* ── News Cards — white bg ───────────────────────────────── */
.news-card { background: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--pts-border); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--transition); }
.news-card:hover { box-shadow: var(--shadow-lg); }
.news-card__img  { width: 100%; height: 200px; object-fit: cover; }
.news-card__body { padding: var(--sp-6); flex: 1; }
.news-card__date    { font-size: .75rem; color: var(--pts-purple); font-weight: 600; margin-bottom: var(--sp-2); }
.news-card__title   { font-size: 1.05rem; color: var(--pts-navy); margin-bottom: var(--sp-3); }
.news-card__excerpt { font-size: .875rem; color: var(--pts-text-muted); }
.news-card__footer  { padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--pts-border); }

/* ── Contact ─────────────────────────────────────────────── */
.contact-card { background: #ffffff; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: var(--sp-8); }
.contact-info-item { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-6); }
.contact-info-item__icon { width: 42px; height: 42px; background: var(--pts-purple-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--pts-purple); font-size: 1.1rem; flex-shrink: 0; }
.contact-info-item__label { font-size: .75rem; color: var(--pts-purple); font-weight: 600; text-transform: uppercase; }
.contact-info-item__value { font-size: .9rem; color: var(--pts-text); }

/* ── Forms — white bg, navy labels ──────────────────────── */
.form-group  { margin-bottom: var(--sp-4); }
.form-label  { display: block; font-size: .875rem; font-weight: 600; color: var(--pts-navy); margin-bottom: var(--sp-2); }
.form-label .required { color: var(--pts-danger); margin-left: 2px; }
.form-control { width: 100%; padding: 10px 14px; border: 1.5px solid var(--pts-border); border-radius: var(--radius); font-family: var(--font-body); font-size: .9375rem; color: var(--pts-text); background: #ffffff; transition: border-color var(--transition), box-shadow var(--transition); }
.form-control:focus { outline: none; border-color: var(--pts-purple); box-shadow: 0 0 0 3px rgba(91,33,182,.15); }
.form-control.is-invalid { border-color: var(--pts-danger); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%236b7280' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; padding-right: 36px; }
.form-hint  { font-size: .8rem; color: var(--pts-text-muted); margin-top: var(--sp-1); }
.form-error { font-size: .8rem; color: var(--pts-danger); margin-top: var(--sp-1); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Wizard progress */
.wizard-progress { display: flex; align-items: center; gap: 0; margin-bottom: var(--sp-8); overflow-x: auto; }
.wizard-step { display: flex; align-items: center; flex: 1; min-width: 80px; }
.wizard-step__dot { width: 32px; height: 32px; border-radius: 50%; background: var(--pts-border); color: var(--pts-text-muted); font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); }
.wizard-step.done .wizard-step__dot   { background: var(--pts-success); color: #ffffff; }
.wizard-step.active .wizard-step__dot { background: var(--pts-purple); color: #ffffff; }
.wizard-step__label { font-size: .7rem; color: var(--pts-text-muted); margin-left: var(--sp-2); white-space: nowrap; }
.wizard-step.active .wizard-step__label { color: var(--pts-navy); font-weight: 600; }
.wizard-step__line { flex: 1; height: 2px; background: var(--pts-border); margin: 0 var(--sp-2); }
.wizard-step.done .wizard-step__line { background: var(--pts-success); }

/* ── Badges/Status pills ─────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-full); font-size: .75rem; font-weight: 600; }
.badge-success { background: var(--pts-success-bg); color: var(--pts-success); }
.badge-danger  { background: var(--pts-danger-bg);  color: var(--pts-danger);  }
.badge-warning { background: var(--pts-warning-bg); color: var(--pts-warning); }
.badge-info    { background: var(--pts-info-bg);    color: var(--pts-info);    }
.badge-neutral { background: var(--pts-off-white);  color: var(--pts-text-muted); border: 1px solid var(--pts-border); }
/* Navy badge: navy bg, WHITE text */
.badge-navy    { background: var(--pts-navy); color: #ffffff; }
/* Purple badge: purple bg, WHITE text */
.badge-purple  { background: var(--pts-purple); color: #ffffff; }

/* ── Tables — white bg, navy headers ─────────────────────── */
.table-container { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #ffffff; }
thead th { background: var(--pts-navy); color: rgba(255,255,255,.9); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: var(--sp-3) var(--sp-4); text-align: left; white-space: nowrap; }
tbody td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--pts-border); font-size: .9rem; color: var(--pts-text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--pts-off-white); }

/* ── Alerts ──────────────────────────────────────────────── */
.alert { padding: var(--sp-4); border-radius: var(--radius); margin-bottom: var(--sp-4); display: flex; align-items: flex-start; gap: var(--sp-3); font-size: .9rem; }
.alert-success { background: var(--pts-success-bg); color: #166534; border-left: 4px solid var(--pts-success); }
.alert-danger  { background: var(--pts-danger-bg);  color: #991b1b; border-left: 4px solid var(--pts-danger); }
.alert-warning { background: var(--pts-warning-bg); color: #92400e; border-left: 4px solid var(--pts-warning); }
.alert-info    { background: var(--pts-info-bg);    color: #1e40af; border-left: 4px solid var(--pts-info); }

/* ── Dashboard Shell ──────────────────────────────────────── */
.dashboard-layout { display: flex; min-height: 100vh; background: #f3f4f6; }

/* Sidebar: navy bg, WHITE text */
.sidebar { width: 260px; background: var(--pts-navy); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; overflow-y: auto; transition: transform var(--transition); }
.sidebar__logo { padding: var(--sp-6); border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: var(--sp-3); }
.sidebar__logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pts-purple-light); }
.sidebar__logo-name { font-family: var(--font-display); font-size: .95rem; color: #ffffff; font-weight: 700; }
.sidebar__logo-sub  { font-size: .7rem; color: #c4b5fd; letter-spacing: .04em; }
.sidebar__nav { flex: 1; padding: var(--sp-4) 0; }
.sidebar__section-label { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); padding: var(--sp-4) var(--sp-6) var(--sp-2); }
.sidebar__link { display: flex; align-items: center; gap: var(--sp-3); padding: 10px var(--sp-6); color: rgba(255,255,255,.75); font-size: .875rem; font-weight: 500; transition: all var(--transition); position: relative; text-decoration: none; }
.sidebar__link:hover, .sidebar__link.active { color: #ffffff; background: rgba(255,255,255,.08); }
.sidebar__link.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pts-purple-light); border-radius: 0 2px 2px 0; }
.sidebar__link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar__badge { margin-left: auto; background: var(--pts-purple); color: #ffffff; font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-full); }
.sidebar__footer { padding: var(--sp-4) var(--sp-6); border-top: 1px solid rgba(255,255,255,.08); }
.sidebar__user { display: flex; align-items: center; gap: var(--sp-3); }
.sidebar__user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pts-purple); color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.sidebar__user-name { font-size: .85rem; color: #ffffff; font-weight: 600; }
.sidebar__user-role { font-size: .7rem;  color: rgba(255,255,255,.5); }

/* Main content: light gray bg, dark text */
.dashboard-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Topbar: white bg, navy text */
.topbar { background: #ffffff; border-bottom: 1px solid var(--pts-border); padding: 0 var(--sp-6); height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.topbar__breadcrumb { font-size: .875rem; color: var(--pts-text-muted); }
.topbar__breadcrumb span { color: var(--pts-navy); font-weight: 600; }
.topbar__actions { display: flex; align-items: center; gap: var(--sp-4); }
.topbar__menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--pts-navy); padding: var(--sp-2); }

/* Page content area: light bg, dark text */
.page-content { padding: var(--sp-8); flex: 1; }
.page-header  { margin-bottom: var(--sp-8); }
.page-header h1 { font-size: 1.75rem; color: var(--pts-navy); }
.page-header p  { color: var(--pts-text-muted); margin-top: var(--sp-2); }

/* Dashboard grids */
.stats-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-6); margin-bottom: var(--sp-8); }
.charts-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: var(--sp-6); margin-bottom: var(--sp-8); }
.chart-card   { background: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--sp-6); }
.chart-card h4 { margin-bottom: var(--sp-4); color: var(--pts-navy); }

/* Mobile sidebar */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 190; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .dashboard-main { margin-left: 0; }
  .topbar__menu-btn { display: block; }
  .page-content { padding: var(--sp-4); }
  .charts-grid { grid-template-columns: 1fr; }
}

/* ── Footer — navy bg, WHITE text ────────────────────────── */
.footer { background: var(--pts-navy-dark); color: rgba(255,255,255,.75); padding: var(--sp-16) 0 var(--sp-8); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-8); margin-bottom: var(--sp-8); padding-bottom: var(--sp-8); border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer__logo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pts-purple-light); }
.footer__logo-name { font-family: var(--font-display); font-size: 1.1rem; color: #ffffff; font-weight: 700; }
.footer__logo-est  { font-size: .75rem; color: #c4b5fd; }
.footer__tagline { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.7); margin-bottom: var(--sp-4); }
.footer h5 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffffff; margin-bottom: var(--sp-4); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: var(--sp-2); }
.footer ul li a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer ul li a:hover { color: #c4b5fd; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-4); font-size: .8rem; color: rgba(255,255,255,.4); }
.footer__bottom a { color: rgba(255,255,255,.55); }
.footer__bottom a:hover { color: #c4b5fd; }

/* ── Login pages ─────────────────────────────────────────── */
.login-page { min-height: 100vh; background: var(--pts-navy); display: flex; align-items: center; justify-content: center; padding: var(--sp-6); position: relative; overflow: hidden; }
/* Login card: white bg, dark text */
.login-card { position: relative; z-index: 1; background: #ffffff; border-radius: var(--radius-xl); padding: var(--sp-8); width: 100%; max-width: 440px; box-shadow: var(--shadow-xl); }
.login-card h2, .login-card h3 { color: var(--pts-navy); }
.login-card p  { color: var(--pts-text-muted); }
.login-card__logo { text-align: center; margin-bottom: var(--sp-8); }
.login-card__logo img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto var(--sp-3); object-fit: cover; border: 3px solid var(--pts-purple); }
.login-card__title { font-size: 1.1rem; color: var(--pts-navy); text-align: center; }
.login-card__sub   { font-size: .8rem; color: var(--pts-text-muted); text-align: center; }

/* ── Printable ────────────────────────────────────────────── */
@media print {
  .no-print { display: none !important; }
  body { background: white; color: #1f2937; }
}

/* ── Utility classes ──────────────────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--pts-text-muted); }
.text-purple  { color: var(--pts-purple); }
.text-gold    { color: var(--pts-purple); }   /* alias */
.text-navy    { color: var(--pts-navy); }
.text-sm      { font-size: .875rem; }
.text-xs      { font-size: .75rem; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.d-flex           { display: flex; }
.align-center     { align-items: center; }
.justify-between  { justify-content: space-between; }
.flex-wrap        { flex-wrap: wrap; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Navbar Academics Dropdown ───────────────────────────────────────────── */
.navbar__dropdown { position: relative; }
.navbar__dropdown-toggle { cursor: pointer; }
.navbar__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-6);
  min-width: 460px;
  display: none;
  gap: var(--sp-8);
  z-index: 1100;
  margin-top: 8px;
}
.navbar__dropdown:hover .navbar__dropdown-menu,
.navbar__dropdown.open .navbar__dropdown-menu {
  display: flex;
}
.navbar__dropdown-col { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 4px; }
.navbar__dropdown-heading {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--pts-purple); margin-bottom: var(--sp-2);
}
.navbar__dropdown-menu a {
  color: var(--pts-navy); font-size: .85rem; padding: 4px 0; text-decoration: none;
}
.navbar__dropdown-menu a:hover { color: var(--pts-purple); }
.navbar__dropdown-menu a,
.navbar__dropdown-menu a:hover,
.navbar__dropdown-menu a:focus,
.navbar__dropdown-menu a:active {
  color: var(--pts-navy) !important;
  background: transparent !important;
}
.navbar__dropdown-menu a:hover,
.navbar__dropdown-menu a:focus,
.navbar__dropdown-menu a:active {
  color: var(--pts-purple) !important;
}
@media (max-width: 900px) {
  .navbar__dropdown-menu {
    position: static; transform: none; box-shadow: none; flex-direction: column; min-width: 0;
    max-height: 260px; overflow-y: auto;
  }
}


/* ── Academics pages (Programmes / Departments) — responsive layout ────── */
.academics-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-10);
  align-items: start;
}
@media (max-width: 900px) {
  .academics-layout { grid-template-columns: 1fr; gap: var(--sp-6); }
  .academics-layout > div:first-child { position: static !important; order: 2; }
  .academics-layout > div:last-child  { order: 1; }
}
@media (max-width: 640px) {
  .table-container table { font-size: .8rem; }
  .table-container th, .table-container td { padding: 8px !important; white-space: nowrap; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .hero__title { font-size: 1.8rem !important; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; text-align: center; }
}

/* ── Navbar dropdown mobile active/hover color fix ──────────────────────── */
.navbar__dropdown-menu a,
.navbar__dropdown-menu a:hover,
.navbar__dropdown-menu a:focus,
.navbar__dropdown-menu a:active {
  color: var(--pts-navy) !important;
  background: transparent !important;
}
.navbar__dropdown-menu a:hover,
.navbar__dropdown-menu a:focus,
.navbar__dropdown-menu a:active {
  color: var(--pts-purple) !important;
}
@media (max-width: 900px) {
  .navbar__dropdown-menu {
    position: static; transform: none; box-shadow: none; flex-direction: column; min-width: 0;
    max-height: 260px; overflow-y: auto;
  }
}
