/* ==========================================
   PIXEL PROGRAMMERS - Main Stylesheet
   Programming Academy — Public Pages
   ========================================== */

/* ==========================================
   TABLE OF CONTENTS
   ==========================================
   1.  CSS Custom Properties
   2.  Reset & Base
   3.  Typography
   4.  Background Decorations
   5.  Utility Classes
   6.  Buttons
   7.  Cards & Surfaces
   8.  Badges & Tags
   9.  Navigation / Navbar
   10. Hero Section
   11. Sections
   12. Feature Cards
   13. Course Cards
   14. Trainer Cards
   15. Testimonial Cards
   16. Pricing / Enrollment
   17. Stats & Counters
   18. Auth Pages
   19. Footer
   20. Error / 404 Page
   21. Form Controls
   22. Course Detail Page
   23. Swiper / Carousel Overrides
   24. Back to Top Button
   25. Loading & Spinner
   26. Lazy Load Images
   27. Animations & Keyframes
   28. Responsive Adjustments
   ========================================== */

/* ------------------------------------------
   1. CSS Custom Properties
   ------------------------------------------ */
:root {
  /* --- Core Palette --- */
  --cream: #FFFBF5;
  --navy: #1B2A4A;
  --navy-dark: #0F1A2E;
  --pink: #E1306C;
  --purple: #833AB4;
  --orange: #F77737;

  /* --- Gradients --- */
  --gradient: linear-gradient(135deg, #E1306C, #833AB4, #F77737);
  --gradient-hover: linear-gradient(135deg, #D42A63, #742DA3, #E66B2F);
  --gradient-subtle: linear-gradient(135deg, rgba(225,48,108,0.08), rgba(131,58,180,0.08), rgba(247,119,55,0.08));
  --gradient-dark: linear-gradient(135deg, #0F1A2E, #1B2A4A);

  /* --- Text --- */
  --text-primary: #1B2A4A;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-light: rgba(255, 255, 255, 0.6);

  /* --- Neutrals --- */
  --white: #FFFFFF;
  --border-light: #E5E7EB;
  --border-lighter: #F3F4F6;
  --bg-light: #F9FAFB;
  --bg-gray: #F8F9FA;

  /* --- Semantic --- */
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --info: #3B82F6;
  --info-light: #DBEAFE;

  /* --- Level Colors --- */
  --level-beginner: #10B981;
  --level-beginner-bg: #D1FAE5;
  --level-intermediate: #3B82F6;
  --level-intermediate-bg: #DBEAFE;
  --level-advanced: #8B5CF6;
  --level-advanced-bg: #EDE9FE;

  /* --- Typography --- */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* --- Shadows --- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-gradient: 0 10px 30px -5px rgba(131, 58, 180, 0.3);

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

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

  /* --- Z-Index Scale --- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-tooltip: 600;
}


/* ------------------------------------------
   2. Reset & Base
   ------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}


/* ------------------------------------------
   3. Typography
   ------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.text-muted-custom {
  color: var(--text-muted) !important;
}

.text-secondary-custom {
  color: var(--text-secondary) !important;
}


/* ------------------------------------------
   4. Background Decorations
   ------------------------------------------ */
/* Subtle colored blobs on the whole site for a premium feel */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.07;
  z-index: -1;
  pointer-events: none;
}

body::before {
  width: 600px;
  height: 600px;
  background: var(--pink);
  top: -200px;
  right: -200px;
}

body::after {
  width: 500px;
  height: 500px;
  background: var(--purple);
  bottom: -200px;
  left: -200px;
}

/* Hero grid background */
.hero-grid-bg {
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(27, 42, 74, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 42, 74, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(225, 48, 108, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(131, 58, 180, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 80%, rgba(247, 119, 55, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid-bg > * {
  position: relative;
  z-index: 1;
}


/* ------------------------------------------
   5. Utility Classes
   ------------------------------------------ */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-cream { background-color: var(--cream); }
.bg-white { background-color: var(--white); }
.bg-navy { background-color: var(--navy); }
.bg-navy-dark { background-color: var(--navy-dark); }

.text-navy { color: var(--navy) !important; }
.text-pink { color: var(--pink) !important; }
.text-purple { color: var(--purple) !important; }
.text-orange { color: var(--orange) !important; }

.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

.rounded-custom { border-radius: var(--radius-md); }
.rounded-lg-custom { border-radius: var(--radius-lg); }
.rounded-xl-custom { border-radius: var(--radius-xl); }
.rounded-full-custom { border-radius: var(--radius-full); }

.shadow-custom { box-shadow: var(--shadow); }
.shadow-md-custom { box-shadow: var(--shadow-md); }
.shadow-lg-custom { box-shadow: var(--shadow-lg); }

.border-light-custom { border: 1px solid var(--border-light); }


/* ------------------------------------------
   6. Buttons
   ------------------------------------------ */
/* Primary Gradient Button */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient);
  color: var(--white) !important;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  padding: 14px 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  z-index: 1;
  letter-spacing: 0.01em;
}

.btn-gradient:hover {
  background: var(--gradient-hover);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gradient);
}

.btn-gradient:active {
  transform: translateY(0);
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
  z-index: -1;
}

.btn-gradient:hover::before {
  left: 100%;
}

/* Outline Gradient Button */
.btn-outline-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  background-image: linear-gradient(var(--cream), var(--cream)), var(--gradient);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  padding: 12px 32px;
  transition: var(--transition);
}

.btn-outline-gradient:hover {
  background: var(--gradient);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gradient);
}

/* Small Button */
.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Large Button */
.btn-lg {
  padding: 16px 44px;
  font-size: 1.05rem;
}

/* Navy Button */
.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  padding: 14px 36px;
  transition: var(--transition);
}

.btn-navy:hover {
  background: var(--navy-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* White Button */
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  padding: 14px 36px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Link Button */
.btn-link {
  font-weight: 600;
  color: var(--pink);
  padding: 0;
  transition: var(--transition);
}

.btn-link:hover {
  color: var(--purple);
}


/* ------------------------------------------
   7. Cards & Surfaces
   ------------------------------------------ */
/* Generic Card Hover */
.card-hover {
  transition: var(--transition);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--white);
}

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

/* Gradient Border Card */
.gradient-border {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.gradient-border:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gradient-border:hover::before {
  opacity: 1;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
}

/* Elevated Card */
.card-elevated {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: var(--transition);
}

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


/* ------------------------------------------
   8. Badges & Tags
   ------------------------------------------ */
.badge-beginner {
  display: inline-block;
  background: var(--level-beginner-bg);
  color: #065F46;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-intermediate {
  display: inline-block;
  background: var(--level-intermediate-bg);
  color: #1E40AF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-advanced {
  display: inline-block;
  background: var(--level-advanced-bg);
  color: #5B21B6;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Price Tag */
.price-tag {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-tag .currency {
  font-size: 1rem;
  vertical-align: super;
}

.price-tag .period {
  font-size: 0.875rem;
  font-weight: 500;
  -webkit-text-fill-color: var(--text-muted);
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 2px;
  align-items: center;
}

.star-rating .star {
  color: #FBBF24;
  font-size: 0.875rem;
}

.star-rating .star.empty {
  color: var(--border-light);
}

.star-rating .rating-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Category Tag */
.category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--border-lighter);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ------------------------------------------
   9. Navigation / Navbar
   ------------------------------------------ */
.navbar-custom {
  background: rgba(255, 251, 245, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  transition: var(--transition);
  z-index: var(--z-fixed);
}

.navbar-custom.scrolled {
  box-shadow: var(--shadow);
  padding: 8px 0;
}

.navbar-brand-custom {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.navbar-brand-custom:hover {
  color: var(--text-primary);
}

.navbar-brand-custom img {
  height: 40px;
}

.navbar-custom .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--pink);
  background: rgba(225, 48, 108, 0.06);
}

.navbar-custom .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient);
}

.navbar-custom .navbar-toggler {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 6px 10px;
}

.navbar-custom .navbar-toggler:focus {
  box-shadow: none;
  border-color: var(--purple);
}

.navbar-custom .dropdown-menu {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 200px;
}

.navbar-custom .dropdown-item {
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.navbar-custom .dropdown-item:hover {
  background: var(--border-lighter);
  color: var(--pink);
}


/* ------------------------------------------
   10. Hero Section
   ------------------------------------------ */
.hero-section {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-tagline .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-stats .stat-item {
  text-align: center;
}

.hero-stats .stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--text-primary);
}

.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* Floating decoration icons in hero */
.floating-icon {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  opacity: 0.15;
  pointer-events: none;
}

.floating-icon:nth-child(2) { animation-delay: -2s; }
.floating-icon:nth-child(3) { animation-delay: -4s; }

/* Hero mini cards */
.hero-mini-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: absolute;
  z-index: 2;
}

.hero-mini-card .mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* ------------------------------------------
   11. Sections
   ------------------------------------------ */
.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-padding-sm {
  padding-top: 50px;
  padding-bottom: 50px;
}

.section-bg-light {
  background: var(--white);
}

.section-bg-cream {
  background: var(--cream);
}

.section-bg-gray {
  background: var(--bg-gray);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.section-header-center {
  text-align: center;
  margin-bottom: 3rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient);
  margin: 1rem auto 1.5rem;
}

/* Divider for left-aligned headers */
.section-divider-left {
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient);
  margin: 1rem 0 1.5rem;
}


/* ------------------------------------------
   12. Feature Cards
   ------------------------------------------ */
.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  height: 100%;
}

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

