/* ======================================
   BACKGROUND
====================================== */
.bg--blue {
  background-color: var(--color-tertiary);
}

/* ======================================
   WRAPPER
====================================== */
.testimonials__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
}

/* ======================================
   TITLE
====================================== */
.testimonials__wrapper-title {
  width: 100%;
  padding: 40px 20px 0 20px;
  box-sizing: border-box;
  font-size: 28px;
}

.testimonials__wrapper-title > div > h3 {
  margin: 0;
}

/* ======================================
   SLIDE WRAPPER
====================================== */
.testimonials__wrapper-slide {
  position: relative;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
}

.testimonials__wrapper-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1;
  background-color: var(--color-tertiary--dark);
  border-radius: 16px;
  pointer-events: none;
}

/* ======================================
   SWIPER CLIP
====================================== */
.testimonials__swiper-clip {
  overflow: hidden;
  position: relative;
  z-index: 2;
  border-radius: 16px;
}

/* ======================================
   SWIPER
====================================== */
.testiSwiper {
  width: 100%;
  position: relative;
}

.testiSwiper .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

.testiSwiper .swiper-slide {
  width: 100% !important;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* ======================================
   ITEM
====================================== */
.testimonials__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  padding: 0 1.5rem;
}

/* ======================================
   CLIENT INFOS
====================================== */
.client__infos {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.client__name > *,
.client__job > *,
.client__location > *,
.review__content > * {
  color: white;
}

.client__name > * {
  font-family: var(--font-poppins);
  font-size: 21px;
  font-weight: 700;
  line-height: 130%;
  margin: 0;
}

.client__job > * {
  font-family: var(--font-poppins);
  font-size: 16px;
  font-weight: 700;
  line-height: 150%;
  margin: 0;
}

.client__location > * {
  margin: 0;
}

/* ======================================
   QUOTE IMAGE
====================================== */
.testimonial__image {
  display: inline-block;
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  background-image: url('../../../images/icons/quote.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ======================================
   CONTROLS
====================================== */

.testimonials__slider-controls > * {
  display: inline-block;
  width: 38px;
  height: 38px;

  background-color: var(--color-primary--1);
  border: 2px solid var(--color-primary--1);
  border-radius: 50%;
  background-size: 50% auto;
  background-repeat: no-repeat;
  background-position: center;

  cursor: pointer;

  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.testimonials__slider-controls > .right {
  background-image: url('../../../images/arrow-white.svg');
  transform: rotate(0deg);
}

.testimonials__slider-controls > .left {
  background-image: url('../../../images/arrow-white.svg');
  transform: rotate(180deg);
}

.testimonials__slider-controls > *:hover {
  background-color: var(--color-tertiary--dark);
  border-color: var(--color-tertiary--dark);
}

/* ======================================
   DESKTOP (1200px+)
====================================== */
@media screen and (min-width: 1200px) {
  .testimonials__wrapper {
    flex-direction: row;
    align-items: center;
    padding-bottom: 4rem;
  }

  .testimonials__wrapper-title {
    align-self: baseline;
    max-width: 390px;
    flex-shrink: 0;
    padding: 0;
    font-family: var(--font-poppins);
    font-size: 36px;
    font-weight: 700;
    line-height: normal;
  }

  .testimonials__wrapper-title > div > h3 {
    margin: 0;
  }

  .testimonials__wrapper-slide {
    overflow: visible;
    margin-top: 150px;
    padding: 82px 0 99px 1rem;
    width: 100%;
    margin-right: calc(-46vw + 50%);
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .testimonials__wrapper-slide::before {
    content: "";
    position: absolute;
    top: 43px;
    left: -38px;
    bottom: -43px;
    right: 0;
    z-index: 0;
    min-width: 600px;
    max-width: 850px;
    width: calc(52vw - 1rem);
    background: linear-gradient(180deg, #CAE1FB 0%, #B6CFEB 100%);
    border-radius: 16px;
    pointer-events: none;
  }

  .testimonials__wrapper-slide::after {
    min-width: 600px;
    max-width: 900px;
    width: calc(61vw - 1rem);
  }

  .testimonials__swiper-clip {
    border-radius: 0;
  }

  .testiSwiper {
    overflow: visible;
  }

  .testimonials__item {
    max-width: 740px;
    flex-direction: row;
    align-items: center;
    gap: 35px;
    padding: 0 1rem 0 0;
  }

  .testimonial__image {
    width: 65px;
    height: 65px;
    margin-bottom: 30px;
  }

  .testimonials__slider-controls > * {
    width: 48px;
    height: 48px;
  }
}

/* ======================================
   DESKTOP LARGE (1350px+)
====================================== */
@media screen and (min-width: 1350px) {
  .testimonials__wrapper-slide {
    width: 67vw;
    margin-right: calc(-40vw + 50%);
    padding-left: 64px;
  }

  .testimonials__wrapper-title {
    font-size: 44px;
    max-width: 560px;
  }
}

/* ======================================
   DESKTOP XL (1700px+)
====================================== */
@media screen and (min-width: 1700px) {
  .testimonials__wrapper-slide {
    width: 50vw;
    margin-right: calc(-55vw + 50%);
  }

  .testimonials__wrapper-title {
    font-size: 54px;
  }
}
