/* TezzCorp Academy - Enterprise UI System - Material 3 Expressive */
/* Palette: Saffron / Cream / White */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Google+Sans+Display:wght@400;500;700&family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20,400,1,0&display=swap');

:root {
  --primary: #BF360C;
  --on-primary: #FFFFFF;
  --primary-container: #FFDBCC;
  --on-primary-container: #4A0E00;
  --primary-hover: #D84315;
  --saffron: #E65100;
  --saffron-light: #FF6D00;
  --saffron-glow: rgba(230,81,0,0.2);
  --secondary: #6D4C41;
  --on-secondary: #FFFFFF;
  --secondary-container: #FFCCBC;
  --on-secondary-container: #3E1108;
  --error: #B00020;
  --on-error: #FFFFFF;
  --error-container: #FFDAD6;
  --on-error-container: #410002;
  --success: #1B6C46;
  --on-success: #FFFFFF;
  --success-container: #C8F5DC;
  --on-success-container: #003821;
  --warning-container: #FFE0B2;
  --on-warning-container: #4A2C00;
  --info-container: #BBDEFB;
  --on-info-container: #002171;
  --bg: #FFFAF7;
  --surface: #FFFFFF;
  --surface-1: #FFF5EF;
  --surface-2: #FFEEE4;
  --surface-3: #FFE5D7;
  --surface-variant: #F3E5DC;
  --inverse-surface: #201A17;
  --inverse-on-surface: #FBE9E0;
  --on-surface: #1C1512;
  --on-surface-variant: #52443C;
  --outline: #857267;
  --outline-variant: #D5C3BA;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 9999px;
  --e1: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --e2: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --e3: 0 8px 24px rgba(0,0,0,0.10), 0 3px 8px rgba(0,0,0,0.06);
  --e4: 0 16px 48px rgba(0,0,0,0.12), 0 6px 16px rgba(0,0,0,0.08);
  --e-brand: 0 8px 32px rgba(191,54,12,0.24);
  --ease-express: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-emph: cubic-bezier(0.2, 0, 0, 1);
  --ease-decel: cubic-bezier(0.05, 0.7, 0.1, 1.0);
  --ease-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
  --dur-sm: 150ms;
  --dur-md: 250ms;
  --dur-lg: 350ms;
  --topbar-h: 64px;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Google Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--on-surface);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  user-select: none;
  flex-shrink: 0;
}
.icon-outline { font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20; }

/* ============================================================
   APP BAR
   ============================================================ */
.app-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 32px;
  transition: background var(--dur-md), box-shadow var(--dur-md);
}

.app-bar.scrolled {
  background: rgba(255,250,247,0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 var(--outline-variant), var(--e1);
}

.app-bar-brand {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.brand-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--saffron-light), #BF360C);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--e-brand);
  transition: transform var(--dur-md) var(--ease-express);
}
.app-bar-brand:hover .brand-icon { transform: scale(1.1) rotate(-4deg); }
.brand-name {
  font-family: 'Google Sans Display', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--on-surface); line-height: 1.2;
}
.brand-tagline {
  font-size: 10px; font-weight: 500;
  color: var(--outline);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.app-bar-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.app-bar-nav .nav-link {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 14px; font-weight: 500;
  color: var(--on-surface-variant);
  transition: color var(--dur-sm), background var(--dur-sm);
}
.app-bar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: left var(--dur-md) var(--ease-express), right var(--dur-md) var(--ease-express);
}
.app-bar-nav .nav-link:hover { color: var(--on-surface); background: var(--surface-1); }
.app-bar-nav .nav-link:hover::after { left: 16px; right: 16px; }
.app-bar-nav .nav-link.active { color: var(--primary); }
.app-bar-nav .nav-link.active::after { left: 16px; right: 16px; }

.app-bar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  border: none; background: none;
  color: var(--on-surface); cursor: pointer;
  place-items: center;
  transition: background var(--dur-sm);
}
.nav-toggle:hover { background: var(--surface-1); }

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed; inset: 0;
  z-index: 200;
  pointer-events: none;
}
.mobile-drawer.open { pointer-events: all; }

.drawer-scrim {
  position: absolute; inset: 0;
  background: transparent;
  transition: background var(--dur-lg);
}
.mobile-drawer.open .drawer-scrim { background: rgba(0,0,0,0.5); }

