/* ==========================================================================
   CSS DESIGN SYSTEM - EDUEXCEL LANDING PAGE
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS variables for light & dark theme styling */
:root {
  /* Colors - Light Theme (Default) */
  --primary-hue: 256;
  --primary-sat: 85%;
  --primary-light: 58%;
  --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
  --primary-hover: hsl(var(--primary-hue), var(--primary-sat), calc(var(--primary-light) - 10%));
  --primary-alpha: hsla(var(--primary-hue), var(--primary-sat), var(--primary-light), 0.1);
  --primary-alpha-20: hsla(var(--primary-hue), var(--primary-sat), var(--primary-light), 0.2);

  --accent-hue: 160;
  --accent-sat: 84%;
  --accent-light: 39%;
  --accent: hsl(var(--accent-hue), var(--accent-sat), var(--accent-light));
  --accent-hover: hsl(var(--accent-hue), var(--accent-sat), calc(var(--accent-light) - 8%));
  --accent-alpha: hsla(var(--accent-hue), var(--accent-sat), var(--accent-light), 0.1);

  --bg: hsl(220, 30%, 97%);
  --bg-surface: hsl(0, 0%, 100%);
  --bg-surface-glass: rgba(255, 255, 255, 0.7);
  --bg-surface-elevated: hsl(0, 0%, 100%);

  --text: hsl(224, 71%, 4%);
  --text-secondary: hsl(224, 20%, 30%);
  --text-muted: hsl(220, 14%, 48%);

  --border: hsl(220, 13%, 90%);
  --border-light: hsl(220, 13%, 94%);
  --input-bg: hsl(220, 20%, 95%);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 50px -12px rgba(88, 80, 236, 0.08);
  --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);

  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Nav Heights */
  --nav-height: 80px;
}

/* Dark Theme overrides */
[data-theme="dark"] {
  --primary-light: 68%;
  --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
  --primary-hover: hsl(var(--primary-hue), var(--primary-sat), calc(var(--primary-light) + 8%));
  --primary-alpha: hsla(var(--primary-hue), var(--primary-sat), var(--primary-light), 0.15);
  --primary-alpha-20: hsla(var(--primary-hue), var(--primary-sat), var(--primary-light), 0.25);

  --accent-light: 46%;
  --accent: hsl(var(--accent-hue), var(--accent-sat), var(--accent-light));
  --accent-hover: hsl(var(--accent-hue), var(--accent-sat), calc(var(--accent-light) + 8%));
  --accent-alpha: hsla(var(--accent-hue), var(--accent-sat), var(--accent-light), 0.15);

  --bg: hsl(222, 47%, 9%);
  --bg-surface: hsl(223, 47%, 14%);
  --bg-surface-glass: rgba(15, 23, 42, 0.65);
  --bg-surface-elevated: hsl(223, 47%, 18%);

  --text: hsl(210, 40%, 98%);
  --text-secondary: hsl(217, 10%, 75%);
  --text-muted: hsl(215, 14%, 58%);

  --border: hsl(223, 47%, 20%);
  --border-light: hsl(223, 47%, 24%);
  --input-bg: hsl(223, 47%, 18%);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   LAYOUT & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.section-header .tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-alpha);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-alpha-20);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-alpha-20);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--input-bg);
  transform: translateY(-2px);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all var(--transition-normal);
}

.btn-icon:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1001;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-normal);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-4px);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.sticky {
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 70px;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-headings);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  color: var(--primary);
  font-size: 1.6rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  font-size: 1.25rem;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--input-bg);
}

.theme-toggle .fa-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1002;
}

.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--text);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero {
  padding-top: calc(var(--nav-height) + 40px);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, var(--primary-alpha) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, var(--accent-alpha) 0%, transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.hero-badge i {
  color: var(--accent);
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-content h1 span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--primary-alpha);
  z-index: -1;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
}

/* Hero Course Search Bar */
.hero-search {
  max-width: 500px;
  display: flex;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-alpha-20);
}

.hero-search input {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  color: var(--text);
}

.hero-search input::placeholder {
  color: var(--text-muted);
}

.hero-search button {
  padding: 0 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Animated Hero Illustration */
.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration-svg-container {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-illustration-svg {
  width: 100%;
  height: auto;
}

/* SVG Animation keyframes and assignments */
.hero-floating-element {
  animation: float 4s ease-in-out infinite alternate;
}

.float-delayed {
  animation-delay: 2s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-15px); }
}

.pulse-circle {
  animation: pulseCircle 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pulseCircle {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.4; }
}

/* Trusted Logos Section */
.trusted-logos {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  margin-top: 40px;
}

.trusted-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 20px;
}

.logos-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px 40px;
}

