/* ============================================================
   NUMIFY ACADEMY — styles.css
   Design System: Deep Navy + Electric Blue + Emerald
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  /* Brand Colors */
  --navy:       #0F172A;
  --navy-800:   #1E293B;
  --navy-700:   #334155;
  --navy-600:   #475569;
  --blue:       #2563EB;
  --blue-600:   #1D4ED8;
  --blue-400:   #60A5FA;
  --blue-50:    #EFF6FF;
  --white:      #FFFFFF;
  --silver:     #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-400:   #94A3B8;
  --gray-500:   #64748B;
  --emerald:    #10B981;
  --emerald-600:#059669;
  --amber:      #F59E0B;
  --purple:     #7C3AED;
  --red:        #EF4444;

  /* Gradients */
  --grad-blue:  linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --grad-hero:  linear-gradient(135deg, #0F172A 0%, #1E3A8A 60%, #0F172A 100%);

  /* Typography */
  --font:       'Plus Jakarta Sans', system-ui, sans-serif;
  --size-xs:    0.75rem;
  --size-sm:    0.875rem;
  --size-base:  1rem;
  --size-lg:    1.125rem;
  --size-xl:    1.25rem;
  --size-2xl:   1.5rem;
  --size-3xl:   1.875rem;
  --size-4xl:   2.25rem;
  --size-5xl:   3rem;
  --size-6xl:   3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.12);
  --shadow-xl:   0 20px 60px rgba(0,0,0,.18);
  --shadow-blue: 0 8px 32px rgba(37,99,235,.35);
  --shadow-emerald: 0 8px 32px rgba(16,185,129,.25);

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --trans-fast: 150ms var(--ease);
  --trans-base: 250ms var(--ease);
  --trans-slow: 400ms var(--ease);

  /* Layout */
  --max-w: 1200px;
  --nav-h: 80px;
}

/* ── 2. RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

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

/* ── 3. UTILITIES ─────────────────────────────────────────── */
.container {
  width: min(var(--max-w), 100% - var(--space-8));
  margin-inline: auto;
}

.gradient-text {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding-block: var(--space-24);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-50);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(37,99,235,.15);
}

.section-eyebrow.light { color: var(--blue-400); background: rgba(37,99,235,.12); border-color: rgba(96,165,250,.2); }

.section-header h2 {
  font-size: clamp(var(--size-3xl), 4vw, var(--size-5xl));
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: var(--size-lg);
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── 4. BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--size-sm);
  transition: all var(--trans-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--trans-fast);
}

.btn:hover::after { opacity: .06; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-600);
  box-shadow: 0 12px 40px rgba(37,99,235,.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
}

.btn-emerald {
  background: var(--emerald);
  color: var(--white);
  box-shadow: var(--shadow-emerald);
}

.btn-emerald:hover {
  background: var(--emerald-600);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(16,185,129,.4);
}

.btn-ghost {
  color: var(--gray-500);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
}

.btn-ghost:hover { border-color: var(--navy-700); color: var(--navy); background: var(--silver); }

.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--size-base); }
.btn-full { width: 100%; justify-content: center; }

/* Loader state */
.btn .btn-loader {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.loading .btn-text, .btn.loading .btn-arrow { display: none; }
.btn.loading .btn-loader { display: block; }
.btn.loading { pointer-events: none; }

/* ── 5. NAVBAR ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--trans-base), box-shadow var(--trans-base), backdrop-filter var(--trans-base);
}

.navbar.scrolled {
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 24px rgba(0,0,0,.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  height: 100%;
  width: min(var(--max-w), 100% - var(--space-8));
  margin-inline: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: opacity var(--trans-fast);
}

.nav-logo:hover { opacity: .85; }

.logo-text {
  font-size: var(--size-xl);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-accent { color: var(--blue-400); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  color: rgba(255,255,255,.75);
  font-size: var(--size-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-cta { font-size: var(--size-sm) !important; }

/* ── NAVBAR LOGO ──────────────────────────────────────────
   The logo has a white background so we display it inside a
   frosted white pill. This preserves brand colours (dark navy
   + blue) and makes the logo clearly legible on the dark navbar. */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  display: block;
  height: auto;
  width: 160px;               /* wide enough to read "NUMIFY ACADEMY" */
  max-width: 160px;
  object-fit: contain;
  border-radius: 8px;
  /* White pill so original colours read on dark navbar */
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  filter: none;               /* NO invert — show real brand colours */
  transition: box-shadow var(--trans-fast), transform var(--trans-fast);
}

