/* Figma Google reviews section (node 9178:16524). */
.testimonialSliderSec {
  display: flex;
  width: 100%;
  height: 610px;
  padding: 80px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 44px;
  background: #fff;
  box-sizing: border-box;
}

.testimonialSliderSec > .singleTitle {
  width: 100%;
  margin: 0;
  color: #363635;
  font-family: "Noto Sans", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: -0.14px;
  text-align: center;
  text-transform: none;
}

.figmaReviews {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.figmaReviewsSwiper {
  width: 100%;
  padding-bottom: 48px;
  box-sizing: border-box;
}

.figmaReviewsSwiper .swiper-wrapper {
  align-items: stretch;
}

.figmaReviewsSwiper .swiper-slide {
  position: relative;
  height: 335px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.figmaReviewsSwiper .swiper-slide-active {
  opacity: 1;
}

.figmaReviewCard {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 16px 16px 32px;
  overflow: hidden;
  border: 1px solid rgba(180, 180, 179, 0.4);
  border-radius: 20px;
  background: #fff;
  box-sizing: border-box;
}

.figmaReviewsSwiper .swiper-slide-active .figmaReviewCard {
  background: rgba(54, 54, 53, 0.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.figmaReviewCard__header {
  display: flex;
  width: 100%;
  min-height: 29px;
  margin-bottom: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.figmaReviewCard__header > div {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.figmaReviewCard__header h3,
.figmaReviewCard__header time,
.figmaReviewCard > p {
  margin: 0;
  font-family: Lato, sans-serif;
  font-style: normal;
}

.figmaReviewCard__header h3 {
  color: #30a67f;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.2px;
}

.figmaReviewCard__header time {
  color: #b4b4b3;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.12px;
  white-space: nowrap;
}

.figmaReviewCard__header img {
  width: 88px;
  height: 12px;
  flex: 0 0 88px;
}

.figmaReviewCard > p {
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.figmaReviewsSwiper .swiper-slide-active .figmaReviewCard > p {
  font-size: 22px;
  line-height: 36px;
  letter-spacing: 0.52px;
  -webkit-line-clamp: 6;
}

.figmaReviews__pagination {
  display: flex !important;
  width: 100%;
  height: 8px;
  margin-top: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.figmaReviews__pagination .swiper-pagination-bullet {
  position: relative;
  display: block;
  width: 26px;
  height: 8px;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 4px;
  background: #ebebea;
  opacity: 1;
  cursor: pointer;
}

.figmaReviews__pagination .swiper-pagination-bullet-active {
  width: 104px;
}

.figmaReviews__pagination .swiper-pagination-bullet-active i {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 8px;
  border-radius: 4px;
  background: #1f8462;
  animation: figmaReviewsProgress 5s linear forwards;
}

@keyframes figmaReviewsProgress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/*
 * Desktop: 3 equal tracks fill the row (no blank sides).
 * Featured card is the MIDDLE track (.swiper-slide-next) — wider 872-equiv.
 * Side cards stay 420-equiv inside their tracks (Figma 9178:16524).
 */
@media (min-width: 981px) {
  .figmaReviewsSwiper .swiper-slide {
    overflow: visible;
    opacity: 0.5;
  }

  .figmaReviewsSwiper .swiper-slide-active {
    opacity: 0.5;
  }

  .figmaReviewsSwiper .swiper-slide-next {
    z-index: 2;
    opacity: 1;
  }

  .figmaReviewsSwiper .figmaReviewCard {
    position: absolute;
    top: 0;
    left: 50%;
    width: 73.6%;
    height: 100%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: none;
  }

  .figmaReviewsSwiper .swiper-slide-active .figmaReviewCard {
    left: 36.8%;
    background: #fff;
    box-shadow: none;
  }

  .figmaReviewsSwiper .swiper-slide-active .figmaReviewCard > p {
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.2px;
    -webkit-line-clamp: 8;
  }

  .figmaReviewsSwiper .swiper-slide-next .figmaReviewCard {
    left: 50%;
    width: 152.8%;
    background: rgba(54, 54, 53, 0.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }

  .figmaReviewsSwiper .swiper-slide-next .figmaReviewCard > p {
    font-size: 22px;
    line-height: 36px;
    letter-spacing: 0.52px;
    -webkit-line-clamp: 6;
  }

  .figmaReviewsSwiper .swiper-slide-next + .swiper-slide .figmaReviewCard {
    left: 63.2%;
  }
}

@media (min-width: 981px) and (max-width: 1200px) {
  .testimonialSliderSec {
    padding-right: 40px;
    padding-left: 40px;
  }

  .figmaReviewCard__header {
    gap: 8px;
  }

  .figmaReviewCard__header h3 {
    font-size: 13px;
    line-height: 18px;
  }

  .figmaReviewCard__header time {
    font-size: 9px;
    line-height: 14px;
  }

  .figmaReviewCard__header img {
    width: 66px;
    flex-basis: 66px;
  }

  .figmaReviewCard > p {
    font-size: 11px;
    line-height: 18px;
  }

  .figmaReviewsSwiper .swiper-slide-next .figmaReviewCard > p {
    font-size: 16px;
    line-height: 26px;
  }
}

@media (max-width: 980px) {
  .testimonialSliderSec {
    height: auto;
    min-height: 520px;
    padding: 60px 0;
  }

  .figmaReviewsSwiper .swiper-slide {
    height: auto;
    min-height: 300px;
  }

  .figmaReviewsSwiper .figmaReviewCard {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .figmaReviewsSwiper .swiper-slide-active .figmaReviewCard > p {
    font-size: 16px;
    line-height: 26px;
  }
}
