/* Courses Section - Updated to match React component */
.courses-section {
  position: relative;
  padding: 3rem 0;
  background: linear-gradient(to bottom right, #f8fafc, #ffffff, rgba(239, 246, 255, 0.2));
  overflow: hidden;
  transition: background-color 0.3s;
}

.dark-mode .courses-section {
  background: linear-gradient(to bottom right, #111827, #1f2937, rgba(30, 58, 138, 0.2));
}

/* Background Elements */
.courses-background {
  position: absolute;
  inset: 0;
}

.bg-circle-courses-1 {
  position: absolute;
  top: 4rem;
  right: 4rem;
  width: 5rem;
  height: 5rem;
  border: 1px solid rgba(219, 234, 254, 0.6);
  border-radius: 50%;
  opacity: 0.3;
}

.bg-square-courses-1 {
  position: absolute;
  top: 8rem;
  left: 6rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.08));
  border-radius: 0.25rem;
  transform: rotate(45deg);
}

.bg-circle-courses-2 {
  position: absolute;
  bottom: 6rem;
  right: 8rem;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(to right, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
  border-radius: 50%;
}

.bg-square-courses-2 {
  position: absolute;
  bottom: 4rem;
  left: 4rem;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(165, 243, 252, 0.4);
  border-radius: 0.5rem;
  transform: rotate(12deg);
}

/* Dark mode background elements */
.dark-mode .bg-circle-courses-1 {
  border-color: rgba(96, 165, 250, 0.2);
}

.dark-mode .bg-square-courses-1 {
  background: linear-gradient(to right, rgba(96, 165, 250, 0.1), rgba(34, 211, 238, 0.1));
}

.dark-mode .bg-circle-courses-2 {
  background: linear-gradient(to right, rgba(34, 211, 238, 0.2), rgba(96, 165, 250, 0.2));
}

.dark-mode .bg-square-courses-2 {
  border-color: rgba(34, 211, 238, 0.2);
}

/* Container */
.courses-container {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .courses-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .courses-container {
    padding: 0 2rem;
  }
}

/* Section Header */
.courses-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .courses-header {
    margin-bottom: 3rem;
  }
}

.courses-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(219, 234, 254, 0.4);
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.dark-mode .courses-badge {
  background-color: rgba(31, 41, 55, 0.7);
  border-color: rgba(29, 78, 216, 0.4);
}

.badge-dot-courses {
  width: 0.375rem;
  height: 0.375rem;
  background: linear-gradient(to right, #06b6d4, #3b82f6);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.courses-badge span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563;
}

.dark-mode .courses-badge span {
  color: #9ca3af;
}

.courses-title-section {
  max-width: 48rem;
  margin: 0 auto;
}

.courses-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .courses-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .courses-title {
    font-size: 2.25rem;
  }
}

