.testimonials {
  padding-top: 35px;
  padding-bottom: 120px;
  background:
    linear-gradient(0deg, rgba(250, 244, 229, 0) 53.51%, #faf4e5 100%),
    url("../../../assets/icons/testimonial-bg.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.testimonials-filters li {
  padding: 12px 18px;
  border: 1px solid var(--main-red);
  border-radius: 99px;
  background: white;
  font-weight: 500;
  font-size: 18px;
  cursor: pointer;
  letter-spacing: 0%;
  text-transform: uppercase;
  margin-bottom: clamp(20px, 5.2083333333vw, 100px);
  color: var(--main-red);
}
.testimonials-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}
.testimonials-filters li:hover,
.testimonials-filters__item.active {
  background: var(--main-red);
  color: white;
  transition: 0.3s;
}
.testimonials-list__item-img img {
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  border-radius: 16px;
}
.testimonials-list {
  padding-left: 100px;
  padding-right: 100px;
}
.testimonials-list__item-content {
  padding-top: 35px;
}
.testimonials-list__item > div {
  gap: 50px;
}
.testimonials-list .paragraph__30 {
  margin-top: 28px;
  margin-bottom: 75px;
  font-weight: 500;
  max-width: 699px;
  line-height: 1.2;
}
.person-name {
  font-weight: 500;
  font-size: clamp(18px, 1.5625vw, 30px);
  line-height: 1.3;
  text-transform: uppercase;
  display: block;
}
.person-role {
  display: block;
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.4;
  margin-bottom: 50px;
}
.testimonials-list__item-img {
  position: relative;
  padding: 35px 20px;
}
.testimonials-list__item-img::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  background-image: url("../../../assets/icons/testimonial-shadow.webp");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: -1;
}
.testimonials-list .slick-dots {
  /* bottom: 45px; */
  position: unset;
}
.testimonials-list .slick-dots li {
  width: 73px;
  height: 73px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  min-width: 73px;
  transition: 0.3s;
  margin: 0;
}
.testimonials-list .slick-dots li img {
  object-fit: cover;
  aspect-ratio: 1/1;
  border: 3px solid white;
  transition: 0.3s;
  min-width: 70px;
  border-radius: 50%;
}
.testimonials-list .slick-dots li.slick-active img {
  border-color: var(--main-red);
  transition: 0.3s;
}
.testimonials-list .slick-dots li {
  position: relative;
  margin-left: -30px;

}
.testimonials-list .slick-dots li.first-visible {
  margin-left: 0;
}
/* .testimonials-list .slick-dots li:nth-of-type(1) {
  position: relative;
  z-index: 15;
}
.testimonials-list .slick-dots li:nth-of-type(2) {
  margin-left: -30px;
  z-index: 14;
}
.testimonials-list .slick-dots li:nth-of-type(3) {
  margin-left: -30px;
  z-index: 13;
}
.testimonials-list .slick-dots li:nth-of-type(4) {
  margin-left: -30px;
  z-index: 12;
} */
.testimonials-arrows > div {
  position: relative;
  width: 84px;
  display: flex;
  cursor: pointer;
}
.line-right {
  width: 82px;
  height: 2px;
  transition: 0.3s;
  background: #000000;
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-50%);
}
.testimonials-arrows__left img {
  transform: rotate(180deg);
}
.testimonials-arrows__right {
  height: 23px;
}
.testimonials-arrows__right img {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.line-left {
  width: 29px;
  height: 2px;
  transition: 0.3s;
  background: #656976;
  position: absolute;
  left: 1px;
  top: 50%;
  transform: translateY(-50%);
}
.testimonials-arrows {
  display: flex;
  align-items: center;
}
.testimonials-dots-wrapper {
  position: absolute;
  left: 50%;
  /* transform: translateX(-50%); */
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}
.testimonials .row {
  position: unset;
}
.testimonials .col-12 {
  position: unset;
}
.testimonials {
  position: relative;
}
.testimonials .slick-slider {
  position: unset;
}
.testimonials-dots-wrapper {
  bottom: 180px;
}
.no-prev,
.no-next {
  opacity: 0.3;
  transition: 0.3s;
}
.no-prev span,
.no-next span {
  width: 40px;
}

/* ===============================
   MODAL WRAPPER
================================= */

.testimonial-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(23, 52, 53, 0.65);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.testimonial-modal--active {
  opacity: 1;
  visibility: visible;
}

/* ===============================
   MODAL CONTAINER
================================= */

.testimonial-modal__container {
  position: relative;
  width: 90%;
  max-width: 881px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: translateY(40px);
  transition: transform 0.35s ease;
}

.testimonial-modal--active .testimonial-modal__container {
  transform: translateY(0);
}

/* ===============================
   HEADER
================================= */

.testimonial-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}

