/* ============================================================
   MSI VIDEO CAROUSEL
   Supports two display modes: carousel (center-scaled) and grid
   ============================================================ */

/* ── Wrapper ── */
.vc-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
}

.vc-inner { width: 100%; }

/* Allow side slides to peek (single-slide carousel only) */
.vc-carousel:not(.vc-multi) .vc-splide .splide__track,
.vc-carousel:not(.vc-multi) .vc-splide .splide__list {
  overflow: visible !important;
}

/* Breathing room for scaled center slide border-radius */
.vc-splide .splide__track {
  padding: 20px 0;
}

/* Multi-slide: contain everything inside the track */
.vc-carousel.vc-multi .vc-splide .splide__track {
  overflow: hidden !important;
}

.vc-carousel.vc-multi {
  overflow: hidden;
}


/* ============================================================
   CAROUSEL MODE — single slide: center scaled, sides dimmed
   ============================================================ */

.vc-carousel:not(.vc-multi) .splide__slide {
  opacity: 0.5;
  transform: scale(0.92);
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.vc-carousel:not(.vc-multi) .splide__slide.is-center {
  transform: scale(1.05);
  opacity: 1;
}

.vc-carousel:not(.vc-multi) .splide__slide.is-center .vc-thumb {
  border-radius: 6px;
}

@media (min-width: 1600px) {
  .vc-carousel:not(.vc-multi) .splide__slide.is-center { transform: scale(1.02); }
}

/* Dim play button on non-center (single slide) */
.vc-carousel:not(.vc-multi) .splide__slide:not(.is-center) .vc-play { opacity: 0.4; }


/* ============================================================
   CAROUSEL MODE — multi-slide: center scaled, sides dimmed
   ============================================================ */

.vc-carousel.vc-multi .splide__slide {
  opacity: 0.6;
  transform: scale(0.92);
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.vc-carousel.vc-multi .splide__slide.is-center {
  transform: scale(1.05);
  opacity: 1;
}

.vc-carousel.vc-multi .splide__slide.is-center .vc-thumb {
  border-radius: 6px;
}

/* Dim play button on non-center (multi-slide) */
.vc-carousel.vc-multi .splide__slide:not(.is-center) .vc-play { opacity: 0.4; }

/* Hover overlay on center */
.vc-carousel .splide__slide.is-center .vc-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}
.vc-carousel .splide__slide.is-center .vc-thumb:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

/* Enlarge play on center hover */
.vc-carousel .splide__slide.is-center .vc-play:hover {
  transform: translate(-50%, -50%) scale(1.12);
  opacity: 1;
}


/* ============================================================
   GRID MODE — uniform, no scaling
   ============================================================ */

.vc-grid {
  padding: clamp(2rem, 3.5vw, 3rem) clamp(2.5rem, 6vw, 5.5rem) 1.75rem;
  overflow: visible;
}

.vc-grid .vc-inner {
  max-width: 1600px;
  margin: 0 auto;
}

/* Track: hidden overflow, no extra padding */
.vc-grid .vc-splide .splide__track {
  overflow: hidden !important;
  padding: 0;
}

.vc-grid .splide__slide {
  opacity: 1;
  transform: none;
  transition: none;
}

/* All thumbnails get rounded corners */
.vc-grid .vc-thumb {
  border-radius: 0;
}

/* Play button: circular semi-transparent style for grid */
.vc-grid .vc-play {
  opacity: 1;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(1px);
}

.vc-grid .vc-play svg {
  display: none;
}

/* CSS play triangle */
.vc-grid .vc-play::after {
  content: '';
  display: block;
  width: 28px;
  height: 32px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpolygon points='2,2 22,14 2,26' fill='white' stroke='white' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E");
  margin-left: 0;
  transform: translateX(2px);
}

/* Hover overlay */
.vc-grid .vc-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}
.vc-grid .vc-thumb:hover::after { background: rgba(0, 0, 0, 0.15); }

