﻿/* =========================================
   COURSES PAGE SPECIFIC STYLES
   ========================================= */

/* Use the main site-wrapper established in index.html */
.courses-container-wrapper {
  position: relative;
  z-index: 10;
}

/* --- 1. Hero Section --- */
.courses-hero {
  position: relative;
  min-height: 100vh;
  background: var(--brand-dark);
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

/* Ensure the mesh isn't too tall or overlapping */
.courses-hero .gradient-mesh-bg {
  height: 100vh;
}

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

.hero-title {
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

/* --- 2. Categories Section (Liquid Expansion) --- */
.categories-section {
  padding: 100px 0;
  background: var(--brand-dark);
  position: relative;
  margin-bottom: -150px;
  padding-bottom: 250px;
}

.expansion-container {
  display: flex;
  gap: 20px;
  height: 600px;
  margin-top: 60px;
}

.category-card {
  position: relative;
  flex: 1;
  border-radius: 40px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(10, 5, 20, 0.8) 100%
  );
  z-index: 1;
}

.category-card:hover {
  flex: 2.8;
}

/* Category Backgrounds */
.cat-nursing {
  background-image: url("https://images.unsplash.com/photo-1576091160550-2173bdb999ef?auto=format&fit=crop&q=80&w=1000");
}

.cat-pharma {
  background-image: url("https://images.unsplash.com/photo-1512069772995-ec65ed45afd6?auto=format&fit=crop&q=80&w=1000");
}

.cat-lab {
  background-image: url("https://images.unsplash.com/photo-1582719471384-894fbb16e024?auto=format&fit=crop&q=80&w=1000");
}

.cat-intl {
  background-image: url("https://images.unsplash.com/photo-1436491865332-7a61a109c0f3?auto=format&fit=crop&q=80&w=1000");
}

/* --- 3. Video Showcase Layer --- */
.theme-transition-layer {
  position: relative;
  z-index: 20;
  margin-top: -100px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--brand-dark) 100px,
    rgba(248, 250, 252, 0) 100%
  );
}

.video-section {
  padding: 100px 0;
  background: transparent;
  position: relative;
  z-index: 30;
}

/* Ensure wrapper keeps dots directly beneath the playlist */
.testi-playlist-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Keep dots centered within the right column and allow horizontal scroll if overflow */
.testi-dots {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  /* overflow-x:auto forces overflow-y to an implicit "auto" clip box too
     (CSS overflow spec) — equal padding keeps the scaled .active dot inside it. */
  padding: 6px 4px 6px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testi-dots::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1024px) {
  #testiPlaylist .testi-playlist-item {
    grid-template-columns: 132px minmax(0, 1fr) auto !important;
  }
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 4. Featured Courses GRID (THE LIGHT SECTION) --- */
.featured-courses-section {
  padding: 120px 0 150px 0;
  background-color: var(--bg-light);
  color: var(--text-light-theme);
}

@media (max-width: 768px) {
  .featured-courses-section {
    padding: 48px 0 48px 0;
  }
}

/* Force dark text for readability in light section */
.featured-courses-section .section-header h2,
.featured-courses-section .section-header p {
  color: var(--text-light-theme) !important;
}

.featured-courses-section .section-header p {
  color: var(--text-muted-light) !important;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 30px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--text-muted-light);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
  background: var(--brand-purple);
  color: #fff;
  border-color: var(--brand-purple);
  box-shadow: 0 15px 30px rgba(91, 33, 182, 0.2);
  transform: translateY(-2px);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* === GLASSMORPHISM DESTINATION-STYLE CARDS === */
.course-box {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: none;
  padding: 0;
  background: transparent;
}

.course-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 20%,
    rgba(20, 10, 40, 0.15) 45%,
    rgba(20, 10, 40, 0.65) 70%,
    rgba(10, 5, 25, 0.92) 100%
  );
  z-index: 2;
  transition: all 0.5s ease;
}

.course-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 64px rgba(91, 33, 182, 0.25);
}

.course-box:hover::before {
  background: linear-gradient(
    to bottom,
    transparent 10%,
    rgba(91, 33, 182, 0.1) 40%,
    rgba(20, 10, 40, 0.7) 65%,
    rgba(10, 5, 25, 0.95) 100%
  );
}

.course-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-purple);
  background: rgba(91, 33, 182, 0.05);
  padding: 6px 15px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 25px;
}

