/*=====================================================
    Testimonial Modern (Redesigned Section)
=====================================================*/

.testimonial-modern {
  position: relative;
  display: block;
  padding: 55px 0 60px;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(180deg, var(--builza-primary) 0%, var(--builza-white) 100%);
}

/* Giant faded quote in the background */
.testimonial-modern__bg-quote {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

.testimonial-modern__bg-quote span {
  font-size: 300px;
  line-height: 1;
  color: rgba(var(--builza-base-rgb), 0.05);
}

/*--- Header ---*/
.testimonial-modern .section-title__tagline-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Slightly smaller title to keep the section compact */
.testimonial-modern .section-title__title {
  font-size: 34px;
  line-height: 44px;
}

.testimonial-modern__rating-summary {
  position: relative;
  display: block;
  margin-top: 16px;
}

.testimonial-modern__rating-summary p {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--builza-gray);
}

.testimonial-modern__rating-summary p strong {
  color: var(--builza-black);
  font-weight: 700;
}

.testimonial-modern__rating-stars {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}

.testimonial-modern__rating-stars span {
  font-size: 18px;
  color: #f5a623;
}

/*--- Slider ---*/
.testimonial-modern__slider {
  position: relative;
  display: block;
  margin-top: 35px;
}

.testimonial-modern__carousel {
  position: relative;
  display: block;
  margin: 0 auto;
}

/* Equal height cards across the row */
.testimonial-modern__carousel .owl-stage {
  display: flex;
}

.testimonial-modern__carousel .owl-item {
  display: flex;
}

.testimonial-modern__single {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--builza-white);
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(var(--builza-black-rgb), 0.08);
  border-bottom: 4px solid var(--builza-secondary);
  transition: all 0.4s ease;
}

.testimonial-modern__single:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(var(--builza-black-rgb), 0.12);
}

/*--- Rating ---*/
.testimonial-modern__body {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
}

.testimonial-modern__ratting {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.testimonial-modern__ratting span {
  font-size: 16px;
  color: #f5a623;
}

/*--- Text ---*/
.testimonial-modern__text {
  position: relative;
  display: block;
  margin: 12px 0 20px;
  font-size: 15px;
  line-height: 26px;
  font-style: italic;
  text-align: center;
  color: var(--builza-gray);
}

/*--- Client Info (row at bottom of card) ---*/
.testimonial-modern__client-info {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: auto;
  border-top: 1px solid rgba(var(--builza-bdr-color-rgb), 0.4);
  padding-top: 18px;
}

.testimonial-modern__client-img {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--builza-secondary);
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-modern__client-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-modern__client-content {
  position: relative;
  display: block;
  text-align: left;
}

.testimonial-modern__client-content h3 {
  font-family: var(--builza-font-two);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: var(--builza-black);
  margin-bottom: 2px;
}

.testimonial-modern__client-content p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--builza-secondary);
  font-weight: 500;
}

/*--- Navigation Buttons (overlaid on card sides) ---*/
.testimonial-modern__nav-box {
  position: relative;
  display: block;
}

.testimonial-modern__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(var(--builza-bdr-color-rgb), 0.8);
  background-color: var(--builza-white);
  color: var(--builza-base);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(var(--builza-black-rgb), 0.12);
  transition: all 0.3s ease;
}

.testimonial-modern__nav-btn--prev {
  left: -14px;
}

.testimonial-modern__nav-btn--next {
  right: -14px;
}

.testimonial-modern__nav-btn:hover {
  background-color: var(--builza-base);
  border-color: var(--builza-base);
  color: var(--builza-white);
}

/*--- Owl Dots (pill style) ---*/
.testimonial-modern__carousel .owl-dots {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

.testimonial-modern__carousel .owl-dot {
  width: 10px;
  height: 10px;
  border: none;
  padding: 0;
  border-radius: 20px;
  background-color: rgba(var(--builza-bdr-color-rgb), 0.8);
  margin: 0 5px;
  transition: all 0.3s ease;
}

.testimonial-modern__carousel .owl-dot span {
  display: none;
}

.testimonial-modern__carousel .owl-dot.active {
  width: 32px;
  background-color: var(--builza-secondary);
}

/*=====================================================
    Responsive
=====================================================*/

@media (max-width: 1199px) {
  .testimonial-modern__bg-quote span {
    font-size: 240px;
  }
}

@media (max-width: 991px) {
  .testimonial-modern {
    padding: 45px 0 50px;
  }

  .testimonial-modern .section-title__title {
    font-size: 28px;
    line-height: 38px;
  }

  .testimonial-modern__single {
    padding: 28px 25px 25px;
  }

  .testimonial-modern__client-info {
    justify-content: flex-start;
  }

  .testimonial-modern__text {
    font-size: 14px;
    line-height: 24px;
  }

  .testimonial-modern__bg-quote span {
    font-size: 180px;
  }
}

@media (max-width: 575px) {
  .testimonial-modern {
    padding: 40px 0 45px;
  }

  .testimonial-modern__single {
    padding: 28px 25px 25px;
  }

  .testimonial-modern__client-info {
    gap: 12px;
  }

  .testimonial-modern__client-img {
    width: 54px;
    height: 54px;
  }

  .testimonial-modern__client-content h3 {
    font-size: 17px;
  }

  .testimonial-modern__text {
    font-size: 14px;
    line-height: 24px;
    margin: 10px 0 16px;
  }

  .testimonial-modern__nav-btn {
    display: none;
  }

  .testimonial-modern__bg-quote {
    display: none;
  }
}
