/* ========================================
   PREMIUM CLEAN LMS - Professional Design
   Color Scheme: Deep Blue + Emerald + Sky
   Inspired by: Notion, Linear, Stripe
   ======================================== */

/* ========== Premium Color Palette ========== */
:root {
  /* Primary - Deep Professional Blues */
  --primary-50: #f8fafc;
  --primary-100: #f1f5f9;
  --primary-200: #e2e8f0;
  --primary-300: #cbd5e1;
  --primary-400: #94a3b8;
  --primary-500: #64748b;
  --primary-600: #475569;
  --primary-700: #334155;
  --primary-800: #1e293b;
  --primary-900: #0f172a;

  /* Accent - Vibrant Emerald */
  --accent-50: #ecfdf5;
  --accent-100: #d1fae5;
  --accent-500: #10b981;
  --accent-600: #059669;
  --accent-700: #047857;

  /* Secondary - Sky Blue */
  --secondary-500: #0ea5e9;
  --secondary-600: #0284c7;
  --secondary-700: #0369a1;

  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #0ea5e9;

  /* Backgrounds - Ultra Clean */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --bg-elevated: #ffffff;

  /* Text - High Contrast */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  --text-inverted: #ffffff;

  /* Borders */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  /* Shadows - Professional */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  --gradient-accent: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);

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

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

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

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Transitions */
  --transition-quick: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Global Reset ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Global Animated Graph Background */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 100%;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: graphMove 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: var(--accent-600);
  text-decoration: none;
  transition: color var(--transition-quick);
}

a:hover {
  color: var(--accent-700);
}

/* ========== Main Content Area ========== */
#main-content,
main {
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

/* ========== Container ========== */
.container-boxy {
  max-width: 1280px;
  width: 90%;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .container-boxy {
    width: 100%;
    padding: 0 var(--space-4);
  }
}

/* ========== NAVIGATION - With Search ========== */
.navbar-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-4) 0;
  transition: all var(--transition-base);
  overflow: visible;
}

/* Animated graph background for navbar */
.navbar-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: graphMove 20s linear infinite;
  z-index: -1;
  pointer-events: none;
}

.navbar-modern.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.navbar-modern.scrolled::before {
  opacity: 0.7;
}

.navbar-modern .container-fluid {
  max-width: 1280px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.navbar-modern .navbar-brand {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.navbar-modern .navbar-brand img {
  height: 32px;
}

/* Navbar Search */
.navbar-search {
  flex: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-4);
  transition: all var(--transition-base);
}

.navbar-search:focus-within {
  background: var(--bg-primary);
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.navbar-search i {
  color: var(--text-muted);
  font-size: var(--text-lg);
  margin-right: var(--space-2);
}

.navbar-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

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

/* Nav Links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-quick);
}

.nav-link:hover {
  color: var(--accent-600);
  background: var(--bg-secondary);
}

.nav-link.active {
  color: var(--accent-600);
  font-weight: var(--font-semibold);
}

/* Buttons */
.btn-modern-primary {
  padding: var(--space-3) var(--space-6);
  background: var(--accent-600);
  color: var(--text-inverted);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-modern-primary:hover {
  background: var(--accent-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--text-inverted);
}

.btn-modern-secondary {
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-modern-secondary:hover {
  border-color: var(--accent-500);
  color: var(--accent-600);
  background: var(--bg-secondary);
}

.dropdown {
  position: relative;
  z-index: 1100;
}

.dropdown-menu {
  min-width: 220px;
  padding: var(--space-2);
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 9999 !important;
  position: absolute !important;
}

/* Ensure dropdown is visible when shown */
.dropdown-menu.show {
  z-index: 9999 !important;
  display: block !important;
}

.dropdown-item {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-quick);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--accent-600);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-2) 0;
}

/* Mobile Toggle */
.navbar-toggler {
  padding: var(--space-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: transparent;
}

/* ========== HERO SECTION - Clean & Minimal ========== */
.hero-enhanced {
  padding: calc(80px + var(--space-24)) 0 var(--space-24);
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Floating Icons Background Animation */
.hero-floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  font-size: 50px;
  color: var(--accent-500);
  opacity: 0.25;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

/* Individual icon positions and animations */
.icon-1 {
  top: 15%;
  left: 10%;
  animation: floatIcon1 15s infinite;
}

.icon-2 {
  top: 25%;
  right: 15%;
  animation: floatIcon2 18s infinite;
  animation-delay: 2s;
}

.icon-3 {
  top: 60%;
  left: 8%;
  animation: floatIcon3 20s infinite;
  animation-delay: 4s;
}

.icon-4 {
  top: 70%;
  right: 12%;
  animation: floatIcon4 16s infinite;
  animation-delay: 1s;
}

.icon-5 {
  top: 40%;
  left: 25%;
  font-size: 30px;
  animation: floatIcon5 17s infinite;
  animation-delay: 3s;
}

.icon-6 {
  top: 50%;
  right: 25%;
  font-size: 35px;
  animation: floatIcon6 19s infinite;
  animation-delay: 5s;
}

.icon-7 {
  top: 80%;
  left: 40%;
  font-size: 28px;
  animation: floatIcon7 14s infinite;
  animation-delay: 2.5s;
}

.icon-8 {
  top: 20%;
  right: 35%;
  font-size: 32px;
  animation: floatIcon8 21s infinite;
  animation-delay: 1.5s;
}

.icon-9 {
  top: 35%;
  left: 45%;
  font-size: 38px;
  animation: floatIcon9 19s infinite;
  animation-delay: 3.5s;
}

.icon-10 {
  top: 75%;
  right: 20%;
  font-size: 42px;
  animation: floatIcon10 16s infinite;
  animation-delay: 4.5s;
}

.icon-11 {
  top: 55%;
  right: 8%;
  font-size: 36px;
  animation: floatIcon11 18s infinite;
  animation-delay: 2s;
}

.icon-12 {
  top: 10%;
  left: 35%;
  font-size: 34px;
  animation: floatIcon12 20s infinite;
  animation-delay: 5s;
}

/* Floating animations */
@keyframes floatIcon1 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(20px, -30px) rotate(10deg);
  }
}

@keyframes floatIcon2 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-25px, 35px) rotate(-15deg);
  }
}

