

/*******Testimonial Carousel******/
.testimonials-container.modern-carousel {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem;
  background-color: var(--background-color);
}

.testimonial-content {
  display: flex;
  max-width: var(--site-max-width, 1400px);
  width: 100%;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.testimonial-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 280px;
}

.testimonial-intro h2 {
  font-size: 2.2rem;
  font-weight: 400;
}

.testimonial-intro .highlight {
  font-weight: 700;
}

.intro-subtext {
  margin: 1rem 0 2rem;
  color: #555;
  max-width: 300px;
}

.carousel-arrows {
  display: flex;
  gap: 1rem;
}

.carousel-arrows button {
  background: none;
  border: 1px solid var(--dark-background-color);
  border-radius: 50%;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s ease;
  color: var(--dark-background-color);
}

.carousel-arrows button:hover {
  background-color: var(--background-color);
}

.testimonial-quote {
  flex: 2;
  position: relative;
  padding-left: 2rem;
  min-width: 300px;
}

.quote-icon {
  font-size: 3rem;
  color: var(--dark-background-color);
  font-weight: bold;
  margin-bottom: 1rem;
}

.quote-text {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

.read-more {
  background: none;
  border: none;
  color: var(--dark-background-color);
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
  font-size: 1rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-photo.placeholder {
  background-color: #ccc;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.author-role {
  font-size: 0.9rem;
  color: #666;
}

.google-stars {
  color: #ffb400;
  font-size: 1rem;
}

@media (max-width: 768px) {
  app-testimonial-carousel .testimonials-container.modern-carousel {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: clamp(3rem, 10vw, 4rem) clamp(1.25rem, 6vw, 1.75rem) !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  app-testimonial-carousel .testimonial-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 2rem;
    box-sizing: border-box;
  }

  app-testimonial-carousel .testimonial-intro,
  app-testimonial-carousel .testimonial-quote {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    box-sizing: border-box;
  }

  app-testimonial-carousel .testimonial-intro {
    gap: 1.25rem;
  }

  app-testimonial-carousel .testimonial-intro h2 {
    font-size: clamp(2.4rem, 12vw, 3.05rem) !important;
    line-height: 1.08;
    margin: 0;
    max-width: 10ch;
    overflow-wrap: normal;
  }

  app-testimonial-carousel .intro-subtext {
    max-width: 100%;
    margin: 0;
    font-size: clamp(1.2rem, 5vw, 1.45rem) !important;
    line-height: 1.5;
  }

  app-testimonial-carousel .intro-content {
    max-width: 100%;
    margin-top: 0;
    font-size: clamp(0.95rem, 3.7vw, 1.05rem) !important;
    line-height: 1.5;
  }

  app-testimonial-carousel .intro-content,
  app-testimonial-carousel .quote-text,
  app-testimonial-carousel .author-info {
    overflow-wrap: anywhere;
  }

  app-testimonial-carousel .afhBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 0.85rem 1rem;
    margin: 0;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  app-testimonial-carousel .carousel-arrows {
    gap: 0.85rem;
  }

  app-testimonial-carousel .carousel-arrows button {
    width: 46px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  app-testimonial-carousel .testimonial-quote {
    padding-left: 0;
    padding-right: 0;
  }

  app-testimonial-carousel .quote-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
  }

  app-testimonial-carousel .quote-text {
    max-width: 100%;
    margin-bottom: 1.5rem;
    font-size: clamp(1.1rem, 5vw, 1.35rem) !important;
    line-height: 1.55;
  }
}

@media (max-width: 420px) {
  app-testimonial-carousel .testimonials-container.modern-carousel {
    padding-left: 1.35rem !important;
    padding-right: 1.35rem !important;
  }

  app-testimonial-carousel .testimonial-intro h2 {
    font-size: clamp(2.25rem, 11vw, 2.75rem) !important;
  }
}
