/* ============================================
   FEATURED COURSE CARD
   ============================================ */

.featured-course-card {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%) 1;
  border-radius: 20px;
  padding: 64px;
  margin: 2rem 0 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.featured-course-card::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.featured-course-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ---- LEFT COLUMN ---- */

.featured-course-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-course-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.featured-course-badge-icon {
  font-size: 1rem;
}

.featured-course-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}

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

.featured-course-tagline {
  font-size: 1rem;
  color: #3b4de8;
  font-weight: 500;
  line-height: 1.65;
  margin: 0;
}

html[data-theme="dark"] .featured-course-tagline {
  color: #818cf8;
}

/* ---- STATS CHIPS ---- */

.featured-course-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.featured-course-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  color: #0f172a;
  white-space: nowrap;
}

html[data-theme="dark"] .featured-course-stat {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.35);
  color: #f1f5f9;
}

.featured-course-stat--hot {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.3);
}

.featured-course-stat--hot i {
  color: #f97316;
}

.featured-course-stat i {
  color: #3b82f6;
  font-size: 0.8rem;
  flex-shrink: 0;
}

html[data-theme="dark"] .featured-course-stat--hot {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.4);
}

/* ---- DESCRIPTION ---- */

.featured-course-description {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

html[data-theme="dark"] .featured-course-description {
  color: #94a3b8;
}

/* ---- CERTIFICATIONS ---- */

.featured-course-cert-label {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
  margin: 0.5rem 0 0;
}

html[data-theme="dark"] .featured-course-cert-label {
  color: #64748b;
}

.featured-course-certs {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.featured-course-cert-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #0f172a;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

html[data-theme="dark"] .featured-course-cert-chip {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  color: #f1f5f9;
}

.featured-course-cert-chip i {
  color: #3b4de8;
  font-size: 0.75rem;
}

html[data-theme="dark"] .featured-course-cert-chip i {
  color: #818cf8;
}

/* ---- CTA LINK ---- */

.featured-course-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #3b4de8;
  text-decoration: none;
  padding: 0 0 0.2rem 0;
  border-bottom: 2px solid #3b4de8;
  transition: color 0.2s, border-color 0.2s;
  margin-top: 0.5rem;
  width: fit-content;
}

html[data-theme="dark"] .featured-course-cta {
  color: #818cf8;
  border-bottom-color: #818cf8;
}

.featured-course-cta:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

html[data-theme="dark"] .featured-course-cta:hover {
  color: #a5b4fc;
  border-bottom-color: #a5b4fc;
}

.featured-course-cta i {
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.featured-course-cta:hover i {
  transform: translateX(4px);
}

/* ---- ACTIONS (register button + programme link) ---- */

.featured-course-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}

.featured-course-actions .featured-course-cta {
  margin-top: 0;
}

.featured-course-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.featured-course-btn:hover,
.featured-course-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
}

.featured-course-btn i {
  font-size: 0.85rem;
  transition: transform 0.2s;
}

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

/* ---- RIGHT COLUMN (SESSIONS) ---- */

.featured-course-right {
  display: flex;
}

.featured-course-sessions {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
}

html[data-theme="dark"] .featured-course-sessions {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.featured-course-sessions-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
  margin: 0 0 1.5rem 0;
}

html[data-theme="dark"] .featured-course-sessions-title {
  color: #94a3b8;
}

.featured-course-sessions-title i {
  color: #3b4de8;
  font-size: 0.9rem;
}

html[data-theme="dark"] .featured-course-sessions-title i {
  color: #818cf8;
}

.featured-course-sessions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.featured-course-sessions-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

html[data-theme="dark"] .featured-course-sessions-list li {
  border-bottom-color: rgba(99, 102, 241, 0.25);
}

.featured-course-sessions-list li:last-child {
  border-bottom: none;
}

.session-month {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

html[data-theme="dark"] .session-month {
  color: #f1f5f9;
}

.featured-course-sessions-list li:first-child .session-month {
  color: #3b4de8;
  font-weight: 800;
}

html[data-theme="dark"] .featured-course-sessions-list li:first-child .session-month {
  color: #818cf8;
}

.session-year {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #3b4de8;
  letter-spacing: 0.05em;
}

html[data-theme="dark"] .session-year {
  color: #818cf8;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .featured-course-card {
    padding: 48px;
  }

  .featured-course-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .featured-course-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .featured-course-card {
    padding: 32px 24px;
    margin: 2rem 0 2.5rem;
  }

  .featured-course-grid {
    gap: 32px;
  }

  .featured-course-title {
    font-size: 1.6rem;
  }

  .featured-course-tagline {
    font-size: 0.95rem;
  }

  .featured-course-stats {
    gap: 0.7rem;
  }

  .featured-course-stat {
    font-size: 0.8rem;
    padding: 0.45rem 0.8rem;
  }

  .featured-course-sessions {
    padding: 32px;
  }

  .featured-course-certs {
    gap: 0.6rem;
  }

  .featured-course-cert-chip {
    font-size: 0.8rem;
    padding: 0.45rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .featured-course-card {
    padding: 24px 16px;
    border-radius: 12px;
  }

  .featured-course-title {
    font-size: 1.4rem;
  }

  .featured-course-badge {
    font-size: 0.65rem;
    padding: 0.45rem 0.85rem;
  }

  .featured-course-stats {
    gap: 0.6rem;
  }

  .featured-course-stat {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .featured-course-description {
    font-size: 0.9rem;
  }

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

  .featured-course-sessions {
    padding: 24px;
  }

  .featured-course-sessions-list li {
    padding: 0.85rem 0;
  }

  .session-month {
    font-size: 0.9rem;
  }
}

/* Dark mode support */
html[data-theme="dark"] .featured-course-card {
  background: #111929;
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}

html[data-theme="dark"] .featured-course-card::before {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
}
