/* =====================================================
   ASHA COURSES — GLOBAL DESIGN SYSTEM (MODERN LIGHT THEME)
   courses.ashahomeo.com
   ===================================================== */

/* ─── CSS Variables ────────────────────────────────── */
:root {
  /* Brand Colors */
  --primary:        #4F46E5;
  --primary-light:  #6366F1;
  --primary-dark:   #4338CA;
  --primary-glow:   rgba(99, 102, 241, 0.20);
  --primary-subtle: rgba(99, 102, 241, 0.08);

  --accent:         #F59E0B;
  --accent-light:   #FDE68A;
  --success:        #10B981;
  --success-subtle: rgba(16, 185, 129, 0.10);
  --danger:         #EF4444;
  --danger-subtle:  rgba(239, 68, 68, 0.10);
  --info:           #3B82F6;
  --info-subtle:    rgba(59, 130, 246, 0.10);

  /* Modern Light Theme Surfaces */
  --bg:             #F8FAFC;
  --bg-subtle:      #F1F5F9;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #FFFFFF;
  --bg-input:       #FFFFFF;
  --bg-nav:         rgba(255, 255, 255, 0.92);

  /* Modern Typography Colors (Slate Scale) */
  --text:           #334155;
  --text-muted:     #64748B;
  --text-dim:       #94A3B8;
  --text-heading:   #0F172A;

  /* Borders & Dividers */
  --border:         #E2E8F0;
  --border-light:   #F1F5F9;
  --border-focus:   rgba(99, 102, 241, 0.5);

  /* Typography */
  --font-sans:      'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-display:   'Playfair Display', Georgia, serif;

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

  /* Soft Light Shadows */
  --shadow-sm:      0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow:         0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-md:      0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg:      0 16px 36px -6px rgba(15, 23, 42, 0.10), 0 6px 16px -3px rgba(15, 23, 42, 0.04);
  --shadow-glow:    0 10px 25px -5px rgba(99, 102, 241, 0.20);

  /* Transitions */
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --transition:     all 0.25s var(--ease);
}

/* ─── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── Layout ────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}
.btn-secondary {
  background: #FFFFFF;
  color: var(--text-heading) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--primary-light);
  color: var(--primary) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-heading);
  border-color: var(--text-dim);
}
.btn-accent {
  background: var(--accent);
  color: #0F172A !important;
  font-weight: 700;
}
.btn-accent:hover {
  background: #EAB308;
  color: #0F172A !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.btn-danger {
  background: var(--danger);
  color: #fff !important;
}
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-full); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Cards ────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-body { padding: 24px; }

/* ─── Course Card ───────────────────────────────────── */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}
.course-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.course-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #E2E8F0;
  display: block;
}
.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.course-card:hover .course-thumb img { transform: scale(1.05); }

.course-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  color: var(--primary);
  font-size: 48px;
}
.badge-bestseller {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}
.badge-free {
  background: #D1FAE5;
  color: #065F46;
  border-color: #A7F3D0;
}
.course-card-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.course-card-wishlist:hover {
  background: #FFFFFF;
  color: var(--danger);
  transform: scale(1.12);
}
.course-card-wishlist.active i {
  font-weight: 900;
  color: var(--danger);
}
.course-info { padding: 18px 20px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.course-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.course-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.course-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.45;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
}
.course-title:hover { color: var(--primary); }
.course-instructor {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.course-instructor i { color: var(--primary); font-size: 11px; flex-shrink: 0; }
.course-instructor .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.course-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: 4px;
}
.course-meta span { display: flex; align-items: center; gap: 4px; }
.course-meta i { font-size: 11px; color: var(--text-muted); }

.course-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  background: #FAFAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.course-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.star-icon {
  color: #F59E0B;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}
