/* ========================================
   Courses Page Styles
   ======================================== */

/* ========================================
   Training Hero Banner
   ======================================== */

.training-hero {
  position: relative;
  background: linear-gradient(135deg, #5b9bd5 0%, #4a8ac4 50%, #5b9bd5 100%);
  padding: 160px 0 100px;
  overflow: hidden;
  color: #ffffff;
}

.training-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(91, 155, 213, 0.1) 0%, transparent 60%),
              radial-gradient(circle at 80% 30%, rgba(0, 217, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.training-hero .container {
  position: relative;
  z-index: 2;
}

/* Background animated grid */
.training-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.th-grid-line {
  position: absolute;
  opacity: 0.06;
}

.th-grid-line.th-h {
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(91, 155, 213, 0.8) 50%, transparent 100%);
  animation: th-pulse 4s ease-in-out infinite;
}

.th-grid-line.th-v {
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(91, 155, 213, 0.8) 50%, transparent 100%);
  animation: th-pulse 4s ease-in-out infinite;
}

.th-grid-line:nth-child(2) { animation-delay: 0.5s; }
.th-grid-line:nth-child(3) { animation-delay: 1s; }
.th-grid-line:nth-child(4) { animation-delay: 1.5s; }
.th-grid-line:nth-child(5) { animation-delay: 2s; }
.th-grid-line:nth-child(6) { animation-delay: 2.5s; }
.th-grid-line:nth-child(7) { animation-delay: 3s; }
.th-grid-line:nth-child(8) { animation-delay: 3.5s; }

@keyframes th-pulse {
  0%, 100% { opacity: 0.04; }
  50%      { opacity: 0.1; }
}

.th-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(91, 155, 213, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(91, 155, 213, 0.4);
  animation: th-dot-glow 3s ease-in-out infinite;
}

.th-dot:nth-child(9)  { animation-delay: 0s; }
.th-dot:nth-child(10) { animation-delay: 0.4s; }
.th-dot:nth-child(11) { animation-delay: 0.8s; }
.th-dot:nth-child(12) { animation-delay: 1.2s; }
.th-dot:nth-child(13) { animation-delay: 1.6s; }
.th-dot:nth-child(14) { animation-delay: 2s; }
.th-dot:nth-child(15) { animation-delay: 2.4s; }
.th-dot:nth-child(16) { animation-delay: 2.8s; }

@keyframes th-dot-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.8); }
}

/* Hero tag */
.training-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(91, 155, 213, 0.15);
  border: 1px solid rgba(91, 155, 213, 0.3);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #5b9bd5;
  margin-bottom: 24px;
}

.training-hero-tag i {
  font-size: 0.9rem;
}

/* Hero title */
.training-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 600px;
  background: linear-gradient(135deg, #ffffff 0%, #c8ddf0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.training-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-bottom: 36px;
}

/* Stats row */
.training-hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  max-width: 420px;
}

.th-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.th-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.th-stat-number i {
  font-size: 1.4rem;
}

.th-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
}

.th-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.3);
}

/* CTA button */
.training-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #5b9bd5;
  color: #ffffff;
  border-radius: 3px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.training-hero-cta:hover {
  background: #4a8ac4;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(91, 155, 213, 0.4);
  color: #ffffff;
}

/* Hero visual (right column) */
.training-hero-visual {
  position: relative;
  width: 340px;
  height: 340px;
}

.th-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, #5b9bd5, #4a8ac4);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 0 40px rgba(91, 155, 213, 0.5), 0 0 80px rgba(91, 155, 213, 0.15);
  z-index: 2;
}

.th-center span {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* Orbital rings */
.training-hero-visual::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 240px; height: 240px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(91, 155, 213, 0.2);
  border-radius: 50%;
  pointer-events: none;
  animation: th-orbit-spin 15s linear infinite;
}

.training-hero-visual::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 180px; height: 180px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(91, 155, 213, 0.1);
  border-radius: 50%;
  pointer-events: none;
  animation: th-orbit-spin 12s linear infinite reverse;
}

