/*
 * Language Course Landing – Testimonial section dark theme
 * Loaded after assets/css/language-course.css (priority 999) for
 * template-language-course.php / template-corporate-vocational.php.
 * Only visual styling – no ACF text is touched.
 */

/* 1. Section background: teal at top fading to near-black at bottom,
      so the bottom edge blends with the dark consultation/FAQ sections below. */
#testimonial {
  background-color: #0A0A0A !important;
  background-image: linear-gradient(180deg, #012A33 0%, #0A0A0A 100%) !important;
}

/* 2. Header – small uppercase label */
#testimonial .heading h2.heading-xs {
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
}

/* 2. Header – main title white */
#testimonial .heading h3 {
  color: #ffffff;
}

/* 3. Cards stay light for contrast on the dark section */
#testimonial .swiperTestimonial .swiper-slide {
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45);
}

#testimonial .swiperTestimonial .swiper-slide .wrap-testimonial {
  background-color: #f1f1f1;
}

/* 4. Navigation row – bottom center */
#testimonial .testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

/* Arrows – reuse the site's standard slider arrow icons (light circle + teal arrow) */
#testimonial .testimonial-nav .swiper-button-next,
#testimonial .testimonial-nav .swiper-button-prev {
  position: static;
  width: 40px;
  height: 40px;
  margin: 0;
  top: auto;
  right: auto;
  left: auto;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#testimonial .testimonial-nav .swiper-button-next:hover,
#testimonial .testimonial-nav .swiper-button-prev:hover,
#testimonial .testimonial-nav .swiper-button-next:focus-visible,
#testimonial .testimonial-nav .swiper-button-prev:focus-visible {
  transform: scale(1.06);
  outline: none;
}

#testimonial .testimonial-nav .swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Pagination dots – placed between the arrows in the flex row */
#testimonial .testimonial-nav .swiper-pagination {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: auto;
  transform: none;
  -webkit-transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}

#testimonial .testimonial-nav .swiper-pagination .swiper-pagination-bullet {
  position: relative;
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  opacity: 1;
}

#testimonial .testimonial-nav .swiper-pagination .swiper-pagination-bullet::before {
  display: none;
}

#testimonial .testimonial-nav .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  border-color: #ffffff;
}

/* 5. Mobile – keep the bottom nav visible and reset compiled overrides */
@media (max-width: 767px) {
  #testimonial .swiper-button-next,
  #testimonial .swiper-button-prev {
    display: flex !important;
  }

  #testimonial .testimonial-nav .swiper-pagination {
    bottom: auto !important;
    width: auto !important;
  }
}