/* LOGO */

.testimonial-modal__logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* CLOSE BUTTON */

.testimonial-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.testimonial-modal__close img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}

.testimonial-modal__close:hover img {
  transform: rotate(90deg);
}

/* ===============================
   TITLE
================================= */

.testimonial-modal__title {
  padding: 16px 24px;
  background: #faf4e5;
  color: #2b2b2b;
  font-size: clamp(16px, 1.041666666666667vw, 20px);
  font-style: normal;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: -0.449px;
  text-transform: uppercase;
  font-family: "DIN Pro";
}

.media-title {
  font-weight: 700;
  font-size: clamp(32px, 1.979166666666667vw, 38px);
  line-height: 1.3;
  letter-spacing: 0%;
  text-transform: uppercase;
}

.media-text {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  font-size: clamp(18px, 1.145833333333333vw, 22px);
  letter-spacing: -1%;
  font-family: "DIN Pro";
}
.media-link {
  font-weight: 500;
  font-size: clamp(16px, 0.9375vw, 18px);
  text-transform: uppercase;
  color: var(--main-red);
}
.testimonials-list__item-content.popup-enabled img {
  display: none;
}

/* ===============================
   MEDIA (VIDEO / PDF)
================================= */

.testimonial-modal__media {
  width: 100%;
}

.testimonial-modal__media video,
.testimonial-modal__media iframe {
  width: 100%;
  border: none;
}

/* Optional max height for video */
.testimonial-modal__media video {
  max-height: 500px;
}

/* ===============================
   TEXT
================================= */

.testimonial-modal__text {
  text-align: center;
  font-family: "DIN Pro";
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 16.5px;
  padding: 10px 24px;
  border-top: 1px solid #f0ebe0;
  background: #faf4e5;
  color: #999999;
}

/* ===============================
   OVERLAY LAYER
================================= */

.testimonial-modal__overlay {
  position: absolute;
  inset: 0;
}

/* ===============================
   BODY SCROLL LOCK
================================= */

body.testimonial-modal-open {
  overflow: hidden;
}

/* ===============================
   SCROLLBAR STYLING (optional)
================================= */

.testimonial-modal__container::-webkit-scrollbar {
  width: 6px;
}

.testimonial-modal__container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

@media only screen and (max-width: 1199px) {
  .testimonials-list {
    padding-left: 0;
    padding-right: 0;
  }
  .testimonials-arrows > div {
    width: 60px;
  }
  .line-right {
    width: 60px;
  }
  .testimonials-list__item-content img {
    width: 60px;
  }
}

@media only screen and (max-width: 992px) {
  .testimonials-list__item > div {
    flex-direction: column;
    gap: 0;
  }

  .testimonials-list__item-img::after {
    top: 21px;
    width: calc(100%);
    height: calc(95%);
  }
  .testimonials-list .paragraph__30 {
    margin-top: 16px;
    margin-bottom: 40px;
  }
  .testimonials-dots-wrapper {
    position: relative;
    left: auto;
    bottom: auto;
    justify-content: flex-start;
  }
  .person-role {
    margin-bottom: 22px;
  }
  .testimonials-list .slick-dots li img {
    min-width: 55px;
  }
  .testimonials-list .slick-dots li {
    width: 55px;
    height: 55px;
    min-width: 55px;
  }
  .testimonials-list .slick-dots li {
    margin-left: -18px;
  }
}
@media only screen and (max-width: 767px) {
  .testimonials-list .slick-dots li img {
    min-width: 42px;
  }
  .testimonials-list .slick-dots li {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
  .testimonials-list .slick-dots li {
    margin-left: -18px;
  }
  .testimonials-arrows > div {
    width: 46px;
  }
  .line-right {
    width: 46px;
  }
  .testimonials-list__item-content img {
    width: 46px;
  }
  .testimonials-list__item-img img {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    border-radius: 16px;
  }
  .testimonials-list__item-img::after {
    background-image: url("../../../assets/icons/testimonial-before-mobile.png");
    right: 0;
  }

  .testimonials-dots-wrapper {
    position: relative !important;
    justify-content: space-between;
    left: 0 !important;
  }
  .testimonials-list__item-img {
    padding: 35px 31px 20px 20px;
  }
  .testimonials-list .slick-dots {
    text-align: left;
  }

  .line-left {
    width: 23px;
  }
  .testimonials-arrows__left img {
    height: 14px;
  }
  .testimonials-arrows__right img {
    height: 20px;
  }
  .testimonials-filters li {
    padding: 10px 14px;
  }
  .testimonials {
    padding-bottom: 50px;
  }
  .testimonials .slick-slider {
    margin-bottom: 0;
  }
  .testimonials-dots-wrapper {
    gap: 0;
  }
}
