/* =========================================================
   Optimal Testimonial Slider
   ========================================================= */

/* Outer wrapper: positioning context so arrows sit outside the swiper */
.ots-slider-outer {
  position: relative;
  padding: 0 44px;
}

.optimal-testimonial-slider.swiper {
  padding-bottom: 50px; /* room for pagination dots */
  width: 100%;
}

/* Equal-height slides */
.optimal-testimonial-slider .swiper-wrapper {
  align-items: stretch;
}

/* Chain height through Divi's wrappers: swiper-slide > .et_pb_module > .et_pb_module_inner > card */
.optimal-testimonial-slider .swiper-slide,
.optimal-testimonial-slider .swiper-slide > *,
.optimal-testimonial-slider .swiper-slide .et_pb_module_inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ---- Card ---- */
.ots-testimonial-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  justify-content: space-between;
  overflow: hidden;
  padding: 1.5rem;
  width: 100%;
  font-family: "AvenirNext Condensed", Helvetica, Arial, Lucida, sans-serif;
}

/* ---- Quote ---- */
.ots-quote {
  flex: 1;
  margin-bottom: 28px;
}

.ots-quote p {
  color: inherit;
  font-size: 20px;
  line-height: 1.7;
  margin: 0;
  position: relative;
}

.ots-quote p:first-child::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 30' fill='none'%3E%3Cpath fill='%239ccc66' d='M9.778 0c5.4 0 9.778 4.378 9.778 9.778 0 3.67-1.087 7.258-3.123 10.312l-5.66 8.491a2.445 2.445 0 0 1-4.067-2.711l4.256-6.389a10 10 0 0 1-1.184.075C4.378 19.556 0 15.178 0 9.778S4.378 0 9.778 0m24.444 0C39.622 0 44 4.378 44 9.778c0 3.67-1.086 7.258-3.122 10.312l-5.66 8.491a2.445 2.445 0 0 1-4.068-2.711l4.256-6.389a10 10 0 0 1-1.184.075c-5.4 0-9.778-4.378-9.778-9.778S28.822 0 34.222 0'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  height: 30px;
  position: relative;
  width: 44px;
  display: block;
  margin-bottom: 1rem;
}

/* ---- Author row ---- */
.ots-author {
  align-items: center;
  display: flex;
  gap: 16px;
}

/* ---- Author image (circle) ---- */
.ots-author-image {
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

/* ---- Author text ---- */
.ots-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ots-author-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.ots-author-title {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}

/* ---- Navigation arrows (outside the swiper, inside .ots-slider-outer) ---- */
.ots-slider-outer .swiper-button-prev,
.ots-slider-outer .swiper-button-next {
  color: #fff;
  transform: translateY(-50%);
}

.ots-slider-outer .swiper-button-prev {
  left: 0;
}
.ots-slider-outer .swiper-button-next {
  right: 0;
}

/* ---- Dot pagination ---- */
.optimal-testimonial-slider .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
  --swiper-pagination-bullet-width: 12px;
  --swiper-pagination-bullet-height: 12px;
  --swiper-pagination-bullet-horizontal-gap: 8px;
}
.optimal-testimonial-slider .swiper-pagination-bullet-active {
  background: #9ccc66;
}
