
.category-slider {
  display: flex;
  flex-direction: column;
  background:var(--dark-blue);
}

/* Video Carousel */
.category-slider .category-carousel {
  width: 100%;
  margin-bottom: var(--sizing-xl);
  position: relative;
  display: flex;
  gap: var(--sizing-s);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 var(--sizing-l);
  scroll-behavior: smooth;

  @media (width >= 768px) {
    gap: var(--sizing-xl);
    padding: 0 var(--sizing-l);
  }

  @media (width >= 1024px) {
    margin-bottom: 40px;
    padding: 0 56px;
  }
}

.category-slider .category-carousel::-webkit-scrollbar {
  display: none;
}

.category-slider .video-wrapper,
.category-slider .slide-wrapper {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  flex-shrink: 0;
  width: 100%;
}

/* Content Section */
.category-slider .content-section {
  padding: 0 var(--sizing-l) var(--sizing-xl);
  text-align: center;
  color: var(--tertiary-color);

  @media (width >= 768px) {
    padding: 0 var(--sizing-l) var(--sizing-xl);
    display: flex;
    text-align: start;
    align-items: center;
    justify-content: space-between;
  }

  @media (width >= 1024px) {
    padding: 0 56px 50px;
  }
}

.category-slider .content-text {
  flex: 1 1 auto;
  width: 100%;

  @media (width >= 768px) {
    min-width: 0;
    margin-right:var(--sizing-xl);
  }
}

.category-slider .title {
  font-size: var(--fs-xsmall);
  font-weight: var(--fw-400);
  line-height: 1.44rem;
  letter-spacing: -0.18px;
  text-transform: uppercase;
  color: rgb(255 255 255 / 80%);
  font-variant: all-small-caps;

  @media (width >= 1024px) {
    font-size: var(--fs-medium);
    line-height: 1.92rem;
    letter-spacing: -0.24px;
    text-transform: none;
  }
}

.category-slider .subtitle {
  margin: var(--spacing-xsmall) 0 var(--sizing-2xs);
  font-size:var(--fs-medium);
  font-weight:var(--fw-600);
  line-height: 1.76rem;
  letter-spacing: -0.24px;

  @media (width >= 1024px) {
    font-size: var(--fs-large);
    font-style: normal;
    line-height: 2.2rem;
    letter-spacing: -0.3px;
  }
}

.category-slider .description {
  font-size:var(--fs-xsmall);
  font-weight:var(--fw-300);
  line-height: 1.44rem;
  align-self: stretch;
  font-style: normal;

  @media (width >= 768px) {
    letter-spacing: normal;
    margin-top:var(--spacing-xsmall);
  }

  @media (width >= 1024px) {
    margin-top: var(--spacing-xsmall);
    font-size:var(--fs-small);
    line-height: 1.68rem;
    letter-spacing: 0;
  }
}

/* CTA Buttons */
.category-slider .car-category-buttons-wrapper {
  display: flex;
  flex-direction: row;
  gap:var(--sizing-m);
  margin-top: var(--sizing-xl);
  justify-content: center;
  width: 100%;

  @media (width >= 768px) {
    margin-top: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
    width: auto;
  }

  @media (width >= 1024px) {
    gap:var(--sizing-xl);
  }
}

.category-slider .car-category-primary-button,
.category-slider .car-category-secondary-button {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.category-slider .car-category-primary-button .button,
.category-slider .car-category-secondary-button .button {
  display: inline-block;
  padding: 8px 16px;
  text-decoration: none;
  border: var(--shape-border-width-1) solid var(--color-neutral-50);
  transition: background-color 0.3s ease;
  font-weight: var(--fw-400);
  font-size: var(--fs-small);
  min-width: 152px;
  text-align: center;
  width: 100%;
  line-height: var(--lh-small);
  color: var(--color-neutral-50);

  @media (width >= 768px) {
    padding:var(--spacing-2xs) var(--sizing-s);
    min-width: 170px;
  }

  @media (width >= 1024px) {
    padding: var(--spacing-2xs) var(--sizing-m);
    min-width: 189px;
    font-size:var(--fs-medium);
  }
}

.category-slider .car-category-secondary-button{
  display: none;
}

.category-slider .category-carousel video,.category-slider .slide-wrapper img {
  width: 100%;
  height: 388px;
  aspect-ratio: 80/97;
  object-fit: cover;
  display: block;
  background: linear-gradient(0deg, rgb(0 0 0 / 40%) 0%, rgb(0 0 0 / 40%) 100%);

  @media (width >= 768px) {
    height: 322px;
    aspect-ratio: 97/43;
  }

  @media (width >= 1024px) {
    height: 555px;
  }
}

/* Single Video Layout */
.category-slider .category-carousel:has(.video-wrapper:only-child) {
  @media (width < 768px) {
    padding: 0;
  }
}

.category-slider .category-carousel:has(.video-wrapper:only-child) video {
  @media (width < 768px) {
    height: 437px;
    aspect-ratio: 173/210;
  }

}

/* Video Play Icon Overlay */
.category-slider .video-wrapper {
  position: relative;
}

.category-slider .video-play-icon-overlay {
  position: absolute;
  background: linear-gradient(0deg, rgb(0 0 0 / 50%) 0%, rgb(0 0 0 / 50%) 100%);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.category-slider .video-play-icon-overlay.hidden {
  display: none;
}

.category-slider .video-play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  @media (width >= 1024px) {
    width: 80px;
    height: 80px;
  }
}

.category-slider .video-play-icon .icon {
  width: 48px;
  height: 48px;

  @media (width >= 1024px) {
    width: 80px;
    height: 80px;
  }
}
