/* ============================================
   LOCUS LEARN — Design System
   Font: Outfit (display) + DM Sans (body)
   Colors: Red #D32F2F, White, Near-black
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ---- Variables ---- */
:root {
  --red: #D32F2F;
  --red-dark: #B71C1C;
  --red-deeper: #7F0000;
  --red-mid: #C62828;
  --red-light: #FFCDD2;
  --red-faint: #FFF5F5;
  --white: #FFFFFF;
  --ink: #0D0D0D;
  --ink-light: #2D2D2D;
  --grey-50: #FAFAFA;
  --grey-100: #F5F5F5;
  --grey-200: #EEEEEE;
  --grey-300: #E0E0E0;
  --grey-500: #9E9E9E;
  --grey-600: #757575;
  --grey-700: #616161;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 68px;
  --max-w: 1200px;
  --section-py: 5rem;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-red: 0 4px 24px rgba(211,47,47,0.28);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  margin-top: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p { color: var(--grey-700); line-height: 1.75; }
.lead { font-size: 1.15rem; line-height: 1.7; }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
section { padding: var(--section-py) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.25rem; }
.gap-lg { gap: 2rem; }
.text-center { text-align: center; }
.mt-xs { margin-top: 0.5rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2rem; }
.mt-xl { margin-top: 3rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(211,47,47,0.38);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline:hover {
  background: var(--red-faint);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.btn-white:hover {
  background: var(--grey-100);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}
.badge-red { background: var(--red-faint); color: var(--red); }
.badge-grey { background: var(--grey-100); color: var(--grey-700); }
.badge-white { background: rgba(255,255,255,0.18); color: var(--white); }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.card-body {
  margin-top: 0; padding: 1.5rem; }

/* ---- Section Labels ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1.1rem; color: var(--grey-600); max-width: 580px; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  height: var(--nav-h);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 900;
}
.nav-logo span span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--grey-700);
  transition: all 0.18s;
}
.nav-links a:hover { color: var(--red); background: var(--red-faint); }
.nav-links a.active { color: var(--red); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================
   HERO
   ============================================ */
/* ── HERO — white background, red accents ── */
.hero {
  position: relative;
  padding: 4rem 0 3.5rem;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid #F0F0F0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0%, #FF5252 50%, var(--red-dark) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red-faint);
  border: 1px solid #FFCDD2;
  color: var(--red-dark);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub {
  color: var(--grey-700);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 2px solid #F0F0F0;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--red);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--grey-600);
  margin-top: 0.1rem;
}

/* Slideshow visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}
.hero-slideshow-wrap {
  position: relative;
  width: 520px;
  max-width: 100%;
}
#hero-slideshow {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(211,47,47,0.18), 0 8px 24px rgba(0,0,0,0.12);
  aspect-ratio: 4/3;
  background: #f5f5f5;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
#hero-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 1rem;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #E0E0E0;
  cursor: pointer;
  transition: all 0.2s;
}
.hero-dot.active { background: var(--red); width: 20px; border-radius: 4px; }

/* Floating info cards */
.hero-floating-card {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}
.hero-floating-card.card-1 { bottom: -1.5rem; left: -2.5rem; }
.hero-floating-card.card-2 { top: -1.25rem; right: -1.5rem; }
.hfc-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.hfc-icon.red { background: var(--red-faint); color: var(--red); font-weight: 800; }
.hfc-icon.green { background: #E8F5E9; color: #2E7D32; font-weight: 800; }
.hfc-title { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; color: var(--ink); }
.hfc-sub { font-size: 0.72rem; color: var(--grey-600); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-card-stack { position: relative; }

/* ============================================
   ICP SECTION
   ============================================ */
.icp-section { background: var(--grey-50); }
.icp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.icp-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1.5px solid var(--grey-200);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.icp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.icp-card:hover { border-color: var(--red-light); box-shadow: var(--shadow-card-hover); }
.icp-card:hover::before { transform: scaleX(1); }
.icp-icon {
  width: 52px; height: 52px;
  background: var(--red-faint);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.icp-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.icp-card p { font-size: 0.9rem; }
.icp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.icp-tag {
  background: var(--red-faint);
  color: var(--red-dark);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================
   OFFERINGS (2-COLUMN)
   ============================================ */
.offerings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.offering-block {
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.offering-block.comm {
  background: var(--red);
  color: white;
}
.offering-block.skills {
  background: var(--ink);
  color: white;
}
.offering-block h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}
.offering-block p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; }
.offering-list { display: flex; flex-direction: column; gap: 0.6rem; }
.offering-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
}
.offering-list li::before {
  content: '✓';
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.offering-icon {
  position: absolute;
  right: -1rem; bottom: -1rem;
  font-size: 8rem;
  opacity: 0.07;
  line-height: 1;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps { display: flex; gap: 0; margin-top: 3rem; }
.step {
  flex: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.step + .step::before {
  content: '→';
  position: absolute;
  left: -0.5rem; top: 2.2rem;
  font-size: 1.5rem;
  color: var(--grey-300);
}
.step-num {
  width: 52px; height: 52px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 auto 1rem;
}
.step h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.step p { font-size: 0.88rem; }

/* ============================================
   COURSE CARDS
   ============================================ */
.course-catalog { background: var(--grey-50); }
.courses-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--grey-300);
  color: var(--grey-700);
  background: var(--white);
  cursor: pointer;
  transition: all 0.18s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
}
/* ── Pricing strikethrough ── */
.price-orig {
  font-size: 0.82rem;
  color: var(--grey-500);
  text-decoration: line-through;
  margin-right: 0.25rem;
}
.price-now {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--red);
}
.price-badge {
  display: inline-block;
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* ── Course card image ── */
.course-thumb-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #F0F0F0;
}
.course-thumb-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.course-card:hover .course-thumb-img img { transform: scale(1.04); }
.course-cat-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: rgba(211,47,47,0.9);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.course-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.course-thumb.comm { background: linear-gradient(135deg, var(--red-faint), #FFE0E0); }
.course-thumb.skill { background: linear-gradient(135deg, #E8EAF6, #E3F2FD); }
.course-card-body {
  margin-top: 0; padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.course-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.course-dur {
  font-size: 0.78rem;
  color: var(--grey-500);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.course-card h4 { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.35; }
.course-card p { font-size: 0.85rem; color: var(--grey-600); flex: 1; margin-bottom: 1rem; }
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--grey-200);
  margin-top: auto;
}
.course-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.course-price small {
  font-size: 0.75rem;
  color: var(--grey-500);
  font-weight: 400;
  display: block;
  line-height: 1;
}

/* ============================================
   BOOTCAMP SECTION
   ============================================ */
.bootcamp-section {
  background: linear-gradient(135deg, var(--ink) 0%, #1a1a2e 100%);
  color: white;
}
.bootcamp-section .section-label { color: var(--red-light); }
.bootcamp-section h2, .bootcamp-section h3 { color: white; }
.bootcamp-section p { color: rgba(255,255,255,0.7); }
.bootcamp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 3rem; }
.bootcamp-weeks { display: flex; flex-direction: column; gap: 1rem; }
.bw-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}
.bw-num {
  width: 32px; height: 32px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}
.bw-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: white; margin-bottom: 0.25rem; }
.bw-desc { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.bootcamp-cta-card {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.bc-price-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bc-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.bc-price-usd { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.5); }
.bc-includes { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.7rem; }
.bc-include {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; color: rgba(255,255,255,0.82);
}
.bc-include-icon {
  width: 28px; height: 28px;
  background: rgba(211,47,47,0.25);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-list { display: flex; flex-direction: column; gap: 0; margin-top: 2.5rem; }
.news-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--grey-200);
  transition: background 0.18s;
  text-decoration: none;
  cursor: pointer;
}
.news-item:first-child { border-top: 1px solid var(--grey-200); }
.news-item:hover { background: var(--grey-50); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: var(--radius); }
.news-thumb {
  width: 120px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grey-200);
  object-fit: cover;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-content { flex: 1; }
.news-source-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}
.news-item h4 { font-size: 0.97rem; line-height: 1.4; margin-bottom: 0.5rem; color: var(--ink); }
.news-summary { font-size: 0.85rem; color: var(--grey-600); line-height: 1.6; }
.news-date { font-size: 0.75rem; color: var(--grey-500); margin-top: 0.5rem; }
.news-loading { text-align: center; padding: 3rem; color: var(--grey-500); }
.news-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--grey-200);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section { background: var(--red-faint); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.testi-stars { color: #FFA000; margin-bottom: 1rem; font-size: 0.9rem; }
.testi-text { font-size: 0.92rem; color: var(--grey-700); font-style: italic; margin-bottom: 1.25rem; line-height: 1.7; }
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
}
.testi-name { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.testi-role { font-size: 0.78rem; color: var(--grey-500); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--red);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { color: white; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { color: white; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-tagline {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.18s;
}
.footer-col ul a:hover { color: white; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: white; }
.powered-by {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.powered-by a { color: var(--red-light); }

/* ============================================
   FORMS & MODALS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 90%;
  max-width: 480px;
  transform: scale(0.95) translateY(10px);
  transition: all 0.25s var(--ease-spring);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grey-100);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.18s;
}
.modal-close:hover { background: var(--grey-200); }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.18s;
  background: var(--white);
}
.form-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(211,47,47,0.1);
}
.form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  appearance: none;
  cursor: pointer;
}

/* ============================================
   LMS STYLES
   ============================================ */
.lms-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - var(--nav-h));
}
.lms-sidebar {
  background: var(--grey-50);
  border-right: 1px solid var(--grey-200);
  overflow-y: auto;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
}
.lms-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--grey-200);
}
.lms-course-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.lms-progress-bar {
  height: 5px;
  background: var(--grey-200);
  border-radius: 3px;
  margin-top: 0.75rem;
}
.lms-progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 3px;
  transition: width 0.4s;
}
.lms-module-list { padding: 1rem; }
.lms-module-item {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  transition: all 0.18s;
  border: 1.5px solid transparent;
}
.lms-module-item:hover { background: var(--white); }
.lms-module-item.active {
  background: var(--red-faint);
  border-color: var(--red-light);
}
.lms-module-item.completed .mod-icon { background: #E8F5E9; color: #2E7D32; }
.mod-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--grey-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.mod-title { font-size: 0.88rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.mod-duration { font-size: 0.75rem; color: var(--grey-500); }
.lms-content { padding: 2.5rem; overflow-y: auto; }
.lms-content-header { margin-bottom: 2rem; }
.lms-content-body {
  margin-top: 0; max-width: 720px; }
.lms-text-content h2 { margin-bottom: 1rem; }
.lms-text-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; color: var(--red); font-size: 1.1rem; }
.lms-text-content p { margin-bottom: 1rem; }
.lms-text-content ul { margin: 0.75rem 0 1rem 1.5rem; }
.lms-text-content ul li { margin-bottom: 0.4rem; font-size: 0.95rem; color: var(--grey-700); }
.lms-text-content .highlight-box {
  background: var(--red-faint);
  border-left: 4px solid var(--red);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.lms-text-content .example-box {
  background: var(--grey-50);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
}
.lms-text-content .example-box strong { color: var(--red); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.lms-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-200);
}

/* Quiz styles */
.quiz-container { max-width: 680px; }
.quiz-header { margin-bottom: 2rem; }
.quiz-question {
  background: var(--grey-50);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.q-number { font-size: 0.78rem; color: var(--grey-500); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.5rem; }
.q-text { font-weight: 600; font-size: 1rem; margin-bottom: 1.25rem; }
.q-options { display: flex; flex-direction: column; gap: 0.6rem; }
.q-option {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--grey-300);
  cursor: pointer;
  font-size: 0.92rem;
  transition: all 0.18s;
  background: white;
}
.q-option:hover { border-color: var(--red); background: var(--red-faint); }
.q-option.selected { border-color: var(--red); background: var(--red-faint); color: var(--red-dark); font-weight: 600; }
.q-option.correct { border-color: #2E7D32; background: #E8F5E9; color: #1B5E20; }
.q-option.wrong { border-color: var(--red); background: #FFEBEE; color: var(--red-dark); }
.quiz-result {
  text-align: center;
  padding: 3rem 2rem;
}
.quiz-score {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 0.5rem;
}

/* Certificate */
.certificate-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--grey-50);
  padding: 2rem;
}
#certificate-canvas { display: none; }
.certificate-preview {
  background: white;
  box-shadow: 0 8px 48px rgba(0,0,0,0.15);
  border-radius: 4px;
  overflow: hidden;
  max-width: 800px;
  width: 100%;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  background: var(--ink);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: toast-in 0.3s var(--ease-spring);
  max-width: 340px;
}
.toast.success { background: #1B5E20; }
.toast.error { background: var(--red-dark); }
@keyframes toast-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================
   PAGE-SPECIFIC: COURSES
   ============================================ */
.courses-hero {
  background: linear-gradient(135deg, var(--ink) 0%, #1a1a2e 100%);
  padding: 4rem 0;
  text-align: center;
}
.courses-hero h1 { color: white; }
.courses-hero p { color: rgba(255,255,255,0.7); max-width: 540px; margin: 1rem auto 0; }

/* PAGE-SPECIFIC: NEWS */
.news-hero {
  background: var(--red);
  padding: 3rem 0;
}
.news-hero h1 { color: white; }
.news-hero p { color: rgba(255,255,255,0.8); }
.news-page-list { margin-top: 2rem; }
.news-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

/* ============================================
   UTILITIES
   ============================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none !important; }
.text-red { color: var(--red); }
.text-white { color: white; }
.text-muted { color: var(--grey-500); }
.divider { height: 1px; background: var(--grey-200); margin: 2rem 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .bootcamp-grid { grid-template-columns: 1fr; }
  .lms-layout { grid-template-columns: 260px 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }
  .nav-links, .nav-actions .btn:not(.nav-cta) { display: none; }
  .nav-menu-btn { display: flex; }
  .icp-grid, .courses-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .offerings-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step + .step::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .lms-layout { grid-template-columns: 1fr; }
  .lms-sidebar { position: fixed; left: -300px; top: 0; height: 100vh; z-index: 200; transition: left 0.3s; }
  .lms-sidebar.open { left: 0; }
}

@media (max-width: 560px) {
  .icp-grid, .courses-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .hero-ctas { flex-direction: column; }
}

.footer-social { display:flex; align-items:center; gap:.5rem; margin:.75rem 0; }
.footer-social a { color:#888; transition:color .15s; }
.footer-social a:hover { color:#D32F2F; }