@keyframes floatIcon3 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, -20px) rotate(20deg);
  }
}

@keyframes floatIcon4 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-20px, -40px) rotate(-10deg);
  }
}

@keyframes floatIcon5 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(15px, 25px) scale(1.2);
  }
}

@keyframes floatIcon6 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, -15px) scale(1.1);
  }
}

@keyframes floatIcon7 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(15deg);
  }
}

@keyframes floatIcon8 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(30px) rotate(-12deg);
  }
}

@keyframes floatIcon9 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(-20px, 20px) rotate(18deg) scale(1.15);
  }
}

@keyframes floatIcon10 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(25px, -35px) rotate(-20deg);
  }
}

@keyframes floatIcon11 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-15px, -25px) scale(1.12);
  }
}

@keyframes floatIcon12 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(18px, 28px) rotate(22deg);
  }
}

/* Premium Animated Shapes */
.hero-animated-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.shape-circle {
  position: absolute;
  border: 2px solid var(--accent-500);
  border-radius: 50%;
  opacity: 0.15;
}

.circle-1 {
  width: 150px;
  height: 150px;
  top: 10%;
  right: 10%;
  animation: rotateCircle 25s linear infinite;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: 15%;
  left: 5%;
  animation: rotateCircle 30s linear infinite reverse;
}

.circle-3 {
  width: 120px;
  height: 120px;
  top: 50%;
  right: 40%;
  animation: rotateCircle 20s linear infinite;
}

.shape-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-500);
  border-radius: 50%;
  opacity: 0.4;
}

.dot-1 {
  top: 25%;
  left: 15%;
  animation: pulseDot 3s ease-in-out infinite;
}

.dot-2 {
  top: 65%;
  right: 18%;
  animation: pulseDot 4s ease-in-out infinite 1s;
}

.dot-3 {
  top: 45%;
  left: 30%;
  animation: pulseDot 3.5s ease-in-out infinite 2s;
}

.dot-4 {
  top: 80%;
  right: 35%;
  animation: pulseDot 4.5s ease-in-out infinite 1.5s;
}

@keyframes rotateCircle {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

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

@keyframes graphMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-content-enhanced {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--accent-700);
  margin-bottom: var(--space-6);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
  }
}

.hero-title-enhanced {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .hero-title-enhanced {
    font-size: var(--text-4xl);
  }
}

.gradient-text-animated {
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 50%, #10b981 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  position: relative;
}

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

.hero-description-enhanced {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.btn-hero-primary {
  padding: var(--space-5) var(--space-10);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--text-inverted);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-lg), 0 4px 20px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

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

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

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 6px 30px rgba(16, 185, 129, 0.4);
  color: var(--text-inverted);
}

