.testimonials {
  background: linear-gradient(180deg, #0b1f4b, #081633);
  color: white;
  text-align: center;
  padding: 60px 20px 40px;
}

.testimonials h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.subtext {
  font-size: 23px;
  max-width: 700px;
  margin: 10px auto 40px;
}

/* VIDEO */
.video-slider {
  position: relative;
  width: 600px;
  max-width: 100%;
  margin: 0 auto 20px;
}

.video-wrapper {
  display: none;
  position: relative;
}

.video-wrapper.active {
  display: block;
}

.video-wrapper img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

/* Reserve video thumbnail space to prevent layout shift */
.video-wrapper img {
  aspect-ratio: 16/9;
  height: auto;
}

.play-btn {
  position: absolute;
  font-size: 70px;
  color: red;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Video responsive - Medium devices */
@media (max-width: 1199px) {
  .video-slider {
    width: 90%;
  }

  .play-btn {
    font-size: 60px;
  }
}

/* Video responsive - Small devices */
@media (max-width: 767px) {
  .video-slider {
    width: 95%;
  }

  .play-btn {
    font-size: 50px;
  }

  .video-wrapper img {
    border-radius: 12px;
  }
}

/* Video responsive - Extra small devices */
@media (max-width: 480px) {
  .video-slider {
    width: 100%;
  }

  .play-btn {
    font-size: 40px;
  }

  .video-wrapper img {
    border-radius: 8px;
  }

  .dot {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
}

/* DOTS */
.video-dots {
  margin: 15px 0 50px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  border-radius: 50%;
  background: #777;
  cursor: pointer;
}

.dot.active {
  background: white;
}

/* TESTIMONIAL CAROUSEL */
.carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-carousel {
  padding-bottom: 60px;
  height: 300px;
  position: relative;
  overflow: hidden;
}

.gallery-carousel {
  padding-bottom: 80px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.card {
  flex: 0 0 calc(100% / 3);
  margin: 0;
  padding: 20px;
  background: #0e2b63;
  border-radius: 20px;
  color: white;
  text-align: left;
  opacity: 0.4;
  transform: scale(0.9);
  transition: 0.4s;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

/* Medium devices (tablets) - 2 cards visible */
@media (max-width: 1199px) {
  .card {
    flex: 0 0 calc(100% / 2);
    padding: 15px;
    min-height: 180px;
  }

  .card h3 {
    font-size: 15px;
  }

  .card p {
    font-size: 12px;
  }
}

/* Small devices (phones) - 1 card visible */
@media (max-width: 767px) {
  .card {
    flex: 0 0 100%;
    padding: 15px;
    min-height: 160px;
  }

  .card h3 {
    font-size: 14px;
  }

  .card p {
    font-size: 12px;
  }

  .testimonial-carousel {
    height: 250px;
  }
}

.card h3 {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: 600;
}

.card span {
  font-size: 15px;
  font-weight: 200;
}

.card p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

.card .stars {
  font-size: 18px;
  font-weight: bold;
  margin: 5px 0;
}

.card.active {
  opacity: 1;
  transform: scale(1);
}

.stars {
  color: gold;
  margin: 8px 0;
}

/* ARROWS BELOW */
.carousel-arrows {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

.carousel-arrows button {
  font-size: 0;
  margin: 0 20px;
  width: 120px;
  height: 80px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  color: transparent;
  transition: transform 0.2s ease;
}

.carousel-arrows .prev {
  background-image: url("../../images/arrow.svg");
  background-size: 60px 120px;
  filter: brightness(0) invert(1);
  transform: rotate(270deg);
}

.carousel-arrows .prev:hover {
  transform: scale(1.2) rotate(270deg);
}

.carousel-arrows .next {
  background-image: url("../../images/arrow.svg");
  background-size: 60px 120px;
  filter: brightness(0) invert(1);
  transform: rotate(90deg);
}

.carousel-arrows .next:hover {
  transform: scale(1.2) rotate(90deg);
}

/* Arrows responsive - Medium devices */
@media (max-width: 1199px) {
  .carousel-arrows button {
    margin: 0 15px;
    width: 100px;
    height: 70px;
  }

  .carousel-arrows .prev {
    background-size: 50px 100px;
  }

  .carousel-arrows .next {
    background-size: 50px 100px;
  }
}

/* Arrows responsive - Small devices */
@media (max-width: 767px) {
  .carousel-arrows button {
    margin: 0 12px;
    width: 85px;
    height: 60px;
  }

  .carousel-arrows .prev {
    background-size: 42px 85px;
    transform: rotate(270deg) scale(0.85);
  }

  .carousel-arrows .prev:hover {
    transform: scale(1) rotate(270deg);
  }

  .carousel-arrows .next {
    background-size: 42px 85px;
    transform: rotate(90deg) scale(0.85);
  }

  .carousel-arrows .next:hover {
    transform: scale(1) rotate(90deg);
  }
}

/* Arrows responsive - Extra small devices */
@media (max-width: 480px) {
  .carousel-arrows button {
    margin: 0 8px;
    width: 65px;
    height: 50px;
  }

  .carousel-arrows .prev {
    background-size: 32px 65px;
    transform: rotate(270deg) scale(0.8);
  }

  .carousel-arrows .prev:hover {
    transform: scale(0.95) rotate(270deg);
  }

  .carousel-arrows .next {
    background-size: 32px 65px;
    transform: rotate(90deg) scale(0.8);
  }

  .carousel-arrows .next:hover {
    transform: scale(0.95) rotate(90deg);
  }
}

/* Arrows responsive - Very small devices */
@media (max-width: 420px) {
  .carousel-arrows button {
    margin: 0 5px;
    width: 50px;
    height: 40px;
  }

  .carousel-arrows .prev {
    background-size: 25px 50px;
  }

  .carousel-arrows .next {
    background-size: 25px 50px;
  }
}

.smile-gallery {
  background: #fdf7e6;
  text-align: center;
  padding: 40px 20px 60px;
}

.smile-gallery h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.subtext.dark {
  color: #444;
  font-size: 16px;
  max-width: 700px;
  margin: 10px auto 40px;
}

/* CAROUSEL BASE */
.gallery-carousel {
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
}

.gallery-carousel .carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

/* GALLERY CARDS */
.gallery-card {
  flex: 0 0 calc(100% / 3);
  display: flex;
  gap: 6px;
  padding: 0;
  opacity: 0.35;
  transform: scale(0.9);
  transition: 0.4s ease;
  border-radius: 25px;
  overflow: hidden;
}

/* Medium devices (tablets) - 2 gallery cards visible */
@media (max-width: 1199px) {
  .gallery-card {
    flex: 0 0 calc(100% / 2);
    gap: 4px;
  }

  .gallery-carousel {
    padding-bottom: 70px;
  }
}

/* Small devices (phones) - 1 gallery card visible */
@media (max-width: 767px) {
  .gallery-card {
    flex: 0 0 100%;
    gap: 4px;
  }

  .gallery-carousel {
    padding-bottom: 60px;
  }
}

/* Center Active */
.gallery-card.active {
  opacity: 1;
  transform: scale(1);
}

/* Images inside card */
.gallery-card img {
  width: 50%;
  border-radius: 0;
  object-fit: cover;
  filter: grayscale(30%) brightness(85%);
  transition: 0.4s ease;
}

/* Reserve image space to reduce layout shifts when images load */
.gallery-card {
  min-height: 220px;
  /* reserve vertical space to avoid jumps */
}

.gallery-card img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

/* 🔥 HOVER EFFECT ONLY ON CENTER */
.gallery-card.active img {
  filter: none;
}

/* ARROWS */
.carousel-arrows.dark {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

.carousel-arrows.dark button {
  font-size: 0;
  margin: 0 20px;
  width: 120px;
  height: 80px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  color: transparent;
  transition: transform 0.2s ease;
}

.carousel-arrows.dark .prev {
  background-image: url("../../images/arrow.svg");
  background-size: 60px 120px;
  filter: brightness(0);
  transform: rotate(270deg);
}

.carousel-arrows.dark .prev:hover {
  transform: scale(1.2) rotate(270deg);
}

.carousel-arrows.dark .next {
  background-image: url("../../images/arrow.svg");
  background-size: 60px 120px;
  filter: brightness(0);
  transform: rotate(90deg);
}

.carousel-arrows.dark .next:hover {
  transform: scale(1.2) rotate(90deg);
}

/* Dark arrows responsive - Medium devices */
@media (max-width: 1199px) {
  .carousel-arrows.dark button {
    margin: 0 15px;
    width: 100px;
    height: 70px;
  }

  .carousel-arrows.dark .prev {
    background-size: 50px 100px;
  }

  .carousel-arrows.dark .next {
    background-size: 50px 100px;
  }
}

/* Dark arrows responsive - Small devices */
@media (max-width: 767px) {
  .carousel-arrows.dark button {
    margin: 0 12px;
    width: 85px;
    height: 60px;
  }

  .carousel-arrows.dark .prev {
    background-size: 42px 85px;
    transform: rotate(270deg) scale(0.85);
  }

  .carousel-arrows.dark .prev:hover {
    transform: scale(1) rotate(270deg);
  }

  .carousel-arrows.dark .next {
    background-size: 42px 85px;
    transform: rotate(90deg) scale(0.85);
  }

  .carousel-arrows.dark .next:hover {
    transform: scale(1) rotate(90deg);
  }
}

/* Dark arrows responsive - Extra small devices */
@media (max-width: 480px) {
  .carousel-arrows.dark button {
    margin: 0 8px;
    width: 65px;
    height: 50px;
  }

  .carousel-arrows.dark .prev {
    background-size: 32px 65px;
    transform: rotate(270deg) scale(0.8);
  }

  .carousel-arrows.dark .prev:hover {
    transform: scale(0.95) rotate(270deg);
  }

  .carousel-arrows.dark .next {
    background-size: 32px 65px;
    transform: rotate(90deg) scale(0.8);
  }

  .carousel-arrows.dark .next:hover {
    transform: scale(0.95) rotate(90deg);
  }
}

/* Dark arrows responsive - Very small devices */
@media (max-width: 420px) {
  .carousel-arrows.dark button {
    margin: 0 5px;
    width: 50px;
    height: 40px;
  }

  .carousel-arrows.dark .prev {
    background-size: 25px 50px;
  }

  .carousel-arrows.dark .next {
    background-size: 25px 50px;
  }
}

/* White Testimonials Variant */
.testimonials.bg-white {
  background: #ffffff;
  color: #212529;
}

.testimonials.bg-white .subtext {
  color: #444444;
}

.testimonials.bg-white .dot {
  background: #cccccc;
}

.testimonials.bg-white .dot.active {
  background: #0d6efd;
}