.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  background: var(--surface);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--dur-lg) var(--ease-decel);
  box-shadow: var(--e4);
}
.mobile-drawer.open .drawer-panel { transform: translateX(0); }

.drawer-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  font-size: 15px; font-weight: 500;
  color: var(--on-surface-variant);
  transition: background var(--dur-sm), color var(--dur-sm), transform var(--dur-md) var(--ease-express);
  margin-bottom: 4px;
}
.drawer-nav-item:hover { background: var(--surface-1); color: var(--on-surface); transform: translateX(4px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 24px;
  border-radius: var(--r-full);
  font-family: 'Google Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  border: none; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: transform var(--dur-md) var(--ease-express), box-shadow var(--dur-md), background var(--dur-sm);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: currentColor; opacity: 0;
  transition: opacity var(--dur-sm);
}
.btn:hover::before { opacity: 0.08; }
.btn:active { transform: scale(0.96) !important; }

.btn-saffron {
  background: linear-gradient(135deg, var(--saffron-light), var(--primary));
  color: #fff;
  box-shadow: var(--e-brand);
}
.btn-saffron:hover { box-shadow: 0 12px 40px rgba(191,54,12,0.35); transform: translateY(-2px); }

.btn-filled { background: var(--primary); color: var(--on-primary); box-shadow: var(--e1); }
.btn-filled:hover { background: var(--primary-hover); box-shadow: var(--e2); }

.btn-tonal { background: var(--primary-container); color: var(--on-primary-container); }
.btn-outlined { background: transparent; color: var(--primary); border: 1.5px solid var(--outline-variant); }
.btn-outlined:hover { border-color: var(--primary); background: var(--surface-1); }
.btn-text { background: transparent; color: var(--primary); padding: 0 12px; }

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

.btn-sm  { height: 32px; padding: 0 16px; font-size: 12px; }
.btn-lg  { height: 48px; padding: 0 32px; font-size: 15px; }
.btn-xl  { height: 56px; padding: 0 40px; font-size: 16px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: var(--topbar-h);
}

.hero-bg-wrap {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-bg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 30%, rgba(255,109,0,0.08), transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 75%, rgba(191,54,12,0.05), transparent 70%),
    var(--bg);
}
.hero-bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--outline-variant) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); pointer-events: none;
}
.hero-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,109,0,0.12), transparent 65%);
  top: -80px; right: 0;
  animation: blobFloat 14s ease-in-out infinite;
}
.hero-blob-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(191,54,12,0.08), transparent 65%);
  bottom: 0; left: -60px;
  animation: blobFloat 10s ease-in-out infinite 3s;
}

.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

/* Hero Left */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 6px;
  background: var(--primary-container);
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 700;
  color: var(--on-primary-container);
  width: fit-content; margin-bottom: 24px;
  border: 1px solid rgba(191,54,12,0.2);
  animation: fadeUp 700ms 0ms var(--ease-decel) both;
}
.badge-dot {
  width: 22px; height: 22px;
  background: var(--primary);
  border-radius: var(--r-full);
  display: grid; place-items: center;
  color: #fff; flex-shrink: 0;
}

.hero-h1 {
  font-family: 'Google Sans Display', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  margin-bottom: 24px;
  animation: fadeUp 700ms 80ms var(--ease-decel) both;
}
.hero-h1 .hi {
  background: linear-gradient(130deg, var(--saffron-light) 0%, var(--primary) 50%, #7B1900 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: var(--on-surface-variant);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
  animation: fadeUp 700ms 160ms var(--ease-decel) both;
}

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp 700ms 240ms var(--ease-decel) both;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  background: var(--outline-variant);
  animation: fadeUp 700ms 320ms var(--ease-decel) both;
}
.hstat {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  padding: 14px 10px; text-align: center;
  transition: background var(--dur-sm);
}
.hstat:hover { background: var(--surface-1); }
.hstat-val {
  font-family: 'Google Sans Display';
  font-size: 24px; font-weight: 700;
  color: var(--primary); line-height: 1; margin-bottom: 3px;
}
.hstat-lbl { font-size: 10px; font-weight: 600; color: var(--outline); text-transform: uppercase; letter-spacing: 0.06em; }

