/* ============================================
   EDUPRO SMS — Shared Stylesheet
   Brand: Red #FF0527 | Black #000000 | White
   Font: Inter
   ============================================ */

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

:root {
  --red:        #FF0527;
  --red-dark:   #c8021e;
  --red-light:  #fff0f2;
  --black:      #000000;
  --dark:       #0f172a;
  --gray-900:   #111827;
  --gray-800:   #1f2937;
  --gray-700:   #374151;
  --gray-600:   #4b5563;
  --gray-500:   #6b7280;
  --gray-400:   #9ca3af;
  --gray-300:   #d1d5db;
  --gray-200:   #e5e7eb;
  --gray-100:   #f3f4f6;
  --gray-50:    #f9fafb;
  --white:      #ffffff;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --transition: all 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── TOPBAR — hidden ─── */
.topbar { display: none; }
.topbar-inner { display: none; }
.topbar a { display: none; }
.topbar-links { display: none; }

/* ─── NAVBAR ─── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  max-width: 160px;
  object-fit: contain;
}
.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow: visible;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.nav-link svg { width: 13px; height: 13px; opacity: 0.6; }
.nav-link:hover, .nav-link.active {
  background: var(--red-light);
  color: var(--red);
}
.nav-link .chevron {
  transition: transform 0.2s;
  opacity: 0.5;
}
.nav-item:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown a:hover { background: var(--red-light); color: var(--red); }
.dropdown a svg { width: 16px; height: 16px; color: var(--red); }
.dropdown-divider { height: 1px; background: var(--gray-200); margin: 6px 0; }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 720px;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
}
.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 14px;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mega-item:hover { background: var(--gray-50); }
.mega-item-icon {
  width: 36px;
  height: 36px;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.mega-item-icon svg { width: 18px; height: 18px; }
.mega-item-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
}
.mega-item-text span {
  font-size: 0.78rem;
  color: var(--gray-500);
}
.mega-code {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--red-light);
  color: var(--red);
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 4px;
}

/* Nav CTA */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}
.btn-nav-ghost {
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-nav-ghost:hover { background: var(--red-light); }
.btn-nav-solid {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: var(--red);
  border: 1.5px solid var(--red);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-nav-solid:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--gray-700);
  margin-left: auto;
}
.nav-hamburger svg { width: 24px; height: 24px; }

/* Mobile nav — slide-in drawer from right */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 948;
  backdrop-filter: blur(2px);
}
.mobile-nav-backdrop.open { display: block; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 92vw);
  background: var(--white);
  z-index: 950;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  box-shadow: -4px 0 32px rgba(0,0,0,.15);
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 2px solid var(--red);
  background: var(--gray-50);
}
.mobile-nav-close {
  background: var(--red-light);
  border: none;
  cursor: pointer;
  color: var(--red);
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.mobile-nav-close:hover { background: var(--red); color: #fff; }

.mobile-nav-body { padding: 12px 16px; flex: 1; overflow-y: auto; }
.mobile-nav-section { margin-bottom: 20px; }
.mobile-nav-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--red);
  margin-bottom: 8px;
  padding: 0 8px;
  border-left: 3px solid var(--red);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-left: 3px solid transparent;
  margin-bottom: 2px;
}
.mobile-nav-link:hover {
  background: var(--red-light);
  color: var(--red);
  border-left-color: var(--red);
  padding-left: 16px;
}

.mobile-nav-social {
  display: flex;
  gap: 10px;
  padding: 12px 8px 4px;
  flex-wrap: wrap;
}
.mobile-nav-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
  flex-shrink: 0;
}
.mobile-nav-social a:hover { background: var(--red); color: #fff; }
.mobile-nav-social svg { width: 16px; height: 16px; }

.mobile-nav-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 10px;
  background: var(--gray-50);
}
.mobile-nav-footer .btn-nav-ghost,
.mobile-nav-footer .btn-nav-solid { flex: 1; justify-content: center; font-size: 0.85rem; padding: 9px 10px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 40px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,5,39,0.3); }
.btn-white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--red); }
.btn-outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: var(--gray-800); border-color: var(--gray-800); transform: translateY(-1px); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 55%, #800015 100%);
  color: var(--white);
  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-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 span { color: rgba(255,255,255,0.75); font-weight: 400; }
.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  opacity: 0.92;
  max-width: 650px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat span { font-size: 0.85rem; opacity: 0.8; }

