section.testimonials {
  padding: 104px 0;
  background: linear-gradient(
    4deg,
    #e2f2ef 3.13%,
    rgba(255, 255, 255, 0) 112.96%
  );
}

section.testimonials .testimonials-header-wrapper {
  max-width: 1256px;
  padding: 0 20px;
  width: 100%;
  margin: 0 auto 32px;
}

section.testimonials .testimonials-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

section.testimonials .testimonials-title {
  color: #005159;
  text-align: center;
  font-weight: 500;
  letter-spacing: 1.04px;
  margin: 0;
}

section.testimonials .testimonials-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Geist", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #211e19;
}

section.testimonials .testimonials-google-icon {
  width: 30px;
  height: 30px;
  content: "";
  background-image: url(../../assets/icons/google.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: inline-block;
  flex-shrink: 0;
}

section.testimonials .testimonials-carousel-wrapper {
  position: relative;
  margin-left: 20px;
}

section.testimonials .testimonials-swiper {
  overflow: hidden;
  width: 100%;
}

section.testimonials .testimonials-swiper .swiper-wrapper {
  align-items: stretch;
}

section.testimonials .testimonials-swiper .swiper-slide {
  width: 480px;
  height: auto;
  display: flex;
}

/* Card */
section.testimonials .testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  min-height: auto;
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

/* Stars */
section.testimonials .testimonial-stars {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

section.testimonials .testimonial-stars svg {
  width: 20px;
  height: 18.889px;
  display: block;
}

/* Text */
section.testimonials .testimonial-text {
  font-family: "Geist", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  color: #211e19;
  margin: 0;
  flex-shrink: 0;
}

/* Author */
section.testimonials .testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

section.testimonials .testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #c0e8ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Geist", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  color: #101615;
  flex-shrink: 0;
}

section.testimonials .testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

section.testimonials .testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

section.testimonials .testimonial-name {
  font-family: "Geist", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: #211e19;
}

section.testimonials .testimonial-date {
  font-family: "Geist", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #211e19;
}

/* Quote */
section.testimonials .testimonial-quote {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 84px;
  height: 57px;
  z-index: 1;
  pointer-events: none;
  background-image: url(../../assets/icons/quote.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.6;
}

/* Footer: contained */
section.testimonials .testimonials-footer-wrapper {
  max-width: 1256px;
  padding: 0 20px;
  width: 100%;
  margin: 32px auto 0;
}

section.testimonials .testimonials-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

section.testimonials .testimonials-footer .swiper-pagination {
  position: relative;
  display: flex;
  gap: 8px;
  width: auto;
}

section.testimonials .testimonials-footer .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #989898;
  opacity: 1;
  border-radius: 50%;
  margin: 0;
}

section.testimonials .testimonials-footer .swiper-pagination-bullet-active {
  background: #00a2b1;
}

/* Navigation Arrows */
section.testimonials .testimonials-nav {
  display: flex;
  gap: 12px;
}

section.testimonials .testimonials-prev,
section.testimonials .testimonials-next {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-image 0.2s ease;
}

/* Default: teal outline */
section.testimonials .testimonials-prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M20 26.667L13.333 20 20 13.333M13.333 20h13.334M36.667 20c0 9.205-7.462 16.667-16.667 16.667S3.333 29.205 3.333 20 10.795 3.333 20 3.333 36.667 10.795 36.667 20Z' stroke='%2300A2B1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

section.testimonials .testimonials-next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M20 26.667L13.333 20 20 13.333M13.333 20h13.334M36.667 20c0 9.205-7.462 16.667-16.667 16.667S3.333 29.205 3.333 20 10.795 3.333 20 3.333 36.667 10.795 36.667 20Z' stroke='%2300A2B1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: scaleX(-1);
}

/* Hover / Active: filled teal with white arrow */
section.testimonials .testimonials-prev:hover,
section.testimonials .testimonials-next:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M20 36.667c9.205 0 16.667-7.462 16.667-16.667S29.205 3.333 20 3.333 3.333 10.795 3.333 20s7.462 16.667 16.667 16.667Z' fill='%2300A2B1'/%3E%3Cpath d='M20 26.667L13.333 20 20 13.333M13.333 20h13.334' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Disabled: grey outline (Swiper adds .swiper-button-disabled) */
section.testimonials .testimonials-prev.swiper-button-disabled,
section.testimonials .testimonials-next.swiper-button-disabled,
section.testimonials .testimonials-prev.swiper-button-disabled:hover,
section.testimonials .testimonials-next.swiper-button-disabled:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M20 26.667L13.333 20 20 13.333M13.333 20h13.334M36.667 20c0 9.205-7.462 16.667-16.667 16.667S3.333 29.205 3.333 20 10.795 3.333 20 3.333 36.667 10.795 36.667 20Z' stroke='%23989898' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 1;
  cursor: not-allowed;
}

/* Desktop large: align carousel with container left edge */
@media (min-width: 1296px) {
  section.testimonials .testimonials-carousel-wrapper {
    margin-left: calc((100% - 1256px) / 2 + 20px);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  section.testimonials {
    padding: 80px 0;
  }

  section.testimonials .testimonials-header-wrapper {
    padding: 0 56px;
    margin-bottom: 24px;
  }

  section.testimonials .testimonials-carousel-wrapper {
    margin-left: 56px;
  }

  section.testimonials .testimonials-footer-wrapper {
    padding: 0 56px;
    margin-top: 24px;
  }

  section.testimonials .testimonials-swiper .swiper-slide {
    width: 420px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  section.testimonials {
    padding: 56px 0;
  }

  section.testimonials .testimonials-header-wrapper {
    padding: 0 20px;
    margin-bottom: 24px;
  }

  section.testimonials .testimonials-header {
    gap: 16px;
  }

  section.testimonials .testimonials-title {
    font-size: 40px;
    line-height: 45px;
    letter-spacing: 0.72px;
  }

  section.testimonials .testimonials-carousel-wrapper {
    margin-left: 20px;
  }

  section.testimonials .testimonials-swiper .swiper-slide {
    width: 280px;
  }

  section.testimonials .testimonial-card {
    min-height: auto;
    gap: 16px;
    padding: 24px;
  }

  section.testimonials .testimonial-text {
    font-size: 16px;
    line-height: 26px;
  }

  section.testimonials .testimonial-name {
    font-size: 14px;
    line-height: 22px;
  }

  section.testimonials .testimonial-date {
    font-size: 12px;
    line-height: 18px;
  }

  section.testimonials .testimonials-footer-wrapper {
    padding: 0 20px;
    margin-top: 24px;
  }

  section.testimonials .testimonial-quote {
    right: 5px;
    bottom: 5px;
    width: 60px;
    height: 40px;
  }
}