.title-gradient-courses-1 {
  background: linear-gradient(to right, #111827, #1f2937, #111827);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dark-mode .title-gradient-courses-1 {
  background: linear-gradient(to right, #ffffff, #f3f4f6, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-gradient-courses-2 {
  background: linear-gradient(to right, #06b6d4, #3b82f6, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.courses-subtitle {
  font-size: 0.875rem;
  color: #4b5563;
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .courses-subtitle {
    font-size: 1rem;
  }
}

.dark-mode .courses-subtitle {
  color: #9ca3af;
}

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Course Card */
.course-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.dark-mode .course-card {
  background-color: rgba(31, 41, 55, 0.7);
  border-color: rgba(55, 65, 81, 0.5);
}
.dark-mode .course-card[data-course-id="1"] {
  border: 1px solid rgba(29, 78, 216, 0.4); /* blue-700/40 */
}

.dark-mode .course-card[data-course-id="2"] {
  border: 1px solid rgba(4, 120, 87, 0.4); /* emerald-700/40 */
}

.dark-mode .course-card[data-course-id="3"] {
  border: 1px solid rgba(126, 34, 206, 0.4); /* purple-700/40 */
}

.dark-mode .course-card[data-course-id="4"] {
  border: 1px solid rgba(194, 65, 12, 0.4); /* orange-700/40 */
}

.dark-mode .course-card[data-course-id="5"] {
  border: 1px solid rgba(190, 18, 60, 0.4); /* rose-700/40 */
}

.dark-mode .course-card[data-course-id="6"] {
  border: 1px solid rgba(109, 40, 217, 0.4); /* violet-700/40 */
}

.dark-mode .course-card[data-course-id="7"] {
  border: 1px solid rgba(21, 128, 61, 0.4); /* green-700/40 */
}

.dark-mode .course-card[data-course-id="8"] {
  border: 1px solid rgba(14, 116, 144, 0.4); /* cyan-700/40 */
}

.dark-mode .course-card[data-course-id="9"] {
  border: 1px solid rgba(67, 56, 202, 0.4); /* indigo-700/40 */
}

.dark-mode .course-card[data-course-id="10"] {
  border: 1px solid rgba(190, 18, 60, 0.4); /* pink-700/40 */
}

.dark-mode .course-card[data-course-id="11"] {
  border: 1px solid rgba(180, 83, 9, 0.4); /* yellow-700/40 */
}

.course-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.course-hover-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.dark-mode .course-card:hover .course-hover-bg {
  opacity: 0.05;
}

/* Course Image */
.course-image-container {
  position: relative;
  height: 8rem;
  overflow: hidden;
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.course-card:hover .course-image {
  transform: scale(1.05);
}

.course-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

.course-icon-wrapper {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.course-icon {
  height: 0.75rem;
  width: 0.75rem;
  color: white;
}

/* Availability Badge */
.course-availability {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.course-available {
  background-color: rgba(16, 185, 129, 0.8);
  color: white;
}

.course-coming-soon {
  background-color: rgba(251, 146, 60, 0.8);
  color: white;
}

.availability-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
}

.course-available .availability-dot {
  background-color: white;
  animation: pulse 2s infinite;
}

.course-coming-soon .availability-dot {
  background-color: white;
}

/* Course Content */
.course-content {
  position: relative;
  z-index: 10;
  padding: 1.25rem;
}

.course-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.dark-mode .course-title {
  color: white;
}

.course-description {
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.dark-mode .course-description {
  color: #9ca3af;
}

/* Course Meta */
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.dark-mode .course-meta {
  color: #9ca3af;
}

.course-students, .course-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.course-students svg, .course-rating svg {
  height: 0.75rem;
  width: 0.75rem;
}

/* Course Skills */
.course-skills {
  margin-bottom: 0.75rem;
}

.course-skills-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.dark-mode .course-skills-title {
  color: #d1d5db;
}

.course-skill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.skill-dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
}

.skill-name {
  font-size: 0.75rem;
  color: #4b5563;
}

.dark-mode .skill-name {
  color: #9ca3af;
}

/* Course Price and CTA */
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.dark-mode .course-footer {
  border-top-color: rgba(75, 85, 99, 0.5);
}

.course-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
}

.dark-mode .course-price {
  color: white;
}

.course-cta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  transition: all 0.2s;
}

.course-cta:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.course-cta svg {
  height: 0.75rem;
  width: 0.75rem;
  transition: transform 0.2s;
}

.course-cta:hover svg {
  transform: translateX(0.125rem);
}

/* View All Courses Button */
.courses-cta-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.view-all-courses-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(to right, #06b6d4, #3b82f6);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.view-all-courses-btn:hover {
  background: linear-gradient(to right, #0891b2, #2563eb);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

.btn-icon-courses {
  height: 1rem;
  width: 1rem;
}

/* Features Showcase */
.courses-features-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .courses-features-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
}

.course-feature-card {
  text-align: center;
}

.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  transition: transform 0.2s;
}

.course-feature-card:hover .feature-icon-wrapper {
  transform: scale(1.05);
}

.feature-icon {
  height: 1rem;
  width: 1rem;
  color: white;
}

.feature-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.dark-mode .feature-title {
  color: white;
}

.feature-description {
  font-size: 0.75rem;
  color: #4b5563;
}

.dark-mode .feature-description {
  color: #9ca3af;
}

/* Bottom CTA */
.courses-bottom-cta {
  text-align: center;
}

.cta-card {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(229, 231, 235, 0.4);
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark-mode .cta-card {
  background-color: rgba(31, 41, 55, 0.8);
  border-color: rgba(75, 85, 99, 0.4);
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(to right, #06b6d4, #3b82f6);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.cta-badge-icon {
  height: 0.75rem;
  width: 0.75rem;
}

.cta-content {
  margin-bottom: 1rem;
}

.cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 1.5rem;
  }
}

.dark-mode .cta-title {
  color: white;
}

.cta-subtitle {
  font-size: 0.875rem;
  color: #4b5563;
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.5;
}

.dark-mode .cta-subtitle {
  color: #9ca3af;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.whatsapp-courses-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(to right, #10b981, #059669);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.whatsapp-courses-btn:hover {
  background: linear-gradient(to right, #059669, #047857);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

.advice-courses-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: white;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer;
}

.dark-mode .advice-courses-btn {
  background-color: #1f2937;
  border-color: #4b5563;
  color: #d1d5db;
}

.advice-courses-btn:hover {
  border-color: #06b6d4;
  color: #06b6d4;
}

.dark-mode .advice-courses-btn:hover {
  border-color: #06b6d4;
  color: #06b6d4;
}

.btn-icon-cta {
  height: 0.75rem;
  width: 0.75rem;
}

/* Shimmer Loading Effect */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.4) 60%,
    rgba(255, 255, 255, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.dark .shimmer {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.2) 20%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Gradient Classes */
.blue-gradient {
  background: linear-gradient(to right, #3b82f6, #06b6d4);
}

.emerald-gradient {
  background: linear-gradient(to right, #10b981, #14b8a6);
}

.purple-gradient {
  background: linear-gradient(to right, #8b5cf6, #6366f1);
}

.orange-gradient {
  background: linear-gradient(to right, #f97316, #f59e0b);
}

.rose-gradient {
  background: linear-gradient(to right, #f43f5e, #ec4899);
}

.violet-gradient {
  background: linear-gradient(to right, #8b5cf6, #7c3aed);
}

.cyan-gradient {
  background: linear-gradient(to right, #06b6d4, #0891b2);
}

.green-gradient {
  background: linear-gradient(to right, #10b981, #059669);
}

.yellow-gradient {
  background: linear-gradient(to right, #eab308, #f59e0b);
}

.pink-gradient {
  background: linear-gradient(to right, #ec4899, #f43f5e);
}

.indigo-gradient {
  background: linear-gradient(to right, #6366f1, #4f46e5);
}

.teal-gradient {
  background: linear-gradient(to right, #14b8a6, #0d9488);
}

.award-gradient {
  background: linear-gradient(to right, #3b82f6, #06b6d4);
}

.users-gradient {
  background: linear-gradient(to right, #8b5cf6, #6366f1);
}

.book-gradient {
  background: linear-gradient(to right, #10b981, #14b8a6);
}
/* Dark mode CTA buttons - Light shade with dark border and readable text */
.dark-mode .course-cta.blue-gradient {
  background: rgba(59, 130, 246, 0.2); /* Light blue shade */
  border: 1px solid rgba(29, 78, 216, 0.6); /* Dark blue border */
  color: #93c5fd; /* Lighter blue text for better readability */
}

.dark-mode .course-cta.emerald-gradient {
  background: rgba(16, 185, 129, 0.2); /* Light emerald shade */
  border: 1px solid rgba(4, 120, 87, 0.6); /* Dark emerald border */
  color: #6ee7b7; /* Lighter emerald text */
}

.dark-mode .course-cta.purple-gradient {
  background: rgba(139, 92, 246, 0.2); /* Light purple shade */
  border: 1px solid rgba(126, 34, 206, 0.6); /* Dark purple border */
  color: #c4b5fd; /* Lighter purple text */
}

.dark-mode .course-cta.orange-gradient {
  background: rgba(249, 115, 22, 0.2); /* Light orange shade */
  border: 1px solid rgba(194, 65, 12, 0.6); /* Dark orange border */
  color: #fdba74; /* Lighter orange text */
}

.dark-mode .course-cta.rose-gradient {
  background: rgba(244, 63, 94, 0.2); /* Light rose shade */
  border: 1px solid rgba(190, 18, 60, 0.6); /* Dark rose border */
  color: #fda4af; /* Lighter rose text */
}

.dark-mode .course-cta.violet-gradient {
  background: rgba(139, 92, 246, 0.2); /* Light violet shade */
  border: 1px solid rgba(109, 40, 217, 0.6); /* Dark violet border */
  color: #c4b5fd; /* Lighter violet text */
}

.dark-mode .course-cta.cyan-gradient {
  background: rgba(6, 182, 212, 0.2); /* Light cyan shade */
  border: 1px solid rgba(14, 116, 144, 0.6); /* Dark cyan border */
  color: #67e8f9; /* Lighter cyan text */
}

.dark-mode .course-cta.green-gradient {
  background: rgba(16, 185, 129, 0.2); /* Light green shade */
  border: 1px solid rgba(21, 128, 61, 0.6); /* Dark green border */
  color: #6ee7b7; /* Lighter green text */
}

.dark-mode .course-cta.yellow-gradient {
  background: rgba(234, 179, 8, 0.2); /* Light yellow shade */
  border: 1px solid rgba(180, 83, 9, 0.6); /* Dark yellow border */
  color: #fde047; /* Lighter yellow text */
}

.dark-mode .course-cta.pink-gradient {
  background: rgba(236, 72, 153, 0.2); /* Light pink shade */
  border: 1px solid rgba(190, 18, 60, 0.6); /* Dark pink border */
  color: #f9a8d4; /* Lighter pink text */
}

.dark-mode .course-cta.indigo-gradient {
  background: rgba(99, 102, 241, 0.2); /* Light indigo shade */
  border: 1px solid rgba(67, 56, 202, 0.6); /* Dark indigo border */
  color: #a5b4fc; /* Lighter indigo text */
}

/* Dark mode icon colors - also updated for better readability */
.dark-mode .course-cta.blue-gradient svg {
  color: #93c5fd; /* Lighter blue for icons */
}

.dark-mode .course-cta.emerald-gradient svg {
  color: #6ee7b7; /* Lighter emerald for icons */
}

.dark-mode .course-cta.purple-gradient svg {
  color: #c4b5fd; /* Lighter purple for icons */
}

.dark-mode .course-cta.orange-gradient svg {
  color: #fdba74; /* Lighter orange for icons */
}

.dark-mode .course-cta.rose-gradient svg {
  color: #fda4af; /* Lighter rose for icons */
}

.dark-mode .course-cta.violet-gradient svg {
  color: #c4b5fd; /* Lighter violet for icons */
}

.dark-mode .course-cta.cyan-gradient svg {
  color: #67e8f9; /* Lighter cyan for icons */
}

.dark-mode .course-cta.green-gradient svg {
  color: #6ee7b7; /* Lighter green for icons */
}

.dark-mode .course-cta.yellow-gradient svg {
  color: #fde047; /* Lighter yellow for icons */
}

.dark-mode .course-cta.pink-gradient svg {
  color: #f9a8d4; /* Lighter pink for icons */
}

.dark-mode .course-cta.indigo-gradient svg {
  color: #a5b4fc; /* Lighter indigo for icons */
}

/* Hover effects with slightly lighter text for better contrast */
.dark-mode .course-cta.blue-gradient:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(29, 78, 216, 0.8);
  color: #bfdbfe; /* Even lighter blue on hover */
}

.dark-mode .course-cta.emerald-gradient:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(4, 120, 87, 0.8);
  color: #a7f3d0; /* Even lighter emerald on hover */
}

.dark-mode .course-cta.purple-gradient:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: rgba(126, 34, 206, 0.8);
  color: #ddd6fe; /* Even lighter purple on hover */
}

.dark-mode .course-cta.orange-gradient:hover {
  background: rgba(249, 115, 22, 0.3);
  border-color: rgba(194, 65, 12, 0.8);
  color: #fed7aa; /* Even lighter orange on hover */
}

.dark-mode .course-cta.rose-gradient:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: rgba(190, 18, 60, 0.8);
  color: #fecdd3; /* Even lighter rose on hover */
}

.dark-mode .course-cta.violet-gradient:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: rgba(109, 40, 217, 0.8);
  color: #ddd6fe; /* Even lighter violet on hover */
}

.dark-mode .course-cta.cyan-gradient:hover {
  background: rgba(6, 182, 212, 0.3);
  border-color: rgba(14, 116, 144, 0.8);
  color: #a5f3fc; /* Even lighter cyan on hover */
}

.dark-mode .course-cta.green-gradient:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(21, 128, 61, 0.8);
  color: #a7f3d0; /* Even lighter green on hover */
}

.dark-mode .course-cta.yellow-gradient:hover {
  background: rgba(234, 179, 8, 0.3);
  border-color: rgba(180, 83, 9, 0.8);
  color: #fef08a; /* Even lighter yellow on hover */
}

.dark-mode .course-cta.pink-gradient:hover {
  background: rgba(236, 72, 153, 0.3);
  border-color: rgba(190, 18, 60, 0.8);
  color: #fbcfe8; /* Even lighter pink on hover */
}

.dark-mode .course-cta.indigo-gradient:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(67, 56, 202, 0.8);
  color: #c7d2fe; /* Even lighter indigo on hover */
}

/* Backdrop blur support fallback */
@supports not (backdrop-filter: blur(4px)) {
  .course-card,
  .cta-card {
    background-color: rgba(255, 255, 255, 0.9); /* Fallback */
  }

  .dark-mode .course-card,
  .dark-mode .cta-card {
    background-color: rgba(31, 41, 55, 0.9);
  }
}