.vc-grid .vc-play:hover {
  transform: translate(-50%, -50%) scale(1.12);
  opacity: 1;
  background: rgba(255, 255, 255, 0.62) !important;
}

.vc-grid .vc-arrow {
  top: calc(50% - 28px);
  width: 76px;
  height: 76px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.vc-grid .vc-arrow--prev { left: 0.5rem; }
.vc-grid .vc-arrow--next { right: 0.5rem; }

.vc-grid .vc-arrow .material-symbols-outlined {
  font-size: 4.25rem;
  color: #72d2dc;
}

.vc-grid .vc-arrow--prev .material-symbols-outlined,
.vc-grid .vc-arrow--next .material-symbols-outlined {
  padding: 0;
}

.vc-grid .vc-arrow:hover { background: transparent; }

.vc-grid .vc-arrow:hover .material-symbols-outlined {
  color: #a2eaf0;
}

.vc-grid .splide__pagination {
  padding-top: 1.9rem;
  gap: 14px;
}

.vc-grid .splide__pagination__page {
  width: 20px;
  height: 20px;
  opacity: 1;
  background: transparent;
  border: 3px solid #37d0dc;
  box-shadow: none;
}

.vc-grid .splide__pagination__page.is-active {
  transform: none;
  background: #7cd9df;
  border-color: #7cd9df;
}


/* ============================================================
   THUMBNAIL + IMAGE (shared)
   ============================================================ */

.vc-thumb {
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
}

.vc-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.vc-thumb__placeholder {
  width: 100%;
  height: 100%;
  background: #1a1a2e;
}


/* ============================================================
   PLAY BUTTON (shared)
   ============================================================ */

.vc-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.25s ease;

  /* Reset all browser / theme button styles */
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.vc-play:hover,
.vc-play:active {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.vc-play:focus-visible {
  outline: 3px solid #39bfbb !important;
  outline-offset: 4px;
  border-radius: 4px;
}

.vc-play svg {
  display: block;
  width: 68px;
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}


/* ============================================================
   ARROWS — semi-circle
   ============================================================ */

.vc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  background-color: #39bfbb;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.vc-arrow--prev { left: -60px; }
.vc-arrow--next { right: -60px; }

.vc-arrow .material-symbols-outlined {
  font-size: 4rem;
  color: #00425D;
  line-height: 1;
}
.vc-arrow--prev .material-symbols-outlined { padding-left: 4rem; }
.vc-arrow--next .material-symbols-outlined { padding-right: 4rem; }

.vc-arrow:hover { background-color: #fff; }

.vc-arrow:focus-visible {
  outline: 3px solid #00425D;
  outline-offset: -3px;
}


/* ============================================================
   PAGINATION DOTS
   ============================================================ */

.vc-wrap .splide__pagination {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  display: flex !important;
  justify-content: center;
  padding: 1.25rem 0 0;
  margin: 0;
  gap: 6px;
  z-index: 5;
}

.vc-wrap .splide__pagination__page {
  width: 12px;
  height: 12px;
  background: #00425D;
  opacity: 0.3;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vc-wrap .splide__pagination__page.is-active {
  opacity: 1;
  transform: scale(1.3);
}

.vc-wrap .splide__pagination__page:focus-visible {
  outline: 2px solid #39bfbb;
  outline-offset: 2px;
}

/* Grid pagination overrides (must come after default dot styles) */
.vc-wrap.vc-grid .splide__pagination {
  padding-top: 1.9rem;
  gap: 14px;
}

.vc-wrap.vc-grid .splide__pagination__page {
  width: 20px;
  height: 20px;
  opacity: 1 !important;
  background: transparent !important;
  border: 1px solid #7cd9df !important;
  box-shadow: none;
  transform: none !important;
}

.vc-wrap.vc-grid .splide__pagination__page.is-active {
  background: #7cd9df !important;
  border-color: #7cd9df !important;
}


/* ============================================================
   LIGHTBOX OVERLAY
   ============================================================ */

.vc-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.vc-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.vc-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.vc-overlay__content {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  z-index: 1;
}

.vc-overlay__close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 2;
}

.vc-overlay__close .material-symbols-outlined {
  font-size: 2rem;
  color: #fff;
  transition: color 0.2s ease;
}

.vc-overlay__close:hover .material-symbols-outlined { color: #39bfbb; }

.vc-overlay__close:focus-visible {
  outline: 3px solid #39bfbb;
  outline-offset: 2px;
  border-radius: 4px;
}

/* 16 : 9 responsive player */
.vc-overlay__player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.vc-overlay__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vc-overlay__copy {
  margin: 1rem 0 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.vc-overlay__playlist {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.vc-overlay__playlist-item {
  border: 1px solid #39bfbb;
  background: transparent;
  color: #39bfbb;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.vc-overlay__playlist-item:hover,
.vc-overlay__playlist-item:focus-visible,
.vc-overlay__playlist-item.is-active {
  background: #39bfbb;
  color: #00425D;
}


/* ============================================================
   RESPONSIVE — ARROWS
   ============================================================ */

@media (max-width: 768px) {
  .vc-grid {
    padding: 1.5rem 2.5rem 1.25rem;
  }

  .vc-grid .vc-play {
    width: 74px;
    height: 74px;
  }

  .vc-grid .vc-play::after {
    width: 22px;
    height: 26px;
    transform: translateX(1px);
  }

  .vc-grid .vc-arrow {
    top: calc(50% - 22px);
    width: 52px;
    height: 52px;
  }

  .vc-grid .vc-arrow--prev { left: 0.2rem; }
  .vc-grid .vc-arrow--next { right: 0.2rem; }

  .vc-grid .vc-arrow .material-symbols-outlined {
    font-size: 3rem;
  }

  .vc-grid .splide__pagination__page {
    width: 14px;
    height: 14px;
  }

  .vc-arrow { width: 80px; height: 80px; }
  .vc-arrow--prev { left: -35px; }
  .vc-arrow--next { right: -35px; }
  .vc-arrow .material-symbols-outlined { font-size: 2.2rem; }
  .vc-arrow--prev .material-symbols-outlined { padding-left: 2rem; }
  .vc-arrow--next .material-symbols-outlined { padding-right: 2rem; }
}

@media (max-width: 1024px) {
  .vc-grid .vc-arrow--prev { left: 0.25rem; }
  .vc-grid .vc-arrow--next { right: 0.25rem; }
}

@media (max-width: 480px) {
  .vc-grid .vc-arrow {
    width: 46px;
    height: 46px;
  }

  .vc-grid .vc-arrow--prev { left: 0; }
  .vc-grid .vc-arrow--next { right: 0; }

  .vc-grid .vc-arrow .material-symbols-outlined {
    font-size: 2.5rem;
  }

  .vc-arrow { width: 66px; height: 66px; }
  .vc-arrow--prev { left: -33px; }
  .vc-arrow--next { right: -33px; }
  .vc-arrow .material-symbols-outlined { font-size: 2rem; }
}


/* ============================================================
   RESPONSIVE — CAROUSEL SLIDES
   ============================================================ */

@media (max-width: 960px) {
  .vc-carousel .splide__slide           { transform: scale(1); opacity: 0.6; }
  .vc-carousel .splide__slide.is-center { transform: scale(1.05); opacity: 1; }
}

@media (max-width: 768px) {
  .vc-carousel .splide__slide {
    width: 100%;
    transform: scale(1) !important;
    opacity: 1;
  }
  .vc-carousel .vc-splide .splide__track { overflow: hidden !important; }
  .vc-play svg { width: 54px; height: 38px; }

  .vc-overlay__content { width: 95vw; }
  .vc-overlay__close { top: -40px; }
  .vc-overlay__close .material-symbols-outlined { font-size: 1.6rem; }
}


/* ============================================================
   REDUCED MOTION (ADA / WCAG)
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .vc-carousel .splide__slide,
  .vc-overlay,
  .vc-play {
    transition: none !important;
  }
}