.btn-hero-secondary {
  padding: var(--space-5) var(--space-10);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-hero-secondary:hover {
  border-color: var(--accent-500);
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.hero-stats-inline {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.stat-inline-item {
  text-align: center;
}

.stat-inline-item strong {
  display: block;
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--accent-600);
  margin-bottom: var(--space-1);
}

.stat-inline-item span {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== COURSES SECTION ========== */
.courses-section-enhanced {
  padding: var(--space-24) 0;
}

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

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* Course Card */
.course-card-enhanced {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--accent-500);
  background: rgba(255, 255, 255, 0.85);
}

.course-image-container-enhanced {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gradient-primary);
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.course-card-enhanced:hover .course-image {
  transform: scale(1.05);
}

.course-placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-favorite-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  background: var(--bg-primary);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: all var(--transition-base);
}

.course-card-enhanced:hover .course-favorite-btn {
  opacity: 1;
}

.course-favorite-btn i {
  color: var(--text-secondary);
}

.course-favorite-btn:hover {
  background: var(--error);
}

.course-favorite-btn:hover i {
  color: var(--text-inverted);
}

.course-meta-overlay-enhanced {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  display: flex;
  justify-content: space-between;
}

.course-level-badge {
  padding: var(--space-1) var(--space-3);
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
}

.badge-intro { color: var(--info); }
.badge-beginner { color: var(--success); }
.badge-intermediate { color: var(--warning); }
.badge-advanced { color: var(--error); }

.course-price-badge-enhanced {
  padding: var(--space-1) var(--space-3);
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
}

.course-free-badge-enhanced {
  background: var(--success);
  color: var(--text-inverted);
}

.course-body-enhanced {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-title-enhanced {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-description-enhanced {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.course-meta-info {
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.meta-item i {
  color: var(--accent-600);
}

.course-rating-enhanced {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.course-rating-enhanced .stars {
  display: flex;
  gap: 2px;
}

.course-rating-enhanced .stars i {
  color: #fbbf24;
  font-size: var(--text-sm);
}

.rating-text {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.btn-course-enhanced {
  padding: var(--space-3) var(--space-5);
  background: var(--accent-600);
  color: var(--text-inverted);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-decoration: none;
}

.btn-course-enhanced:hover {
  background: var(--accent-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-inverted);
}

/* ========== LEARNING PATH ========== */
.learning-path-section {
  padding: var(--space-24) 0;
  background: transparent;
}

.learning-path-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.path-step {
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.path-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-500);
  background: rgba(255, 255, 255, 0.85);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--accent-600);
  color: var(--text-inverted);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-extrabold);
  box-shadow: var(--shadow-lg);
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: var(--space-6) auto var(--space-4);
  background: var(--accent-50);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon i {
  font-size: var(--text-4xl);
  color: var(--accent-600);
}

.step-content h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.step-content p {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

/* ========== STATS SECTION ========== */
.stats-section-enhanced {
  padding: var(--space-24) 0;
  background: transparent;
  color: var(--text-primary);
}

.stats-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-10);
}

.stat-card-enhanced {
  text-align: center;
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: var(--accent-50);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  font-size: var(--text-3xl);
  color: var(--accent-600);
}

.stat-number-enhanced {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.stat-label-enhanced {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

/* ========== TESTIMONIALS ========== */
.testimonials-section-enhanced {
  padding: var(--space-24) 0;
}

.testimonial-card-enhanced {
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-smooth);
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.testimonial-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-500);
  background: rgba(255, 255, 255, 0.85);
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-4);
}

.testimonial-rating i {
  color: #fbbf24;
  font-size: var(--text-lg);
}

.testimonial-text-enhanced {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author-enhanced {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.author-image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-light);
}

.author-info h5 {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-1);
}

.author-info p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin: 0;
}

/* ========== CTA FINAL ========== */
.cta-final {
  padding: var(--space-24) 0;
  background: transparent;
}

.btn-cta-primary {
  padding: var(--space-5) var(--space-12);
  background: var(--accent-600);
  color: var(--text-inverted);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-lg);
}

.btn-cta-primary:hover {
  background: var(--accent-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--text-inverted);
}

.btn-cta-secondary {
  padding: var(--space-5) var(--space-12);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-cta-secondary:hover {
  border-color: var(--accent-500);
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-muted { color: var(--text-tertiary) !important; }
.lead { font-size: var(--text-xl); line-height: 1.6; }
.display-5 { font-size: var(--text-5xl); font-weight: var(--font-extrabold); }
.fw-bold { font-weight: var(--font-bold); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mt-5 { margin-top: var(--space-5); }
.g-4 > * { padding: var(--space-4); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .navbar-search {
    display: none;
  }
  
  .hero-cta-group {
    flex-direction: column;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
  }
}

/* ========== ACCESSIBILITY ========== */
*:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

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