section.testimonials {
  padding: 104px 0;
  background: linear-gradient(
    4deg,
    #f9f4ef 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;
  border-radius: 50%;
  background: #f9fcff;
  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: opacity 0.3s ease;
}

section.testimonials .testimonials-prev:hover,
section.testimonials .testimonials-next:hover {
  opacity: 0.7;
}

section.testimonials .testimonials-prev {
  background-image: url(../../assets/icons/circle-arrow-left.svg);
}

section.testimonials .testimonials-next {
  background-image: url(../../assets/icons/circle-arrow-right.svg);
}

section.testimonials .testimonials-google-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background-image: url(../../assets/icons/google.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
}

/* 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: 36px;
    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;
  }
}
