/* ============================================================
   COMPLIANCE COLLEGE — Main Stylesheet
   Brand: Navy #2B3990 | Gray #888888 | Gold #E8A020
   ============================================================ */

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  --primary:        #2B3990;
  --primary-dark:   #1a2570;
  --primary-light:  #3d4fb5;
  --primary-xlight: #eef0f9;
  --gray:           #888888;
  --gray-mid:       #b0b0b0;
  --gray-light:     #f4f5f9;
  --gray-border:    #e2e4ee;
  --accent:         #E8A020;
  --accent-dark:    #c8861a;
  --accent-light:   #fff4e0;
  --success:        #22c55e;
  --danger:         #ef4444;
  --text:           #1a1d2e;
  --text-muted:     #6b7280;
  --white:          #ffffff;

  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading:   'Inter', sans-serif;

  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      32px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow:         0 4px 16px rgba(43,57,144,.10);
  --shadow-lg:      0 12px 40px rgba(43,57,144,.16);
  --shadow-xl:      0 24px 60px rgba(43,57,144,.20);

  --transition:     all .25s ease;
  --transition-fast: all .15s ease;

  --max-width:      1200px;
  --section-gap:    96px;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--text-muted); line-height: 1.75; }

.text-primary  { color: var(--primary); }
.text-accent   { color: var(--accent); }
.text-white    { color: var(--white); }
.text-muted    { color: var(--text-muted); }
.text-center   { text-align: center; }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-gap) 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 120px 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-xlight);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,160,32,.35);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43,57,144,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

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

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-icon { gap: 6px; }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.badge-primary   { background: var(--primary-xlight); color: var(--primary); }
.badge-accent    { background: var(--accent-light);   color: var(--accent-dark); }
.badge-success   { background: #dcfce7; color: #16a34a; }
.badge-fire      { background: #fff1ee; color: #c2410c; }
.badge-firstaid  { background: #fce7f3; color: #9d174d; }
.badge-env       { background: #f0fdf4; color: #15803d; }
.badge-quality   { background: #eff6ff; color: #1d4ed8; }
.badge-audit     { background: #faf5ff; color: #7e22ce; }
.badge-inspection{ background: #fff7ed; color: #c2410c; }
.badge-prodev    { background: #f0f9ff; color: #0369a1; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px auto;
}
.divider-left { margin-left: 0; }

/* ─── TOP BAR ────────────────────────────────────────────── */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar a { color: var(--accent); transition: var(--transition-fast); }
.top-bar a:hover { color: white; }
.top-bar-left, .top-bar-right { display: flex; gap: 20px; align-items: center; }

/* ─── HEADER / NAVBAR ────────────────────────────────────── */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-border);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.header .container {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img { height: 48px; width: auto; }
.logo-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: var(--primary-xlight); }
.nav-link.active { color: var(--primary); font-weight: 600; }

/* Dropdown */
.nav-item { position: relative; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  z-index: 100;
}
.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  color: var(--text);
  transition: var(--transition-fast);
}
.dropdown-link:hover { background: var(--primary-xlight); color: var(--primary); }
.dropdown-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 16px; }
.btn-login {
  padding: 9px 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: var(--transition-fast);
}
.btn-login:hover { background: var(--primary); color: white; }
.btn-register {
  padding: 9px 20px;
  font-size: .88rem;
  font-weight: 600;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  border: 1.5px solid var(--accent);
}
.btn-register:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #3d55c0 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: white;
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero h1 span { color: var(--accent); }
.hero-subtitle {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}
.hero-trust-item .check {
  width: 18px;
  height: 18px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: white;
  flex-shrink: 0;
}

/* Hero Right: Stats Card */
.hero-visual {
  position: relative;
}
.hero-stats-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hero-stat {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
}
.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat .num span { color: var(--accent); }
.hero-stat .label {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hero-discipline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.hero-pill {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── ACCREDITATION BAR ──────────────────────────────────── */
.accred-bar {
  background: var(--gray-light);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  padding: 20px 0;
}
.accred-bar .container {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.accred-bar .label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.accred-divider { width: 1px; height: 24px; background: var(--gray-border); flex-shrink: 0; }
.accred-logos { display: flex; gap: 32px; align-items: center; }
.accred-logo {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: .02em;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.accred-logo:hover { border-color: var(--primary); color: var(--primary); }

/* ─── DISCIPLINE GRID ────────────────────────────────────── */
.disciplines { background: var(--white); }
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.discipline-card {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.discipline-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  opacity: 0;
  transition: var(--transition);
}
.discipline-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.discipline-card:hover::before { opacity: 1; }

.disc-fire::before        { background: linear-gradient(90deg, #f97316, #ef4444); }
.disc-firstaid::before    { background: linear-gradient(90deg, #ec4899, #be185d); }
.disc-safety::before      { background: linear-gradient(90deg, #f59e0b, #d97706); }
.disc-env::before         { background: linear-gradient(90deg, #22c55e, #16a34a); }
.disc-quality::before     { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.disc-audit::before       { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.disc-inspection::before  { background: linear-gradient(90deg, #f97316, #ea580c); }
.disc-prodev::before      { background: linear-gradient(90deg, #0ea5e9, #0284c7); }

.disc-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  transition: var(--transition);
}
.disc-fire .disc-icon        { background: #fff1ee; }
.disc-firstaid .disc-icon    { background: #fce7f3; }
.disc-safety .disc-icon      { background: #fffbeb; }
.disc-env .disc-icon         { background: #f0fdf4; }
.disc-quality .disc-icon     { background: #eff6ff; }
.disc-audit .disc-icon       { background: #faf5ff; }
.disc-inspection .disc-icon  { background: #fff7ed; }
.disc-prodev .disc-icon      { background: #f0f9ff; }

.discipline-card:hover .disc-icon { transform: scale(1.1); }
.discipline-card h4 { margin-bottom: 8px; font-size: 1rem; }
.discipline-card p  { font-size: .82rem; line-height: 1.5; margin-bottom: 16px; }
.disc-count {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-xlight);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
}

/* ─── HOW IT WORKS ───────────────────────────────────────── */
.how-it-works { background: var(--primary-xlight); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 32px);
  right: calc(16.66% + 32px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.step-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.step-card p  { font-size: .9rem; }

/* ─── FEATURED COURSES ───────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.course-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.course-img-fire        { background: linear-gradient(135deg, #fff1ee, #fde8e0); }
.course-img-safety      { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.course-img-env         { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.course-img-quality     { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.course-img-firstaid    { background: linear-gradient(135deg, #fce7f3, #fce0f0); }
.course-img-audit       { background: linear-gradient(135deg, #faf5ff, #ede9fe); }

.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.course-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.course-body h4 { margin-bottom: 10px; font-size: 1rem; line-height: 1.4; }
.course-body p  { font-size: .85rem; margin-bottom: 16px; flex: 1; }

.course-details {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.course-detail {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--text-muted);
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-border);
}
.course-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}
.course-price span {
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ─── FOR COMPANIES ──────────────────────────────────────── */
.for-companies {
  background: linear-gradient(135deg, #f8f9ff 0%, #eef0fb 100%);
}
.for-companies .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.company-features { display: flex; flex-direction: column; gap: 24px; margin: 28px 0; }
.company-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--primary-xlight);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--primary);
}
.company-feature h4 { margin-bottom: 4px; font-size: .98rem; }
.company-feature p  { font-size: .85rem; line-height: 1.6; }

/* Compliance Matrix Preview */
.matrix-preview {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xl);
}
.matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-border);
}
.matrix-header h5 { font-size: .95rem; }
.matrix-score {
  background: var(--success);
  color: white;
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}
.matrix-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: .82rem;
}
.matrix-row:last-child { border-bottom: none; }
.matrix-name { flex: 1; font-weight: 500; }
.matrix-dots { display: flex; gap: 6px; }
.dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
}
.dot-green  { background: #dcfce7; color: #16a34a; }
.dot-amber  { background: #fef3c7; color: #d97706; }
.dot-red    { background: #fee2e2; color: #dc2626; }
.dot-gray   { background: var(--gray-light); color: var(--text-muted); }

/* ─── STATS STRIP ────────────────────────────────────────── */
.stats-strip {
  background: var(--primary);
  color: white;
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-item {}
.stat-num {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testimonials { background: var(--white); }
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 4rem;
  color: var(--primary-xlight);
  font-family: Georgia, serif;
  line-height: 1;
}
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: .9rem;
}
.testimonial-card p {
  font-size: .9rem;
  line-height: 1.75;
  margin-bottom: 20px;
  color: var(--text);
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-border);
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: .88rem; }
.author-role { font-size: .78rem; color: var(--text-muted); }

/* ─── NEWS SECTION ───────────────────────────────────────── */
.news { background: var(--gray-light); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.news-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.news-img-1 { background: linear-gradient(135deg, #fff1ee, #fde8e0); }
.news-img-2 { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.news-img-3 { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.news-body { padding: 20px; }
.news-date { font-size: .75rem; color: var(--text-muted); margin-bottom: 8px; }
.news-body h4 { font-size: .98rem; margin-bottom: 10px; line-height: 1.4; }
.news-body p  { font-size: .83rem; }
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .83rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 14px;
  transition: var(--transition-fast);
}
.news-link:hover { gap: 8px; }

/* ─── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #3d55c0 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: white; margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: #0f1524;
  color: rgba(255,255,255,.7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .logo img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: .87rem; line-height: 1.75; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: var(--transition-fast);
}
.social-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.footer-col h5 {
  color: white;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  font-size: .85rem;
  margin-bottom: 12px;
  align-items: flex-start;
}
.footer-contact-item .icon { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal {
  display: flex;
  gap: 20px;
  font-size: .78rem;
}
.footer-legal a {
  color: rgba(255,255,255,.45);
  transition: var(--transition-fast);
}
.footer-legal a:hover { color: var(--accent); }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.35); }

/* ─── COOKIE BANNER ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  z-index: 9999;
  transform: translateY(120px);
  opacity: 0;
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner h5 { margin-bottom: 8px; font-size: .95rem; }
.cookie-banner p  { font-size: .82rem; margin-bottom: 16px; }
.cookie-actions { display: flex; gap: 10px; }

/* ─── BACK TO TOP ────────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 999;
  border: none;
  font-size: 1rem;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ─── SCROLL ANIMATIONS ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── MOBILE NAV OVERLAY ─────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9990;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--gray-light);
  font-size: 1.05rem;
}
.mobile-nav-link:hover { background: var(--primary-xlight); color: var(--primary); }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.mobile-nav-actions .btn { width: 100%; justify-content: center; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .discipline-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 72px 0 60px; }
  .for-companies .container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-gap: 60px; }
  .nav, .nav-actions { display: none; }
  .menu-toggle { display: flex; }
  .discipline-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: 1fr; }
  .testimonials-track { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .accred-logos { gap: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .top-bar .container { justify-content: center; }
  .top-bar-left { display: none; }
}

@media (max-width: 480px) {
  .discipline-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Skip Navigation (Accessibility) ───────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  z-index: 9999;
  text-decoration: none;
  transition: top .2s;
}
.skip-nav:focus { top: 0; }

/* ─── Dark Mode Toggle Button ────────────────────────────── */
.dark-mode-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.dark-mode-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-xlight);
}

/* ─── Dark Mode ──────────────────────────────────────────── */
body.dark-mode {
  --primary:        #4f63cc;
  --primary-dark:   #3a4fa8;
  --primary-light:  #6478db;
  --primary-xlight: #1e2340;
  --gray:           #9ca3af;
  --gray-mid:       #6b7280;
  --gray-light:     #111827;
  --gray-border:    #2a2f45;
  --accent:         #f0aa30;
  --accent-dark:    #d4911e;
  --accent-light:   #2a2010;
  --success:        #34d399;
  --danger:         #f87171;
  --text:           #f1f5f9;
  --text-muted:     #94a3b8;
  --white:          #1a1f35;
  background: #0f1322;
  color: #f1f5f9;
}
body.dark-mode .header       { background: #13192e; border-bottom-color: #2a2f45; }
body.dark-mode .top-bar      { background: #0d1228; }
body.dark-mode .footer        { background: #0d1228; }
body.dark-mode .footer-bottom { background: #090d1e; }
body.dark-mode .mobile-nav    { background: #13192e; }
body.dark-mode .card,
body.dark-mode .course-card   { background: #1a1f35; border-color: #2a2f45; }
body.dark-mode .dark-mode-toggle {
  background: #1a1f35;
  border-color: #2a2f45;
  color: #f0aa30;
}
body.dark-mode .dark-mode-toggle:hover {
  background: #252b45;
  border-color: #f0aa30;
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: #252b45;
  border-color: #2a2f45;
  color: #f1f5f9;
}
body.dark-mode .faq-item,
body.dark-mode .sidebar-card  { background: #1a1f35; border-color: #2a2f45; }
body.dark-mode .filter-sidebar { background: #1a1f35; border-color: #2a2f45; }
body.dark-mode .cookie-banner  { background: #13192e; border-color: #2a2f45; }
body.dark-mode .page-hero::after,
body.dark-mode .hub-hero::after { background: #0f1322; }

/* ─── Print Stylesheet ───────────────────────────────────── */
@media print {
  .header, .top-bar, .footer, .footer-bottom,
  .cookie-banner, .back-top, .cta-banner,
  .mobile-nav, .nav-actions, .menu-toggle,
  .breadcrumb, .skip-nav, .dark-mode-toggle { display: none !important; }

  body { background: white !important; color: #000 !important; font-size: 12pt; }
  a { color: #000 !important; text-decoration: underline; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .section { padding: 20px 0 !important; }
  .page-hero { background: #2B3990 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card, .course-card { box-shadow: none !important; border: 1px solid #ccc !important; }
  .btn { border: 1px solid #000 !important; }

  /* Force page breaks */
  h2, h3 { page-break-after: avoid; }
  .faq-item, .card { page-break-inside: avoid; }
}