.logos-container img {
  height: 28px;
  filter: grayscale(1) opacity(0.5);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .logos-container img {
  filter: grayscale(1) brightness(2) opacity(0.5);
}

.logos-container img:hover {
  filter: none;
  opacity: 1;
}

/* ==========================================================================
   2. COURSE CATEGORIES
   ========================================================================== */
.categories {
  background-color: var(--bg-surface);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.category-card {
  background-color: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.category-card:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-card.active {
  border-color: var(--primary);
  background-color: var(--primary-alpha);
  box-shadow: var(--shadow-sm);
}

.category-icon-wrapper {
  width: 52px;
  height: 52px;
  background-color: var(--primary-alpha);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.category-card:hover .category-icon-wrapper {
  background-color: var(--primary);
  color: #fff;
}

.category-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   3. FEATURED COURSES
   ========================================================================== */
.courses-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .courses-filter-bar {
    flex-direction: row;
  }
}

.search-filter-wrapper {
  width: 100%;
  max-width: 320px;
  display: flex;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-md);
}

.search-filter-wrapper input {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  color: var(--text);
}

.search-filter-wrapper button {
  padding: 0 14px;
  color: var(--text-secondary);
}

.filter-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 5px;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.filter-pill.active, .filter-pill:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  transition: opacity var(--transition-normal);
}

.course-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.course-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.course-card:hover .course-img-wrapper img {
  transform: scale(1.08);
}

.course-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.course-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

.instructor-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructor-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.instructor-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 52px;
}

.course-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.course-rating {
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.course-rating span {
  color: var(--text-secondary);
}

.course-duration i, .course-students i {
  margin-right: 6px;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.course-price {
  display: flex;
  flex-direction: column;
}

.price-now {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.course-not-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.course-not-found i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.course-not-found h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.course-not-found p {
  color: var(--text-secondary);
}

/* ==========================================================================
   4. WHY CHOOSE US
   ========================================================================== */
.why-us {
  background-color: var(--bg-surface);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

@media (min-width: 992px) {
  .why-us-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.why-us-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-us-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 576px) {
  .why-us-features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-alpha);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.feature-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.why-us-image {
  position: relative;
}

.why-us-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.floating-badge {
  position: absolute;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
}

.floating-badge-1 {
  bottom: 30px;
  left: -20px;
}

.floating-badge-2 {
  top: 30px;
  right: -20px;
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--accent-alpha);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-text h4 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.badge-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   5. LEARNING PROCESS
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 1;
}

.step-num-box {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.process-step:hover .step-num-box {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-icon-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-elevated);
  border: 2px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.process-step:hover .step-icon-badge {
  border-color: var(--primary);
}

.process-step h3 {
  font-size: 1.25rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Step connectors (for larger screens) */
@media (min-width: 992px) {
  .process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: dashed var(--border);
    z-index: 0;
  }
}

/* ==========================================================================
   6. MEET OUR INSTRUCTORS
   ========================================================================== */
.instructors {
  background-color: var(--bg-surface);
}

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.instructor-card {
  background-color: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  text-align: center;
}

.instructor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.instructor-img {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.instructor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.instructor-card:hover .instructor-img img {
  transform: scale(1.05);
}

.instructor-socials {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 15px 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  transition: bottom var(--transition-normal);
}

.instructor-card:hover .instructor-socials {
  bottom: 0;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.instructor-info {
  padding: 24px;
}

.instructor-info h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.instructor-subject {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.instructor-exp {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   7. STUDENT TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.testimonial-stars {
  color: #fbbf24;
  display: flex;
  gap: 4px;
  font-size: 0.95rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.student-info h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.student-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. STATISTICS SECTION
   ========================================================================== */
.stats {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-num {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
}

/* ==========================================================================
   9. FAQ SECTION
   ========================================================================== */
.faq {
  background-color: var(--bg-surface);
}

.faq-container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  background-color: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal), background-color var(--transition-fast);
}

.faq-item.active {
  background-color: var(--bg-surface-elevated);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-content {
  padding: 0 24px 20px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-content {
  border-top-color: var(--border-light);
}

/* ==========================================================================
   10. CALL-TO-ACTION (CTA) SECTION
   ========================================================================== */
.cta-section {
  background: radial-gradient(circle at top right, var(--primary-alpha-20), transparent 50%),
              radial-gradient(circle at bottom left, var(--accent-alpha), transparent 50%);
  position: relative;
}

.cta-box {
  background: linear-gradient(135deg, var(--bg-surface-glass), var(--bg-surface));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-box h2 {
  font-size: 2.5rem;
  max-width: 600px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 550px;
}

/* ==========================================================================
   11. CONTACT SECTION
   ========================================================================== */
.contact {
  background-color: var(--bg-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-alpha);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-card-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Map Container */
.map-container {
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg), var(--input-bg));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}

.map-placeholder i {
  font-size: 2.5rem;
  color: var(--primary);
}

/* Contact Form */
.contact-form-box {
  background-color: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-alpha-20);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding-top: 80px;
  padding-bottom: 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col.brand-col {
  grid-column: span 1;
}

@media (min-width: 992px) {
  .footer-col.brand-col {
    grid-column: span 2;
  }
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-headings);
  color: var(--text);
}

.footer-logo span {
  color: var(--primary);
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.newsletter-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  color: var(--text);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (INTERSECTION OBSERVER)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Delay modifiers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   RESPONSIVE NAVIGATION BAR (MOBILE MENU)
   ========================================================================== */
@media (max-width: 991px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
    gap: 24px;
    transition: left var(--transition-normal);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-actions {
    margin-right: 15px;
  }

  .header.sticky .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }

  /* Hamburger transformation when menu is active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .btn {
    width: 100%;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-search {
    flex-direction: column;
    gap: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .hero-search input {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
  }
  .hero-search button {
    width: 100%;
  }
  .floating-badge {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* --- Missing Animation & Reveal Styles --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

/* Stagger Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* --- Missing Responsive Navigation Styles --- */
@media (max-width: 991px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--bg-surface);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: left var(--transition-normal);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}