/* Hero Right — Card */
.hero-card-wrap { position: relative; padding: 20px; animation: fadeUp 700ms 200ms var(--ease-decel) both; }
.hero-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--outline-variant);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--e4), var(--e-brand);
  backdrop-filter: blur(16px);
  position: relative; overflow: hidden;
}
.hero-card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,109,0,0.07), transparent);
  border-radius: 0 28px 0 120%;
}
.hero-card-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.hero-card-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary-container), var(--secondary-container));
  border-radius: var(--r-xl);
  display: grid; place-items: center;
  margin-bottom: 16px;
  transition: transform var(--dur-md) var(--ease-express);
}
.hero-card:hover .hero-card-icon { transform: scale(1.06) rotate(-3deg); }
.hero-card-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--on-surface); }
.hero-card-desc { font-size: 13px; color: var(--on-surface-variant); line-height: 1.6; margin-bottom: 20px; }
.hero-card-facts {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--outline-variant);
}
.hfact { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--on-surface-variant); }
.hfact .material-symbols-rounded { font-size: 15px; color: var(--primary); }

/* Float chips */
.fc {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-full);
  padding: 8px 14px;
  font-size: 12px; font-weight: 600;
  box-shadow: var(--e3);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.fc-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--saffron-light), var(--primary));
  display: grid; place-items: center;
  color: #fff; flex-shrink: 0;
}
.fc-a { top: -10px; right: 20px; animation: floatY 3.2s ease-in-out infinite; }
.fc-b { bottom: 10px; left: -10px; animation: floatY 4s ease-in-out infinite 1.5s; }

/* ============================================================
   STATS BAR (dark)
   ============================================================ */
.stats-bar { background: var(--inverse-surface); padding: 48px 0; }
.stats-bar-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.sbar-item {
  padding: 16px 24px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: transform var(--dur-md) var(--ease-express);
}
.sbar-item:last-child { border-right: none; }
.sbar-item:hover { transform: translateY(-4px); }
.sbar-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: rgba(255,109,0,0.15);
  color: #FF8A4C;
  display: grid; place-items: center;
  margin: 0 auto 12px;
}
.sbar-val {
  font-family: 'Google Sans Display';
  font-size: 34px; font-weight: 700;
  color: #fff; line-height: 1; margin-bottom: 4px;
}
.sbar-lbl { font-size: 12px; font-weight: 500; color: rgba(251,233,224,0.6); }

/* ============================================================
   SECTION BASE
   ============================================================ */
.section { max-width: var(--max-w); margin: 0 auto; padding: 96px 48px; }
.section-sm { max-width: var(--max-w); margin: 0 auto; padding: 64px 48px; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Google Sans Display', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700; color: var(--on-surface);
  margin-bottom: 16px; letter-spacing: -0.01em;
}

.section-desc {
  font-size: 16px; color: var(--on-surface-variant);
  line-height: 1.75;
}

.section-head { text-align: center; margin-bottom: 64px; }
.section-head .section-desc { max-width: 560px; margin: 0 auto; }

/* ============================================================
   COURSE CARDS
   ============================================================ */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.course-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur-lg) var(--ease-express), box-shadow var(--dur-lg);
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--e4); }

.course-banner {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-container) 0%, var(--secondary-container) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.course-banner::before {
  content: '';
  position: absolute; bottom: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.course-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-code-tag {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--primary); background: var(--primary-container);
  padding: 2px 8px; border-radius: 4px;
  width: fit-content; margin-bottom: 10px;
}
.course-name { font-size: 16px; font-weight: 700; color: var(--on-surface); margin-bottom: 8px; line-height: 1.35; }
.course-desc { font-size: 13px; color: var(--on-surface-variant); line-height: 1.65; flex: 1; margin-bottom: 14px; }
.course-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.course-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; background: var(--surface-1);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 500; color: var(--on-surface-variant);
}
.course-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--outline-variant);
}
.course-price { font-family: 'Google Sans Display'; font-size: 22px; font-weight: 700; color: var(--primary); }
.course-price-note { font-size: 10px; color: var(--outline); }

/* ============================================================
   ABOUT / FEATURES
   ============================================================ */