.rating-val { font-size: 13px; font-weight: 800; color: var(--text-heading); }
.rating-count { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.course-card-pricing {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.price { font-size: 18px; font-weight: 800; color: var(--text-heading); white-space: nowrap; }
.price-original {
  font-size: 12px;
  text-decoration: line-through;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
}
.price-free { font-size: 16px; font-weight: 800; color: var(--success); white-space: nowrap; }

/* ─── Navbar ────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.logo-text {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}
.logo-accent { color: var(--primary); }

.nav-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}
.nav-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 14px;
  pointer-events: none;
}
.nav-search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: #F1F5F9;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-heading);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.nav-search-input:focus {
  border-color: var(--primary-light);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.nav-search-input::placeholder { color: var(--text-dim); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--bg-subtle); }
.nav-icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: #FFFFFF;
  font-size: 16px;
  transition: var(--transition);
}
.nav-icon-btn:hover { color: var(--primary); border-color: var(--primary-light); background: var(--bg-subtle); }

/* User dropdown */
.nav-user-menu { position: relative; }
.nav-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.nav-avatar-btn:hover { background: var(--bg-subtle); }
.nav-chevron { font-size: 11px; color: var(--text-dim); transition: var(--transition); }
.nav-user-menu.open .nav-chevron { transform: rotate(180deg); }

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 230px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 200;
}
.nav-user-menu.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-header {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #F8FAFC;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.dropdown-header strong { font-size: 14px; font-weight: 700; color: var(--text-heading); }
.dropdown-header small { font-size: 12px; color: var(--text-muted); }
.dropdown-divider { height: 1px; background: var(--border); }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg-subtle); color: var(--primary); }
.dropdown-item i { width: 16px; text-align: center; color: var(--text-dim); }
.dropdown-admin { color: var(--primary); font-weight: 600; }
.dropdown-admin i { color: var(--primary); }
.dropdown-logout { color: var(--danger); }
.dropdown-logout i { color: var(--danger); }

/* Avatar */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary-light);
}
.avatar-initials {
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile nav */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: #FFFFFF;
  gap: 4px;
}
.nav-mobile-menu.open { display: flex; }
.mobile-search {
  display: flex;
  background: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}
.mobile-search input {
  flex: 1;
  padding: 10px 14px;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 14px;
  outline: none;
}
.mobile-search button {
  padding: 0 16px;
  color: var(--text-muted);
  background: none;
  border: none;
}
.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: var(--transition);
}
.mobile-nav-link:hover { background: var(--bg-subtle); color: var(--primary); }
.mobile-signup { background: var(--primary); color: #fff !important; text-align: center; margin-top: 8px; border-radius: var(--radius-full); }
.mobile-logout { color: var(--danger) !important; }

/* ─── Hero Section ───────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  background: radial-gradient(at 10% 20%, rgba(99, 102, 241, 0.07) 0px, transparent 50%),
              radial-gradient(at 90% 10%, rgba(16, 185, 129, 0.06) 0px, transparent 50%),
              radial-gradient(at 50% 90%, rgba(245, 158, 11, 0.05) 0px, transparent 50%),
              #FFFFFF;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EEF2FF;
  border: 1px solid #E0E7FF;
  color: var(--primary);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.08);
  animation: fadeUp 0.6s var(--ease) forwards;
}
.hero-badge i { font-size: 12px; color: var(--accent); }
.hero-title {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeUp 0.7s var(--ease) 0.1s both;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.65;
  animation: fadeUp 0.7s var(--ease) 0.2s both;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s var(--ease) 0.3s both;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.7s var(--ease) 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-num span { color: var(--primary); }
.hero-stat-label { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-top: 6px; }

/* ─── Section Headers ────────────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-subtitle {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Grid Layouts ────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}

/* ─── Category Horizontal Slider ──────────────────── */
.category-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding: 8px 4px 18px 4px;
}
.category-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}
.category-slider .slider-card {
  flex: 0 0 230px;
  min-width: 230px;
}
.cat-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text-heading);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.cat-arrow-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cat-arrow-btn:active {
  transform: translateY(0);
}

