#testimonials {
  scroll-margin-top: 70px;
}

.td-testimonials {
  position: relative;
  width: 100vw;
  min-height: 340px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 58px 0 62px;
  background-color: #1b3657;
  background-image:
    linear-gradient(
      rgba(19, 43, 72, 0.78),
      rgba(19, 43, 72, 0.78)
    ),
    url("../images/testimonials.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 68%;
  overflow: hidden;
}

.td-testimonials__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
}

.td-testimonials__header,
.td-testimonials__title,
.td-testimonials__perex {
  display: none !important;
}

.td-testimonials__slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.td-testimonials__track {
  position: relative;
  min-height: 220px;
  width: 100%;
}

.td-testimonial-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s ease;
}

.td-testimonial-item.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.td-testimonial-item__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
}

.td-testimonial-item__quote,
.td-testimonial-item__quote .field,
.td-testimonial-item__quote .field__item,
.td-testimonial-item__quote p,
.td-testimonial-item__quote div,
.td-testimonial-item__quote span,
.td-testimonial-item__quote strong,
.td-testimonial-item__quote em,
.td-testimonial-item__quote a,
.td-testimonial-item__quote li {
  color: #ffffff !important;
  font-style: italic;
}

.td-testimonial-item__quote {
  max-width: 1120px;
  margin: 0 auto 24px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.48;
}

.td-testimonial-item__quote::before,
.td-testimonial-item__quote::after {
  content: none !important;
  display: none !important;
}

.td-testimonial-item__quote p,
.td-testimonial-item__quote div {
  margin: 0 0 14px;
}

.td-testimonial-item__quote p:last-child,
.td-testimonial-item__quote div:last-child {
  margin-bottom: 0;
}

.td-testimonial-item__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.td-testimonial-item__name,
.td-testimonial-item__name .field,
.td-testimonial-item__name .field__item,
.td-testimonial-item__name p,
.td-testimonial-item__name div,
.td-testimonial-item__name span {
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.td-testimonial-item__position,
.td-testimonial-item__position .field,
.td-testimonial-item__position .field__item,
.td-testimonial-item__position p,
.td-testimonial-item__position div,
.td-testimonial-item__position span {
  max-width: 900px;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
}

.td-testimonial-item__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin: 22px 0 0;
}

.td-testimonial-item__logo img {
  display: block;
  width: auto;
  max-width: 270px;
  max-height: 86px;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.95;
}

.td-testimonials__dots {
  display: none !important;
}

.td-testimonials .field__label,
.td-testimonials .contextual,
.td-testimonials .contextual-links,
.td-testimonials [data-contextual-id] {
  display: none !important;
}

@media (max-width: 1199px) {
  .td-testimonials {
    min-height: 330px;
    padding: 54px 0 58px;
    background-position: center 70%;
  }

  .td-testimonials__inner {
    width: min(100% - 40px, 1080px);
  }

  .td-testimonials__track {
    min-height: 215px;
  }

  .td-testimonial-item__quote {
    max-width: 980px;
    font-size: 23px;
  }

  .td-testimonial-item__logo {
    min-height: 78px;
  }

  .td-testimonial-item__logo img {
    max-width: 235px;
    max-height: 75px;
  }
}

@media (max-width: 991px) {
  .td-testimonials {
    min-height: 350px;
    padding: 52px 0 56px;
    background-position: center 72%;
  }

  .td-testimonials__inner {
    width: min(100% - 40px, 860px);
  }

  .td-testimonials__track {
    min-height: 240px;
  }

  .td-testimonial-item__quote {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: 21px;
  }

  .td-testimonial-item__logo {
    min-height: 70px;
    margin-top: 20px;
  }

  .td-testimonial-item__logo img {
    max-width: 210px;
    max-height: 67px;
  }
}

@media (max-width: 767px) {
  .td-testimonials {
    width: 100%;
    min-height: 400px;
    margin-left: 0;
    margin-right: 0;
    padding: 46px 0 50px;
    background-position: center 74%;
  }

  .td-testimonials__inner {
    width: min(100% - 32px, 100%);
  }

  .td-testimonials__track {
    min-height: 300px;
  }

  .td-testimonial-item {
    align-items: flex-start;
  }

  .td-testimonial-item__content {
    padding-top: 2px;
  }

  .td-testimonial-item__quote {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: 18px;
    line-height: 1.58;
  }

  .td-testimonial-item__name,
  .td-testimonial-item__name .field,
  .td-testimonial-item__name .field__item,
  .td-testimonial-item__name p,
  .td-testimonial-item__name div,
  .td-testimonial-item__name span,
  .td-testimonial-item__position,
  .td-testimonial-item__position .field,
  .td-testimonial-item__position .field__item,
  .td-testimonial-item__position p,
  .td-testimonial-item__position div,
  .td-testimonial-item__position span {
    font-size: 13px;
  }

  .td-testimonial-item__logo {
    min-height: 62px;
    margin-top: 18px;
  }

  .td-testimonial-item__logo img {
    max-width: 185px;
    max-height: 59px;
  }
}

@media (max-width: 480px) {
  .td-testimonials {
    min-height: 440px;
    padding: 42px 0 46px;
  }

  .td-testimonials__track {
    min-height: 350px;
  }

  .td-testimonial-item__quote {
    font-size: 17px;
  }

  .td-testimonial-item__logo img {
    max-width: 165px;
    max-height: 53px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-testimonial-item {
    transition: none;
  }
}