/* Hero layout with image side */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}
.hero-card:hover { background: rgba(255,255,255,0.18); transform: translateX(4px); }
.hero-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}
.hero-card-icon svg { width: 24px; height: 24px; }
.hero-card strong { display: block; font-size: 0.95rem; font-weight: 600; }
.hero-card span { font-size: 0.82rem; opacity: 0.8; }

/* ─── SECTION LAYOUT ─── */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-black { background: var(--black); color: var(--white); }
.section-red { background: var(--red); color: var(--white); }
.section-gray { background: var(--gray-50); }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-header.left { text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--red);
  background: var(--red-light);
  padding: 5px 14px;
  border-radius: 40px;
  margin-bottom: 14px;
}
.section-dark .eyebrow, .section-black .eyebrow { background: rgba(255,5,39,0.2); color: #ff6b81; }
h2.heading {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  color: var(--gray-900);
}
.section-dark h2.heading, .section-black h2.heading { color: var(--white); }
.sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}
.section-dark .sub, .section-black .sub { color: var(--gray-400); }
.section-header.left .sub { margin: 0; }

/* ─── BADGE / CHIPS ─── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-red { background: var(--red-light); color: var(--red); }
.badge-dark { background: var(--gray-800); color: var(--gray-300); }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-blue { background: #dbeafe; color: #1e40af; }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--red); transform: translateY(-2px); }
.card-accent { border-top: 4px solid var(--red); }
.card-body { padding: 28px; }
.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--gray-900); }
.card p { font-size: 0.93rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 14px; }
.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.card-link:hover { gap: 8px; }
.card-link svg { width: 14px; height: 14px; }

/* Module card specific */
.module-card .card-body { padding: 24px; }
.module-card .module-code {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-light);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.module-card .check-list { margin-top: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.check-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.5 11.5L3 8l1-1 2.5 2.5 5-5 1 1z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ─── GRIDS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid-modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 1024px) { .grid-modules { grid-template-columns: repeat(2, 1fr); } }

/* ─── BENEFITS BAR ─── */
.benefits-bar {
  background: var(--black);
  padding: 18px 0;
  border-bottom: 2px solid var(--gray-800);
}
.benefits-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  white-space: nowrap;
}
.benefit svg { color: var(--red); width: 18px; height: 18px; flex-shrink: 0; }

/* ─── WHY SECTION ─── */
.why-item {
  text-align: center;
  padding: 28px 24px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.why-item:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,5,39,0.4); }
.why-icon {
  width: 68px;
  height: 68px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: white;
}
.why-icon svg { width: 32px; height: 32px; }
.why-item h4 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.why-item p { font-size: 0.9rem; color: var(--gray-400); line-height: 1.65; }

/* ─── STEPS ─── */
.steps { counter-reset: step; }
.step-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
  counter-increment: step;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 52px;
  height: 52px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}
.step-content h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--gray-900); }
.step-content p { font-size: 0.93rem; color: var(--gray-600); line-height: 1.6; }

/* ─── TABS ─── */
.tabs { border-bottom: 2px solid var(--gray-200); display: flex; gap: 4px; overflow-x: auto; margin-bottom: 32px; }
.tab-btn {
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--gray-900); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── SUBJECTS TABLE ─── */
.subject-section { margin-bottom: 40px; }
.subject-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  padding: 10px 16px;
  background: var(--red);
  color: white;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  padding: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.subject-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}
.subject-chip:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.subject-chip svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }

/* ─── FEATURE LIST ─── */
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--red);
  transition: var(--transition);
}
.feature-row:hover { background: var(--red-light); }
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-text strong { display: block; font-size: 0.95rem; font-weight: 600; color: var(--gray-900); margin-bottom: 3px; }
.feature-text span { font-size: 0.88rem; color: var(--gray-500); }

