.video-testimonials {
  position: relative;
  overflow: hidden;
  padding-top: clamp(46px, 7vw, 78px);
  padding-bottom: clamp(44px, 7vw, 80px);
  background: #0B1D3A;
}


.video-testimonials .container {
  position: relative;
  z-index: 1;
}

.video-testimonials__head {
  position: relative;
  text-align: left;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.video-testimonials__head-copy {
  margin: 0 auto;
}

.video-testimonials__head .eyebrow {
  /* color: rgba(180, 200, 240, 0.82); */
  color: #C77446;
  letter-spacing: 0.22em;
}

.video-testimonials__head .title {
  color: #ffffff;
  margin-bottom: 8px;
}

.video-testimonials__all-btn {
  display: none !important;
}

.video-testimonials__subtitle {
  margin: 0;
  color: rgba(223, 231, 245, 0.84);
  font-size: 1.03rem;
  line-height: 1.62;
}

.video-testimonials__all-btn {
  position: absolute;
  right: 0;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.22);
  text-decoration: none;
  color: #f7f9ff;
  font-size: 0.92rem;
  transition: transform 300ms ease, border-color 300ms ease, background-color 300ms ease;
}

.video-testimonials__all-btn:hover,
.video-testimonials__all-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
}

.video-testimonials__rail {
  --vt-gap: clamp(10px, 1.15vw, 16px);
  --vt-card-width: calc((100% - (var(--vt-gap) * 4)) / 5);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--vt-card-width);
  gap: var(--vt-gap);
  align-items: end;
  overflow-x: auto;
  margin: 0;
  padding: 10px 0 8px;
  scroll-padding-inline: max(0px, calc((100% - var(--vt-card-width)) / 2));
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-testimonials__rail::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.video-testimonials__card {
  position: relative;
  isolation: isolate;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 30px rgba(1, 4, 12, 0.42);
  background: #0d121b;
  scroll-snap-align: center;
  transform: scale(0.93);
  transform-origin: center center;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease, opacity 300ms ease;
  opacity: 0.82;
}

.video-testimonials__card:hover {
  transform: translateY(-4px) scale(0.97);
  box-shadow: 0 24px 34px rgba(1, 5, 15, 0.58);
  border-color: rgba(255, 255, 255, 0.36);
  opacity: 0.95;
}

.video-testimonials__card.is-centered {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 26px 46px rgba(1, 4, 12, 0.64);
  z-index: 2;
  opacity: 1;
}

.video-testimonials__card.is-centered:hover {
  transform: translateY(-4px) scale(1.05);
}

.video-testimonials__media {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  background: #0b1018;
}

.video-testimonials__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-testimonials__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 16, 0.08) 34%, rgba(7, 10, 16, 0.88) 100%),
    linear-gradient(0deg, rgba(10, 15, 24, 0.08), rgba(10, 15, 24, 0.08));
  pointer-events: none;
}

.video-testimonials__play {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.video-testimonials__play:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: -2px;
}

.video-testimonials__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 14px;
  pointer-events: none;
}

.video-testimonials__play-icon {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(233, 33, 42, 0.9);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
}

.video-testimonials__play-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-38%, -50%);
  border-left: 9px solid #ffffff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.video-testimonials__identity h3 {
  margin: 0;
  color: #f2f6ff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-testimonials__identity p {
  margin: 3px 0 0;
  color: rgba(211, 220, 238, 0.82);
  font-size: 0.92rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-testimonials__inline-player {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #000;
}

.video-testimonials__inline-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-testimonials__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.video-testimonials__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 300ms ease, background-color 300ms ease, transform 300ms ease;
}

.video-testimonials__dot:hover,
.video-testimonials__dot:focus-visible {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.68);
}

.video-testimonials__dot.is-active {
  width: 24px;
  background: #f6f8ff;
}

.video-testimonials-modal[hidden] {
  display: none;
}

.video-testimonials-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.video-testimonials-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 6, 17, 0.76);
  backdrop-filter: blur(4px);
}

.video-testimonials-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: #050911;
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.5);
}

.video-testimonials-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.video-testimonials-modal__top h3 {
  margin: 0;
  color: #f7faff;
  font-size: 1rem;
  line-height: 1.4;
}

.video-testimonials-modal__close {
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.28rem;
  cursor: pointer;
}

.video-testimonials-modal__close:hover,
.video-testimonials-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.3);
}

.video-testimonials-modal__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-testimonials-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

body.video-testimonials-modal-open {
  overflow: hidden;
}

@media (max-width: 1280px) {
  .video-testimonials__rail {
    --vt-card-width: calc((100% - (var(--vt-gap) * 3)) / 4);
  }
}

@media (max-width: 1040px) {
  .video-testimonials__all-btn {
    position: static;
    margin-top: 14px;
  }

  .video-testimonials__rail {
    --vt-card-width: calc((100% - (var(--vt-gap) * 2)) / 3);
  }
}

@media (max-width: 780px) {
  .video-testimonials__rail {
    --vt-card-width: 62%;
    --vt-gap: 12px;
  }

  .video-testimonials__subtitle {
    font-size: 0.98rem;
  }
}

@media (max-width: 560px) {
  .video-testimonials__rail {
    --vt-card-width: 56%;
  }

  .video-testimonials__identity h3 {
    font-size: 0.96rem;
  }

  .video-testimonials__identity p {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-testimonials__card,
  .video-testimonials__all-btn,
  .video-testimonials__dot {
    transition: none;
  }
}
