.video-example-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.video-example-grid::-webkit-scrollbar {
  display: none;
}

.video-slider {
  position: relative;
}

.video-slider__viewport {
  overflow: hidden;
  margin: 0 58px;
}

.video-slider__button {
  position: absolute;
  top: calc(50% - 18px);
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(238, 243, 255, 0.18);
  border-radius: 8px;
  background: rgba(12, 18, 38, 0.82);
  color: rgba(238, 243, 255, 0.9);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.video-slider__button:hover,
.video-slider__button:focus-visible {
  border-color: rgba(106, 211, 255, 0.42);
  background: rgba(106, 211, 255, 0.12);
  outline: 0;
}

.video-slider__button:disabled {
  cursor: default;
  opacity: 0.36;
}

.video-slider__button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.video-slider__button--prev {
  left: 0;
}

.video-slider__button--next {
  right: 0;
}

.video-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  margin-top: 16px;
}

.video-slider__dots button {
  width: 28px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(238, 243, 255, 0.22);
  cursor: pointer;
}

.video-slider__dots button:hover,
.video-slider__dots button:focus-visible {
  background: rgba(106, 211, 255, 0.5);
  outline: 0;
}

.video-slider__dots button[aria-current="true"] {
  background: #6ad3ff;
}

.video-example-card {
  flex: 0 0 calc((100% - 28px) / 3);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(9, 13, 29, 0.62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  scroll-snap-align: start;
}

.video-example-card__media {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 59, 97, 0.9), rgba(37, 26, 54, 0.92)),
    #0b1122;
}

.video-example-card__media::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.28;
  content: "";
}

.video-example-card__play {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(238, 243, 255, 0.32);
  border-radius: 50%;
  background: rgba(238, 243, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.video-example-card__play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
  fill: #eef3ff;
}

.video-example-card__body {
  padding: 16px;
}

.video-example-card h3 {
  margin: 0;
  color: #f3f7ff;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.video-example-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.video-example-card__meta span {
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(106, 211, 255, 0.11);
  color: #bceeff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.video-example-card p {
  margin: 10px 0 0;
  color: rgba(238, 243, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .video-examples-section .section-heading--split {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .video-slider__viewport {
    margin: 0 52px;
  }

  .video-example-card {
    flex-basis: min(72vw, 460px);
  }
}

@media (max-width: 620px) {
  .video-slider__viewport {
    margin: 0;
  }

  .video-slider__button {
    top: 118px;
  }

  .video-slider__button--prev {
    left: 8px;
  }

  .video-slider__button--next {
    right: 8px;
  }

  .video-example-card {
    flex-basis: 100%;
  }
}