.feature-card .feature-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(3deg);
}

.feature-card .feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card .feature-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Feature icon color variants */
.feature-icon-pink { background: #FCE7F3; color: var(--pink); }
.feature-icon-purple { background: #EDE9FE; color: var(--purple); }
.feature-icon-orange { background: #FFEDD5; color: var(--orange); }
.feature-icon-blue { background: #DBEAFE; color: #3B82F6; }
.feature-icon-green { background: #D1FAE5; color: #10B981; }
.feature-icon-teal { background: #CCFBF1; color: #14B8A6; }
.feature-icon-rose { background: #FFE4E6; color: #F43F5E; }
.feature-icon-amber { background: #FEF3C7; color: #F59E0B; }
.feature-icon-indigo { background: #E0E7FF; color: #6366F1; }
.feature-icon-cyan { background: #CFFAFE; color: #06B6D4; }


/* ------------------------------------------
   13. Course Cards
   ------------------------------------------ */
.course-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.course-card .card-img-wrapper {
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.course-card .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.course-card .card-img-overlay-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.course-card .card-img-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: var(--text-muted);
  z-index: 2;
}

.course-card .card-img-wishlist:hover {
  color: var(--pink);
  transform: scale(1.1);
}

.course-card .card-img-wishlist.active {
  color: var(--pink);
}

.course-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card .card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.course-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.course-card .card-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  flex: 1;
}

.course-card .card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.course-card .card-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-card .card-footer-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-lighter);
}

.course-card .card-instructor {
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-card .card-instructor img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.course-card .card-instructor span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.course-card .card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.course-card .card-price.free {
  color: var(--success);
}

.course-card .card-price .old-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 6px;
}


/* ------------------------------------------
   14. Trainer Cards
   ------------------------------------------ */
.trainer-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  height: 100%;
}

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

.trainer-card .trainer-img-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.trainer-card .trainer-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-light);
  transition: var(--transition);
}

.trainer-card:hover .trainer-img {
  border-color: var(--pink);
}

.trainer-card .trainer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.trainer-card .trainer-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.trainer-card .trainer-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.trainer-card .trainer-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trainer-card .trainer-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trainer-card .social-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1rem;
}

.trainer-card .social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-lighter);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
}

.trainer-card .social-links a:hover {
  background: var(--gradient);
  color: var(--white);
  transform: translateY(-2px);
}


/* ------------------------------------------
   15. Testimonial Cards
   ------------------------------------------ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-light);
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.testimonial-card .quote-icon {
  color: var(--purple);
  opacity: 0.12;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-card .testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.testimonial-card .author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-card .author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ------------------------------------------
   16. Pricing / Enrollment
   ------------------------------------------ */
/* Pricing Card */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

.pricing-card.featured {
  border-color: var(--pink);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.pricing-card .popular-badge {
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--gradient);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 40px;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card .plan-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-card .plan-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-card .plan-price {
  margin-bottom: 1.5rem;
}

.pricing-card .plan-features {
  text-align: left;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-card .plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-card .plan-features li .check-icon {
  color: var(--success);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pricing-card .plan-features li .cross-icon {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Enrollment Form */
.enrollment-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.payment-method-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-method-card:hover,
.payment-method-card.selected {
  border-color: var(--purple);
  background: rgba(131, 58, 180, 0.03);
}

.payment-method-card input[type="radio"] {
  accent-color: var(--purple);
  width: 18px;
  height: 18px;
}

.payment-method-card .method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--border-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}


/* ------------------------------------------
   17. Stats & Counters
   ------------------------------------------ */
.counter-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.counter-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

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


/* ------------------------------------------
   18. Auth Pages
   ------------------------------------------ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--gradient);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.08;
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}

.auth-card .auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card .auth-logo {
  height: 48px;
  margin-bottom: 1.5rem;
}

.auth-card .auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-card .form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-card .form-control {
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--bg-light);
}

.auth-card .form-control:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(131, 58, 180, 0.1);
  background: var(--white);
}

.auth-card .input-group-text {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 10px 0 0 10px;
  color: var(--text-muted);
}

.auth-card .input-group .form-control {
  border-radius: 0 10px 10px 0;
}

.auth-card .form-check-input:checked {
  background-color: var(--purple);
  border-color: var(--purple);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
}

.social-auth-btn:hover {
  background: var(--bg-light);
  border-color: var(--border-light);
}

.auth-footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.auth-footer-text a {
  color: var(--pink);
  font-weight: 600;
}

.auth-footer-text a:hover {
  color: var(--purple);
}


/* ------------------------------------------
   19. Footer
   ------------------------------------------ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer .footer-links {
  list-style: none;
  padding: 0;
}

.footer .footer-links li {
  margin-bottom: 10px;
}

.footer .footer-links li a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer .footer-brand img {
  height: 36px;
}

.footer .footer-brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.footer .newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
}

.footer .newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer .newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer .newsletter-form input:focus {
  outline: none;
  border-color: var(--pink);
  background: rgba(255, 255, 255, 0.12);
}

.footer .newsletter-form button {
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--gradient);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer .newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.footer .social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer .social-link:hover {
  background: var(--gradient);
  color: var(--white);
  transform: translateY(-3px);
}

.footer .social-links-list {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.footer-bottom .footer-bottom-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

.footer-bottom .footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-bottom .footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .footer-bottom-links a:hover {
  color: var(--white);
  padding-left: 0;
}


/* ------------------------------------------
   20. Error / 404 Page
   ------------------------------------------ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.error-code {
  font-size: 10rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
  position: relative;
}

.error-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.error-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.error-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.error-decorations .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
}


/* ------------------------------------------
   21. Form Controls
   ------------------------------------------ */
.form-control,
.form-select {
  border-radius: 10px;
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(131, 58, 180, 0.1);
  outline: none;
}

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

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

.input-group .input-group-text {
  border: 1px solid var(--border-light);
  background: var(--border-lighter);
  color: var(--text-muted);
  border-radius: 10px 0 0 10px;
}

.input-group .form-control {
  border-radius: 0 10px 10px 0;
}

.form-check-input:checked {
  background-color: var(--purple);
  border-color: var(--purple);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(131, 58, 180, 0.15);
  border-color: var(--purple);
}

/* Course Filter Sidebar */
.filter-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.filter-sidebar h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-lighter);
}

.filter-sidebar .form-check {
  margin-bottom: 0.5rem;
}

.filter-sidebar .form-check-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-sidebar .form-check-label:hover {
  color: var(--text-primary);
}

/* Range slider */
.form-range::-webkit-slider-thumb {
  background: var(--gradient);
}

.form-range::-moz-range-thumb {
  background: var(--gradient);
}


/* ------------------------------------------
   22. Course Detail Page
   ------------------------------------------ */
.course-banner {
  height: 380px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}

.course-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27, 42, 74, 0.2), rgba(27, 42, 74, 0.75));
}