.nav-logo:hover .nav-logo-img {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* Tablet */
@media (max-width: 768px) {
  .nav-logo-img {
    width: 140px;
    padding: 4px 8px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .nav-logo-img {
    width: 120px;
    padding: 4px 7px;
  }
}

/* ── FOOTER LOGO ──────────────────────────────────────────
   Same pill treatment, wider for the footer brand block.      */
.footer-logo-link {
  display: inline-block;
  margin-bottom: var(--space-4);
}

.footer-logo-img {
  display: block;
  height: auto;
  width: 180px;
  max-width: 180px;
  object-fit: contain;
  border-radius: 8px;
  /* White pill — same treatment as navbar */
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  filter: none;
  opacity: 1;
  transition: box-shadow var(--trans-fast), transform var(--trans-fast);
}

.footer-logo-link:hover .footer-logo-img {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Platform card real logo image sizing */
.platform-icon-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
}

.platform-icon-img img {
  width: auto;
  max-width: 110px;
  max-height: 68px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

/* Override themed backgrounds for real logos — neutral white pill */
.zoho-theme  { background: rgba(255,255,255,0.9); border: 1.5px solid rgba(0,0,0,.07); border-radius: var(--radius-lg); }
.odoo-theme  { background: rgba(255,255,255,0.9); border: 1.5px solid rgba(0,0,0,.07); border-radius: var(--radius-lg); }
.xero-theme  { background: rgba(19,181,234,.08); }
.qb-theme    { background: rgba(44,160,28,.08);  }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--trans-fast);
}

.hamburger:hover { background: rgba(255,255,255,.08); }

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--trans-base);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(15,23,42,.97);
  backdrop-filter: blur(24px);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--trans-slow);
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-menu .nav-link {
  font-size: var(--size-lg);
  padding: var(--space-4);
  display: block;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.8);
}

.mobile-menu .btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-4);
}

/* ── 6. HERO ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--nav-h) + var(--space-16)) var(--space-24);
  overflow: hidden;
}

/* Animated background */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.p1 { width: 400px; height: 400px; top: -10%; left: -8%; background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%); animation-delay: 0s; }
.p2 { width: 300px; height: 300px; top: 20%; right: 5%; background: radial-gradient(circle, rgba(124,58,237,.15) 0%, transparent 70%); animation-delay: -2s; }
.p3 { width: 250px; height: 250px; bottom: 10%; left: 20%; background: radial-gradient(circle, rgba(16,185,129,.1) 0%, transparent 70%); animation-delay: -4s; }
.p4 { width: 200px; height: 200px; bottom: 30%; right: 15%; background: radial-gradient(circle, rgba(245,158,11,.08) 0%, transparent 70%); animation-delay: -1s; }
.p5 { width: 180px; height: 180px; top: 50%; left: 40%; background: radial-gradient(circle, rgba(37,99,235,.1) 0%, transparent 70%); animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.05); }
  66%       { transform: translate(-15px, 15px) scale(0.98); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
  width: min(var(--max-w), 100% - var(--space-8));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 580px; }

.hero-eyebrow { margin-bottom: var(--space-6); }

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.3);
  border-radius: var(--radius-full);
  color: var(--blue-400);
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--emerald); }
  50%       { box-shadow: 0 0 14px var(--emerald), 0 0 20px rgba(16,185,129,.4); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, var(--size-6xl));
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--size-lg);
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  margin-bottom: var(--space-10);
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,.85);
  font-size: var(--size-xs);
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all var(--trans-base);
}

.trust-badge:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.25);
}

.badge-icon { color: var(--emerald); display: flex; }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-card-stack { position: relative; width: 100%; max-width: 560px; }

.hero-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 80px rgba(37,99,235,.25);
  border: 1px solid rgba(255,255,255,.08);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,.9);
  animation: levitate 4s ease-in-out infinite;
}

