/* ==============================
   RB Testimonials Carousel
   ============================== */

.rb-testimonials{
  background: #1f1f1f;
  color: #f5f1ea;
  padding: clamp(56px, 8vw, 110px) 0;
  overflow: hidden;
}

.rb-testimonials__inner{
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.rb-testimonials__track-wrap{
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.rb-testimonials__viewport{
  overflow: hidden;
  width: 100%;
}

.rb-testimonials__track{
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.rb-testimonial{
  flex: 0 0 100%;
  width: 100%;
  text-align: center;
  padding: 0 clamp(8px, 2vw, 24px);
}

.rb-testimonial__quote-mark{
  color: #b7643c;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1;
  margin-bottom: 22px;
}

.rb-testimonial__quote{
  margin: 0 auto;
  max-width: 1020px;
  font-size: clamp(25px, 2.45vw, 33px);
  line-height: 1.75;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 0;
}

.rb-testimonial__author{
  margin: clamp(28px, 4vw, 42px) 0 0;
  color: #b7643c;
  font-size: clamp(13px, 1.05vw, 18px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
}

.rb-testimonials__arrow{
  appearance: none;
  border: 0;
  background: transparent;
  color: #f5f1ea;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0.9;
}

.rb-testimonials__arrow span{
  font-size: 38px;
  line-height: 1;
  display: inline-block;
}

.rb-testimonials__arrow:hover{
  opacity: 1;
  transform: scale(1.06);
}

.rb-testimonials__dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.rb-testimonials__dot{
  appearance: none;
  border: 0;
  background: #ece7df;
  opacity: 0.9;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.rb-testimonials__dot.is-active{
  width: 30px;
  background: #b7643c;
}

@media (max-width: 991px){
  .rb-testimonials__track-wrap{
    grid-template-columns: 56px 1fr 56px;
  }

  .rb-testimonials__arrow{
    width: 56px;
    height: 56px;
  }

  .rb-testimonials__arrow span{
    font-size: 28px;
  }

  .rb-testimonial__quote{
    max-width: 100%;
    line-height: 1.6;
  }
}

@media (max-width: 767px){
  .rb-testimonials{
    padding: 48px 0 56px;
  }

  .rb-testimonials__inner{
    width: min(100%, calc(100% - 28px));
  }

  .rb-testimonials__track-wrap{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rb-testimonials__arrow{
    display: none;
  }

  .rb-testimonial{
    padding: 0;
  }

  .rb-testimonial__quote-mark{
    margin-bottom: 14px;
  }

  .rb-testimonial__quote{
    font-size: clamp(20px, 5.4vw, 26px);
    line-height: 1.55;
  }

  .rb-testimonial__author{
    font-size: 12px;
    letter-spacing: 0.12em;
    margin-top: 24px;
  }

  .rb-testimonials__dots{
    margin-top: 24px;
    gap: 8px;
  }

  .rb-testimonials__dot{
    width: 9px;
    height: 9px;
  }

  .rb-testimonials__dot.is-active{
    width: 26px;
  }
}

/* ==============================
   RB Testimonials Override
   Fix centering + smaller fonts
   ============================== */

.rb-testimonials .rb-testimonials__viewport{
  overflow: hidden;
  width: 100%;
}

.rb-testimonials .rb-testimonials__track{
  display: flex;
  align-items: stretch;
  will-change: transform;
}

.rb-testimonials .rb-testimonial{
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  text-align: center;
  padding: 0 clamp(8px, 2vw, 24px);
  margin: 0 !important;
}

.rb-testimonials .rb-testimonial__quote{
  margin: 0 auto;
  max-width: 765px;
  font-size: clamp(18.75px, 1.84vw, 24.75px);
  line-height: 1.75;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 0;
}

.rb-testimonials .rb-testimonial__author{
  margin: clamp(28px, 4vw, 42px) 0 0;
  color: #b7643c;
  font-size: clamp(9.75px, 0.79vw, 13.5px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
}

@media (max-width: 991px){
  .rb-testimonials .rb-testimonial__quote{
    max-width: 100%;
  }
}

@media (max-width: 767px){
  .rb-testimonials .rb-testimonial{
    padding: 0;
  }

  .rb-testimonials .rb-testimonial__quote{
    font-size: clamp(15px, 4.05vw, 19.5px);
    line-height: 1.55;
  }

  .rb-testimonials .rb-testimonial__author{
    font-size: 9px;
    letter-spacing: 0.12em;
    margin-top: 24px;
  }
}