@keyframes th-orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating skill icons - orbit via JS */
.th-float {
  position: absolute;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  backdrop-filter: blur(12px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  z-index: 3;
  user-select: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.th-float:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  transform: scale(1.15);
}

.th-float.th-active {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  z-index: 5;
}

/* Modal */
.th-modal {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%) scale(0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 20px 24px;
  width: 240px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.th-modal.th-modal-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-100%) scale(1);
}

.th-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.th-modal-close:hover {
  color: #343a40;
}

.th-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #5b9bd5;
  margin: 0 0 8px;
}

.th-modal-desc {
  font-size: 0.8rem;
  color: #4a5568;
  line-height: 1.5;
  margin: 0 0 12px;
}

.th-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5b9bd5;
  text-decoration: none;
  transition: gap 0.2s;
}

.th-modal-link:hover {
  gap: 10px;
  color: #4a8ac4;
}

/* Training hero responsive */
@media (max-width: 992px) {
  .training-hero {
    padding: 130px 0 80px;
  }

  .training-hero-title {
    font-size: 2.5rem;
  }

  .training-hero-visual {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 768px) {
  .training-hero {
    padding: 120px 0 70px;
  }

  .training-hero-title {
    font-size: 2rem;
  }

  .training-hero-subtitle {
    font-size: 1rem;
  }

  .training-hero-stats {
    gap: 16px;
    padding: 16px 20px;
    max-width: 100%;
  }

  .th-stat-number {
    font-size: 1.2rem;
  }

  .th-stat-label {
    font-size: 0.65rem;
  }
}

@media (max-width: 576px) {
  .training-hero-title {
    font-size: 1.75rem;
  }

  .training-hero-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   Horizontal Tabs
   ======================================== */

/* Tabs Section */
.courses-tabs-section {
  padding: 60px 0 80px;
  background: #f8f9fa;
}

/* Tab Navigation */
.courses-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
  position: relative;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: transparent;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.tab-btn i {
  font-size: 1.1rem;
}

.tab-btn:hover {
  color: #5b9bd5;
}

.tab-btn.active {
  color: #ffffff;
}

/* Tab Indicator (sliding background) */
.tab-indicator {
  position: absolute;
  height: calc(100% - 20px);
  top: 10px;
  background: linear-gradient(135deg, #5b9bd5 0%, #5b9bd5 100%);
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1;
  box-shadow: 0 4px 15px rgba(43, 79, 135, 0.3);
}

/* Tab Panes Wrapper */
.tab-panes-wrapper {
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: height 0.4s ease;
}

/* Tab Panes Container (slides horizontally) */
.tab-panes {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual Tab Pane */
.tab-pane {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  padding: 50px;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.tab-pane.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Ensure tab panes are always visible */
.tab-panes {
  display: flex;
  transition: transform 0.4s ease;
}

.tab-panes-wrapper {
  overflow: hidden;
}

/* Remove any loading states that might cause transparency */
.tab-pane.loading,
.courses-tabs-section.loading {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Pane Header */
.pane-header {
  text-align: center;
  margin-bottom: 50px;
}

.pane-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #5b9bd5 0%, #5b9bd5 100%);
  border-radius: 4px;
  margin-bottom: 25px;
}

.pane-icon i {
  font-size: 2.5rem;
  color: #ffffff;
}

.pane-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #5b9bd5;
  margin-bottom: 15px;
}

.pane-header p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 100%;
}

/* Course Card */
.course-card {
  display: flex;
  gap: 25px;
  background: #f8f9fa;
  border-radius: 4px;
  padding: 25px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-width: 0;
  box-sizing: border-box;
}

.course-card:hover {
  background: #ffffff;
  border-color: #5b9bd5;
  box-shadow: 0 15px 40px rgba(43, 79, 135, 0.15);
  transform: translateY(-5px);
}

/* Course Badge */
.course-badge {
  width: 120px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #5b9bd5, #5b9bd5);
  border-radius: 4px;
  padding: 20px 15px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(43, 79, 135, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.badge-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.badge-icon i {
  font-size: 1.5rem;
  color: #ffffff;
}

.badge-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

/* Course Info */
.course-info {
  flex: 1;
  min-width: 0;
}

/* Course Header */
.course-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.course-category {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-category.corporate {
  background: #e3f2fd;
  color: #1565c0;
}

.course-category.individual {
  background: #f3e5f5;
  color: #7b1fa2;
}

.course-category.university {
  background: #e8f5e9;
  color: #2e7d32;
}

.course-duration {
  font-size: 0.8rem;
  color: #6c757d;
}

.course-duration i {
  margin-right: 5px;
  color: #5b9bd5;
}

/* Course Title */
.course-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #5b9bd5;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Course Description */
.course-description {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Course Meta */
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #6c757d;
}

.course-meta span i {
  color: #5b9bd5;
  font-size: 0.9rem;
}

/* Course Actions */
.course-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-course-register {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: #5b9bd5;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(43, 79, 135, 0.2);
}

.btn-course-register:hover {
  background: #5b9bd5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 79, 135, 0.3);
  color: #ffffff;
}

.btn-course-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: transparent;
  color: #5b9bd5;
  text-decoration: none;
  border: 2px solid #5b9bd5;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.btn-course-details:hover {
  background: #5b9bd5;
  color: #ffffff;
}

.btn-course-details i {
  transition: transform 0.3s ease;
}

.btn-course-details:hover i {
  transform: translateX(5px);
}

/* ========================================
   Custom Training Banner (bottom of each section)
   ======================================== */

.custom-training-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eef8 100%);
  border: 2px dashed #b0c4de;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.custom-training-banner:hover {
  border-color: #5b9bd5;
  box-shadow: 0 8px 25px rgba(43, 79, 135, 0.1);
}

.ctb-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #5b9bd5, #5b9bd5);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctb-icon i {
  font-size: 1.5rem;
  color: #ffffff;
}

.ctb-content {
  flex: 1;
}

.ctb-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #5b9bd5;
  margin-bottom: 4px;
}

.ctb-content p {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
}

.ctb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #5b9bd5;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(43, 79, 135, 0.2);
}