.fc-1 {
  bottom: -24px;
  left: -32px;
  min-width: 200px;
  animation-delay: 0s;
}

.fc-2 {
  top: -20px;
  right: -24px;
  min-width: 180px;
  animation-delay: -2s;
}

.fc-3 {
  top: 45%;
  left: -36px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--size-xs);
  font-weight: 700;
  color: var(--navy);
  padding: var(--space-3) var(--space-4);
  animation-delay: -1s;
}

@keyframes levitate {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.fc-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--size-xs);
  font-weight: 700;
  color: var(--navy-800);
}

.fc-dot { width: 8px; height: 8px; border-radius: 50%; }
.fc-dot.green { background: var(--emerald); box-shadow: 0 0 8px rgba(16,185,129,.6); }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
  margin-bottom: var(--space-3);
}

.bar {
  flex: 1;
  height: var(--h);
  background: var(--blue-400);
  border-radius: 3px 3px 0 0;
  opacity: .5;
  transition: height var(--trans-slow);
}

.bar.active { opacity: 1; background: var(--blue); }

.fc-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label { font-size: var(--size-xs); color: var(--gray-400); }
.stat-value { font-size: var(--size-sm); font-weight: 800; }
.green-text { color: var(--emerald); }

.platform-logos-mini {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

/* Hero floating card — real platform logo chips */
.pm-logo-img-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  flex-shrink: 0;
}

/* Zoho & Odoo need a touch more padding since logos have whitespace */
.pm-logo-img-wrap.zoho-wrap,
.pm-logo-img-wrap.odoo-wrap {
  padding: 3px;
}

.pm-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fc-label {
  font-size: var(--size-xs);
  font-weight: 700;
  color: var(--navy-800);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,.4);
  font-size: var(--size-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.4));
  order: -1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── 7. ABOUT ─────────────────────────────────────────────── */
.about-section { background: var(--silver); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.about-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all var(--trans-base);
}

.about-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: clamp(var(--size-3xl), 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label { font-size: var(--size-sm); font-weight: 600; color: var(--gray-500); }

/* ── 8. PLATFORMS ────────────────────────────────────────── */
.platforms-section { background: var(--white); }

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.platform-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
}

.platform-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--trans-base);
  background: linear-gradient(135deg, rgba(37,99,235,.04) 0%, rgba(124,58,237,.04) 100%);
}

.platform-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--blue);
  transform: translateY(-4px);
}

.platform-card:hover::before { opacity: 1; }

.platform-logo-wrap {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
}

.xero-theme  { background: rgba(19,181,234,.1); }
.zoho-theme  { background: rgba(232,39,29,.1); }
.odoo-theme  { background: rgba(113,75,103,.1); }
.qb-theme    { background: rgba(44,160,28,.1); }

.platform-name {
  font-size: var(--size-xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--space-1);
}

.platform-tag {
  display: inline-block;
  font-size: var(--size-xs);
  font-weight: 600;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--blue-50);
  color: var(--blue);
  margin-bottom: var(--space-3);
}

.platform-desc {
  font-size: var(--size-sm);
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.platform-skills {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.platform-skills li {
  font-size: var(--size-sm);
  color: var(--navy-700);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.platform-skills li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

/* ── 9. CURRICULUM ───────────────────────────────────────── */
.curriculum-section { background: var(--navy); }

.curriculum-section .section-header h2 { color: var(--white); }
.curriculum-section .section-desc { color: rgba(255,255,255,.55); }
.curriculum-section .section-eyebrow { color: var(--blue-400); background: rgba(37,99,235,.15); border-color: rgba(96,165,250,.2); }

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.curriculum-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
}

.curriculum-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--icon-color, var(--blue)), transparent);
  opacity: 0;
  transition: opacity var(--trans-base);
}

.curriculum-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.curriculum-card:hover::after { opacity: 1; }

.curr-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--icon-color, var(--blue)) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color, var(--blue));
  margin-bottom: var(--space-4);
}

.curr-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,.04);
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-6);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.curr-title {
  font-size: var(--size-base);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

.curr-desc {
  font-size: var(--size-sm);
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.curr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.ctag {
  font-size: var(--size-xs);
  font-weight: 600;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.08);
}

/* Institutions Photo Layout */
.inst-photo-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(37,99,235,.2);
  border: 2px solid rgba(255,255,255,.07);
}