.about-wrap { background: var(--surface-1); border-top: 1px solid var(--outline-variant); border-bottom: 1px solid var(--outline-variant); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.usp-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.usp-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px; background: var(--surface);
  border: 1px solid var(--outline-variant); border-radius: var(--r-xl);
  transition: transform var(--dur-md) var(--ease-express), box-shadow var(--dur-md);
}
.usp-item:hover { transform: translateX(6px); box-shadow: var(--e2); }
.usp-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--primary-container);
  color: var(--on-primary-container);
  display: grid; place-items: center;
}
.usp-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.usp-desc  { font-size: 12px; color: var(--on-surface-variant); line-height: 1.55; }

.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-card {
  padding: 22px; background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl);
  transition: transform var(--dur-md) var(--ease-express), box-shadow var(--dur-md);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--e2); }
.feat-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--primary-container); color: var(--on-primary-container);
  display: grid; place-items: center; margin-bottom: 14px;
  transition: transform var(--dur-md) var(--ease-express);
}
.feature-card:hover .feat-icon { transform: scale(1.1) rotate(-5deg); }
.feat-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.feat-desc  { font-size: 12px; color: var(--on-surface-variant); line-height: 1.6; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  background: linear-gradient(140deg, #3D0000 0%, #7B1900 30%, #BF360C 65%, #E64A19 100%);
  overflow: hidden; padding: 96px 48px; text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(255,255,255,0.06), transparent);
}
.cta-deco-1 {
  position: absolute; width: 400px; height: 400px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%; top: -120px; right: -80px;
}
.cta-deco-2 {
  position: absolute; width: 250px; height: 250px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%; bottom: -70px; left: -60px;
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 14px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.cta-title {
  font-family: 'Google Sans Display';
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 700; color: #fff;
  line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 16px;
}
.cta-sub { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 40px; line-height: 1.7; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 64px; align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px; background: var(--surface);
  border: 1px solid var(--outline-variant); border-radius: var(--r-xl);
  transition: transform var(--dur-md) var(--ease-express), box-shadow var(--dur-md);
}
.contact-card:hover { transform: translateX(4px); box-shadow: var(--e2); }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--primary-container); color: var(--on-primary-container);
  display: grid; place-items: center;
}
.c-lbl { font-size: 10px; font-weight: 800; color: var(--outline); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.c-val { font-size: 14px; font-weight: 600; color: var(--on-surface); }
.c-val a { color: inherit; }
.c-val a:hover { color: var(--primary); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: 28px; padding: 40px;
  box-shadow: var(--e2);
}
.form-card-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }

/* ============================================================
   TEXT FIELDS (public)
   ============================================================ */
