.as-trusted {
  background-color: var(--as-bg-white, #ffffff);
  padding: 44px 0 54px;
  text-align: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #edf2f7;
}

.as-trusted--blue {
  background-color: var(--as-bg-subtle-blue, #f5f8fe);
  border-bottom: none;
}

.as-trusted__title {
  font-family: var(--as-font-heading, "Lato", sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--as-color-muted, #64748b);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0 0 26px;
  text-align: center;
}

.as-trusted__marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  padding: 6px 0;
}

/* Edge Fade Gradients */
.as-trusted__marquee::before,
.as-trusted__marquee::after {
  content: "";
  width: 140px;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 2;
  pointer-events: none;
}

.as-trusted__marquee::before {
  left: 0;
  background: linear-gradient(to right,
      #ffffff 0%,
      rgba(255, 255, 255, 0) 100%);
}

.as-trusted--blue .as-trusted__marquee::before {
  background: linear-gradient(to right,
      #f5f8fe 0%,
      rgba(245, 248, 254, 0) 100%);
}

.as-trusted__marquee::after {
  right: 0;
  background: linear-gradient(to left,
      #ffffff 0%,
      rgba(255, 255, 255, 0) 100%);
}

.as-trusted--blue .as-trusted__marquee::after {
  background: linear-gradient(to left,
      #f5f8fe 0%,
      rgba(245, 248, 254, 0) 100%);
}

.as-trusted__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: asMarqueeScroll 30s linear infinite;
}

.as-trusted__marquee:hover .as-trusted__track {
  animation-play-state: paused;
}

.as-trusted__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 48px;
  margin: 0 32px;
}

.as-trusted__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(105%);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.as-trusted__item img:hover {
  filter: grayscale(0%) contrast(100%);
  opacity: 1;
  transform: scale(1.06);
}

@keyframes asMarqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .as-trusted {
    padding: 34px 0 42px;
  }

  .as-trusted__title {
    font-size: 12.5px;
    margin-bottom: 20px;
  }

  .as-trusted__marquee::before,
  .as-trusted__marquee::after {
    width: 80px;
  }

  .as-trusted__item {
    width: 125px;
    height: 40px;
    margin: 0 20px;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .as-trusted {
    padding: 26px 0 32px;
  }

  .as-trusted__title {
    font-size: 11.5px;
    margin-bottom: 16px;
  }

  .as-trusted__marquee::before,
  .as-trusted__marquee::after {
    width: 50px;
  }

  .as-trusted__track {
    animation-duration: 20s;
  }

  .as-trusted__item {
    width: 100px;
    height: 32px;
    margin: 0 14px;
  }
}