.course-box-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #fff !important;
}

.course-features li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 24px 24px;
  position: relative;
  z-index: 3;
}
.course-footer a {
  text-decoration: none;
}

/* ========================================
   VIDEO TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
  padding: 120px 0 100px;
  background: var(--brand-dark);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 40px 0 40px;
  }
}

.testimonials-mesh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1.5px;
}

.testimonials-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Split layout: explicit columns sized to the actual card widths so the
   two columns sit close together with a controlled gap, centered as one
   unit — instead of a fluid 1fr column that strands the card in empty space. */
.testimonials-layout {
  display: grid;
  grid-template-columns: 480px 420px;
  gap: 32px;
  align-items: start;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 10px;
}

/* Wider column gap on desktop, where the two cards sit side by side
   (mobile keeps the tighter 32px card->dots spacing above). */
@media (min-width: 992px) {
  .testimonials-layout {
    column-gap: 58px;
  }
  .testi-featured {

  justify-self: flex-start;
}
}

/* ---- LEFT: Featured Panel ---- */
.testi-featured {
  position: sticky;
  top: 100px;
  justify-self: flex-start;
}

.testi-featured-thumb {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9/16;
  max-width: 360px;
  margin: 0 auto;
  background: #111;
}

.testi-featured-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s ease,
    opacity 0.4s ease;
}

.testi-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(91, 33, 182, 0.25) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated play button */
.testi-play-btn {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-purple);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 8px 40px rgba(91, 33, 182, 0.35);
}

.testi-play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 16px 60px rgba(91, 33, 182, 0.5);
}

.testi-play-btn i {
  margin-left: 4px;
}

.testi-play-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: ripplePulse 2s ease-out infinite;
}

.testi-play-ripple::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  animation: ripplePulse 2s ease-out infinite 0.5s;
}

@keyframes ripplePulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Floating info card at bottom of thumb */
.testi-info-float {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(10, 5, 25, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.4s ease;
}

.testi-avatar-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--brand-purple);
  overflow: hidden;
  flex-shrink: 0;
}

.testi-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-info-text {
  flex: 1;
}

.testi-info-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.testi-info-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.testi-info-badge {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-cyan));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 50px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* Quote block */
.testi-featured-quote {
  margin: 20px 0 0;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--brand-purple);
  border-radius: 0 16px 16px 0;
  transition: all 0.4s ease;
}

.testi-quote-icon {
  color: var(--brand-purple);
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: block;
}

.testi-featured-quote p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.65;
  font-style: italic;
  margin: 0;
}

/* ---- RIGHT: Playlist ---- */
.testi-playlist {
  display: grid;
  gap: 14px;
  max-height: 640px; /* viewport for ~5 cards */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-right: 8px;
  /* Breathing room so hover/active translateY + box-shadow on the first and
     last cards aren't clipped by this scroll container's own edges. */
  padding-top: 10px;
  padding-bottom: 10px;
  align-content: start;
  /* Native scrollbar is hidden below — the colored .testi-scroll-indicator
     (built in courses.js) is the only visible scroll indicator. Scrolling
     itself (wheel/trackpad/drag/keyboard) keeps working either way. */
  scrollbar-width: none;
  -ms-overflow-style: none;
  grid-auto-rows: minmax(120px, auto);
}

.testi-playlist::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}

.testi-playlist-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  /* Dark glassmorphism to match the section theme */
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
  color: inherit;
  min-height: 120px;
  position: relative;
  color: #fff;
}

.testi-playlist-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(91, 33, 182, 0.02),
    rgba(6, 182, 212, 0.01)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: inherit;
  pointer-events: none;
}

.testi-playlist-item:hover {
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-4px);
}

.testi-playlist-item:hover::before,
.testi-playlist-item.active::before {
  opacity: 1;
}

.testi-playlist-item.active {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 18px 42px rgba(91, 33, 182, 0.12);
  transform: translateY(-2px);
}

/* Thumbnail */
.testi-item-thumb {
  width: 160px;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.testi-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.testi-playlist-item:hover .testi-item-thumb img,
.testi-playlist-item.active .testi-item-thumb img {
  transform: scale(1.06);
}

.testi-item-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  transition: background 0.3s ease;
}

.testi-playlist-item.active .testi-item-play {
  background: rgba(91, 33, 182, 0.55);
}