.inst-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(.92) saturate(1.05);
  transition: filter var(--trans-slow), transform var(--trans-slow);
}

.inst-photo-wrap:hover .inst-photo {
  filter: brightness(1) saturate(1.15);
  transform: scale(1.02);
}

/* Floating overlays on photo */
.inst-photo-badge {
  position: absolute;
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  animation: levitate 4s ease-in-out infinite;
}

.ib-stat {
  bottom: 24px;
  left: 24px;
  background: rgba(15,23,42,.85);
  border: 1px solid rgba(255,255,255,.12);
  padding: var(--space-4) var(--space-5);
  min-width: 160px;
  animation-delay: 0s;
}

.ib-stat .sm-number { font-size: 1.75rem; font-weight: 900; color: var(--white); letter-spacing: -.03em; }
.ib-stat .sm-label  { font-size: var(--size-xs); color: rgba(255,255,255,.55); margin-bottom: var(--space-2); }
.ib-stat .sm-bar-container { height: 5px; background: rgba(255,255,255,.1); border-radius: var(--radius-full); overflow: hidden; }
.ib-stat .sm-bar { height: 100%; border-radius: var(--radius-full); }

.ib-naac {
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,.9);
  border: 1.5px solid rgba(37,99,235,.15);
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--size-xs);
  font-weight: 700;
  color: var(--navy);
  animation-delay: -2s;
}

.ib-active {
  top: 20px;
  left: 20px;
  background: rgba(15,23,42,.85);
  border: 1px solid rgba(16,185,129,.25);
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--size-xs);
  font-weight: 700;
  color: var(--emerald);
  animation-delay: -1s;
}

/* ── 10b. INSTITUTIONS LAYOUT (update visual width) ─ */
.inst-layout { align-items: start; }


.institutions-section { background: var(--navy-800); }

.inst-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.inst-title {
  font-size: clamp(var(--size-2xl), 3.5vw, var(--size-5xl));
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.inst-desc {
  font-size: var(--size-lg);
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  margin-bottom: var(--space-10);
}

.inst-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.inst-benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
}

.ib-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inst-benefit h4 {
  font-size: var(--size-base);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-1);
}

.inst-benefit p {
  font-size: var(--size-sm);
  color: rgba(255,255,255,.5);
  line-height: 1.7;
}

.inst-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Showcase Cards */
.inst-visual { position: relative; }

.inst-card-showcase { position: relative; height: 400px; }

.showcase-card {
  position: absolute;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transition: transform var(--trans-slow);
}

.sc-primary {
  width: 280px;
  top: 20px; left: 20px;
  padding: var(--space-6);
  animation: levitate 5s ease-in-out infinite;
}

.sc-secondary {
  width: 180px;
  bottom: 40px; right: 0;
  padding: var(--space-5);
  animation: levitate 4s ease-in-out infinite;
  animation-delay: -2s;
}

.sc-tertiary {
  top: 0; right: 30px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-size: var(--size-xs);
  font-weight: 700;
  color: var(--white);
  animation: levitate 6s ease-in-out infinite;
  animation-delay: -1s;
}

.sc-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.sc-title { font-size: var(--size-sm); font-weight: 700; color: var(--white); }
.sc-sub   { font-size: var(--size-xs); color: rgba(255,255,255,.5); }

.sc-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin-bottom: var(--space-4);
}

.sc-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.sc-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--size-xs);
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

.sc-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.25);
  color: var(--emerald);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--size-xs);
  font-weight: 700;
}

.green-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

.sm-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
}

.sm-label { font-size: var(--size-xs); color: rgba(255,255,255,.5); margin-bottom: var(--space-3); }

.sm-bar-container {
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sm-bar {
  height: 100%;
  border-radius: var(--radius-full);
  animation: grow-bar 2s ease-out 1s both;
}

@keyframes grow-bar {
  from { width: 0 !important; }
}

/* ── 11. OUTCOMES ────────────────────────────────────────── */
.outcomes-section { background: var(--silver); }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.outcome-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  position: relative;
  transition: all var(--trans-base);
}

