.testimonials {
  padding: 34px 20px 44px;
  text-align: center;
  background: transparent;
}

.testimonials h2 {
  font-size: 60px;
  font-weight: 600;
  color: #233860;
  margin: 10px 0 30px;
  font-family: "Playfair Display", serif;
}

.reviews-summary {
  display: none;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 1320px;
  margin: -12px auto 26px;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.reviews-summary.visible {
  display: flex;
}

.reviews-label {
  font-weight: 700;
}

.reviews-stars-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.reviews-stars-glyph {
  color: #f4b400;
  letter-spacing: 1px;
}

.reviews-score {
  font-weight: 700;
}

.reviews-count-text {
  color: #111;
}

.reviews-write-link {
  margin-left: auto;
  min-width: 132px;
  padding: 9px 18px;
  border: 1px solid #333;
  border-radius: 3px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.reviews-google-link,
.testimonial-google-link {
  color: #9b9b9b;
  font-weight: 500;
  text-decoration: none;
}

.testimonial-slider {
  max-width: 1320px;
  margin: 0 auto;
  padding-bottom: 70px;
}

.testimonial-wrapper {
  display: flex;
  align-items: stretch;
}

.testimonial-slide {
  display: flex;
  justify-content: center;
  height: auto;
  box-shadow: none;
  background-color: transparent;
}

.testimonial-item {
  position: relative;
  min-height: 280px;
  background: #fff;
  border-radius: 0;
  padding: 20px 24px 22px;
  text-align: left;
  max-width: 310px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s;
}

.testimonial-item:hover {
  transform: translateY(-5px);
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}

.testimonial-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d8e4dd;
  color: #5b6b64;
  font-size: 17px;
  font-weight: 700;
}

.testimonial-avatar-img {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #d8e4dd;
}

.testimonial-author-meta {
  min-width: 0;
  flex: 1;
}

.testimonial-author-meta h4 {
  margin: 0;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.testimonial-author-meta span {
  display: block;
  margin-top: 2px;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 1.2;
}

.testimonial-google-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-left: auto;
}

.testimonial-item > .stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 12px;
  color: #f4b400;
  font-size: 16px;
  letter-spacing: 1px;
}

.verified-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 5px;
  border-radius: 50%;
  background: #4285f4;
  color: #fff;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0;
}

.testimonial-item p {
  display: -webkit-box;
  min-height: 106px;
  margin: 8px 0;
  overflow: hidden;
  color: #111;
  font-size: 15px;
  font-style: normal;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.testimonial-item.expanded {
  min-height: 280px;
}

.testimonial-item.expanded p {
  display: block;
  min-height: 0;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.testimonial-google-link,
.testimonial-read-more {
  display: inline-block;
  margin-top: auto;
  font-size: 14px;
}

.testimonial-read-more {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9b9b9b;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.4;
}

.reviews-write-link:hover,
.reviews-google-link:hover,
.testimonial-google-link:hover,
.testimonial-read-more:hover {
  text-decoration: underline;
}

.testimonial-button-prev,
.testimonial-button-next {
  display: none;
}

.testimonial-pagination {
  bottom: 0 !important;
}

.testimonial-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ccc;
  opacity: 1;
  margin: 0 6px;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.testimonial-pagination .swiper-pagination-bullet-active {
  background: #6b4226;
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .testimonials {
    padding: 40px 15px;
  }

  .testimonials h2 {
    margin-bottom: 30px;
  }

  .reviews-summary {
    justify-content: center;
    margin-top: -4px;
    text-align: center;
  }

  .reviews-write-link {
    margin-left: 0;
  }

  .testimonial-item {
    max-width: 320px;
    padding: 20px 24px 22px;
  }

  .testimonial-item p {
    margin: 8px 0;
    font-size: 15px;
  }

  .testimonial-slider {
    height: auto;
  }
}

@media (max-width: 600px) {
  .testimonials {
    padding: 30px 10px;
  }

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

  .reviews-summary {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }

  .testimonial-item {
    max-width: 300px;
    padding: 20px 24px 22px;
  }

  .testimonial-item p {
    font-size: 14px;
  }
}