.field { margin-bottom: 18px; }
.field-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--on-surface-variant);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 7px;
  transition: color var(--dur-sm);
}
.field:focus-within .field-label { color: var(--primary); }
.field-input {
  width: 100%; height: 48px; padding: 0 16px;
  background: var(--surface-1);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--r-md);
  font-family: inherit; font-size: 14px;
  color: var(--on-surface); outline: none;
  transition: border-color var(--dur-sm), background var(--dur-sm), box-shadow var(--dur-sm);
  -webkit-appearance: none;
}
.field-input:focus {
  border-color: var(--primary);
  background: rgba(191,54,12,0.03);
  box-shadow: 0 0 0 3px rgba(191,54,12,0.14);
}
.field-input.is-error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(176,0,32,0.12); }
.field-input::placeholder { color: var(--outline); }
textarea.field-input { height: auto; padding: 14px 16px; resize: vertical; line-height: 1.6; }
select.field-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 -960 960 960' width='24'%3E%3Cpath d='M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z' fill='%23857267'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   ALERT
   ============================================================ */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: var(--r-lg);
  font-size: 14px; line-height: 1.5;
  animation: alertPop 250ms var(--ease-express);
}
@keyframes alertPop { from { opacity: 0; transform: scale(0.96) translateY(-4px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.alert-success { background: var(--success-container); color: var(--on-success-container); }
.alert-error   { background: var(--error-container);   color: var(--on-error-container); }
.alert-info    { background: var(--info-container);     color: var(--on-info-container); }
.alert-warn    { background: var(--warning-container);  color: var(--on-warning-container); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--inverse-surface); color: var(--inverse-on-surface); padding: 72px 0 0; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer-brand-name { font-family: 'Google Sans Display'; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-about { font-size: 13px; color: rgba(251,233,224,0.6); line-height: 1.7; margin-bottom: 22px; }
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: rgba(255,255,255,0.08); color: rgba(251,233,224,0.7);
  display: grid; place-items: center;
  transition: background var(--dur-sm), transform var(--dur-md) var(--ease-express);
}
.social-btn:hover { background: rgba(255,109,0,0.25); color: #FF8A4C; transform: scale(1.12); }
.footer-col-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.10em; color: rgba(251,233,224,0.4); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 14px; color: rgba(251,233,224,0.7); display: inline-flex; align-items: center; gap: 5px; transition: color var(--dur-sm), transform var(--dur-sm); }
.footer-link:hover { color: #FF8A4C; transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(251,233,224,0.4);
}

/* ============================================================
   LOGIN PAGE (2-column)
   ============================================================ */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }

.login-brand {
  background: linear-gradient(155deg, #3D0000 0%, #7B1900 40%, #E64A19 100%);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: center; padding: 64px;
}
.login-brand-circles { position: absolute; inset: 0; overflow: hidden; }
.lbc { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.07); }
.lbc-1 { width: 480px; height: 480px; top: -140px; right: -140px; }
.lbc-2 { width: 300px; height: 300px; bottom: -80px; left: -80px; }
.lbc-3 { width: 160px; height: 160px; top: 50%; right: 8%; transform: translateY(-50%); }
.login-brand-content { position: relative; z-index: 1; }
.login-logo-box {
  width: 70px; height: 70px;
  background: rgba(255,255,255,0.14);
  border-radius: 20px;
  display: grid; place-items: center;
  margin-bottom: 32px;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.login-brand-h { font-family: 'Google Sans Display'; font-size: 34px; font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 14px; }
.login-brand-p { font-size: 15px; color: rgba(255,255,255,0.68); line-height: 1.7; margin-bottom: 36px; }
.login-feats { display: flex; flex-direction: column; gap: 14px; }
.login-feat { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.82); }
.login-feat .material-symbols-rounded { font-size: 18px; color: #FF8A4C; }

.login-form-side {
  background: var(--bg);
  display: flex; flex-direction: column;
  justify-content: center; padding: 64px 80px;
  overflow-y: auto;
}
.login-form-h { font-family: 'Google Sans Display'; font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.login-form-p { font-size: 14px; color: var(--on-surface-variant); margin-bottom: 36px; }

/* ============================================================
   REGISTER MULTI-STEP
   ============================================================ */
.register-page {
  min-height: 100vh;
  padding: calc(var(--topbar-h) + 40px) 24px 64px;
  background: var(--bg);
}
.register-wrap { max-width: 680px; margin: 0 auto; }
.register-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: 28px; overflow: hidden;
  box-shadow: var(--e3);
  animation: fadeUp 400ms var(--ease-decel);
}
.reg-head {
  background: linear-gradient(135deg, #BF360C 0%, #FF6D00 100%);
  padding: 32px 40px;
  display: flex; align-items: center; gap: 18px;
  position: relative; overflow: hidden;
}
.reg-head::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 20%, rgba(255,255,255,0.09), transparent);
}
.reg-head-icon {
  width: 60px; height: 60px; flex-shrink: 0;
  background: rgba(255,255,255,0.16);
  border-radius: var(--r-xl);
  display: grid; place-items: center;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.22);
  position: relative; z-index: 1;
}
.reg-head-txt { position: relative; z-index: 1; }
.reg-head-txt h1 { font-family: 'Google Sans Display'; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.reg-head-txt p  { font-size: 13px; color: rgba(255,255,255,0.75); }

.reg-body { padding: 40px; }

/* Stepper */
.stepper { display: flex; align-items: center; margin-bottom: 40px; }
.step-node { display: flex; flex-direction: column; align-items: center; gap: 7px; flex-shrink: 0; }
.step-circ {
  width: 40px; height: 40px; border-radius: var(--r-full);
  border: 2px solid var(--outline-variant);
  background: var(--surface-1);
  color: var(--on-surface-variant);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  transition: all var(--dur-md) var(--ease-express);
}
.step-circ.is-active { border-color: var(--primary); background: var(--primary); color: #fff; transform: scale(1.14); box-shadow: 0 0 0 6px rgba(191,54,12,0.14); }
.step-circ.is-done   { border-color: var(--success); background: var(--success); color: #fff; }
.step-lbl { font-size: 10px; font-weight: 700; color: var(--outline); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.step-lbl.is-active { color: var(--primary); }
.step-conn {
  flex: 1; height: 2px;
  background: var(--outline-variant);
  margin: 0 8px 26px;
  border-radius: 1px;
  transition: background var(--dur-md);
}
.step-conn.is-done { background: var(--success); }

.step-panel { display: none; animation: fadeUp 300ms var(--ease-decel); }
.step-panel.active { display: block; }

.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-row { padding: 12px; background: var(--surface-1); border-radius: var(--r-md); border: 1px solid var(--outline-variant); }
.review-lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--outline); margin-bottom: 3px; }
.review-val { font-size: 14px; font-weight: 600; color: var(--on-surface); }

/* Password strength */
.pass-bar { height: 4px; border-radius: 2px; background: var(--outline-variant); margin-top: 8px; overflow: hidden; }
.pass-fill { height: 100%; border-radius: 2px; width: 0; transition: width var(--dur-md), background var(--dur-md); }

/* ============================================================
   MICRO-COMPONENTS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-active    { background: var(--success-container); color: var(--on-success-container); }
.badge-pending   { background: var(--warning-container); color: var(--on-warning-container); }
.badge-inactive  { background: var(--surface-variant);   color: var(--on-surface-variant); }
.badge-graduated { background: var(--info-container);    color: var(--on-info-container); }
.badge-cancelled { background: var(--error-container);   color: var(--on-error-container); }

.chip-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-full);
  border: 1.5px solid var(--outline-variant);
  background: transparent; color: var(--on-surface-variant);
  font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: all var(--dur-sm);
}
.chip-filter:hover { background: var(--surface-1); border-color: var(--outline); color: var(--on-surface); }
.chip-filter.on { background: var(--primary-container); color: var(--on-primary-container); border-color: var(--primary); font-weight: 700; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 600ms var(--ease-decel), transform 600ms var(--ease-decel); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatY   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blobFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(18px,-12px) scale(1.05); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes shake    { 10%,90% { transform: translateX(-2px); } 20%,80% { transform: translateX(4px); } 30%,50%,70% { transform: translateX(-6px); } 40%,60% { transform: translateX(6px); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner    { grid-template-columns: 1fr; gap: 48px; text-align: center; padding: 72px 32px; }
  .hero-card-wrap { display: none; }
  .hero-cta      { justify-content: center; }
  .hero-stats-row { max-width: 480px; margin: 0 auto; }
  .hero-badge    { margin: 0 auto 24px; }
  .hero-sub      { max-width: none; }
  .about-grid    { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .login-brand   { display: none; }
  .login-page    { grid-template-columns: 1fr; }
  .login-form-side { padding: 48px 40px; justify-content: flex-start; padding-top: 80px; }
  .section       { padding: 72px 32px; }
  .section-sm    { padding: 56px 32px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .courses-grid   { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stats-row { grid-template-columns: repeat(2, 1fr); }
  .features-grid  { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .review-grid    { grid-template-columns: 1fr; }
  .cta-banner     { padding: 64px 24px; }
  .footer-inner   { padding: 0 24px; }
  .footer-grid    { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .reg-body       { padding: 28px 24px; }
  .reg-head       { padding: 24px; }
  .login-form-side { padding: 40px 24px; }
  .section        { padding: 56px 24px; }
  .section-sm     { padding: 40px 24px; }
  .nav-toggle { display: grid; }
  .app-bar-nav { display: none; }
  .mobile-drawer  { display: block; }
}
@media (max-width: 480px) {
  .courses-grid   { grid-template-columns: 1fr; }
  .hero-stats-row { grid-template-columns: repeat(2, 1fr); }
  .cta-btns       { flex-direction: column; align-items: center; }
  .hero-cta .btn-xl { width: 100%; justify-content: center; }
  .stats-bar-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE ADDITIONS
   ════════════════════════════════════════════════════════ */

/* Base mobile fixes */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }
input, button, select, textarea { font-family: inherit; font-size: inherit; }

/* Nav mobile drawer */
.mobile-drawer { display: none; position: fixed; inset: 0; z-index: 9999; }
.mobile-drawer.is-open { display: flex; flex-direction: column; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.drawer-panel { position: relative; width: min(320px,85vw); height: 100%; background: var(--surface); overflow-y: auto; display: flex; flex-direction: column; padding: 24px 0; box-shadow: var(--e4); }
.drawer-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--on-surface); transition: background var(--dur-sm); }
.drawer-close:hover { background: var(--surface-variant); }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); color: var(--on-surface-variant); font-size: 15px; font-weight: 500; text-decoration: none; transition: background var(--dur-sm), color var(--dur-sm); }
.drawer-nav a:hover, .drawer-nav a.active { background: var(--primary-container); color: var(--primary); }
.drawer-logo { display: flex; align-items: center; gap: 10px; padding: 8px 24px 20px; border-bottom: 1px solid var(--outline-variant); margin-bottom: 8px; }
.drawer-logo img { width: 36px; height: 36px; object-fit: contain; }
.drawer-logo span { font-weight: 700; font-size: 15px; color: var(--on-surface); }