/* ─── CURRICULUM BADGE ─── */
.curriculum-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid;
  margin: 3px;
}
.curriculum-badge.zimsec { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.curriculum-badge.cambridge { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* ─── CALLOUT ─── */
.callout {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.callout p { font-size: 0.93rem; line-height: 1.6; }
.callout-info { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.callout-success { background: #f0fdf4; border-color: #22c55e; color: #15803d; }
.callout-warn { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.callout-red { background: var(--red-light); border-color: var(--red); color: var(--red-dark); }

/* ─── MODULE PAGE HERO ─── */
.module-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray-800) 100%);
  color: var(--white);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.module-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.08;
}
.module-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 18px;
}
.module-hero-breadcrumb a { color: var(--gray-400); transition: var(--transition); }
.module-hero-breadcrumb a:hover { color: var(--white); }
.module-hero-breadcrumb svg { width: 12px; height: 12px; }
.module-hero-icon {
  width: 72px;
  height: 72px;
  background: var(--red);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
}
.module-hero-icon svg { width: 36px; height: 36px; }
.module-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.module-hero p {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 28px;
}
.module-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.module-tag {
  padding: 5px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-300);
}

/* ─── DOCS ─── */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.docs-sidebar {
  position: sticky;
  top: 90px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.docs-sidebar-section { margin-bottom: 22px; }
.docs-sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.docs-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.docs-sidebar-link:hover, .docs-sidebar-link.active { background: var(--red-light); color: var(--red); }
.docs-content h2 { font-size: 1.6rem; font-weight: 700; margin: 36px 0 14px; color: var(--gray-900); }
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; color: var(--gray-800); }
.docs-content p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 14px; }
.docs-content ul, .docs-content ol { padding-left: 20px; margin-bottom: 14px; }
.docs-content li { font-size: 0.95rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 6px; }
.docs-content code {
  background: var(--gray-100);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  color: var(--red);
}

/* ─── GETTING STARTED ─── */
.gs-phase {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.gs-phase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.gs-phase-num {
  width: 44px;
  height: 44px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.gs-phase-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.gs-phase-header span { font-size: 0.83rem; color: var(--gray-500); }
.gs-phase-body { padding: 24px; }
.gs-step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.gs-step:last-child { border-bottom: none; padding-bottom: 0; }
.gs-step-icon {
  width: 36px;
  height: 36px;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.gs-step-icon svg { width: 18px; height: 18px; }
.gs-step strong { display: block; font-size: 0.93rem; font-weight: 600; color: var(--gray-900); margin-bottom: 3px; }
.gs-step p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.55; margin: 0; }

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  color: var(--white);
  border-top: 3px solid var(--red);
}
.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 32px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.footer-brand h3 span { color: var(--red); }
.footer-brand p { font-size: 0.9rem; color: var(--gray-400); line-height: 1.65; margin-bottom: 20px; max-width: 320px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-400);
}
.footer-contact-item svg { color: var(--red); flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; }
.footer-contact-item a { color: var(--gray-300); transition: var(--transition); }
.footer-contact-item a:hover { color: var(--red); }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-400); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.9rem; color: var(--gray-400); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-links a svg { width: 12px; height: 12px; color: var(--red); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 20px 32px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--gray-500);
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: var(--gray-500); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  padding: 4px 10px;
  border: 1px solid var(--gray-700);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
}

/* ─── PAGE HEADER ─── */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
  color: white;
  padding: 56px 0 48px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--gray-400); transition: var(--transition); }
.breadcrumb a:hover { color: white; }
.breadcrumb svg { width: 12px; height: 12px; }
.page-header h1 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.page-header p { font-size: 1.05rem; color: var(--gray-400); max-width: 580px; line-height: 1.65; }

/* ─── CURRICULUM TOGGLE ─── */
.curr-toggle {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: 40px;
  padding: 4px;
  gap: 4px;
}
.curr-btn {
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 36px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  color: var(--gray-600);
  background: transparent;
}
.curr-btn.active { background: var(--white); color: var(--red); box-shadow: var(--shadow-sm); }

/* ─── MISC ─── */
.divider { height: 1px; background: var(--gray-200); margin: 40px 0; }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-gray { color: var(--gray-500); }
.font-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }

/* ─── CTA SECTION ─── */
.cta-section {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, #7a0012 100%);
  color: white;
  text-align: center;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.cta-section p { font-size: 1.05rem; opacity: 0.9; max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── ONLINE/OFFLINE INDICATOR ─── */
.mode-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 600;
}
.mode-online { background: #d1fae5; color: #065f46; }
.mode-offline { background: #f3f4f6; color: #374151; }
.mode-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.mode-online .mode-dot { background: #22c55e; }
.mode-offline .mode-dot { background: #9ca3af; animation: none; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 52px 0; }
  .hero-inner { padding: 60px 20px; }
  .grid-2, .grid-3, .grid-4, .grid-modules { grid-template-columns: 1fr; }
  .benefits-inner { gap: 20px; justify-content: flex-start; flex-direction: column; padding: 0 20px; }
  .footer-main { grid-template-columns: 1fr; padding: 40px 20px 32px; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; text-align: center; }
  h2.heading { font-size: 1.7rem; }
  .hero h1 { font-size: 2rem; }
  .nav-inner { padding: 0 20px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ─── FOCUS ACCESSIBILITY ─── */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ─── SCROLL TO TOP ─── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--red-dark); transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; }