.testi-item-play i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Info text */
.testi-item-info {
  min-width: 0;
}

.testi-item-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.testi-item-role {
  margin-top: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
}

.testi-item-excerpt {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--text-muted-light, #666);
  line-height: 1.55;
}

.testi-item-number {
  align-self: flex-start;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  font-family: monospace;
}

.testi-playlist-item.active .testi-item-number {
  color: rgba(139, 92, 246, 0.45);
}

/* Thin scroll indicator on the far-right edge of the playlist (subtle) */
.testi-scroll-indicator {
  position: absolute;
  right: 0px;
  top: 12px;
  bottom: 35px;
  width: 0px;
  pointer-events: none;
  display: block;
}
.testi-scroll-indicator .track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
.testi-scroll-indicator .thumb {
  position: absolute;
  left: 1px;
  width: 4px;
  background: linear-gradient(
    180deg,
    rgba(6, 182, 212, 0.9),
    rgba(139, 92, 246, 0.9)
  );
  border-radius: 3px;
  transform-origin: top left;
}

/* Single consolidated mobile breakpoint for this section (matches the
   column-stacking breakpoint already used above). Below this width the
   right playlist (cards, viewport, native + custom scrollbar) is fully
   hidden — only the badge/title/paragraph, the featured card and the
   pagination dots remain, with no space reserved for the hidden column. */
@media (max-width: 991px) {
  .testimonials-layout {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .testi-featured {
    position: static;
  }

  /* Hide the vertical playlist (cards + its viewport/scrollbar) entirely */
  .testi-playlist {
    display: none !important;
    max-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .testi-scroll-indicator {
    display: none !important;
  }

  /* Keep the wrapper but collapse spacing so no empty right column remains */
  .testi-playlist-wrap {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Ensure dots stay visible, centered, horizontal, and scrollable */
  .testi-dots {
    display: flex !important;
    width: 100%;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 6px 6px 6px;
  }

  /* Reduce featured quote margin so no large gap appears above the dots */
  .testi-featured-quote {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .testi-info-float {
    flex-wrap: wrap;
    gap: 10px;
  }

  .testi-play-btn {
    width: 64px;
    height: 64px;
    font-size: 1.2rem;
  }
}

/* ========================================
   YOUTUBE VIDEO CAROUSEL SECTION
   ======================================== */
.video-carousel-section {
  padding: 120px 0;
  background: var(--bg-light);
  overflow: hidden;
}

@media (max-width: 768px) {
  .video-carousel-section {
    padding: 40px 0;
  }
}

/* Playlist pagination dots */
.testi-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  align-items: center;
}
.testi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.testi-dot.active {
  background: var(--brand-purple);
  transform: scale(1.2);
}

.video-carousel-section .section-header h2,
.video-carousel-section .section-header p {
  color: var(--text-light-theme) !important;
}

.video-carousel-section .section-header p {
  color: var(--text-muted-light) !important;
}

/* Carousel wrapper */
.yt-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 50px;
}

.yt-carousel-viewport {
  overflow: hidden;
  flex: 1;
  border-radius: 16px;
}

.yt-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Nav buttons */
.yt-nav-btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--text-light-theme);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.yt-nav-btn:hover {
  background: var(--brand-purple);
  color: #fff;
  border-color: var(--brand-purple);
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(91, 33, 182, 0.25);
}

.yt-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* YT Cards */
.yt-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: inherit;
  display: block;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.yt-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(91, 33, 182, 0.12);
  border-color: rgba(91, 33, 182, 0.15);
}

.yt-thumb-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0f0f0f;
}

.yt-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.yt-card:hover .yt-thumb-wrapper img {
  transform: scale(1.06);
}

.yt-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.yt-card:hover .yt-play-overlay {
  opacity: 1;
}

.yt-play-btn {
  width: 56px;
  height: 56px;
  background: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.4);
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.yt-card:hover .yt-play-btn {
  transform: scale(1);
}

.yt-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.yt-card-info {
  padding: 20px;
}

.yt-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-purple);
  background: rgba(91, 33, 182, 0.07);
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 12px;
}