.course-banner-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 3rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.course-detail-tabs .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: var(--transition);
}

.course-detail-tabs .nav-link.active {
  color: var(--pink);
  background: var(--white);
  border-bottom: 2px solid var(--pink);
}

.course-curriculum-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: var(--transition);
}

.course-curriculum-item:hover {
  background: var(--border-lighter);
  border-color: var(--border-light);
}

.course-curriculum-item .item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-lighter);
  color: var(--text-secondary);
  flex-shrink: 0;
  font-size: 0.85rem;
}

.course-sticky-sidebar {
  position: sticky;
  top: 100px;
}

/* What You'll Learn grid */
.learn-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.learn-item .check {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}


/* ------------------------------------------
   23. Swiper / Carousel Overrides
   ------------------------------------------ */
.swiper {
  padding-bottom: 50px !important;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--border-light);
  opacity: 1;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background: var(--pink);
  width: 28px;
  border-radius: 5px;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--navy);
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--gradient);
  color: var(--white);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}


/* ------------------------------------------
   24. Back to Top Button
   ------------------------------------------ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
  box-shadow: var(--shadow-md);
  font-size: 1.1rem;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gradient);
}


/* ------------------------------------------
   25. Loading & Spinner
   ------------------------------------------ */
.spinner-gradient {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-gradient-sm {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

/* Page preloader overlay */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader .loader-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--border-lighter) 25%, var(--border-light) 50%, var(--border-lighter) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 22px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-image {
  height: 200px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}


/* ------------------------------------------
   26. Lazy Load Images
   ------------------------------------------ */
img[data-src] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.loaded {
  opacity: 1;
}


/* ------------------------------------------
   27. Animations & Keyframes
   ------------------------------------------ */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(-10px);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Animation utility classes */
.animate-fadeInUp { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fadeInDown { animation: fadeInDown 0.6s ease-out forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.6s ease-out forwards; }
.animate-fadeInRight { animation: fadeInRight 0.6s ease-out forwards; }
.animate-scaleIn { animation: scaleIn 0.5s ease-out forwards; }
.animate-bounce { animation: bounce 1s infinite; }

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Intersection Observer reveal class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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


/* ------------------------------------------
   28. Responsive Adjustments
   ------------------------------------------ */

/* Large Tablets & Small Desktops */
@media (max-width: 1199.98px) {
  .hero-tagline { font-size: 2.75rem; }
}

/* Tablets */
@media (max-width: 991.98px) {
  .section-title { font-size: 2rem; }
  .hero-section { padding: 100px 0 60px; }
  .hero-tagline { font-size: 2.2rem !important; }
  .counter-value { font-size: 2.25rem; }
  .hero-stats { gap: 2rem; }
  .course-banner { height: 280px; }

  .navbar-collapse {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
  }
}

/* Small Tablets */
@media (max-width: 767.98px) {
  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
  .section-padding { padding-top: 50px; padding-bottom: 50px; }
  .hero-section { padding: 80px 0 50px; }
  .hero-tagline { font-size: 1.8rem !important; }
  .hero-description { font-size: 1rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stats .stat-number { font-size: 1.5rem; }
  .counter-value { font-size: 2rem; }
  .course-card .card-img-top { height: 180px; }
  .course-banner { height: 220px; }
  .error-code { font-size: 6rem; }
  .auth-card { padding: 2rem; }
  .footer-bottom .footer-bottom-links { justify-content: center; }

  .hero-mini-card {
    display: none;
  }
}

/* Phones */
@media (max-width: 575.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  .section-title { font-size: 1.5rem; }
  .hero-tagline { font-size: 1.5rem !important; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-gradient,
  .hero-buttons .btn-outline-gradient,
  .hero-buttons .btn-navy {
    width: 100%;
    justify-content: center;
  }
  .btn-gradient { padding: 12px 28px; font-size: 0.9rem; }
  .btn-outline-gradient { padding: 10px 24px; font-size: 0.9rem; }
  .btn-navy { padding: 12px 28px; font-size: 0.9rem; }
  .feature-card { padding: 1.5rem 1.25rem; }
  .testimonial-card { padding: 1.5rem; }
  .pricing-card { padding: 2rem 1.5rem; }
  .error-code { font-size: 5rem; }
  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

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

  .floating-icon { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
