/* Course Detail Styles - Enhanced & Flashy */
.course-detail-page {
  background-color: #f8f9fa;
  color: #334155;
  font-family: 'Be Vietnam Pro', sans-serif;
}

/* === Hero Section (Dark & Flashy) === */
.course-hero {
  background: #070b14;
  background: radial-gradient(circle at 20% 30%, #1e293b 0%, #070b14 100%);
  color: #ffffff;
  padding-top: 120px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
}

/* Animated Glows */
.course-hero .glow-bg-1,
.course-hero .glow-bg-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 1;
  opacity: 0.4;
  animation: pulseGlow 10s infinite alternate;
}

.course-hero .glow-bg-1 {
  background: radial-gradient(circle, #3b82f6, transparent);
  top: -200px;
  left: -100px;
}

.course-hero .glow-bg-2 {
  background: radial-gradient(circle, #8b5cf6, transparent);
  bottom: -200px;
  right: -100px;
  animation-delay: -5s;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.3;
  }

  100% {
    transform: scale(1.2) translate(50px, 50px);
    opacity: 0.5;
  }
}

.text-gradient-primary {
  background: linear-gradient(to right, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.floating-card {
  animation: float 6s ease-in-out infinite;
}

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

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.glass-card-ultra {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.6);
}

.btn-shimmer-red {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f43f5e 0%, #d946ef 100%);
  color: white !important;
  border: none;
  box-shadow: 0 10px 20px -5px rgba(244, 63, 94, 0.5);
  z-index: 1;
  transition: all 0.3s ease;
}

.btn-shimmer-red:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(244, 63, 94, 0.6);
}

.discount-badge-fix {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  background: #f43f5e;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 50px;
}

.hero-price-highlight {
  color: #fbbf24 !important;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.benefit-icon-circle {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50% !important;
  color: #22c55e;
  font-size: 0.75rem;
}

.btn-circle-hero {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

/* Force elements to be white only in Hero */
.course-hero h1,
.course-hero h2,
.course-hero p,
.course-hero li,
.course-hero span:not(.badge, .hero-price-highlight) {
  color: #ffffff !important;
}

/* === Content Section Design === */
.course-content-section {
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  padding: 35px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  border: 1px solid #f1f5f9;
}

.custom-tabs .nav-link {
  color: #64748b !important;
  font-weight: 700;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.3s;
  background: transparent !important;
}

.custom-tabs .nav-link.active {
  color: #2563eb !important;
}

.custom-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #2563eb;
  border-radius: 10px;
}

/* Restore Premium List Style */
.premium-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.premium-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 5px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 16px;
  transition: all 0.3s;
  border: 1px solid #a8a8a830;
}

.premium-list li:hover {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transform: translateX(5px);
}

.premium-list li i {
  color: #2563eb;
  font-size: 1.25rem;
  margin-top: 2px;
}

.premium-list li span {
  color: #475569 !important;
  font-weight: 500;
  line-height: 1.5;
  font-size: 15px;
}

.content-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a !important;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-section-title::before {
  content: "";
  width: 4px;
  height: 24px;
  background: #2563eb;
  border-radius: 10px;
}

/* Restore Modern Accordion & Lesson Card */
.curriculum-accordion .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 16px !important;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s;
}

.curriculum-accordion .accordion-button {
  padding: 20px 25px;
  font-weight: 700;
  color: #1e293b !important;
  background-color: #ffffff;
  box-shadow: none;
}

.curriculum-accordion .accordion-button:not(.collapsed) {
  background-color: #f1f5f9;
  color: #2563eb !important;
}

.lesson-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s;
}

.lesson-card:last-child {
  border-bottom: none;
}

.lesson-card:hover {
  background-color: #f8fafc;
}

.lesson-card .lesson-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lesson-card .lesson-info i {
  color: #64748b;
  font-size: 1.1rem;
}

.lesson-card .lesson-info span {
  color: #1e293b !important;
}

.lesson-duration {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 100px;
}

/* About Content */
.rich-text-content {
  color: #475569 !important;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* === Related Courses Section (White-Pink Theme) === */
.related-courses-section {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
  position: relative;
  overflow: hidden;
}

.related-courses-section .glow-bg-4 {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.12), transparent);
  filter: blur(80px);
  z-index: 1;
}

.related-courses-section .glow-bg-5 {
  position: absolute;
  bottom: 5%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent);
  filter: blur(100px);
  z-index: 1;
}

/* MATCH HOMEPAGE: No background color as requested */
.related-courses-section .course-card {
  background: transparent !important;
  border: 1px solid rgba(61, 59, 110, 0.1) !important;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.related-courses-section .course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.5) !important;
}

.related-courses-section .course-card .card-title,
.related-courses-section .course-card .text-white,
.related-courses-section .course-card h5 {
  color: #0f172a !important;
}

.related-courses-section .course-card .text-white-50,
.related-courses-section .course-card small,
.related-courses-section .course-card li {
  color: #64748b !important;
}

.related-courses-section h2 {
  color: #0f172a !important;
}

.custom-tabs-container {
  margin-bottom: 25px;
}