/* NexaSlider Public CSS */
.nexaslider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  user-select: none;
}
.nexaslider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.nexaslider-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.77,0,0.175,1);
  will-change: transform;
  height: 100%;
}
.nexaslider-slide {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
}
.nexaslider-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 8s ease;
}
.nexaslider-slide.active .nexaslider-bg { transform: scale(1.05); }
.nexaslider-video-bg {
  position: absolute; inset: 0; overflow: hidden;
}
.nexaslider-video-bg video {
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  object-fit: cover;
}
.nexaslider-overlay { position: absolute; inset: 0; }
.nexaslider-layers { position: absolute; inset: 0; }

/* LAYERS */
.nexaslider-layer {
  position: absolute;
  opacity: 0;
}
.nexaslider-slide.active .nexaslider-layer { opacity: 1; }

/* Animations */
@keyframes nsxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes nsxSlideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nsxSlideDown { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nsxSlideLeft { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes nsxSlideRight { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes nsxZoomIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

.nexaslider-slide.active .nexaslider-layer[data-anim-in="fadeIn"] { animation: nsxFadeIn 0.8s ease forwards; }
.nexaslider-slide.active .nexaslider-layer[data-anim-in="slideUp"] { animation: nsxSlideUp 0.8s ease forwards; }
.nexaslider-slide.active .nexaslider-layer[data-anim-in="slideDown"] { animation: nsxSlideDown 0.8s ease forwards; }
.nexaslider-slide.active .nexaslider-layer[data-anim-in="slideLeft"] { animation: nsxSlideLeft 0.8s ease forwards; }
.nexaslider-slide.active .nexaslider-layer[data-anim-in="slideRight"] { animation: nsxSlideRight 0.8s ease forwards; }
.nexaslider-slide.active .nexaslider-layer[data-anim-in="zoomIn"] { animation: nsxZoomIn 0.8s ease forwards; }

/* NAVIGATION */
.nexaslider-arrows { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 100%; pointer-events: none; }
.nexaslider-arrow {
  position: absolute; pointer-events: all;
  width: 48px; height: 48px;
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.3);
  color: white; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.nexaslider-arrow:hover { background: rgba(108,99,255,0.7); border-color: rgba(108,99,255,0.8); transform: scale(1.1); }
.nexaslider-arrow-prev { left: 16px; }
.nexaslider-arrow-next { right: 16px; }

/* DOTS */
.nexaslider-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.nexaslider-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%; cursor: pointer;
  transition: all 0.3s; border: none;
}
.nexaslider-dot.active { background: white; transform: scale(1.3); }
.nexaslider-dot:hover { background: rgba(255,255,255,0.8); }

/* THUMBNAILS */
.nexaslider-thumbnails {
  display: flex; gap: 6px; margin-top: 8px;
  overflow-x: auto; padding: 4px;
}
.nexaslider-thumb {
  width: 80px; height: 50px; flex-shrink: 0;
  border-radius: 4px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: all 0.2s;
  background-size: cover; background-position: center;
  background-color: #333;
}
.nexaslider-thumb.active { border-color: #6C63FF; }
.nexaslider-thumb:hover { border-color: rgba(108,99,255,0.5); }

/* Slide transitions */
.nexaslider-transition-fade .nexaslider-track { transition: none; }
.nexaslider-transition-fade .nexaslider-slide { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.8s ease; }
.nexaslider-transition-fade .nexaslider-slide.active { opacity: 1; position: relative; }
.nexaslider-transition-zoom .nexaslider-slide { transform: scale(0.9); transition: all 0.8s ease; }
.nexaslider-transition-zoom .nexaslider-slide.active { transform: scale(1); }

/* =====================================================
   RESPONSIVE SCALING
   --nsx-scale is set by JS (ResizeObserver) as a ratio
   of the slider's actual width vs the design width (1200px).
   Setting font-size on .nexaslider-layers makes all child
   em-based font sizes (set via inline style) scale with it,
   because em values are relative to the inherited font-size.
   ===================================================== */
.nexaslider-layers {
  font-size: calc(16px * var(--nsx-scale, 1));
}

/* Responsive arrows */
@media (max-width: 768px) {
  .nexaslider-arrow { width: 36px; height: 36px; font-size: 14px; }
  .nexaslider-dots  { bottom: 10px; gap: 6px; }
}
@media (max-width: 480px) {
  .nexaslider-arrow { width: 28px; height: 28px; font-size: 12px; }
  .nexaslider-arrow-prev { left: 8px; }
  .nexaslider-arrow-next { right: 8px; }
  .nexaslider-dots  { bottom: 8px; gap: 5px; }
  .nexaslider-dot   { width: 6px; height: 6px; }
}

/* Scale down button padding on small screens to stop overflow */
@media (max-width: 768px) {
  .nexaslider-layer a[style] { padding: 8px 18px !important; }
}
@media (max-width: 480px) {
  .nexaslider-layer a[style] { padding: 6px 12px !important; }
}