/* ─── Category Card ───────────────────────────────── */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.category-card:hover {
  border-color: var(--primary-light);
  background: #FFFFFF;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-icon {
  width: 58px;
  height: 58px;
  background: #EEF2FF;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  color: var(--primary);
  border: 1px solid #E0E7FF;
  transition: var(--transition);
}
.category-card:hover .category-icon {
  background: var(--primary);
  color: #FFFFFF;
  transform: scale(1.08);
}
.category-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.category-count { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ─── Testimonials ────────────────────────────────── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.25);
}
.testimonial-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author-info strong { font-size: 14px; font-weight: 700; color: var(--text-heading); display: block; }
.testimonial-author-info span { font-size: 12px; color: var(--text-muted); }

/* ─── Progress Bar ────────────────────────────────── */
.progress-bar {
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease);
}

/* ─── Alerts ──────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}
.alert-success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.alert-error   { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-info    { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.alert-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }

/* ─── Forms ───────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-heading);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-light);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.form-input::placeholder { color: var(--text-dim); }
.form-select option { background: #FFFFFF; color: var(--text-heading); }
.form-textarea { min-height: 120px; resize: vertical; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-left: 42px; }
.input-icon-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 15px;
  pointer-events: none;
}
.form-error { font-size: 13px; color: var(--danger); margin-top: 6px; }

/* ─── Badges ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}
.badge-primary { background: #EEF2FF; color: var(--primary); border: 1px solid #E0E7FF; }
.badge-success { background: #ECFDF5; color: #059669; border: 1px solid #D1FAE5; }
.badge-danger  { background: #FEF2F2; color: #DC2626; border: 1px solid #FEE2E2; }
.badge-warning { background: #FFFBEB; color: #D97706; border: 1px solid #FEF3C7; }
.badge-level   { background: #F1F5F9; color: var(--text-muted); border: 1px solid var(--border); }

/* ─── Pagination ─────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.page-btn {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ─── CTA Banner ──────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #4338CA 0%, #6366F1 60%, #8B5CF6 100%);
  border-radius: var(--radius-xl);
  padding: 68px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.4);
}
.cta-section .cta-title { color: #FFFFFF !important; }
.cta-section .cta-desc { color: rgba(255, 255, 255, 0.88) !important; }
.cta-section .btn-primary {
  background: #FFFFFF !important;
  color: var(--primary-dark) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.cta-section .btn-primary:hover {
  background: #F8FAFC !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
}
.cta-section .btn-secondary {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}
.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

/* ─── Footer ──────────────────────────────────────── */
.site-footer {
  margin-top: 80px;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
}
.footer-main { padding: 64px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px;
  height: 38px;
  background: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}
.footer-heading {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact { margin-top: 16px; }
.footer-contact p { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.footer-bottom {
  padding: 24px 0;
  background: #F8FAFC;
  border-top: 1px solid var(--border);
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-secured { display: flex; align-items: center; gap: 6px; font-weight: 500; }

/* ─── Skeleton loader ─────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 400% 100%;
  animation: skeleton-wave 1.5s ease infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-wave {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── Animations ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-fadeup { animation: fadeUp 0.6s var(--ease) forwards; }
.fade-in { animation: fadeIn 0.4s ease forwards; }

/* ─── Utilities ────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-heading { color: var(--text-heading); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-stats { gap: 32px; }
}

@media (max-width: 768px) {
  .nav-search { display: none; }
  .nav-link { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .hero { padding: 64px 0 48px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .courses-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .cta-section { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-container { padding: 0 16px; }
  .hero-title { font-size: 32px; }
  .courses-grid { grid-template-columns: 1fr; }
}

/* ─── Global Toast Notification ───────────────────── */
.global-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  pointer-events: none;
}
.global-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.global-toast.toast-success i { color: #34D399; }
.global-toast.toast-error   i { color: #F87171; }

