.testimonial-slider-wrapper {
  background-color: #f2f5f7;
  text-align: center;
  max-width: 1140px;
  margin: 0 auto;
  margin-top: 12px;
  display: flex;
  padding: 36px 0px 44px 0px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  border-radius: 12px;
}

.testimonial-title {
  color: #000;
  text-align: center;
  font-family: "Open Sans";
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}

.testimonial-slider {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.testimonial-slide {
  display: flex;
  max-width: 350px;
  padding: 0px 24px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  /* Add transition for smoother animation */
  transition: opacity 0.3s ease;
}

.testimonial-image {
  margin-bottom: 0;
}

.testimonial-image img {
  width: 164px;
  height: 164px;
  object-fit: cover;
}

.testimonial-quote {
color: #2D3137;
text-align: center;
font-family: "Open Sans";
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 150%;
letter-spacing: 0.25px;
}

.testimonial-author {
  color: #2D3137;
  text-align: center;
  font-family: "Open Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%; /* 21px */
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.testimonial-cta {
  display: inline-block;
  margin-top: 04px;
  background-color: #ed1c24;
  padding: 12px 24px;
  border-radius: 20px;
  color: #FFF;
  text-align: center;
  -webkit-text-stroke-width: 0.1px;
  -webkit-text-stroke-color: #FFF;
  font-family: "Open Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.testimonial-cta:hover {
  background-color: #c50f16;
  color:#fff
}

.testimonial-nav {
  display: none;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.testimonial-nav button {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.testimonial-nav button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile styles */
@media (max-width: 768px) {

  .testimonial-slider-wrapper {
    display: flex;
    margin: 36px 24px 0px 24px;
    justify-content: center;
    align-items: center;
    gap: 0px;
    padding:20px;
  }

  .testimonial-title {
    color: #000;
    text-align: center;
    font-family: "Open Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 0;
  }

  .testimonial-slider {
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
    gap: 0;
  }

  .testimonial-slide {
    display: none;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    padding-bottom: 0;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .testimonial-slide.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
    position: relative;
  }

  .testimonial-nav {
    display: flex;
    margin-top: 0;
    font-size: 30px;
  }

  .testimonial-slider-wrapper.single-slide .testimonial-nav {
    display: none;
  }

  .testimonial-nav button {
    font-size: 30px;
  }

  .testimonial-nav button:hover, 
  .testimonial-nav button:focus, 
  .testimonial-nav button:active, 
  .testimonial-nav button:visited {
    background-color: #f2f5f7;
    outline: none;
    border: none
  }

  .testimonial-cta {
    margin-top: 08px;
    padding: 12px 24px;
    font-size: 14px;
    line-height: normal;
    letter-spacing: 1.5px;
  }
}

/* Desktop: show all slides */
@media (min-width: 769px) {
  .testimonial-slide {
    display: flex !important;
    opacity: 1 !important;
    position: relative !important;
    transform: none !important;
  }
}