/* Nav toggle (hamburger) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: none; place-items: center; color: var(--on-surface); transition: background var(--dur-sm); }
.nav-toggle:hover { background: var(--surface-variant); }

/* Hero section mobile */
@media (max-width: 600px) {
  .hero-h { font-size: clamp(28px, 8vw, 42px) !important; line-height: 1.2; }
  .hero-sub { font-size: 15px !important; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { justify-content: center; width: 100%; }
  .hero-stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-stat-val { font-size: 24px !important; }
  .hero-inner { padding: 60px 20px 48px !important; }
}

/* Section padding mobile */
@media (max-width: 600px) {
  .section { padding: 48px 20px !important; }
  .section-sm { padding: 32px 20px !important; }
  .container { padding: 0 16px !important; }
  h2 { font-size: clamp(22px, 6vw, 32px) !important; }
}

/* Courses grid mobile */
@media (max-width: 600px) {
  .courses-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .course-card { padding: 20px !important; }
}

/* Registration page mobile */
@media (max-width: 640px) {
  .register-page { padding: 16px 0 !important; }
  .register-wrap { padding: 0 16px !important; width: 100% !important; max-width: 100% !important; }
  .register-card { border-radius: 16px !important; }
  .reg-head { padding: 20px 20px !important; gap: 12px !important; }
  .reg-head-icon { width: 48px !important; height: 48px !important; border-radius: 14px !important; }
  .reg-head h1 { font-size: 18px !important; }
  .reg-body { padding: 20px !important; }
  .stepper { gap: 4px !important; }
  .step-lbl { font-size: 11px !important; }
  .step-circ { width: 32px !important; height: 32px !important; font-size: 13px !important; }
  .form-row { grid-template-columns: 1fr !important; gap: 12px !important; }
  .field-input { padding: 12px 14px !important; font-size: 15px !important; }
  .field-label { font-size: 13px !important; }
  .btn-lg { padding: 14px 20px !important; font-size: 15px !important; }
  .btn-xl { padding: 16px 24px !important; font-size: 15px !important; }
}

/* Login page mobile */
@media (max-width: 640px) {
  .login-page { padding: 0 !important; }
  .login-form-side { padding: 32px 20px !important; min-height: 100vh; }
  .login-form-card { padding: 0 !important; }
  .login-form-h { font-size: 22px !important; }
}

/* Appbar / Nav mobile */
@media (max-width: 768px) {
  .app-bar { padding: 0 16px !important; }
  .app-bar-nav { display: none !important; }
  .app-bar-actions #ctaEnrollBtn,
  .app-bar-actions #adminLoginBtn { display: none !important; }
  .nav-toggle { display: grid !important; }
  .app-bar-logo span { font-size: 14px !important; }
}


/* CTA Banner mobile */
@media (max-width: 640px) {
  .cta-banner { padding: 48px 20px !important; border-radius: 20px !important; margin: 0 12px !important; }
  .cta-banner h2 { font-size: 22px !important; }
  .cta-btns { flex-direction: column !important; align-items: stretch !important; }
  .cta-btns .btn { justify-content: center !important; }
}

/* Footer mobile */
@media (max-width: 640px) {
  .footer-inner { padding: 48px 20px 24px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bottom { flex-direction: column !important; gap: 8px !important; text-align: center !important; }
}

/* Contact section mobile */
@media (max-width: 640px) {
  .contact-layout { grid-template-columns: 1fr !important; gap: 24px !important; }
  .contact-form-card { padding: 24px 20px !important; }
}

/* About section mobile */
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .about-text h2 { font-size: 22px !important; }
  .about-feats { grid-template-columns: 1fr !important; }
}

/* Reviews mobile */
@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr !important; }
  .review-card { padding: 20px !important; }
}