.ctb-btn:hover {
  background: #5b9bd5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 79, 135, 0.3);
  color: #ffffff;
}

.ctb-btn i {
  transition: transform 0.3s ease;
}

.ctb-btn:hover i {
  transform: translateX(4px);
}

[data-theme="dark"] .custom-training-banner {
  background: linear-gradient(135deg, #5b9bd5 0%, #4a8ac4 100%);
  border-color: rgba(91, 155, 213, 0.25);
}

[data-theme="dark"] .ctb-content h3 {
  color: #ffffff;
}

[data-theme="dark"] .ctb-content p {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .custom-training-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }

  .ctb-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   No Courses Empty State
   ======================================== */

.no-courses {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 30px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
  border-radius: 4px;
  border: 2px dashed #c8d6e5;
}

.no-courses-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #5b9bd5 0%, #5b9bd5 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(43, 79, 135, 0.2);
}

.no-courses-icon i {
  font-size: 2.5rem;
  color: #ffffff;
}

.no-courses h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #5b9bd5;
  margin-bottom: 10px;
}

.no-courses p {
  font-size: 1rem;
  color: #6c757d;
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.no-courses-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #5b9bd5;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(43, 79, 135, 0.25);
}

.no-courses-cta:hover {
  background: #5b9bd5;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43, 79, 135, 0.35);
  color: #ffffff;
}

[data-theme="dark"] .no-courses {
  background: linear-gradient(135deg, #5b9bd5 0%, #4a8ac4 100%);
  border-color: rgba(91, 155, 213, 0.2);
}

[data-theme="dark"] .no-courses h3 {
  color: #ffffff;
}

[data-theme="dark"] .no-courses p {
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Shooting Stars for Course Badges
   ======================================== */

.badge-shooting-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.badge-shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
  animation: badgeShootingStar 1.2s ease-out forwards;
}

.badge-shooting-star::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  height: 1px;
  width: 30px;
  background: linear-gradient(90deg, transparent, currentColor);
  transform: translateX(2px) translateY(-50%) rotate(-45deg);
  border-radius: 100%;
  animation: badgeShootingStarTail 1.2s ease-out forwards;
}

@keyframes badgeShootingStar {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-60px, 60px);
    opacity: 0;
  }
}

