/* ---------- Card (original styles) ---------- */
.testimonial .testimonial-card {
  display: flex;
  align-items: center;
  gap: 84px;
}

.testimonial .testimonial-image {
  display: flex;
}

.testimonial .testimonial-image img {
  max-width: 435px;
  border-radius: 14px;
  object-fit: cover;
  width: 100%;
}

.testimonial .testimonial-content {
  flex: 1;
}

.testimonial .testimonial-quote {
  margin-bottom: 21px;
}

.testimonial .testimonial-quote p {
  font-size: 21px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.21px;
  margin-bottom: 15px;
  max-width: 618px;
}

.testimonial .testimonial-quote p:last-child {
  margin-bottom: 0;
}

.testimonial .testimonial-author {
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.18px;
  margin-bottom: 57px;
}

.testimonial a.testimonial-btn {
  display: inline-block;
  background: #FF914D; /* orange */
  color: #FFF;
  padding: 13px 28px;
  border-radius: 100px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: 0.18px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.testimonial .testimonial-btn:hover {
  background: #ea580c; /* darker orange */
  text-decoration: none;
  color: #fff;
}

@media only screen and (max-width: 1200px) and (min-width: 993px) {
  .testimonial .testimonial-card {
    gap: 50px;
  }
  .testimonial {
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
  .testimonial .testimonial-image img {
    max-width: 400px;
  }
}

@media only screen and (max-width: 992px) and (min-width: 850px) {
  .testimonial .testimonial-card {
    gap: 30px;
  }
  .testimonial .testimonial-image img {
    max-width: 350px;
  }
}

/* ---------- Mobile ---------- */
@media only screen and (max-width: 849px) {
  .testimonial .testimonial-card {
    gap: 24px;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
  }
  .testimonial .testimonial-image img {
    max-width: 100%;
  }
  .testimonial .testimonial-quote {
    margin-bottom: 14px;
  }
  .testimonial .testimonial-quote p {
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: 0;
    margin-bottom: 10px;
  }
  .testimonial .testimonial-author {
    font-size: 15px;
    letter-spacing: 0;
    margin-bottom: 24px;
  }
  .testimonial a.testimonial-btn {
    font-size: 16px;
    line-height: 24px;
    padding: 11px 22px;
  }
  .testimonial-slider .testimonial-dots {
    margin-top: 20px;
  }
}

@media only screen and (max-width: 480px) {
  .testimonial .testimonial-quote p {
    font-size: 16px;
  }
  .testimonial .testimonial-author {
    font-size: 14px;
  }
}

/* ---------- Slider ---------- */
.testimonial-slider .testimonial-slides {
  display: grid; /* all slides share one cell, so the height is set by the tallest */
}

.testimonial-slider .testimonial-slide {
  grid-area: 1 / 1;
  display: flex; /* lets the card stretch to the full shared height */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.testimonial-slider .testimonial-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s linear 0s;
}

/* Every card is the same height, so the image sits in the same spot on every slide */
.testimonial-slider .testimonial-slide > .testimonial-card {
  flex: 1 1 auto;
  min-width: 0;
}

/* Dots sit below the card, on the page background */
.testimonial-slider .testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.testimonial-slider .testimonial-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #D9D9D9;
  cursor: pointer;
  transition: background 0.3s ease;
}

.testimonial-slider .testimonial-dot:hover {
  background: #FFC7A4;
}

.testimonial-slider .testimonial-dot.is-active {
  background: #FF914D;
}

.testimonial-slider .testimonial-dot:focus-visible {
  outline: 2px solid #FF914D;