.outcome-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.outcome-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--size-xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-4);
}

.outcome-quote {
  font-size: var(--size-sm);
  color: var(--navy-700);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: var(--space-5);
  position: relative;
}

.outcome-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--blue);
  opacity: .15;
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  font-style: normal;
  line-height: 1;
}

.outcome-meta strong {
  display: block;
  font-size: var(--size-sm);
  font-weight: 700;
  color: var(--navy);
}

.outcome-meta span {
  font-size: var(--size-xs);
  color: var(--gray-400);
}

.outcome-tag {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-size: var(--size-xs);
  font-weight: 700;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--emerald);
  color: white;
}

/* Role Tags */
.role-outcomes { text-align: center; }

.role-title {
  font-size: var(--size-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-6);
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.role-tag {
  font-size: var(--size-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--navy-700);
  transition: all var(--trans-base);
  cursor: default;
}

.role-tag:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  transform: scale(1.05);
  box-shadow: var(--shadow-blue);
}

/* ── 12. INQUIRY FORM ─────────────────────────────────────── */
.inquiry-section { background: var(--white); }

.form-wrapper {
  max-width: 760px;
  margin-inline: auto;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

/* Tabs */
.form-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1.5px solid var(--gray-200);
}

.form-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--gray-400);
  background: var(--silver);
  transition: all var(--trans-base);
  border-bottom: 3px solid transparent;
  position: relative;
}

.form-tab:hover { color: var(--navy); background: var(--gray-200); }

.form-tab.active {
  color: var(--blue);
  background: var(--white);
  border-bottom-color: var(--blue);
}

/* Form Panels */
.form-panel { display: none; padding: var(--space-10); }
.form-panel.active { display: block; }

/* Form Fields */
.inquiry-form { display: flex; flex-direction: column; gap: var(--space-5); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--navy-800);
}

.required { color: var(--red); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--size-sm);
  color: var(--navy);
  background: var(--white);
  transition: all var(--trans-base);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.field-error {
  font-size: var(--size-xs);
  color: var(--red);
  font-weight: 500;
  min-height: 16px;
  display: block;
}

