.video-types {
  padding-block: 3vi;
  background: var(--color-white);
  overflow: hidden;
}

.video-types__inner {
  display: grid;
  place-items: center;
  gap: 40px;
}

.video-types__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: clamp(1.1rem, 0.8rem + 1.3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
}

.video-types__eyebrow-icon {
  height: 1em;
  vertical-align: middle;
}

.video-types__heading {
  font-weight: 500;
  font-size: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-align: center;
}

.video-types__subtitle {
  font-size: clamp(1rem, 0.7rem + 1vw, 1.5rem);
  line-height: 1.2;
  color: var(--color-text);
  opacity: 0.6;
  text-align: center;
  max-inline-size: 882px;
}

.video-types__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.video-types__intro-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.video-types__intro-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.15rem);
  line-height: 1.6;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .video-types__intro {
    grid-template-columns: 1fr;
  }
}

.video-types__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.video-types__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: rgba(26, 26, 26, 0.05);
  border-radius: 8px;
  font-weight: 500;
  font-size: clamp(0.875rem, 0.7rem + 0.5vw, 1.125rem);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.video-types__tag img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.video-types__carousel-wrapper {
  position: relative;
  margin-block: 40px;
  width: 100%;
  max-width: var(--container-width, 1200px);
  margin-inline: auto;
}

.video-types__carousel {
  width: 100%;
}

.video-types__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .video-types__track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-types__track {
    grid-template-columns: 1fr;
  }
}

.video-types__nav {
  display: none;
}

.video-types__nav:hover {
  transform: translateY(-50%) scale(1.08);
}

.video-types__nav svg {
  width: 20px;
  height: 20px;
  color: var(--color-text);
}

.video-types__nav--prev {
  left: 24px;
}

.video-types__nav--next {
  right: 24px;
}

.video-types__card {
  position: relative;
  width: 100%;
  aspect-ratio: 384 / 570;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(196.65deg, #0863f1 28.87%, #0a2541 109.03%);
}

.video-types__card img,
.video-types__card video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.video-types__card img {
  z-index: 1;
}

.video-types__card-poster {
  transform: scale(1.04);
  transform-origin: center;
  transition: opacity 0.2s ease;
}

.video-types__card-play {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 72px;
  height: 72px;
  background: var(--color-white);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.video-types__card-play:hover {
  transform: scale(1.08);
}

.video-types__card-play::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #1a1a1a;
  border-radius: 3px;
  margin-left: 4px;
  transition: border-width 0.2s ease, border-color 0.2s ease;
}

/* Playing state: swap play triangle for pause bars */
.video-types__card.is-playing .video-types__card-play {
  opacity: 0;
}

.video-types__card.has-started .video-types__card-poster {
  opacity: 0;
  pointer-events: none;
}

.video-types__card.is-playing:hover .video-types__card-play {
  opacity: 1;
}

.video-types__card.is-playing .video-types__card-play::after {
  border: none;
  width: 20px;
  height: 22px;
  margin-left: 0;
  border-left: 6px solid #1a1a1a;
  border-right: 6px solid #1a1a1a;
}

.video-types__card video {
  cursor: pointer;
}

.video-types__card-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.3;
  text-align: left;
  color: var(--color-white);
}

.video-types__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  max-inline-size: 1002px;
}

.video-types__copy-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-types__copy p {
  font-size: clamp(1rem, 0.8rem + 0.8vw, 1.25rem);
  line-height: 1.28;
  color: var(--color-text);
}

.video-types__copy p strong {
  font-weight: 500;
  color: var(--color-primary);
}

.video-types__tagline {
  font-weight: 500;
  font-size: clamp(1.125rem, 0.8rem + 1vw, 1.5rem);
  line-height: 1.28;
  color: var(--color-text);
}

.video-types__highlight {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 4px;
  padding-inline: 6px;
}

/* Card reveal animations */
.video-types__card {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.video-types__card--left {
  transform: translateX(60px);
}

.video-types__card--right {
  transform: translateX(-60px);
}

.video-types__card--center {
  transform: scale(0.95);
}

.video-types__card.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

@media (max-width: 768px) {
  .video-types__card {
    flex: 0 0 260px;
    height: 400px;
  }

  .video-types__card-play {
    width: 48px;
    height: 48px;
  }

  .video-types__card-play::after {
    border-width: 8px 0 8px 14px;
    margin-left: 3px;
  }

  .video-types__card-label {
    font-size: 1.25rem;
  }

  .video-types__nav {
    width: 36px;
    height: 36px;
  }

  .video-types__nav svg {
    width: 16px;
    height: 16px;
  }

  .video-types__nav--prev {
    left: 12px;
  }

  .video-types__nav--next {
    right: 12px;
  }
}