/* Touch targets */
@media (max-width: 768px) {
  .btn { min-height: 48px; }
  .field-input { min-height: 48px; }
  a.btn, button.btn { touch-action: manipulation; }
}

/* Scroll to top button */
#scrollTop { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--on-primary); border: none; cursor: pointer; box-shadow: var(--e3); display: grid; place-items: center; opacity: 0; transform: translateY(16px); transition: opacity var(--dur-md), transform var(--dur-md), background var(--dur-sm); z-index: 100; }
#scrollTop.visible { opacity: 1; transform: translateY(0); }
#scrollTop:hover { background: var(--primary-dark, var(--primary)); }
@media (max-width: 768px) {
  #scrollTop { bottom: 80px; right: 16px; width: 44px; height: 44px; }
}

/* Fix overflow issues on small screens */
@media (max-width: 480px) {
  body { overflow-x: hidden !important; }
  .register-wrap, .login-form-side, .section { overflow-x: hidden; }
  .stepper { overflow-x: auto; padding-bottom: 4px; }
  table { font-size: 13px; }
  .field { margin-bottom: 14px; }
}

/* Payment page mobile */
@media (max-width: 640px) {
  .payment-card { padding: 24px 20px !important; margin: 16px !important; }
}

/* ════════════════════════════════════════════════════════
   BACKGROUND IMAGE — assets/img/bg.png
   Applied to hero with overlay for readability
   ════════════════════════════════════════════════════════ */

