@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- 1. DESIGN VARIABLES & RESET --- */
:root {
  --primary: #5e17eb;
  --primary-light: #8b5cf6;
  --secondary: #2563eb;
  --accent: #06b6d4;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-pure: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-heavy: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(255, 255, 255, 0.6);
  --border-glass-dark: rgba(94, 23, 235, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 30px rgba(99, 102, 241, 0.04);
  --shadow-lg: 0 20px 40px rgba(99, 102, 241, 0.08);
  --shadow-glow: 0 0 24px rgba(94, 23, 235, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-family-body: 'Inter', sans-serif;
  --font-family-title: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  touch-action: manipulation;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--bg-pure);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
  line-height: 1.6;
  background-image: radial-gradient(circle at 1px 1px, rgba(94, 23, 235, 0.02) 1px, transparent 0);
  background-size: 32px 32px;
  touch-action: manipulation;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-pure);
}
::-webkit-scrollbar-thumb {
  background: rgba(94, 23, 235, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- 2. GLOBAL UTILITIES & DECORATIONS --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-mesh {
  background: linear-gradient(135deg, rgba(94, 23, 235, 0.05) 0%, rgba(37, 99, 235, 0.03) 50%, rgba(6, 182, 212, 0.05) 100%);
}

/* Floating Glow Blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  animation: float-blob 12s infinite ease-in-out;
  pointer-events: none;
}

.blob-primary {
  width: 400px;
  height: 400px;
  background: var(--primary-light);
  top: -10%;
  right: -10%;
}

.blob-secondary {
  width: 350px;
  height: 350px;
  background: var(--secondary);
  bottom: 10%;
  left: -5%;
  animation-delay: -3s;
}

.blob-accent {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 40%;
  right: 15%;
  animation-delay: -6s;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.glass-panel:hover {
  background: var(--bg-glass-heavy);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glass-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(94, 23, 235, 0.25);
}

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

.btn-secondary:hover {
  background: var(--bg-glass-heavy);
  border-color: var(--primary-light);
  transform: translateY(-3px);
}

.btn-text {
  background: transparent;
  color: var(--text-main);
  padding: 0.8rem 1rem;
}

.btn-text:hover {
  color: var(--primary);
  transform: translateX(3px);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(94, 23, 235, 0.08);
  color: var(--primary);
  border: 1px solid rgba(94, 23, 235, 0.15);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-header h2 {
  font-family: var(--font-family-title);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- 3. HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.25rem 0;
}

header.scrolled {
  padding: 0.75rem 0;
  background: #ffffff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(94, 23, 235, 0.08);
  box-shadow: var(--shadow-sm);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-family-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-img {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.logo-link:hover .logo-img {
  transform: rotate(-5deg) scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-main);
  border-radius: 4px;
  transition: var(--transition);
}

/* --- 4. HERO SECTION --- */
.hero {
  position: relative;
  padding-top: 10.5rem;
  padding-bottom: 7.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-content h1 {
  font-family: var(--font-family-title);
  font-size: 4.2rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 2rem;
}

.stat-item h3 {
  font-family: var(--font-family-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.hero-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 480px;
}

.floating-mesh-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(94, 23, 235, 0.2) 0%, rgba(37, 99, 235, 0.1) 60%, transparent 100%);
  border-radius: 50%;
  filter: blur(10px);
}

.hero-glass-card {
  position: absolute;
  padding: 1.5rem;
  width: 250px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-glass-card.c1 {
  top: 10%;
  left: 0;
  transform: rotate(-6deg);
  animation: float-card-1 6s infinite ease-in-out;
}

.hero-glass-card.c2 {
  bottom: 15%;
  right: -5%;
  transform: rotate(4deg);
  animation: float-card-2 8s infinite ease-in-out;
}

.hero-glass-card.c3 {
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  box-shadow: 0 10px 40px rgba(94, 23, 235, 0.12);
  border: 1px solid rgba(255,255,255,0.8);
  animation: float-card-3 7s infinite ease-in-out;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(94, 23, 235, 0.1), rgba(37, 99, 235, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.card-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

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

@keyframes float-card-1 {
  0% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-15px) rotate(-8deg); }
  100% { transform: translateY(0) rotate(-6deg); }
}

@keyframes float-card-2 {
  0% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
  100% { transform: translateY(0) rotate(4deg); }
}

@keyframes float-card-3 {
  0% { transform: translate(-50%, -50%) translateY(0) scale(1); }
  50% { transform: translate(-50%, -50%) translateY(12px) scale(1.05); }
  100% { transform: translate(-50%, -50%) translateY(0) scale(1); }
}

/* --- 5. COMPACT/TRUSTED PARTNERS --- */
.partners {
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: rgba(255, 255, 255, 0.3);
}

.partners-wrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.partner-logo {
  font-family: var(--font-family-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.35);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- 6. COURSES SECTION --- */
.courses-sec {
  padding: 7.5rem 0;
  position: relative;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.course-card {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.course-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 554;
  overflow: hidden;
  background: #f1f5f9;
}

.course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.course-category-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(94, 23, 235, 0.06);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid rgba(94, 23, 235, 0.12);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.course-body h3 {
  font-family: var(--font-family-title);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.course-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1.5rem;
  margin-top: auto;
}

.course-price h4 {
  font-family: var(--font-family-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.course-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-weight: 500;
}

/* --- 7. FEATURED BUNDLE SECTION --- */
.bundle-sec {
  padding: 7.5rem 0;
  position: relative;
}

.bundle-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 110%;
  background: radial-gradient(circle at center, rgba(94, 23, 235, 0.03) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.bundle-card {
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.bundle-tag {
  align-self: flex-start;
  margin-bottom: 1.5rem;
}

.bundle-content h2 {
  font-family: var(--font-family-title);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.bundle-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.bundle-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.bundle-features li {
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
}

.bundle-features svg {
  color: var(--accent);
  flex-shrink: 0;
}

.bundle-checkout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.02);
}

.price-box {
  margin-bottom: 2rem;
  text-align: center;
}

.price-original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.price-offer {
  font-family: var(--font-family-title);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.coupon-group {
  position: relative;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.coupon-input {
  flex-grow: 1;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1.5px dashed rgba(94, 23, 235, 0.25);
  background: var(--bg-pure);
  font-family: var(--font-family-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  transition: var(--transition);
}

.coupon-input:focus {
  border-color: var(--primary);
  background: rgba(94, 23, 235, 0.02);
}

.coupon-btn {
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--text-main);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.coupon-btn:hover {
  background: var(--primary);
}

.coupon-message {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  min-height: 20px;
  text-align: center;
  transition: var(--transition);
}

.coupon-message.success {
  color: #10b981;
  animation: bounce-msg 0.5s ease;
}

.coupon-message.error {
  color: #ef4444;
}

@keyframes bounce-msg {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* --- 8. WHY CHOOSE US (TIMELINE) --- */
.why-us {
  padding: 7.5rem 0;
  background: rgba(94, 23, 235, 0.01);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  transform: translateX(-50%);
  opacity: 0.2;
}

.timeline-item {
  width: 100%;
  margin-bottom: 4rem;
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
}

.timeline-indicator {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-pure);
  border: 4px solid var(--primary);
  z-index: 10;
  box-shadow: 0 0 10px rgba(94, 23, 235, 0.2);
}

.timeline-content {
  width: 44%;
  padding: 2rem;
  position: relative;
}

.timeline-content h3 {
  font-family: var(--font-family-title);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline-content h3 svg {
  color: var(--primary);
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- 9. LEARNING ROADMAP --- */
.roadmap-sec {
  padding: 7.5rem 0;
}

.roadmap-flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
}

.roadmap-step {
  flex: 1;
  min-width: 170px;
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.roadmap-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -1.25rem;
  top: 35%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  opacity: 0.4;
  font-weight: 700;
}

.step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(94, 23, 235, 0.08), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(94, 23, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}

.roadmap-step:hover .step-num {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.roadmap-step h4 {
  font-family: var(--font-family-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* --- 10. SUCCESS STORIES / TESTIMONIALS --- */
.success-sec {
  padding: 7.5rem 0;
  background: rgba(94, 23, 235, 0.01);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  padding: 2.25rem;
}

.test-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.test-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.test-info h4 {
  font-family: var(--font-family-title);
  font-size: 1rem;
  font-weight: 700;
}

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

.test-comment {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* --- 11. FAQ SECTION --- */
.faq-sec {
  padding: 7.5rem 0;
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.faq-header {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-family-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.faq-header span {
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.active .faq-header span {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-content {
  padding: 0 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- 12. CALL TO ACTION --- */
.cta-sec {
  padding: 7.5rem 0;
}

.cta-card {
  padding: 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card h2 {
  font-family: var(--font-family-title);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.cta-card p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

/* --- 13. FOOTER --- */
footer {
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 6rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo-wrap p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 250px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.04);
}

.social-icon:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.footer-col h4 {
  font-family: var(--font-family-title);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 3px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input {
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-family-body);
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- 14. LOGIN & AUTH PORTAL --- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.auth-card {
  width: 100%;
  max-width: 485px;
  padding: 3rem;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  font-family: var(--font-family-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-align: center;
}

.auth-tab.active {
  color: var(--primary);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.auth-form-group {
  margin-bottom: 1.5rem;
}

.auth-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.auth-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-family-body);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg-pure);
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 23, 235, 0.08);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

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

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-error {
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  background: rgba(239, 68, 68, 0.05);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.15);
  display: none;
}

/* --- 15. STUDENT PORTAL / DASHBOARD --- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
}

.sidebar {
  width: 280px;
  background: var(--bg-pure);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  padding: 2rem 1.5rem;
}

.sidebar-logo {
  margin-bottom: 3.5rem;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(94, 23, 235, 0.05);
  color: var(--primary);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1.5rem;
}

.main-content {
  margin-left: 280px;
  flex-grow: 1;
  padding: 3rem 4rem;
  overflow-y: auto;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}

.dash-header h1 {
  font-family: var(--font-family-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info-text {
  text-align: right;
}

.user-info-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

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

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.dash-card {
  padding: 2rem;
  background: var(--bg-pure);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.01);
  border-radius: var(--radius-md);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dash-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(94, 23, 235, 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.dash-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dash-card-value {
  font-family: var(--font-family-title);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

/* My Courses List Grid */
.dash-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.dash-course-card {
  background: var(--bg-pure);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dash-course-body {
  padding: 1.75rem;
  flex-grow: 1;
}

.dash-course-body h3 {
  font-family: var(--font-family-title);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.progress-container {
  margin: 1.25rem 0;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dash-course-footer {
  padding: 1.25rem 1.75rem;
  background: rgba(0,0,0,0.01);
  border-top: 1px solid rgba(0,0,0,0.03);
  display: flex;
  justify-content: flex-end;
}

/* --- 16. COURSE PLAYER VIEW (PORTAL) --- */
.player-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  background: var(--bg-pure);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.video-player-container {
  padding: 2.25rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.lesson-info-details h2 {
  font-family: var(--font-family-title);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lesson-info-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tabs-container {
  margin-top: 2rem;
}

.tab-buttons {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.75rem 0.25rem;
  background: none;
  border: none;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.resources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
  border-radius: var(--radius-sm);
}

.resource-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.resource-download {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.resource-download:hover {
  text-decoration: underline;
}

/* Playlist panel */
.player-playlist {
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.01);
  max-height: 800px;
  overflow-y: auto;
}

.playlist-header {
  padding: 1.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--bg-pure);
}

.playlist-header h3 {
  font-family: var(--font-family-title);
  font-size: 1.2rem;
  font-weight: 700;
}

.playlist-module {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.playlist-module-title {
  padding: 1.1rem 1.5rem;
  background: rgba(94, 23, 235, 0.02);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.playlist-lessons {
  list-style: none;
}

.playlist-lesson-item {
  padding: 1.1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0,0,0,0.02);
}

.playlist-lesson-item:hover, .playlist-lesson-item.active {
  background: var(--bg-pure);
  color: var(--primary);
}

.lesson-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(94, 23, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.playlist-lesson-item.completed .lesson-check {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

/* Quiz styles */
.quiz-container {
  background: var(--bg-pure);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.quiz-question {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quiz-option {
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,0.02);
  border: 1.5px solid rgba(0,0,0,0.03);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quiz-option:hover {
  border-color: var(--primary-light);
  background: rgba(94, 23, 235, 0.02);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: rgba(94, 23, 235, 0.05);
  color: var(--primary);
}

.quiz-feedback {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: none;
}

.quiz-feedback.correct {
  display: block;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065f46;
}

.quiz-feedback.incorrect {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991b1b;
}

/* Certificate designs */
.certificate-preview-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.certificate-card {
  width: 100%;
  max-width: 700px;
  height: 480px;
  background: var(--bg-pure);
  border: 16px double var(--primary);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
  background-image: radial-gradient(circle at 1px 1px, rgba(94, 23, 235, 0.01) 1px, transparent 0);
  background-size: 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-border-accent {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid var(--secondary);
  pointer-events: none;
}

.cert-title {
  font-family: var(--font-family-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cert-recipient {
  font-family: var(--font-family-title);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 8px;
  margin: 1rem 0;
}

.cert-reason {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.cert-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 2rem;
}

.cert-signature {
  text-align: center;
  border-top: 1.5px solid var(--text-muted);
  width: 150px;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.cert-qr {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border-glass-dark);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

/* --- 17. ENTERPRISE ADMIN PORTAL --- */
.admin-sidebar {
  background: var(--text-main);
}

.admin-sidebar .sidebar-link {
  color: rgba(255, 255, 255, 0.6);
}

.admin-sidebar .sidebar-link:hover, .admin-sidebar .sidebar-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.table-panel {
  background: var(--bg-pure);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.panel-header h3 {
  font-family: var(--font-family-title);
  font-size: 1.3rem;
  font-weight: 700;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.9rem;
}

.data-table th {
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0,0,0,0.01);
}

.data-table tr:hover td {
  background: rgba(0,0,0,0.005);
}

.table-action-btn {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass-dark);
  background: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition);
}

.table-action-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.table-action-btn.danger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.15);
}

.table-action-btn.danger:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Modals & Forms */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 750px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-pure);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass-dark);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 1rem;
}

.modal-header h3 {
  font-family: var(--font-family-title);
  font-size: 1.45rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-col-span-2 {
  grid-column: span 2;
}

.admin-form-group {
  margin-bottom: 1.25rem;
}

.admin-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.admin-form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-family-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

.admin-form-input:focus {
  border-color: var(--primary);
}

.admin-form-textarea {
  width: 100%;
  height: 120px;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-family-body);
  font-size: 0.9rem;
  resize: vertical;
  transition: var(--transition);
}

.admin-form-textarea:focus {
  border-color: var(--primary);
}

.admin-form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-pure);
  font-family: var(--font-family-body);
  font-size: 0.9rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* Media Library Sim */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.media-card {
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,0.01);
  display: flex;
  flex-direction: column;
}

.media-preview-box {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--primary);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  overflow: hidden;
}

.media-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-info-box {
  padding: 0.75rem;
}

.media-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-size {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.media-delete-overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.media-delete-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-upload-area {
  border: 2px dashed rgba(94, 23, 235, 0.25);
  border-radius: var(--radius-md);
  padding: 3rem;
  text-align: center;
  background: rgba(94, 23, 235, 0.01);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2rem;
}

.media-upload-area:hover {
  background: rgba(94, 23, 235, 0.03);
  border-color: var(--primary);
}

.media-upload-area h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.media-upload-area p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Charts simulation */
.charts-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.chart-card {
  height: 350px;
  display: flex;
  flex-direction: column;
}

.chart-bar-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  padding-top: 2rem;
}

.chart-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 40px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 6px 6px 0 0;
  transition: height 0.6s ease;
  position: relative;
}

.chart-bar:hover {
  filter: brightness(1.15);
}

.chart-bar::before {
  content: attr(data-value);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.chart-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* --- 18. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-grid, .bundle-card, .footer-grid, .charts-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .courses-grid, .dash-courses-grid {
    grid-template-columns: 1fr;
  }

  .main-content {
    margin-left: 0;
    padding: 2rem 1.5rem;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 1000;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  /* Dashboard mobile layout additions */
  .sidebar-toggle-btn {
    display: inline-flex !important;
  }
  .dash-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  /* Stacking course details grids */
  .course-header-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .course-hero-banner {
    height: auto;
    aspect-ratio: 1280 / 554;
  }
  .course-main-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .cart-sidebar-card {
    position: static;
    margin-top: 2rem;
  }

  /* Stacking about and contact pages */
  .about-grid-content, .contact-grid-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline::before {
    left: 1.5rem;
  }

  .timeline-item {
    justify-content: flex-end !important;
  }

  .timeline-indicator {
    left: 1.5rem;
  }

  .timeline-content {
    width: calc(100% - 3.5rem);
  }

  .hero-art-wrapper {
    display: none;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  /* Disable resource-heavy glow blobs on mobile to prevent Safari scroll overflows and improve speed */
  .glow-blob {
    display: none !important;
  }

  /* Prevent iOS auto-zoom by forcing minimum 16px font size on inputs */
  input, select, textarea, .auth-input, .admin-form-input, .coupon-input {
    font-size: 16px !important;
  }

  /* Compact container spacing for mobile viewports */
  .container {
    padding: 0 1.25rem !important;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-pure);
    border-bottom: 1.5px solid var(--border-glass-dark);
    padding: 2rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }

  .header-cta {
    display: flex !important;
    gap: 0.5rem;
  }
  .header-cta .btn {
    padding: 0.5rem 0.8rem !important;
    font-size: 0.8rem !important;
  }
  .header-cta .btn-primary {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

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

  /* Stack and tighten grids */
  .courses-grid, .advantage-grid, .dash-courses-grid {
    gap: 1.5rem !important;
  }
  .course-body {
    padding: 1.5rem !important;
  }

  /* Point connector arrows downward in vertical mobile roadmap */
  .roadmap-step:not(:last-child)::after {
    content: '↓' !important;
    right: 50% !important;
    top: auto !important;
    bottom: -1rem !important;
    transform: translateX(50%) !important;
  }
  .roadmap-flow {
    gap: 2rem !important;
  }

  .testimonials-grid, .stats-overview-grid {
    grid-template-columns: 1fr;
  }

  .bundle-card {
    padding: 2rem 1.25rem !important;
    gap: 2rem !important;
  }

  .bundle-features {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .bundle-checkout {
    padding: 1.5rem 1rem !important;
  }

  .price-offer {
    font-size: 2.4rem !important;
  }

  .cta-card {
    padding: 2.5rem 1.5rem;
  }

  /* Scrollable container for tables to prevent breaks */
  .table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.03);
  }
}

/* --- 19. LMS UPGRADES: CHECKOUT MODALS, FILES UPLOADS & ACCORDIONS --- */
.admin-upload-preview {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(94, 23, 235, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(94, 23, 235, 0.01);
  margin-top: 0.75rem;
  transition: var(--transition);
}
.admin-upload-preview:hover {
  border-color: var(--primary);
  background: rgba(94, 23, 235, 0.03);
}
.admin-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-details-hero {
  padding-top: 10.5rem;
  padding-bottom: 4.5rem;
  background: linear-gradient(180deg, rgba(94, 23, 235, 0.03) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.course-header-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}
.course-hero-banner {
  width: 100%;
  aspect-ratio: 1280 / 554;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-glass-dark);
}
.course-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-main-layout {
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
}
.syllabus-module-wrap {
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bg-pure);
  transition: var(--transition);
}
.syllabus-module-wrap:hover {
  border-color: rgba(94, 23, 235, 0.15);
  box-shadow: 0 4px 12px rgba(94, 23, 235, 0.02);
}
.syllabus-module-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: rgba(94, 23, 235, 0.02);
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family-title);
  color: var(--text-main);
  transition: var(--transition);
}
.syllabus-module-header span {
  font-size: 1.3rem;
  color: var(--primary);
  transition: var(--transition);
}
.syllabus-lessons-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.syllabus-lessons-list.active {
  max-height: 600px;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.syllabus-lesson-item-detail {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.02);
  color: var(--text-muted);
  font-weight: 500;
}
.cart-sidebar-card {
  position: sticky;
  top: 6rem;
  padding: 2.5rem;
}
.checkout-features-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.checkout-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checkout-features-list svg {
  color: var(--primary);
}
.stripe-modal-card {
  max-width: 450px;
}
.stripe-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.stripe-field {
  flex: 1;
}
.stripe-input-wrapper {
  position: relative;
}
.stripe-input-wrapper input {
  padding-left: 2.5rem;
}
.stripe-icon-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.spinner-loading {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(94, 23, 235, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin-anim 0.8s linear infinite;
  margin: 1.5rem auto;
}
@keyframes spin-anim {
  to { transform: rotate(360deg); }
}

/* --- 20. THE SOFT QUEEN ADVANTAGE & CATALOG EXTRA STYLES --- */
.advantage-sec {
  padding: 7.5rem 0;
  position: relative;
}
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.advantage-card {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.advantage-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-dark);
  box-shadow: var(--shadow-lg);
}
.advantage-card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.advantage-card h3 {
  font-family: var(--font-family-title);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
}
.advantage-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .advantage-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- 21. MOBILE STICKY CHECKOUT BOTTOM BAR & OVERLAPS RESET --- */
#c-badge {
  position: relative !important;
  display: inline-flex !important;
  margin: 1.5rem 0 1rem 0 !important;
  z-index: 10 !important;
  top: auto !important;
  left: auto !important;
}

.mobile-sticky-checkout {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1.5px solid var(--border-glass-dark);
  padding: 1.25rem 2rem;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.06);
}

.mobile-sticky-price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sticky-price-original {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 500;
}

.sticky-price-offer {
  font-family: var(--font-family-title);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

@media (max-width: 768px) {
  .mobile-sticky-checkout {
    display: flex;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    padding: 1rem 1.5rem !important;
  }
  .cart-sidebar-card {
    display: none !important; /* Hide sidebar completely on mobile */
  }

  /* Premium High-Tech EdTech Overrides for course.html on Mobile */
  .course-details-hero {
    padding-top: 7.5rem !important;
    padding-bottom: 3rem !important;
    text-align: left !important;
  }
  .course-header-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .course-details-hero h1 {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }
  .course-details-hero p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }
  .course-hero-banner {
    height: auto !important;
    aspect-ratio: 1280 / 554 !important;
    margin-top: 0.5rem !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
  }
  .course-main-layout {
    padding: 2.5rem 0 6rem 0 !important; /* Extra bottom padding to clear the sticky bottom checkout bar */
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .course-main-layout h2 {
    font-size: 1.55rem !important;
    margin-bottom: 1rem !important;
  }
  #course-description {
    background: var(--bg-pure) !important;
    border: 1px solid var(--border-glass-dark) !important;
    border-radius: var(--radius-md) !important;
    padding: 1.5rem !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 2rem !important;
  }
  .syllabus-module-wrap {
    background: var(--bg-pure) !important;
    border: 1px solid var(--border-glass-dark) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.75rem !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .syllabus-module-header {
    padding: 1.1rem 1.25rem !important;
    font-size: 0.95rem !important;
  }
  .syllabus-lessons-list {
    background: rgba(94, 23, 235, 0.01) !important;
  }
  .syllabus-lesson-item-detail {
    padding: 0.9rem 1.25rem !important;
    font-size: 0.85rem !important;
  }
  .instructor-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 2rem 1.25rem !important;
    gap: 1.25rem !important;
    border-radius: var(--radius-md) !important;
    background: var(--bg-pure) !important;
    border: 1px solid var(--border-glass-dark) !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .instructor-card img {
    width: 85px !important;
    height: 85px !important;
    margin: 0 auto !important;
  }

  /* About page mobile overrides */
  .about-hero {
    padding-top: 7.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  .about-grid-content {
    grid-template-columns: 1fr !important;
    padding: 3rem 0 !important;
    gap: 2.5rem !important;
  }
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Contact page mobile overrides */
  .contact-hero {
    padding-top: 7.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  .contact-grid-layout {
    grid-template-columns: 1fr !important;
    padding: 3rem 0 !important;
    gap: 2.5rem !important;
  }

  /* Courses Catalog mobile overrides */
  .catalog-hero {
    padding-top: 7.5rem !important;
    padding-bottom: 3rem !important;
  }
  .filter-tabs-wrapper {
    margin-bottom: 2.5rem !important;
    gap: 0.5rem !important;
  }
  .filter-tab {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
  }

  /* Student & Admin Dashboard mobile navigation overrides */
  .mobile-bottom-nav {
    display: flex !important;
  }
  .sidebar {
    display: none !important;
  }
  .main-content {
    margin-left: 0 !important;
    padding: 1.5rem !important;
    padding-bottom: 5.5rem !important;
  }
  .sidebar-toggle-btn {
    display: none !important;
  }

  /* Dynamic Table-to-Card conversions for zero mobile horizontal scrolls */
  .table-panel, .table-scroll-wrapper {
    overflow-x: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .data-table, .data-table thead, .data-table tbody, .data-table th, .data-table td, .data-table tr {
    display: block !important;
    width: 100% !important;
  }
  .data-table thead {
    display: none !important;
  }
  .data-table tr {
    margin-bottom: 1.25rem !important;
    background: var(--bg-pure) !important;
    border: 1.5px solid var(--border-glass-dark) !important;
    border-radius: var(--radius-md) !important;
    padding: 1rem 1.25rem !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .data-table td {
    text-align: right !important;
    padding: 0.6rem 0 !important;
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(0,0,0,0.03) !important;
  }
  .data-table td:last-child {
    border-bottom: none !important;
  }
  .data-table td::before {
    content: attr(data-label) !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    float: left !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
}

/* --- 22. MOBILE STUDENT DASHBOARD BOTTOM NAVIGATION BAR --- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass-dark);
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.mobile-nav-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-family: var(--font-family-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
}

.mobile-nav-icon {
  font-size: 1.25rem;
}

.mobile-nav-btn.active {
  color: var(--primary);
}

