/* Testimonials container */
.testimonials-section {
  --testimonials-arrow-size: px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Header row — matches the event module layout */
.testimonials-section .testimonials-header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto;
  margin-bottom: 0;
}

.testimonials-section .testimonials-header-content {
  flex: 1;
}

.testimonials-section .section-description {
  text-align: left;
}

/* Controllers — matches the event module layout */
.testimonials-section .testimonials-controllers-desktop {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.testimonials-section .testimonials-controllers-mobile {
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

/* Navigation buttons — matches the event module arrows */
.testimonials-section .testimonials-nav-btn {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50%;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  border: none;
  background: transparent;
  flex-shrink: 0;
}

.testimonials-section .testimonials-nav-btn .testimonials-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.testimonials-section .testimonials-nav-btn.testimonials-prev .testimonials-inner {
  background: linear-gradient(135deg, #4CAF6D 0%, #111111 100%);
}

.testimonials-section .testimonials-nav-btn.testimonials-next .testimonials-inner {
  background: linear-gradient(135deg, #111111 0%, #4CAF6D 100%);
}

.testimonials-section .testimonials-nav-btn svg {
  width: 35px;
  height: 35px;
  fill: #fff;
  display: block;
}

.testimonials-section button.testimonials-nav-btn:focus,
.testimonials-section button.testimonials-nav-btn:focus-visible,
.testimonials-section button.testimonials-nav-btn:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Slider */
.testimonials-section .testimonials-container {
  position: relative;
}

.testimonials-section .testimonials-swiper {
  width: 100%;
  padding: 40px 0;
}

.testimonials-section .testimonials-swiper .swiper-wrapper {
  align-items: stretch;
}

.testimonials-section .testimonials-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

/* Testimonial card */
.testimonials-section .testimonial-card {
  width: 100%;
  height: 100%;
  min-height: 176px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 25px;
  background: #fcfcfc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonials-section .testimonial-stars {
  color: #fbc51b;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.testimonials-section .testimonial-quote {
     margin: 0 0 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #111111;
    line-height: 1.6;
    margin: 20px auto;
    opacity: 70%;
  font-style: italic;
}

.testimonials-section .testimonial-quote p {
  margin: 0;
}

.testimonials-section .testimonial-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.testimonials-section .testimonial-person-image,
.testimonials-section .testimonial-person-placeholder {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
}

.testimonials-section .testimonial-person-image {
  object-fit: cover;
  display: block;
}

.testimonials-section .testimonial-person-placeholder {
  background: #dce5e8;
}

.testimonials-section .testimonial-person-name {
  margin: 0;
  color: #111111;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.testimonials-section .testimonial-person-designation {
  margin: 2px 0 0;
  color: #111111;
  font-size: 16px;
  line-height: 1.35;
  opacity:0.7;
}

/* Desktop heading width control — matches the event module */
@media (min-width: 426px) {
  .testimonials-section .testimonials-header-content {
    {% if module.heading_text_width_desktop %}
      max-width: %;
    {% endif %}
  }
}

/* Tablet */
@media (max-width: 768px) {
  .testimonials-section .testimonials-swiper .swiper-slide {
    width: 100%;
  }

  .testimonials-section .testimonial-card {
    min-height: 185px;
  }
  .testimonials-section .testimonials-nav-btn {
    width: 55px !important;
    height: 55px !important;
  }
}

/* Mobile — matches the event module responsive arrow layout */
@media (max-width: 425px) {
  .testimonials-section {
    --testimonials-arrow-size: px;
  }

  .testimonials-section .testimonials-header-row {
    flex-direction: column;
    text-align: center;
    margin-bottom: 10px;
    gap: 15px;
  }

  .testimonials-section .section-heading {
    text-align: center;
  }

  .testimonials-section .section-description {
    text-align: center;
  }

  .testimonials-section .testimonials-controllers-desktop {
    display: none;
  }

  .testimonials-section .testimonials-controllers-mobile {
    display: flex;
    margin-top: 30px;
  }

  .testimonials-section .testimonials-swiper {
    width: 100%;
    padding: 0;
  }

  .testimonials-section .testimonial-card {
    min-height: 190px;
  }
}