/* Hero section — bg.png as background with gradient overlay */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(191,54,12,0.88) 0%, rgba(230,81,0,0.75) 50%, rgba(255,109,0,0.60) 100%),
    url('../img/bg.png') center center / cover no-repeat;
  background-attachment: fixed;
}

/* Override internal gradient divs to be transparent so bg.png shows */
.hero-bg-gradient {
  background: transparent !important;
}
.hero-bg-dots {
  opacity: 0.06 !important;
}

/* Register page hero / header area */
.register-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(191,54,12,0.92) 0%, rgba(255,109,0,0.55) 100%),
    url('../img/bg.png') center center / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

/* Improve register-card readability over bg */
.register-card {
  position: relative;
  z-index: 1;
}

/* reg-head should be solid, not semi-transparent over bg */
.reg-head {
  background: linear-gradient(135deg, var(--primary) 0%, var(--saffron) 100%) !important;
}

/* Login page background */
.login-brand {
  background:
    linear-gradient(135deg, rgba(191,54,12,0.92) 0%, rgba(230,81,0,0.80) 100%),
    url('../img/bg.png') center center / cover no-repeat !important;
  background-attachment: fixed !important;
}

/* ════════════════════════════════════════════════════════
   PERFORMANCE OPTIMIZATIONS
   ════════════════════════════════════════════════════════ */

/* GPU-accelerated layers for animated elements */
.course-card, .review-card, .feature-card, .stat-card {
  will-change: transform;
  contain: layout style;
}

/* Defer rendering of off-screen content */
.section:not(:first-child) {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* Reduce paint on reveal animations */
.reveal {
  will-change: opacity, transform;
}
.reveal.is-visible {
  will-change: auto; /* release after animation */
}

/* Smooth font rendering */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Preload hint: reduce layout shift from Material Symbols */
.material-symbols-rounded {
  font-display: block;
}

/* Reduce repaint on hover transforms */
.btn, .icon-btn, .course-card, .nav-link {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Lazy image placeholder */
img[loading="lazy"] {
  background: var(--surface-variant);
  min-height: 40px;
}
