/* =========================
   SECTION / SLIDER BASE
========================= */

.section.slider-enabled {
  position: relative;
  overflow: hidden;
  min-height: 95vh;
}

/* keep title above content */
.section.slider-enabled .section-top {
  position: relative;
  z-index: 30;
}

/* viewport */
.section-slider-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 85vh;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  z-index: 5;
}

.section-slider-viewport.is-dragging {
  cursor: grabbing;
}

/* =========================
   ARTICLES
========================= */

.section.slider-enabled .article {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 1;
}

.section.slider-enabled .article.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* IMPORTANT: allow clicks inside content only */
.section.slider-enabled .article .article-content {
  pointer-events: auto;
}

/* layout */
.section.slider-enabled .article-content {
  max-width: 95vw;
  margin: 0 auto;
}

/* =========================
   NAV (ARROWS)
========================= */

.section-slider-nav {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none; /* container ignores clicks */
}

.section-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);

  color: white;
  font-size: 1.6rem;
  line-height: 1;

  cursor: pointer;
  pointer-events: auto; /* IMPORTANT */

  z-index: 101;

  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

/* arrow inside button (if using span) */
.section-slider-btn .arrow {
  font-size: 1.6rem;
  line-height: 1;
  pointer-events: none; /* prevents weird hit issues */
}

.section-slider-btn:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(255,255,255,0.14);
}

.section-slider-btn:disabled {
  opacity: 0;
  cursor: default;
  transform: translateY(-50%);
}

.section-slider-btn.prev {
  left: 1rem;
}

.section-slider-btn.next {
  right: 1rem;
}

/* =========================
   FOOTER (DOTS + COUNT)
========================= */

.section-slider-footer {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 100;

  display: flex;
  align-items: center;
  gap: 0.85rem;

  padding: 0.5rem 0.8rem;
  border-radius: 999px;

  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}

.section-slider-count {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}

/* dots */

.section-slider-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;

  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.section-slider-dot:hover {
  transform: scale(1.15);
  background: rgba(255,255,255,0.6);
}

.section-slider-dot.is-active {
  background: white;
  transform: scale(1.2);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .section-slider-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .section-slider-btn.prev {
    left: 0.5rem;
  }

  .section-slider-btn.next {
    right: 0.5rem;
  }

  .section-slider-footer {
    bottom: 1rem;
    gap: 0.65rem;
    padding: 0.45rem 0.7rem;
  }

  .section-slider-count {
    font-size: 0.85rem;
  }

  .section.slider-enabled {
      position: relative;
      overflow: hidden;
      min-height: 87vh;
    }

     /* viewport */
    .section-slider-viewport {
          position: relative;
          overflow: hidden;
          width: 100%;
          min-height: 80vh;
          touch-action: pan-y;
          user-select: none;
          cursor: grab;
          z-index: 5;
    }

}
