/* =========================================================
   SOP Theme — Coursera-inspired design system
   ========================================================= */

/* ── Global utility ──────────────────────────────────────── */
.hidden { display: none !important; }

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

/* CSS Custom Properties */
:root {
  --primary:        #1C2B54;
  --primary-dark:   #141F3D;
  --primary-light:  #E6F7F9;
  --navy:           #1C2B54;
  --dark-navy:      #1C2B54;
  --accent:         #30C8D6;
  --accent-text:    #30C8D6;
  --accent-dark:    #239BA6;
  --bg:             #F5F7FA;
  --card-bg:        #FFFFFF;
  --text:           #1C1D1F;
  --text-muted:     #6B7280;
  --border:         #E5E7EB;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow:         0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg:      0 8px 24px rgba(0,0,0,0.12);
  --radius:         8px;
  --radius-lg:      16px;
  --radius-pill:    24px;
  --transition:     0.2s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Site Header / Navbar ── */
.site-header {
  background: var(--navy);
  padding: 0 2rem;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  width: 100%;
}
.nav-brand a {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.3px;
  text-decoration: none;
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: #fff; text-decoration: none; }

/* Legacy navbar support */
.sop-navbar {
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.sop-navbar .brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.sop-navbar .brand img { height: 36px; }
.sop-navbar nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.sop-navbar nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
  text-decoration: none;
}
.sop-navbar nav a:hover { color: #fff; }
.sop-navbar .btn-nav {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.sop-navbar .btn-nav:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }

/* ── Audience Tab Nav ── */
.audience-nav {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0 2rem;
}
.audience-tabs {
  display: flex;
  gap: 0;
}
.audience-nav a,
.audience-tab {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 18px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  display: inline-block;
}
.audience-nav a:hover, .audience-nav a.active,
.audience-tab:hover, .audience-tab.active {
  color: #fff;
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2d2d6b 100%);
  color: #fff;
  padding: 72px 2rem 80px;
  text-align: center;
}
.hero-sm {
  padding: 48px 2rem 56px;
}
.hero h1, .hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 1rem;
}
.hero p, .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.80);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.btn-accent { background: var(--accent); color: #04252b; }
.btn-accent:hover { background: var(--accent-dark); color: #04252b; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover { background: var(--primary-light); text-decoration: none; }
.btn-sm { font-size: 0.8125rem; padding: 8px 18px; }
.btn-lg { font-size: 1.0625rem; padding: 14px 36px; }

/* ── Section ── */
.section { padding: 64px 2rem; }
.section-sm { padding: 40px 2rem; }
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  font-size: 1rem;
}
.container { max-width: 1200px; margin: 0 auto; }
.bg-light { background: #fff; }

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
  line-height: 1.4;
}
.card-meta { font-size: 0.8125rem; color: var(--text-muted); }

/* ── Courses Grid ── */
.courses-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ── Grid ── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.stats-grid { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }

/* ── Stats ── */
.stats-bar {
  background: var(--primary);
  /* --primary is a light cyan (#30C8D6), so white text here is only 2.03:1.
     Dark ink on the cyan band reads cleanly instead. */
  color: #04252b;
  padding: 32px 2rem;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num, .stat-number { font-size: 2rem; font-weight: 800; line-height: 1; display: block; }
/* No opacity: fading this over cyan drops it back below AA. */
.stat-label { font-size: 0.875rem; margin-top: 4px; display: block; }

/* ── Forms ── */
.form-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1.75rem;
  color: var(--text);
}
.form-group { margin-bottom: 1.25rem; }
label, .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Alerts ── */
.alert {
  padding: 12px 2.2rem 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
  position: relative;
}
.alert.show { display: block; }
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #6EE7B7; display: block; }
.alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; display: block; }
.alert-info    { background: var(--primary-light); color: var(--primary); border: 1px solid #BFDBFE; display: block; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FCD34D; display: block; }
.alert-danger  { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; display: block; }
.alert-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  padding: 0;
  color: inherit;
}
.alert-close:hover { opacity: 1; }

/* ── Dashboard layout (legacy) ── */
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}
.main-content { padding: 2rem; background: var(--bg); }
.page-header { margin-bottom: 1.75rem; }
.page-header h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; }
.page-header p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }

/* ── Table ── */
.sop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.sop-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
}
.sop-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.sop-table tr:hover td { background: var(--primary-light); }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: #ECFDF5; color: #065F46; }
.badge-warning { background: #FFFBEB; color: #92400E; }
.badge-info    { background: var(--primary-light); color: var(--primary); }
.badge-gray    { background: var(--border); color: #c4cedc; }

/* ── Site Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 48px 2rem 24px;
}
.sop-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 48px 2rem 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}
.footer-grid strong { color: #fff; display: block; margin-bottom: 0.75rem; }
.footer-grid ul li { margin-bottom: 0.4rem; }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 0.875rem; transition: color 0.15s; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 0.875rem; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 {
  color: #fff; font-size: 0.875rem; font-weight: 700;
  margin: 0 0 1rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-col a { display: block; color: rgba(255,255,255,0.65); font-size: 0.875rem; margin-bottom: 0.5rem; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  text-align: left;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p { margin: 0; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a { color: rgba(255,255,255,0.65); font-size: 1.2rem; transition: color 0.15s; }
.social-links a:hover { color: #fff; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr) 1.4fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-branding .footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.footer-links strong,
.footer-newsletter strong {
  color: #fff;
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  transition: color 0.15s;
}

.footer-links a:hover,
.footer-link-inline:hover {
  color: #fff;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.85rem;
}

.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }

.footer-link-inline {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.footer-alert {
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.footer-a11y {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.a11y-btn {
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
}

.a11y-btn[aria-pressed=\"true\"] {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.a11y-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.footer-a11y-link {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.footer-a11y-link:hover { color: #fff; }

.a11y-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #04252b;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 1000;
}

.a11y-fab:hover { background: var(--accent-dark); }

.a11y-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 320px;
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  padding: 1rem 1.2rem;
  display: none;
  z-index: 1001;
}

.a11y-panel.is-open { display: block; }

.a11y-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.a11y-panel-header strong { font-size: 1rem; }
.a11y-panel-header p { margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--text-muted); }

.a11y-close {
  border: none;
  background: #f1f5f9;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

.a11y-panel-body { display: grid; gap: 0.85rem; }

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.a11y-label { font-weight: 600; }
.a11y-value { font-size: 0.75rem; color: var(--text-muted); display: block; }

.a11y-chip-group {
  display: inline-flex;
  gap: 0.4rem;
  background: #f8fafc;
  border-radius: 999px;
  padding: 0.2rem;
}

.a11y-chip {
  border: none;
  background: transparent;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
}

.a11y-chip[aria-pressed="true"] {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.a11y-toggle {
  border: 1px solid var(--border);
  background: #f8fafc;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
}

.a11y-toggle[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.a11y-reset {
  border: none;
  background: #f1f5f9;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  width: 100%;
}

body.a11y-contrast .a11y-panel {
  background: #0f172a;
  color: #f8fafc;
}
body.a11y-contrast .a11y-panel-header p,
body.a11y-contrast .a11y-value { color: rgba(248, 250, 252, 0.7); }
body.a11y-contrast .a11y-close { background: rgba(255,255,255,0.15); color: #fff; }
body.a11y-contrast .a11y-chip-group { background: rgba(255,255,255,0.1); }
body.a11y-contrast .a11y-chip[aria-pressed="true"] { color: #0f172a; }
body.a11y-contrast .a11y-toggle { background: rgba(255,255,255,0.1); color: #fff; }

/* ── a11y section label (groups rows inside the panel) ── */
.a11y-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
  margin-bottom: 0.1rem;
}

/* ── Dark mode ──────────────────────────────────────── */
body.a11y-dark {
  --bg:         #0f172a;
  --card-bg:    #1e293b;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --border:     #334155;
}
body.a11y-dark .site-header,
body.a11y-dark .site-footer      { background: #1e293b; }
body.a11y-dark .bg-light,
body.a11y-dark .lp-section-light { background: #1e293b !important; color: #e2e8f0; }
body.a11y-dark .card,
body.a11y-dark .series-card,
body.a11y-dark .course-detail-card { background: #1e293b; border-color: #334155; }
body.a11y-dark .a11y-panel        { background: #1e293b; color: #e2e8f0; }
body.a11y-dark .a11y-panel-header p,
body.a11y-dark .a11y-value,
body.a11y-dark .a11y-section-label { color: #94a3b8; }
body.a11y-dark .a11y-close,
body.a11y-dark .a11y-reset        { background: #334155; color: #e2e8f0; }
body.a11y-dark .a11y-chip-group   { background: #0f172a; }
body.a11y-dark .a11y-chip[aria-pressed="true"] { background: var(--primary); color: #fff; }
body.a11y-dark .a11y-toggle       { background: #334155; color: #e2e8f0; }
body.a11y-dark input,
body.a11y-dark select,
body.a11y-dark textarea           { background: #1e293b; color: #e2e8f0; border-color: #334155; }

/* ── Dyslexia-friendly font ─────────────────────────── */
body.a11y-dyslexia {
  font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  letter-spacing: 0.06em;
  word-spacing: 0.12em;
  line-height: 1.9;
}
body.a11y-dyslexia p,
body.a11y-dyslexia li { max-width: 70ch; }

/* ── Highlight all links ────────────────────────────── */
body.a11y-link-highlight a:not(.btn):not(.nav-link):not([class*="tab"]) {
  background: #fef9c3;
  color: #1C2B54 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  padding: 0 3px;
  border-radius: 3px;
}

/* ── Increase spacing ───────────────────────────────── */
body.a11y-spacing {
  letter-spacing: 0.07em;
  word-spacing: 0.14em;
  line-height: 2.1;
}
body.a11y-spacing p,
body.a11y-spacing li,
body.a11y-spacing td  { margin-bottom: 1.25em; }

/* ── Loading spinner ── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .audience-nav { overflow-x: auto; flex-wrap: nowrap; gap: 0; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .footer-top   { grid-template-columns: 1fr 1fr; }
  .dashboard    { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .stats-bar    { gap: 2rem; }
  .sop-navbar   { padding: 0 1rem; }
  .sop-navbar nav { gap: 1rem; }
}
@media (max-width: 480px) {
  .hero { padding: 48px 1rem 56px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-newsletter-form { flex-direction: column; align-items: stretch; }
  .a11y-panel { right: 1rem; left: 1rem; width: auto; }
  .a11y-fab { right: 1rem; bottom: 1rem; }
}

/* ── Dashboard Layout (dark theme, music-hub inspired) ─── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: #0a0a0a;
  color: #f8f9fa;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Sidebar ── */
.sidebar {
  width: 260px;
  background: #050505;
  color: #f8f9fa;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo { height: 52px; object-fit: contain; }
.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 1.25rem;
  margin: 1.25rem 0 0.5rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}
.sidebar-link.active {
  color: var(--accent-text, #30C8D6);
  background: rgba(255,255,255,0.08);
  border-left-color: var(--accent, #30C8D6);
  text-decoration: none;
}
.sidebar-link i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
}
.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-footer .btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.sidebar-footer .btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ── Dashboard Main ── */
.dashboard-main {
  flex: 1;
  padding: 2rem;
  background: #0a0a0a;
  overflow-y: auto;
}
.dashboard-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1rem;
}
.dashboard-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8f9fa;
  margin: 0;
}
.tab-panel { display: block; }
.tab-panel h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f8f9fa;
  margin: 0 0 1rem;
}

/* ── Dashboard Cards (dark) ── */
.dashboard-layout .card {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: none;
  transition: background 0.2s;
  overflow: visible;
}
.dashboard-layout .card:hover {
  background: rgba(255,255,255,0.07);
  box-shadow: none;
  transform: none;
}
.dashboard-layout .card-body {
  padding: 13px 15px;
}
.dashboard-layout .card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f8f9fa;
}
.dashboard-layout .card-badge {
  background: rgba(0,176,155,0.15);
  color: var(--accent-text, #30C8D6);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}
.dashboard-layout .card-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ── Items List (dashboard data containers) ── */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.items-list .card {
  margin-bottom: 0;
}

/* ── Status Badges (music-hub style) ── */
.dashboard-layout .status-active,
.dashboard-layout .card-badge[class*="active"] {
  background: rgba(56,189,248,0.15);
  color: #7dd3fc;
}
.dashboard-layout .status-pending {
  background: rgba(255,193,7,0.15);
  color: #ffc107;
}
.dashboard-layout .status-disabled {
  background: rgba(220,53,69,0.15);
  color: #f87171;
}

/* ── Dashboard Tables (dark, music-hub style) ── */
.dashboard-layout table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
}
.dashboard-layout thead th {
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  border: none;
}
.dashboard-layout tbody tr {
  background: rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.dashboard-layout tbody tr:hover {
  background: rgba(255,255,255,0.08);
}
.dashboard-layout tbody td {
  padding: 10px 12px;
  font-size: 0.875rem;
  border: none;
  vertical-align: middle;
  color: #f8f9fa;
}
.dashboard-layout tbody td:first-child {
  border-radius: 10px 0 0 10px;
}
.dashboard-layout tbody td:last-child {
  border-radius: 0 10px 10px 0;
}

/* ── Dashboard Buttons ── */
.dashboard-layout .btn-primary {
  background: var(--accent, #30C8D6);
  color: #fff;
  border-color: transparent;
}
.dashboard-layout .btn-primary:hover {
  background: var(--accent-dark, #008A78);
}

/* ── Dashboard Form Fields (dark) ── */
.dashboard-layout .form-control {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.875rem;
}
.dashboard-layout .form-control:focus {
  outline: none;
  border-color: var(--accent, #30C8D6);
  background: rgba(255,255,255,0.09);
  box-shadow: none;
}
.dashboard-layout label {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── Skeleton Loader ── */
.dash-skeleton {
  height: 46px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: dashSkel 1.4s infinite;
}
@keyframes dashSkel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Dashboard text-muted override ── */
.dashboard-layout .text-muted {
  color: rgba(255,255,255,0.45);
}

/* ── Courses grid in dashboard ── */
.dashboard-layout .courses-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ── Dashboard empty states ── */
.dashboard-layout p.text-muted {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
}
.dashboard-layout p.text-muted a {
  color: var(--accent-text, #30C8D6);
}
.dashboard-layout p.text-muted a:hover {
  color: #fff;
}

/* ── Auth split layout ──────────────────────────────────── */
.auth-split { display: flex; min-height: 100vh; }
.auth-left {
  flex: 0 0 42%; background: linear-gradient(135deg, #30C8D6 0%, #3A034B 50%, #1C2B54 100%);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.auth-brand { color: #fff; text-align: center; max-width: 380px; }
.auth-logo-wrap {
  width: 148px; height: 148px; margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.auth-logo {
  width: 100%; height: 100%; object-fit: contain; display: block;
  border-radius: 50%;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
}
.auth-brand h2 { font-size: 1.6rem; margin-bottom: 0.5rem; font-weight: 800; letter-spacing: -0.01em; }

/* ── TOTP two-factor enrolment panel ─────────────────────── */
.totp-setup-panel {
  margin: 0 0 1.25rem;
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  background: rgba(48, 200, 214, 0.08);
  border: 1px solid rgba(48, 200, 214, 0.3);
}
.totp-setup-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.totp-setup-text { font-size: 0.88rem; margin: 0 0 0.75rem; line-height: 1.55; }
.totp-qr {
  display: flex;
  justify-content: center;
  margin: 0 auto 0.9rem;
  width: fit-content;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
}
.totp-qr img, .totp-qr canvas { display: block; }
.totp-secret {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  word-break: break-all;
  user-select: all;
}

/* Collapsible "how to get an authenticator app" guidance */
.totp-apps-help {
  margin-top: 1rem;
  border: 1px solid rgba(48, 200, 214, 0.25);
  border-radius: 10px;
  background: rgba(48, 200, 214, 0.05);
}
.totp-apps-help summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}
.totp-apps-help summary::-webkit-details-marker { display: none; }
.totp-apps-help[open] summary { border-bottom: 1px solid rgba(48, 200, 214, 0.2); }
.totp-apps-help-body {
  padding: 0.9rem 1.1rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
}
.totp-apps-help-body ul,
.totp-apps-help-body ol {
  margin: 0.4rem 0 0.9rem;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.totp-apps-help-body p { margin: 0 0 0.6rem; }

/* ── Guided tooltip walkthrough ──────────────────────────── */
.walkthrough {
  position: fixed;
  z-index: 100000;
  display: none;
  width: min(92vw, 340px);
  padding: 1.1rem 1.25rem 1rem;
  border-radius: 12px;
  background: #0d1726;
  border: 1px solid rgba(48, 200, 214, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 24px rgba(48, 200, 214, 0.12);
  color: #f1f5f9;
}
.walkthrough::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: inherit;
  border: inherit;
  border-width: 1px 0 0 1px;
  transform: rotate(45deg);
}
.walkthrough[data-arrow="up"]::before    { top: -8px;  left: calc(var(--wt-arrow, 50%) - 7px); }
.walkthrough[data-arrow="down"]::before  { bottom: -8px; left: calc(var(--wt-arrow, 50%) - 7px); transform: rotate(225deg); }
.walkthrough[data-arrow="left"]::before  { left: -8px; top: calc(var(--wt-arrow, 50%) - 7px); transform: rotate(-45deg); }
.walkthrough[data-arrow="right"]::before { right: -8px; top: calc(var(--wt-arrow, 50%) - 7px); transform: rotate(135deg); }
.walkthrough[data-arrow="none"]::before  { display: none; }
.walkthrough-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  color: #4bdce7;
}
.walkthrough-text {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.85);
}
.walkthrough-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.walkthrough-count { font-size: 0.78rem; color: rgba(241, 245, 249, 0.5); }
.walkthrough-actions { display: inline-flex; align-items: center; gap: 0.75rem; }
.walkthrough-skip {
  background: none;
  border: none;
  color: rgba(241, 245, 249, 0.55);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.walkthrough-skip:hover { color: #fff; }
.walkthrough-highlight {
  outline: 2px solid #30C8D6;
  outline-offset: 3px;
  border-radius: 8px;
  box-shadow: 0 0 0 7px rgba(48, 200, 214, 0.18);
  transition: box-shadow 0.3s ease;
}
.auth-brand p { opacity: 0.82; font-size: 0.95rem; line-height: 1.6; }
.auth-divider {
  width: 48px; height: 3px; border-radius: 3px; margin: 1.25rem auto;
  background: linear-gradient(90deg, #30C8D6, rgba(48, 200, 214, 0.3));
}
.auth-features {
  list-style: none; padding: 0; margin: 0; text-align: left;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.auth-features li {
  display: flex; align-items: center; gap: 0.75rem;
  color: rgba(255, 255, 255, 0.88); font-size: 0.92rem; font-weight: 500;
}
.auth-features i {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 0.82rem;
  background: rgba(48, 200, 214, 0.12); color: #78f4ff;
}
.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-form-wrap { width: 100%; max-width: 440px; }
.auth-title { margin-bottom: 0.25rem; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 1.5rem; }
.auth-footer { margin-top: 1.25rem; text-align: center; font-size: 0.9rem; color: var(--text-muted); }

/* ── Terms of Service summary ─────────────────────────────── */
.terms-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem 0 0.75rem;
  font-size: 0.88rem;
}

.terms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.terms-header h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--text);
}

/* Sits inside .terms-box, which is a light panel — needs the dark teal, not
   the global light-cyan link colour (1.94:1). */
.terms-link { font-size: 0.85rem; color: #0b5b66; }

.terms-box ul { padding-left: 1.2rem; margin: 0.5rem 0; color: var(--text-muted); }
.terms-box li { margin-bottom: 0.35rem; }
.terms-note { margin: 0.5rem 0 0; color: var(--text-muted); }

.terms-check .checkbox {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text);
}

.terms-check input[type=\"checkbox\"] { margin-top: 0.2rem; }

/* ── Newsletter forms ─────────────────────────────────────── */
.form-card.compact { max-width: 520px; margin: 0 auto; }

.stack-form {
  display: grid;
  gap: 0.75rem;
}

.stack-form label { font-weight: 600; }
.stack-form .btn { justify-self: flex-start; }

.form-helper {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Accessibility modes ──────────────────────────────────── */
body.a11y-text-lg { font-size: 110%; }
body.a11y-text-xl { font-size: 118%; }

body.a11y-contrast {
  background-color: #0b1120;
  color: #f8fafc;
}

body.a11y-contrast .site-header,
body.a11y-contrast .site-footer,
body.a11y-contrast .section,
body.a11y-contrast .auth-left,
body.a11y-contrast .auth-right,
body.a11y-contrast .section-hero {
  background-color: #0f172a;
}

body.a11y-contrast a { color: #7DD4DC; }
body.a11y-contrast .btn-primary { background: #1C2B54; border-color: #1C2B54; }

body.a11y-reduce-motion *,
body.a11y-reduce-motion *::before,
body.a11y-reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (max-width: 768px) {
  .auth-split { flex-direction: column; }
  .auth-left { display: none; }
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; }
}

/* ── Misc page helpers ──────────────────────────────────── */
.page-title { font-size: 2rem; margin-bottom: 0.5rem; }
.page-subtitle { color: var(--text-muted); margin-bottom: 2rem; }
.input-group { display: flex; position: relative; }
.input-group .form-control { flex: 1; padding-right: 2.75rem; }
.input-addon { position: absolute; right: 0; top: 0; bottom: 0; width: 2.75rem; display: flex; align-items: center; justify-content: center; background: transparent; border: none; cursor: pointer; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-block { width: 100%; }
.items-list { display: flex; flex-direction: column; gap: 0.75rem; }
.page-loader { display: flex; justify-content: center; padding: 4rem; }
#preloader { position: fixed; inset: 0; background: #fff; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.4s; }
#preloader.hidden { opacity: 0; pointer-events: none; }
.preloader-inner { text-align: center; }

/* ── Features grid ──────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); text-align: center; }
.feature-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }

/* ── CTA section ────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--accent)); padding: 5rem 1rem; color: #fff; }
.cta-section h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.cta-section p { font-size: 1.1rem; margin-bottom: 1.5rem; opacity: 0.9; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f0f0; color: var(--primary); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════
   PAGE-SPECIFIC STYLES  (about, contact, faq, legal, pricing,
   catalog)  — appended
   ═══════════════════════════════════════════════════════════ */

/* ── Utility ────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.bg-light { background: #f8f9fa; }
.text-center { text-align: center; }
.section-title { font-size: 1.75rem; margin-bottom: 2rem; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.875rem;
}
.breadcrumb-item { color: rgba(255,255,255,0.75); }
.breadcrumb-item a { color: rgba(255,255,255,0.9); text-decoration: underline; }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(255,255,255,0.5);
}
.breadcrumb-item.active { color: #fff; font-weight: 500; }

/* ── Hero section ───────────────────────────────────────── */
.bg-primary-gradient {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary) 100%);
}
.section-hero {
  padding: 4rem 1rem 3rem;
  color: #fff;
}
.section-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-hero .lead {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0;
}

/* ── About page ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.about-content h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.about-content p { margin-bottom: 1rem; line-height: 1.7; }
.about-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Contact page ───────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}
.contact-layout > *,
.contact-item > div { min-width: 0; max-width: 100%; }
.contact-item a { overflow-wrap: anywhere; }
.contact-info h2,
.contact-form-wrap h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }

.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 2.5rem; height: 2.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; margin-bottom: 0.2rem; }
.contact-item p { margin: 0; }
.contact-item a { color: var(--primary); }
.contact-item a:hover { text-decoration: underline; }

/* ── FAQ page ───────────────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-sidebar { position: static !important; }
}

.faq-sidebar {
  position: sticky;
  top: 5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sidebar-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.faq-sidebar ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.faq-nav-link {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: calc(var(--radius) / 2);
  font-size: 0.9rem;
  color: var(--dark-navy);
  text-decoration: none;
  transition: var(--transition);
}
.faq-nav-link:hover,
.faq-nav-link:focus-visible {
  background: var(--bg);
  color: var(--primary);
}

.faq-content { display: flex; flex-direction: column; gap: 2.5rem; }
.faq-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  /* --dark-navy (#060810) is near-black and these headings sit on the dark
     section background — 1.05:1, effectively invisible. */
  color: #f0f2f8;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.faq-group { display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item[open] { box-shadow: var(--shadow); }

.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--dark-navy);
  transition: background var(--transition);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}
details[open] > .faq-question::after { transform: rotate(45deg); }
.faq-question:hover { background: var(--bg); }

.faq-answer {
  padding: 0 1.25rem 1rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
}
.faq-answer a { color: var(--primary); }
.faq-answer a:hover { text-decoration: underline; }

/* ── Legal docs (terms, privacy) ────────────────────────── */
.legal-doc {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}
.legal-doc > p { margin-bottom: 1.5rem; font-size: 1.05rem; }
.legal-doc article {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.legal-doc article:last-child { border-bottom: none; }
.legal-doc article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  /* --dark-navy is near-black; these sit on the dark page background. */
  color: #f0f2f8;
  margin-bottom: 0.75rem;
}
.legal-doc article h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--dark-navy);
}
.legal-doc article p { margin-bottom: 0.75rem; }
.legal-doc article ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.legal-doc address {
  font-style: normal;
  line-height: 1.9;
  background: var(--bg);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}
.legal-doc address a { color: var(--primary); }

/* ── Pricing page ───────────────────────────────────────── */
.pricing-region-bar {
  display: flex;
  gap: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  overflow-x: auto;
}
.pricing-region-btn {
  padding: 0.85rem 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pricing-region-btn:hover { color: var(--primary); }
.pricing-region-btn.active,
.pricing-region-btn[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.info-banner {
  background: #e8f0fe;
  border: 1px solid #c5d8fb;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.info-banner-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.info-banner ul {
  padding-left: 1.25rem;
  margin: 0;
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.95rem;
}

.pricing-categories { display: flex; flex-direction: column; gap: 2rem; }

/* Pricing section headers */
.pricing-section-header { margin-bottom: 1.5rem; }
.pricing-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.pricing-section-sub { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Programme bundle cards */
.pricing-programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.pricing-program-card {
  background: #fff;
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.pricing-program-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.pricing-program-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--dark-navy);
  line-height: 1.35;
}
.pricing-duration {
  font-size: 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.pricing-program-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.pricing-program-notes {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  line-height: 1.55;
}

/* Individual course fees table */
.pricing-category { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pricing-category h3 {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  background: var(--dark-navy);
  color: #fff;
}
.pricing-table-wrap { overflow-x: auto; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.pricing-table th {
  background: #f1f5f9;
  color: var(--dark-navy);
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.pricing-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover td { background: var(--primary-light); }
.pricing-fee { font-weight: 600; color: var(--primary); white-space: nowrap; }
.course-code-sm {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  background: #f1f5f9;
  color: var(--dark-navy);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* ── Catalog page ───────────────────────────────────────── */
.catalog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
@media (max-width: 480px) {
  .catalog-filter-bar { padding: 0.75rem 1rem; }
}
.filter-btn {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-navy);
  transition: var(--transition);
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active,
.filter-btn[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.catalog-series {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.series-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.series-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.series-image { overflow: hidden; aspect-ratio: 16/9; }
.series-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.series-card:hover .series-image img { transform: scale(1.04); }
.series-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}
.series-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin: 0;
}
.series-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
.series-body > p { font-size: 0.9rem; line-height: 1.6; flex: 1; margin: 0; }
.series-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* Series badge variants */
.series-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  width: fit-content;
}
.badge-foundations,
.badge-frontend,
.badge-backend,
.badge-devops,
.badge-ai,
.badge-fullstack { background: #e0f2fe; color: #075985; }

/* ── btn-outline-white ──────────────────────────────────── */
.btn-outline-white {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

/* ── Course Detail Pages ─────────────────────────────────── */
.course-toc { background: var(--dark-navy); padding: 0.75rem 0; }
.course-toc-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.course-toc-link { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; padding: 0.35rem 0.75rem; border-radius: var(--radius); transition: var(--transition); }
.course-toc-link:hover { background: rgba(255,255,255,0.1); color: #fff; }

.course-detail-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 2rem; overflow: hidden; border: 1px solid var(--border); }
.course-detail-header { background: linear-gradient(135deg, var(--dark-navy), #2d3561); color: #fff; padding: 1.5rem 2rem; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0.75rem; }
.course-detail-header h2 { flex: 1; margin: 0; font-size: 1.35rem; }
.course-code { font-family: 'Courier New', monospace; font-size: 0.85rem; background: rgba(255,255,255,0.15); padding: 0.2rem 0.6rem; border-radius: 4px; white-space: nowrap; }
.course-price-badge { background: var(--accent); color: #fff; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.85rem; white-space: nowrap; }
.course-price-badge.free { background: #0284c7; }
.course-detail-body { padding: 2rem; }
.course-detail-body h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin: 1.25rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.course-detail-body h3:first-child { margin-top: 0; }
.course-detail-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.course-meta-list { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin-top: 1rem; }
.course-meta-list dt { font-weight: 600; color: var(--dark-navy); }
.course-meta-list dd { margin: 0; color: var(--text-muted); }

/* ── Resource / Download Cards ──────────────────────────── */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.resource-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; display: flex; gap: 1rem; border: 1px solid var(--border); transition: var(--transition); }
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.resource-icon { font-size: 2rem; color: var(--primary); flex-shrink: 0; }
.resource-title { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; }

/* ── Course Register Form ────────────────────────────────── */
.auth-checklist { list-style: none; padding: 0; margin-top: 1.25rem; text-align: left; }
.auth-checklist li { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.auth-checklist .fa-check { color: #a8f0c8; }
.form-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── Verify Certificate ─────────────────────────────────── */
.verify-layout { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; }
.verify-form-wrap { max-width: 520px; }
.verify-info { background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border: 1px solid var(--border); height: fit-content; }
.verify-info h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.verify-info ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.verify-info li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; }
.verify-contact { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
#verify-result { margin-top: 1.5rem; padding: 1.5rem; background: #f0fff4; border: 1px solid #a8f0c8; border-radius: var(--radius); }
@media (max-width: 768px) {
  .verify-layout { grid-template-columns: 1fr; }
  .course-toc-list { flex-direction: column; }
  .course-detail-header { flex-direction: column; }
}

/* ── Generic shared modals (facilitator, developer, etc.) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.modal-header h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  padding: 0 0.25rem;
}
.modal-close:hover { color: #111827; }
.modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

/* ── Developer Dashboard Modals ─────────────────────────── */
.dev-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.dev-modal-overlay.hidden { display: none; }
.dev-modal {
  background: #1a1d23;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  width: 100%;
  max-width: 500px;
  color: #f8f9fa;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.dev-modal h3 {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.dev-modal .form-group {
  margin-bottom: 1rem;
}
.dev-modal .dev-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.dev-modal textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ══════════════════════════════════════════════════════════
   FACILITATOR COURSE STUDIO
   ══════════════════════════════════════════════════════════ */

/* ── Layout ──────────────────────────────────────────────── */
.fac-studio {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* ── Sidebar ─────────────────────────────────────────────── */
.fac-sidebar {
  width: 260px;
  min-width: 220px;
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fac-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.fac-sidebar-logo { height: 44px; object-fit: contain; }
.fac-sidebar-brandname {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.3px;
  color: #fff;
}

.fac-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.fac-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fac-user-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  line-height: 1.2;
}
.fac-role-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(0,176,155,0.2);
  color: #30C8D6;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

.fac-sidebar-label {
  padding: 0.85rem 1.25rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* Course list */
.fac-course-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0;
}
.fac-course-list::-webkit-scrollbar { width: 4px; }
.fac-course-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.fac-course-loading {
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.fac-course-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.fac-course-item:hover  { background: rgba(255,255,255,0.05); }
.fac-course-item.active { background: rgba(0,176,155,0.12); border-left-color: var(--accent); }
.fac-course-item:focus  { outline: 2px solid var(--accent); outline-offset: -2px; }

.fac-ci-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fac-ci-body { overflow: hidden; }
.fac-ci-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fac-ci-meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fac-sidebar-foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ── Main area ───────────────────────────────────────────── */
.fac-main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ── Empty state ─────────────────────────────────────────── */
.fac-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.fac-empty-icon {
  font-size: 4rem;
  color: var(--border);
  margin-bottom: 1.25rem;
}
.fac-empty h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.fac-empty p {
  font-size: 0.95rem;
  max-width: 380px;
  line-height: 1.6;
}

/* ── Course header ───────────────────────────────────────── */
.fac-course-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.fac-course-breadcrumb {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.fac-course-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.fac-course-meta-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.fac-meta-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
}
.fac-badge-program  { background: var(--primary-light); color: var(--primary); }
.fac-badge-open     { background: rgba(34,197,94,0.12); color: #15803d; }
.fac-badge-closed   { background: rgba(239,68,68,0.12); color: #b91c1c; }
.fac-badge-waitlist { background: rgba(245,158,11,0.12); color: #92400e; }
.fac-badge-neutral  { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

.fac-course-header-right {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-shrink: 0;
}
.fac-header-stat { text-align: right; }
.fac-hdr-val {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.fac-hdr-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Sub-tabs ────────────────────────────────────────────── */
.fac-sub-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  overflow-x: auto;
  flex-shrink: 0;
}
.fac-sub-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.fac-sub-tab:hover  { color: var(--text); }
.fac-sub-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ── Tab panels ──────────────────────────────────────────── */
.fac-stab-panel {
  padding: 1.75rem 2rem 2.5rem;
  flex: 1;
}

/* ── Section cards ───────────────────────────────────────── */
.fac-section-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.fac-section-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.fac-section-heading i { color: var(--primary); font-size: 0.85rem; }

/* ── Form rows ───────────────────────────────────────────── */
.fac-form-row { display: grid; gap: 0.75rem; margin-bottom: 0; }
.fac-row-2 { grid-template-columns: 1fr 1fr; }
.fac-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.fac-row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.fac-form-row .form-group { margin-bottom: 0; }

/* ── Multi-select ────────────────────────────────────────── */
.fac-multi-select {
  height: auto;
  min-height: 120px;
  resize: vertical;
}
.fac-field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.fac-field-hint kbd {
  font-size: 0.72rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 4px;
  font-family: monospace;
}

/* ── Outline textarea ────────────────────────────────────── */
.fac-outline-area { font-family: monospace; font-size: 0.85rem; line-height: 1.7; }

/* ── Form actions ────────────────────────────────────────── */
.fac-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.75rem;
}

/* ── Collapsible add-lesson form ─────────────────────────── */
.fac-collapsible {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* ── Lesson list ─────────────────────────────────────────── */
.fac-lesson-list { display: flex; flex-direction: column; gap: 0.6rem; }
.fac-lesson-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  transition: box-shadow 0.15s;
}
.fac-lesson-item:hover { box-shadow: var(--shadow); }
.fac-lesson-num {
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fac-lesson-body { flex: 1; min-width: 0; }
.fac-lesson-title { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.fac-lesson-video-link {
  font-size: 0.78rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.fac-lesson-content-preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.3rem 0 0;
  line-height: 1.5;
}

/* ── Empty tab placeholder ───────────────────────────────── */
.fac-empty-tab { font-size: 0.875rem; color: var(--text-muted); }

/* ── Accordion ───────────────────────────────────────────── */
.fac-accordion { border-top: 1px solid var(--border-color, #e5e7eb); }
.fac-accordion-item { border-bottom: 1px solid var(--border-color, #e5e7eb); }

.fac-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f0f2f8;
  text-align: left;
  transition: background 0.15s;
}
.fac-accordion-trigger:hover { background: var(--bg-subtle, #f9fafc); }
.fac-accordion-trigger span { display: flex; align-items: center; gap: 0.5rem; }
.fac-accordion-trigger span i { color: var(--primary, #1C2B54); font-size: 0.85rem; }

.fac-accordion-chevron {
  font-size: 0.75rem;
  color: var(--text-muted, #9ca3af);
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.fac-accordion-item.open .fac-accordion-chevron { transform: rotate(180deg); }

.fac-accordion-body {
  overflow: hidden;
  max-height: 0;
  padding: 0 1.75rem;
  transition: max-height 0.28s ease, padding 0.28s ease;
}
.fac-accordion-item.open .fac-accordion-body {
  max-height: 1800px;
  padding: 0.25rem 1.75rem 1.25rem;
}

/* list-section label (used in content tab) */
.fac-list-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #6b7280);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Tab container (one per sub-tab panel) ───────────────── */
.fac-tab-container {
  background: #fff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
}

/* ── Tab header ──────────────────────────────────────────── */
.fac-tab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.75rem 1.2rem;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  background: var(--bg-subtle, #f9fafc);
}
.fac-tab-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fac-tab-title i { color: var(--primary, #1C2B54); font-size: 0.95rem; }
.fac-tab-desc  {
  font-size: 0.82rem;
  color: var(--text-muted, #6b7280);
  margin: 0;
  line-height: 1.4;
}
.fac-tab-header-action { flex-shrink: 0; margin-top: 0.15rem; }

/* ── Alert inside tab container ─────────────────────────── */
.fac-tab-alert { margin: 1rem 1.75rem 0; }

/* ── Field sections (separator groups within a tab) ─────── */
.fac-field-section {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-color, #e5e7eb);
}
.fac-field-section:first-of-type { border-top: none; }
.fac-field-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #6b7280);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.fac-field-section-label i { font-size: 0.8rem; }

/* ── Tab footer (save bar) ───────────────────────────────── */
.fac-tab-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-color, #e5e7eb);
  background: var(--bg-subtle, #f9fafc);
}
.fac-footer-inline {
  border-top: none;
  background: transparent;
  padding: 0.5rem 0 0;
  justify-content: flex-start;
}
.fac-save-btn { min-width: 180px; justify-content: center; }

/* ── News / announcement items ───────────────────────────── */
.fac-news-item {
  border-left: 3px solid var(--primary);
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.85rem;
  background: rgba(255,255,255,0.05);
  border-radius: 0 6px 6px 0;
}
.fac-news-meta     { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.fac-news-headline { font-weight: 600; font-size: 0.9rem; color: #f0f2f8; }
.fac-news-body     { margin-top: 0.3rem; font-size: 0.83rem; color: #b8c8ce; white-space: pre-wrap; }

/* ── Cohort cards ────────────────────────────────────────── */
.fac-cohort-item {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255,255,255,0.05);
}
.fac-cohort-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.fac-cohort-name  { font-weight: 700; font-size: 0.92rem; color: #f0f2f8; }
.fac-cohort-code  {
  font-size: 0.72rem;
  background: var(--primary-light, #e8f0fe);
  color: #9ee7ee;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
}
.fac-cohort-dates {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.fac-cohort-dates i { margin-right: 0.3rem; }

/* ── Cohort name badge on news/announcement items ────────── */
.fac-badge-cohort {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
  background: #F0E6F6;
  color: #6d28d9;
  letter-spacing: 0.03em;
}

/* ── Item action buttons (edit/delete row) ───────────────── */
.fac-item-actions  { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.btn-xs {
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  border-radius: 4px;
  line-height: 1.4;
}
.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
.btn-danger:hover { background: #fecaca; }

/* ── Announcement schedule badges ────────────────────────── */
.fac-badge-live {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  letter-spacing: 0.04em;
}
.fac-badge-scheduled {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #fef9c3;
  color: #a16207;
  letter-spacing: 0.04em;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .fac-row-4 { grid-template-columns: 1fr 1fr; }
  .fac-row-3 { grid-template-columns: 1fr 1fr; }
  .fac-course-header { padding: 1.25rem 1.25rem 1rem; }
  .fac-stab-panel { padding: 1rem; }
  .fac-tab-header, .fac-field-section, .fac-tab-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .fac-tab-alert { margin-left: 1.25rem; margin-right: 1.25rem; }
}
@media (max-width: 700px) {
  .fac-studio { flex-direction: column; height: auto; overflow: auto; }
  .fac-sidebar { width: 100%; height: auto; max-height: 50vh; }
  .fac-main   { overflow: visible; }
  .fac-row-2  { grid-template-columns: 1fr; }
  .fac-row-3  { grid-template-columns: 1fr; }
  .fac-row-4  { grid-template-columns: 1fr 1fr; }
  .fac-sub-tabs { padding: 0 0.75rem; }
  .fac-sub-tab span { display: none; }
  .fac-sub-tab { padding: 0.75rem; font-size: 1rem; }
  .fac-course-header-right { display: none; }
  .fac-tab-header { flex-direction: column; }
  .fac-save-btn { min-width: unset; width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   LANDING PAGE v2 — Deep Ocean Design System
   ══════════════════════════════════════════════════════════ */

/* ── Animations ──────────────────────────────────────────── */
@keyframes lp-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -50px) scale(1.08); }
  66%       { transform: translate(-30px, 30px) scale(0.95); }
}
@keyframes lp-float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-60px, 40px) scale(1.1); }
}
@keyframes lp-fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lp-pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,176,155,0.3); }
  50%       { box-shadow: 0 0 45px rgba(0,176,155,0.6); }
}

/* ── Gradient text utility ───────────────────────────────── */
.lp-gradient-text {
  background: linear-gradient(135deg, #30C8D6 0%, #1C2B54 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HERO ────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0a0a2e 0%, #0f1a4a 40%, #0d2e3e 100%);
  color: #fff;
  padding: 96px 2rem 100px;
  text-align: center;
}

/* Floating orbs */
.lp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  animation: lp-float 18s ease-in-out infinite;
}
.lp-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #1C2B54, transparent 70%);
  top: -120px; left: -80px;
  animation-duration: 20s;
}
.lp-orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #00B09B, transparent 70%);
  bottom: -100px; right: -60px;
  animation-duration: 25s; animation-delay: -8s;
}
.lp-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #3A034B, transparent 70%);
  top: 40%; left: 55%;
  animation: lp-float-slow 30s ease-in-out infinite;
  opacity: 0.2;
}

.lp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  animation: lp-fadeInUp 0.8s ease both;
}

.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.lp-hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 0 0 1.25rem;
  color: #fff;
}

.lp-hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.lp-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Glowing primary button */
.lp-btn-glow {
  animation: lp-pulse-glow 3s ease-in-out infinite;
  border: none;
}
.lp-btn-glow:hover { animation: none; transform: translateY(-2px); }

/* Glass outline button */
.lp-btn-glass {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.lp-btn-glass:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Trust bar */
.lp-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}
.lp-trust-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255,255,255,0.65);
}
.lp-trust-item i { color: var(--accent-text); }
.lp-trust-divider { opacity: 0.3; }

/* ── STATS ───────────────────────────────────────────────── */
.lp-stats {
  background: linear-gradient(180deg, #0f1a4a 0%, #0e2233 100%);
  padding: 56px 2rem;
}
.lp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.lp-stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.25s, border-color 0.25s;
}
.lp-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,176,155,0.4);
}
.lp-stat-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}
.lp-stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── SECTIONS ────────────────────────────────────────────── */
.lp-section { padding: 88px 2rem; }
.lp-section-light { background: #f8fafc; }
.lp-section-dark  {
  background: linear-gradient(160deg, #0e1a3a 0%, #0d2e3e 100%);
}

.lp-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.lp-section-header-light { text-align: center; }

.lp-section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.lp-tag-teal {
  color: var(--accent-text);
  background: rgba(0,176,155,0.12);
}
.lp-section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.lp-section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ── LEARNING PATH ───────────────────────────────────────── */
.lp-path-grid {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.lp-path-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  color: #fff;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.lp-path-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,176,155,0.35);
  background: rgba(255,255,255,0.07);
}
.lp-path-card-accent {
  background: rgba(0,86,210,0.15);
  border-color: rgba(0,86,210,0.3);
}
.lp-path-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}
.lp-path-icon {
  font-size: 2.25rem;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}
.lp-path-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.lp-path-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0 0 1rem;
}
.lp-path-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(0,176,155,0.2);
  color: #30C8D6;
}
.lp-path-connector {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ── FEATURES GRID ───────────────────────────────────────── */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.lp-feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.lp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.lp-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.lp-icon-blue { background: var(--primary-light); color: var(--primary); }
.lp-icon-teal { background: rgba(0,176,155,0.1); color: var(--accent-text); }
.lp-feature-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.lp-feature-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── PUBLIC NEWSLETTER CARDS ─────────────────────────────── */
.nl-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #30C8D6;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.nl-card:hover {
  transform: translateY(-3px);
  border-color: rgba(48, 200, 214, 0.4);
  border-left-color: #30C8D6;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}
.nl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.nl-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(48, 200, 214, 0.14);
  color: #4bdce7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nl-card-date { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.nl-card-title { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 700; color: #f1f5f9; line-height: 1.35; }
.nl-card-summary { margin: 0 0 0.9rem; font-size: 0.92rem; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }

/* ── SCHOOL OVERVIEW PAGE ────────────────────────────────── */
.ov-hero { padding-bottom: 2rem; }
.ov-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.82rem;
  color: #4bdce7;
  margin: 0 0 1rem;
}
.ov-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin: 0 0 1.1rem;
}
.ov-lead {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  margin: 0 0 1.75rem;
}
.ov-hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Journey pipeline rail — icon pills joined by chevrons */
.ov-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.5rem;
}
.ov-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  white-space: nowrap;
}
.ov-pill i { color: rgba(75,220,231,0.8); }
.ov-pill.is-complete {
  background: rgba(48,200,214,0.14);
  border-color: rgba(48,200,214,0.45);
  color: #9beef4;
}
.ov-pill.is-complete i { color: #4bdce7; }
.ov-pill.is-active {
  background: var(--lms-gradient-cool, linear-gradient(135deg, #30C8D6, #1C2B54));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(48,200,214,0.35);
}
.ov-pill.is-active i { color: #fff; }
.ov-chevron { color: rgba(255,255,255,0.25); font-size: 0.75rem; }

.ov-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}
.ov-audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.ov-audience-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}
.ov-audience-card h3 { margin: 0; font-size: 1.05rem; }
.ov-audience-card p { margin: 0; flex: 1; }
.ov-audience-card .btn { margin-top: 0.35rem; }

/* ── UPCOMING EVENTS GRID ────────────────────────────────── */
.lp-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.lp-event-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(8px);
}
.lp-event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(48,200,214,0.4);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.lp-event-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.lp-event-img-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: rgba(48,200,214,0.75);
  background: linear-gradient(135deg, rgba(48,200,214,0.14), rgba(28,43,84,0.5));
}
.lp-event-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.4rem 1.5rem;
  flex: 1;
}
.lp-event-date {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(48,200,214,0.14);
  color: #4bdce7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lp-event-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.35;
}
.lp-event-loc {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.lp-event-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Loading skeletons */
.lp-event-skeleton {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.lp-eks-img { height: 160px; }
.lp-eks-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.lp-eks-line { height: 12px; border-radius: 6px; display: block; }
.lp-eks-img, .lp-eks-line {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.11) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: lpEksShimmer 1.4s ease-in-out infinite;
}
@keyframes lpEksShimmer { to { background-position: -200% 0; } }
@media (max-width: 767.98px) { .lp-eks-desktop { display: none; } }
@media (prefers-reduced-motion: reduce) { .lp-eks-img, .lp-eks-line { animation: none; } }

/* ── FREE DOWNLOADS GRID ─────────────────────────────────── */
.lp-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.lp-download-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(8px);
}
.lp-download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6,182,212,0.4);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.lp-download-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.lp-download-icon-pdf  { background: rgba(239,68,68,0.15);  color: #f87171; }
.lp-download-icon-doc  { background: rgba(59,130,246,0.15); color: #30C8D6; }
.lp-download-icon-file { background: rgba(6,182,212,0.15);  color: #22d3ee; }
.lp-download-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.3;
}
.lp-download-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.lp-download-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.62);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lp-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #0e7490, #06b6d4);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: opacity 0.2s;
}
.lp-download-btn:hover { opacity: 0.85; color: #fff; }

/* ── MANIFESTO ───────────────────────────────────────────── */
.lp-manifesto {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a2e 0%, #0d2e3e 100%);
  padding: 72px 2rem;
  text-align: center;
}
.lp-orb-manifesto {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,176,155,0.15), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: none;
}
.lp-manifesto-inner { position: relative; z-index: 2; }
.lp-quote {
  max-width: 720px;
  margin: 0 auto;
}
.lp-quote-icon {
  font-size: 2.5rem;
  color: var(--accent-text);
  opacity: 0.5;
  margin-bottom: 1rem;
  display: block;
}
.lp-quote p {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  font-style: italic;
}
.lp-quote cite {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-style: normal;
  letter-spacing: 0.5px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-path-grid  { flex-direction: column; align-items: stretch; }
  .lp-path-connector { transform: rotate(90deg); }
  .lp-path-card  { max-width: 100%; }
}
@media (max-width: 640px) {
  .lp-hero       { padding: 64px 1rem 72px; }
  .lp-stats      { padding: 40px 1rem; }
  .lp-section    { padding: 56px 1rem; }
  .lp-stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .lp-hero-title { letter-spacing: -0.5px; }
  .lp-trust-bar  { gap: 0.5rem; font-size: 0.75rem; }
  .lp-manifesto  { padding: 52px 1rem; }
  .lp-feature-card { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   TOPICS TAB
   ═══════════════════════════════════════════════════════════ */
.fac-topic-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.fac-topic-order {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--primary-light, #e8f0fe);
  color: var(--primary, #0056d2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.fac-topic-body { flex: 1; min-width: 0; }
.fac-topic-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text, #1c1d1f);
  margin-bottom: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════
   RESOURCES TAB
   ═══════════════════════════════════════════════════════════ */
.fac-resource-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.fac-resource-icon {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: #f0fdf4;
  color: #16a34a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.fac-resource-body { flex: 1; min-width: 0; }
.fac-resource-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary, #0056d2);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fac-resource-title:hover { text-decoration: underline; }
.fac-resource-type {
  font-size: 0.7rem;
  color: var(--text-muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   COHORT WEEKLY PLANNER
   ═══════════════════════════════════════════════════════════ */
.fac-week-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.fac-week-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.fac-week-num {
  background: var(--primary, #0056d2);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.fac-week-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text, #1c1d1f);
  flex: 1;
}
.fac-week-dates {
  font-size: 0.75rem;
  color: var(--text-muted, #6b7280);
  flex-shrink: 0;
}
.fac-week-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.fac-week-item-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fac-week-item-lesson       { background: #E6F7F9; color: #1C2B54; }
.fac-week-item-topic        { background: #F0E6F6; color: #3A034B; }
.fac-week-item-news         { background: #fef9c3; color: #854d0e; }
.fac-week-item-announcement { background: #fee2e2; color: #b91c1c; }
.fac-week-no-items {
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* multi-select for week items planner */
.fac-multi-select {
  min-height: 120px;
  font-size: 0.82rem;
}
optgroup { font-weight: 700; color: var(--text-muted, #555); }
option   { padding: 0.15rem 0.5rem; font-weight: 400; }

/* Participant colors are defined by the shared dark portal theme. */
/* Profile card */
.part-profile-card {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.part-profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 140px;
}
.part-profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary, #2D9B6F);
  background: #f1f5f9;
}
.part-profile-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary-light, #e8f5f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary, #2D9B6F);
  border: 3px solid var(--primary, #2D9B6F);
}
.part-profile-form { flex: 1; min-width: 280px; }
.part-profile-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 540px) {
  .part-profile-form .form-row-2 { grid-template-columns: 1fr; }
  .part-profile-card { flex-direction: column; align-items: center; }
}

/* =========================================================
   NEWSLETTER HIGHLIGHT (home page)
   ========================================================= */
.nl-highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
}
.nl-highlight-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.nl-highlight-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.02em;
}
.nl-highlight-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.nl-highlight-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.nl-highlight-summary {
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}

/* =========================================================
   NEWSLETTERS PUBLIC PAGE (.nl-body rendered content)
   ========================================================= */
.nl-body { color: var(--text); }
.nl-body p  { margin: 0 0 1rem; }
.nl-body h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.nl-body ul, .nl-body ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.nl-body li { margin-bottom: 0.3rem; }
.nl-body a  { color: var(--primary); text-decoration: underline; }
.nl-body strong { font-weight: 700; }
.nl-body em     { font-style: italic; }

/* =========================================================
   PROFILE COMPLETION MODAL (shown on any dashboard when
   DOB / sex are missing from sop_user_profile)
   ========================================================= */
.profile-modal-notice {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: #fbbf24;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  line-height: 1.5;
}
.profile-modal-notice i { flex-shrink: 0; margin-top: 2px; }
/* Make native date/select inputs look good in dark modal */
#profile-modal-dob,
#profile-modal-sex {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f8f9fa;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  width: 100%;
  font-size: 0.9rem;
}
#profile-modal-dob:focus,
#profile-modal-sex:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.25);
}
#profile-modal-sex option { background: #1a1d23; color: #f8f9fa; }

/* =========================================================
   ADMIN DASHBOARD — sidebar nav & stat cards
   ========================================================= */
.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}
.adm-nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.adm-nav-item.active {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  font-weight: 600;
}
.adm-nav-item i {
  width: 1.1em;
  text-align: center;
  flex-shrink: 0;
}

/* ── Stat cards ─────────────────────────────────────────── */
.adm-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  text-align: center;
  transition: background 0.15s;
}
.adm-stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
}
.adm-stat-val {
  font-size: 2rem;
  font-weight: 700;
  color: #f87171;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.adm-stat-lbl {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── FUNCTIONALITY TOOLTIPS (hover/focus only — never popups) ──
   A single body-level bubble positioned by app.js; body-level placement
   escapes navbar clipping and stacking contexts. Hidden on touch devices. */
.fn-tooltip {
  position: fixed;
  z-index: 9990;
  background: #0d1526;
  color: #f1f5f9;
  border: 1px solid rgba(48, 200, 214, 0.45);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: 250px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.fn-tooltip.show { opacity: 1; transform: translateY(0); }
@media (hover: none) { .fn-tooltip { display: none; } }
