/* =========================
   Testimonials strip
   ========================= */

.testimonials-strip {
  position: relative;
  padding: 84px 0 60px;
  background-color: #26377b;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  overflow: hidden;
}

.testimonials-strip__inner {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
}

.testimonials-strip.no-logos .testimonials-strip__inner {
  grid-template-columns: 1fr;
}

.testimonials-strip__slider-col {
  padding-right: 40px;
}

.testimonials-strip.no-logos .testimonials-strip__slider-col {
  padding-right: 0;
}

.testimonials-strip__logos-col {
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.9);
  margin-top: -15px;
  height: 100%;
  display: flex;
}

.testimonials-strip__logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  padding: 0 45px;
}

.testimonials-strip__logo-item {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonials-strip__logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-decoration: none;
}

.testimonials-strip__logo-image {
  display: block;
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.testimonials-strip__logo-link:hover .testimonials-strip__logo-image,
.testimonials-strip__logo-link:focus-visible .testimonials-strip__logo-image {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* =========================
   Testimonial slider item
   ========================= */

.testimonial-item {
  display: flex;
  align-items: flex-start;
  padding-left: 20px;
}

/* Avatar */
.testimonial-item__avatar {
  position: relative;
  flex: 0 0 126px;
  width: 126px;
  height: 126px;
  margin-top: 8px;
  margin-right: 24px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

/* Outer ring */
.testimonial-item__avatar::before {
  position: absolute;
  content: "";
  bottom: -5px;
  left: -12px;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  z-index: -1;
  border: 2px solid #ffffff;
}

/* Quote icon */
.testimonial-item__avatar::after {
  position: absolute;
  content: "";
  top: -10px;
  right: -10px;
  width: 50px;
  height: 38px;
  background: url("../../images/quote.png") no-repeat center;
  background-size: contain;
}

.testimonial-item__avatar span {
  color: #00053e;
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

/* Content */
.testimonial-item__content {
  flex: 1 1 auto;
  max-width: 270px;
  margin: auto 0;
}

.testimonial-item__name {
  margin: 0;
  color: #ffffff;
  font-size: 25px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.25px;
}

.testimonial-item__company {
  display: block;
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.25px;
}

.testimonial-item__feedback {
  margin: 0;
  color: #ffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 23px;
}

/* =========================
   Slick dots
   ========================= */

.testimonials-slider {
  position: relative;
}

.testimonials-slider .slick-list {
  min-height: 280px !important;
}

.testimonials-strip.no-logos .testimonials-slider .slick-list {
  min-height: 0 !important;
}

.testimonials-slider .slick-dots {
  position: absolute;
  left: 200px;
  right: auto;
  bottom: -27px;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  line-height: 1;
}

.testimonials-slider .slick-dots li {
  width: 11px;
  height: 11px;
  margin: 0 7px 0 0;
}

.testimonials-slider .slick-dots li button {
  width: 11px;
  height: 11px;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  background: #7380ba;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.testimonials-slider .slick-dots li button::before {
  display: none;
}

.testimonials-slider .slick-dots li.slick-active button {
  background: #f6f6f7;
}

/* =========================
   Medium screens
   ========================= */

@media (max-width: 1390px) {
  .testimonial-item__content {
    max-width: 250px;
  }
}

/* =========================
   Tablet
   ========================= */

@media (max-width: 991px) {
  .testimonials-strip__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .testimonials-strip__slider-col {
    width: 100%;
    padding-right: 0;
  }

  .testimonials-strip__logos-col {
    width: 100%;
    margin-top: 40px;
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    padding-top: 30px;
    height: auto;
  }

  .testimonials-strip__logos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0;
  }

  .testimonials-strip__logo-item {
    width: auto;
    flex: 0 1 auto;
  }

  .testimonials-strip__logo-image {
    max-height: 70px;
    width: auto;
    max-width: 28vw;
    object-fit: contain;
  }

  .testimonials-slider .slick-list {
    min-height: 0 !important;
  }

  .testimonial-item__content {
    max-width: none;
    padding-left: 50px;
  }

  .testimonials-slider .slick-dots {
    position: static;
    width: 100%;
    margin-top: 24px;
    text-align: center;
  }

  .testimonials-slider .slick-dots li {
    display: inline-block;
    margin: 0 7px;
  }
}

/* =========================
   Tablet & below (fix layout)
   ========================= */

@media (max-width: 768px) {
  .testimonial-item__avatar {
    width: 100px;
    height: 100px;
    margin-top: 20px;
  }

  .testimonial-item__avatar span {
    font-size: 45px;
  }

  .testimonial-item__avatar::before {
    width: 100px;
    height: 100px;
  }

  .testimonial-item__avatar::after {
    top: -10px;
    right: -15px;
    width: 40px;
    height: 40px;
    background-size: 40px;
  }

  .testimonials-strip__logos {
    gap: 16px;
  }

  .testimonials-strip__logo-image {
    max-height: 60px;
    max-width: 26vw;
  }
}

/* =========================
   Mobile (clean stacking)
   ========================= */

@media (max-width: 480px) {
  .testimonial-item {
    flex-direction: column;
    text-align: center;
    padding-left: 0;
  }

  .testimonial-item__avatar {
    margin: 0 auto 24px;
  }

  .testimonial-item__content {
    padding-left: 0;
  }

  .testimonials-strip__logos {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
  }

  .testimonials-strip__logo-item {
    width: auto;
    flex: 0 1 auto;
  }

  .testimonials-strip__logo-image {
    max-height: 48px;
    max-width: 26vw;
    width: auto;
  }

  .testimonials-slider .slick-dots {
    margin-top: 20px;
    text-align: center;
  }
}