/* ── 13. FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding-top: var(--space-20);
}

.footer-container {
  width: min(var(--max-w), 100% - var(--space-8));
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo .logo-text { color: var(--white); }
.footer-tagline {
  color: rgba(255,255,255,.4);
  font-size: var(--size-sm);
  margin-top: var(--space-2);
  margin-bottom: var(--space-5);
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: all var(--trans-base);
}

.social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.footer-links-group h4 {
  font-size: var(--size-sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-links-group ul { display: flex; flex-direction: column; gap: var(--space-3); }

.footer-links-group a {
  font-size: var(--size-sm);
  color: rgba(255,255,255,.45);
  transition: color var(--trans-fast);
}

.footer-links-group a:hover { color: var(--white); }

.footer-contact h4 {
  font-size: var(--size-sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--size-sm);
  color: rgba(255,255,255,.45);
  margin-bottom: var(--space-3);
}

.footer-contact a { color: rgba(255,255,255,.45); transition: color var(--trans-fast); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  padding-block: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: center;
}

.copyright { font-size: var(--size-sm); color: rgba(255,255,255,.4); }

.disclaimer {
  font-size: var(--size-xs);
  color: rgba(255,255,255,.25);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.7;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
}

.footer-legal-links a {
  font-size: var(--size-xs);
  color: rgba(255,255,255,.3);
  transition: color var(--trans-fast);
}

.footer-legal-links a:hover { color: rgba(255,255,255,.7); }

/* ── 14. MODAL ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15,23,42,.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: flex !important;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  max-width: 580px;
  width: 100%;
  position: relative;
  transform: scale(.95) translateY(15px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--silver);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}

.modal-close:hover { background: var(--gray-200); color: var(--navy); }

.modal-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-xl);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.modal-content h3 {
  font-size: var(--size-2xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.modal-content > p {
  font-size: var(--size-sm);
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.mou-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.mou-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--size-sm);
  color: var(--navy-700);
  font-weight: 500;
}

/* ── 15. TOAST ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 3000;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1.5px solid var(--gray-200);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  min-width: 300px;
  max-width: 380px;
  transform: translateX(calc(100% + var(--space-8)));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show { transform: translateX(0); }

.toast-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: rgba(16,185,129,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-body { flex: 1; }
.toast-body strong { display: block; font-size: var(--size-sm); font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.toast-body span  { font-size: var(--size-xs); color: var(--gray-500); }

.toast-close {
  color: var(--gray-400);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
}

.toast-close:hover { color: var(--navy); background: var(--silver); }

/* ── 16. ANIMATION STATES ─────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate="fade-left"]  { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }

[data-animate].visible {
  opacity: 1;
  transform: translate(0);
}

/* ── 17. SPIN ────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 18. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .curriculum-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-grid        { grid-template-columns: repeat(2, 1fr); }
  .footer-top        { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .inst-layout       { gap: var(--space-10); }
  .hero-container    { gap: var(--space-10); }
}

@media (max-width: 900px) {
  .hero-container    { grid-template-columns: 1fr; text-align: center; }
  .hero-content      { max-width: 100%; }
  .hero-ctas         { justify-content: center; }
  .trust-badges      { justify-content: center; }
  .hero-eyebrow      { display: flex; justify-content: center; }
  .hero-visual       { display: none; }
  .inst-layout       { grid-template-columns: 1fr; }
  .inst-visual       { display: none; }
  .platforms-grid    { grid-template-columns: 1fr; }
  .outcomes-grid     { grid-template-columns: 1fr; }
  .nav-links         { display: none; }
  .nav-cta           { display: none; }
  .hamburger         { display: flex; }
  .platform-card     { grid-template-columns: auto 1fr; }
}

@media (max-width: 640px) {
  :root { --space-24: 4rem; }
  .curriculum-grid   { grid-template-columns: 1fr; }
  .about-grid        { grid-template-columns: 1fr 1fr; }
  .form-row          { grid-template-columns: 1fr; }
  .form-panel        { padding: var(--space-6); }
  .footer-top        { grid-template-columns: 1fr; }
  .footer-legal-links { flex-direction: column; align-items: center; gap: var(--space-2); }
  .hero-title        { font-size: 2.25rem; }
  .toast             { right: var(--space-4); bottom: var(--space-4); min-width: auto; max-width: calc(100vw - 2rem); }
  .inst-cta-group    { flex-direction: column; }
  .inst-cta-group .btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .about-grid { grid-template-columns: 1fr; }
  .hero-ctas  { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}

/* ── 19. USER PROFILE & UNIFIED AUTH STYLES ───────────────── */
.user-menu-container {
  position: relative;
  display: inline-block;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #10B981);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  color: #0F172A;
  min-width: 260px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  border: 1px solid #E2E8F0;
  padding: 12px;
  display: none;
  z-index: 1100;
  animation: fadeIn 0.2s ease-out;
}

.user-dropdown-menu.show {
  display: block;
}

.user-dropdown-header {
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
}

.user-dropdown-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0F172A;
}

.user-dropdown-email {
  font-size: 0.8rem;
  color: #64748B;
  word-break: break-all;
}

.user-role-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-registered {
  background: #FEF3C7;
  color: #D97706;
}

.badge-enrolled {
  background: #D1FAE5;
  color: #059669;
}

.badge-admin {
  background: #DBEAFE;
  color: #1D4ED8;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  text-align: left;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: none;
}

.user-dropdown-item:hover {
  background: #F8FAFC;
  color: #2563EB;
}

.user-dropdown-item.logout {
  color: #EF4444;
  border-top: 1px solid #F1F5F9;
  margin-top: 6px;
  padding-top: 10px;
}

.user-dropdown-item.logout:hover {
  background: #FEF2F2;
  color: #DC2626;
}

/* ── 20. COURSE CARD ENROLL BUTTONS ───────────────────────── */
.platform-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.btn-course-enroll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #2563EB;
  color: white;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
  font-family: inherit;
}

.btn-course-enroll:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.btn-course-enrolled {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #D1FAE5;
  color: #059669;
  border: 1.5px solid #A7F3D0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-course-enrolled:hover {
  background: #10B981;
  color: white;
  border-color: #10B981;
}