@keyframes badgeShootingStarTail {
  0% {
    width: 0;
    opacity: 1;
  }
  30% {
    width: 30px;
    opacity: 1;
  }
  70% {
    opacity: 0.5;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}

/* ========================================
   Course Search Bar
   ======================================== */

.courses-search-bar {
  max-width: 500px;
  margin: 0 auto 30px;
}

.courses-search {
  position: relative;
}

.courses-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
}

.courses-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #ffffff;
  font-size: 0.95rem;
  color: #1e293b;
  transition: border-color 0.2s;
}

.courses-search input:focus {
  outline: none;
  border-color: #5b9bd5;
  box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.1);
}

.courses-no-results {
  text-align: center;
  padding: 40px 20px;
}

.courses-no-results i {
  font-size: 2.5rem;
  color: #cbd5e1;
  display: block;
  margin-bottom: 12px;
}

.courses-no-results p {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* ========================================
   Courses CTA Section
   ======================================== */

.courses-cta-section {
  padding: 0 0 80px;
  background: #ffffff;
}

.courses-cta {
  text-align: center;
  padding: 60px;
  background: linear-gradient(135deg, #5b9bd5 0%, #5b9bd5 100%);
  border-radius: 6px;
  color: #ffffff;
}

.courses-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.courses-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-courses-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #ffffff;
  color: #5b9bd5;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-courses-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  color: #5b9bd5;
}

/* ========================================
   Dark Mode
   ======================================== */

[data-theme="dark"] .courses-tabs-section {
  background: #5b9bd5;
}

[data-theme="dark"] .courses-tabs {
  background: #4a8ac4;
}

[data-theme="dark"] .tab-btn {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .tab-btn:hover {
  color: #00d9ff;
}

[data-theme="dark"] .tab-btn.active {
  color: #ffffff;
}

[data-theme="dark"] .tab-panes-wrapper {
  background: #4a8ac4;
}

[data-theme="dark"] .pane-header h2 {
  color: #ffffff;
}

[data-theme="dark"] .pane-header p {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .course-card {
  background: #4a8ac4;
}

[data-theme="dark"] .course-card:hover {
  background: #4a8ac4;
  border-color: #00d9ff;
}

[data-theme="dark"] .course-title {
  color: #ffffff;
}

[data-theme="dark"] .course-description {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .course-meta {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .course-meta span {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .courses-cta-section {
  background: #4a8ac4;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 991px) {
  .courses-tabs {
    flex-wrap: wrap;
    border-radius: 4px;
    max-width: 100%;
  }
  
  .tab-btn {
    padding: 12px 20px;
    font-size: 0.875rem;
  }
  
  .tab-btn span {
    display: none;
  }
  
  .tab-btn i {
    font-size: 1.25rem;
  }
  
  .tab-indicator {
    display: none;
  }
  
  .tab-btn.active {
    background: linear-gradient(135deg, #5b9bd5 0%, #5b9bd5 100%);
    color: #ffffff;
  }
  
  .tab-pane {
    padding: 35px;
  }
  
  .pane-header h2 {
    font-size: 1.85rem;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .courses-tabs-section {
    padding: 40px 0 60px;
  }
  
  .courses-tabs {
    gap: 8px;
    padding: 8px;
  }
  
  .tab-btn {
    padding: 10px 16px;
  }
  
  .tab-pane {
    padding: 25px;
  }
  
  .pane-icon {
    width: 60px;
    height: 60px;
  }
  
  .pane-icon i {
    font-size: 1.75rem;
  }
  
  .pane-header h2 {
    font-size: 1.5rem;
  }
  
  .course-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  
  .course-badge {
    width: 100%;
    max-width: 160px;
    padding: 20px;
  }
  
  .course-header {
    justify-content: center;
  }
  
  .course-meta {
    justify-content: center;
  }
  
  .course-actions {
    justify-content: center;
  }
  
  .courses-cta {
    padding: 40px 25px;
  }
  
  .courses-cta h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .tab-btn {
    padding: 10px 14px;
  }
  
  .tab-btn i {
    font-size: 1.1rem;
  }
}
