/**
 * Homepage “Over 1000+ People Trust Us” video module.
 * Based on the reference UGC carousel: vertical video cards, dark gradient,
 * large customer name, play button, and circular carousel arrows.
 */

.trust-video-section {
  position: relative;
  width: 100%;
  padding: 50px 0;
  overflow: hidden;
}

.trust-video-section__inner {
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 12px;
}

.trust-video-section__title {
  padding: 0 20px;
  text-align: center;
}

.trust-video-section__title h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: #1a1a1a;
}

.trust-video-section__title h2 .trust-video-highlight {
  color: #dbbd21;
}

.trust-video-section__title p {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  color: #4a4a4a;
}

.trust-video-carousel {
  position: relative;
  padding: 50px 0;
}

.trust-video-track {
  display: flex;
  gap: 20px;
  box-sizing: border-box;
  padding: 0 8%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.trust-video-track::-webkit-scrollbar {
  display: none;
}

.trust-video-card {
  position: relative;
  flex: 0 0 351px;
  height: 624px;
  box-sizing: border-box;
  border-radius: 21px;
  overflow: hidden;
  background: #000000;
  scroll-snap-align: center;
}

.trust-video-card video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 21px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0) 60%);
}

.trust-video-card__content {
  position: absolute;
  right: 0;
  bottom: 3%;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 20px;
  color: #ffffff;
}

.trust-video-card__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.trust-video-card__name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
}

.trust-video-card__badge {
  display: inline-flex;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #42a5f5;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.trust-video-card__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #ffffff;
}

.trust-video-play {
  display: inline-flex;
  flex: 0 0 63px;
  width: 63px;
  height: 63px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.trust-video-play:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.04);
}

.trust-video-play.is-playing {
  background: rgba(255, 255, 255, 0.3);
}

.trust-video-play__icon {
  transform: translateX(1px);
}

.trust-video-play.is-playing .trust-video-play__icon {
  transform: none;
}

.trust-video-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 0 22px -6px rgba(92, 91, 92, 1);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.trust-video-nav--prev {
  left: 1%;
}

.trust-video-nav--next {
  right: 1%;
}

@media screen and (max-width: 750px) {
  .trust-video-section {
    padding: 30px 0;
  }

  .trust-video-section__inner {
    width: 100%;
  }

  .trust-video-section__title h2 {
    font-size: 20px;
  }

  .trust-video-section__title p {
    font-size: 14px;
  }

  .trust-video-carousel {
    padding: 20px 0;
  }

  .trust-video-track {
    gap: 12px;
    padding: 0 16px;
  }

  .trust-video-card {
    flex-basis: 288px;
    height: 512px;
    border-radius: 18px;
  }

  .trust-video-card::after {
    border-radius: 18px;
  }

  .trust-video-card__content {
    padding: 0 14px;
  }

  .trust-video-card__name {
    font-size: 22px;
  }

  .trust-video-card__desc {
    font-size: 14px;
  }

  .trust-video-play {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .trust-video-nav {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}