.yt-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-light-theme);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-meta {
  font-size: 0.8rem;
  color: var(--text-muted-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-meta i {
  color: var(--brand-cyan);
}

/* Dot indicators */
.yt-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.yt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(91, 33, 182, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.yt-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--brand-purple);
}

/* Responsive */
@media (max-width: 991px) {
  .placement-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .yt-card {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
  }
}

@media (max-width: 640px) {
  .placement-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .placement-stat-card {
    padding: 28px 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .yt-card {
    flex: 0 0 calc(85% - 12px);
    min-width: calc(85% - 12px);
  }

  .yt-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 0.85rem;
  }
}

/* --- 5. FAQ Section (Light-to-Dark Transition) --- */

.faq-courses {
  padding: 120px 0;
  background: #fff;
  position: relative;
  z-index: 10;
}

.faq-courses .section-header h2 {
  color: var(--text-light-theme) !important;
}

/* Specific FAQ Item Styling - Reusing logic from index.css conceptually but independent */
.faq-item-simple {
  border-bottom: 1px solid #f1f5f9;
  padding: 30px 0;
}

.faq-q {
  color: var(--text-light-theme);
  cursor: pointer;
  transition: color 0.3s;
}

.faq-q:hover {
  color: var(--brand-purple);
}

/* --- 6. Transition to Footer (The Aurora/Mesh) --- */
/* The footer handles its own CTA and Aurora background */

@media (max-width: 991px) {
  .expansion-container {
    height: auto;
    flex-direction: column;
  }

  .category-card {
    height: 320px;
    flex: none;
    border-radius: 30px;
  }

  .category-card:hover {
    flex: none;
  }

  .courses-hero {
    padding-top: 60px;
    min-height: 80vh;
  }

  .hero-title {
    font-size: clamp(2.8rem, 5vw, 4rem);
  }
}

/* --- Extracted Inline Styles from courses.html --- */
.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 650px;
  margin-bottom: 3rem;
}

.ml-icon {
  margin-left: 8px;
}

/* Category Section Extracted */
.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.card-content-inner {
  position: absolute;
  bottom: 0;
  padding: 40px;
  z-index: 2;
}

.cat-icon {
  width: 60px;
  height: 60px;
  background: var(--brand-purple);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 20px;
}

.cat-title {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
}

.cat-btn {
  color: var(--brand-cyan);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

/* Video Section Extracted */
.video-player-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button-pulse {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-purple);
  cursor: pointer;
}

/* Courses Grid Extracted */
.course-desc {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-features {
  list-style: none;
  padding: 0;
}

.course-features li {
  margin-bottom: 10px;
}

.course-check {
  color: var(--brand-cyan);
  margin-right: 8px;
}

/* --- Enquire / View Details Buttons --- */
.course-view-btn {
  color: var(--brand-cyan) !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.course-view-btn:hover {
  color: var(--brand-purple) !important;
  text-decoration: none;
}

/* Stretched link — makes the whole .course-box card clickable via View Details */
.course-view-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}

/* Category button sits above the stretched link overlay so it stays clickable */
.btn-elect-course {
  position: relative;
  z-index: 5;
}

.btn-elect-course {
  padding: 10px 22px;
  font-size: 0.82rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-elect-course:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(3px);
}

/* FAQ Section Extracted */
.faq-title {
  color: var(--text-light-theme) !important;
  font-size: 3.5rem;
}

.faq-accordion-custom {
  max-width: 900px;
  margin: 0 auto;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.faq-q-text {
  font-size: 1.2rem;
  font-weight: 700;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s;
}

.faq-a-text {
  padding: 20px 0;
  color: var(--text-muted-light);
}

/* --- Image fills the entire card as background --- */
.course-img-wrapper {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
  z-index: 1;
}

.course-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.course-box:hover .course-img-wrapper img {
  transform: scale(1.12);
}

/* --- Content overlay at bottom --- */
.course-content-wrapper {
  position: relative;
  z-index: 3;
  padding: 24px 24px 0;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  text-decoration: none;
  color: inherit;
}

.course-box .course-desc {
  flex: none;
  margin-top: 0;
}

/* --- Responsive adjustments for cards --- */
@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .course-box {
    height: 280px;
    border-radius: 20px;
  }

  .course-box-title {
    font-size: 1rem;
  }

  .course-content-wrapper {
    padding: 16px 16px 0;
  }

  .course-footer {
    padding: 12px 16px 16px;
  }
}

@media (max-width: 480px) {
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .course-box {
    height: 260px;
    border-radius: 18px;
  }
}
