/* ─── Sliders Codenix – Public Styles ────────────────────────────────────── */

.scx-slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* ── Swiper container ─────────────────────────────────────────────────────── */
.scx-swiper {
  width: 100%;
  height: var(--scx-slider-height, 70vh);
  min-height: 320px;
}

/* ── Slide ────────────────────────────────────────────────────────────────── */
.scx-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ── Background image ─────────────────────────────────────────────────────── */
.scx-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.scx-slide__bg img,
.scx-slide__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.scx-slide__bg img {
  object-fit: cover;
  object-position: center;
}

/* ── Overlay ──────────────────────────────────────────────────────────────── */
.scx-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* ── Content ──────────────────────────────────────────────────────────────── */
.scx-slide__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 60px;
  max-width: 760px;
  color: #fff;
}

.scx-slide__title {
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.scx-slide__desc {
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
  margin: 0 0 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  max-width: 560px;
}
.scx-slide__desc p { margin: 0 0 8px; }
.scx-slide__desc p:last-child { margin: 0; }

/* ── CTA Buttons ──────────────────────────────────────────────────────────── */
.scx-slide__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.scx-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
  line-height: 1;
}
.scx-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.scx-cta:active { transform: translateY(0); }

.scx-cta--link {
  background: #fff;
  color: #1f2937 !important;
}
.scx-cta--link:hover { background: #f3f4f6; }

.scx-cta--wa {
  background: #25d366;
  color: #fff !important;
}
.scx-cta--wa:hover { background: #1ebe5d; color: #fff !important; }
.scx-cta--wa svg { flex-shrink: 0; }

/* ── Navigation arrows ────────────────────────────────────────────────────── */
.scx-swiper .swiper-button-next,
.scx-swiper .swiper-button-prev {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  transition: background .2s;
}
.scx-swiper .swiper-button-next:hover,
.scx-swiper .swiper-button-prev:hover {
  background: rgba(255, 255, 255, .28);
}
.scx-swiper .swiper-button-next::after,
.scx-swiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 700;
}

/* ── Pagination dots ──────────────────────────────────────────────────────── */
.scx-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, .55);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: background .2s, transform .2s;
}
.scx-swiper .swiper-pagination-bullet-active {
  background: #fff;
  transform: scale(1.3);
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .scx-slide__bg img {
    object-position: var(--mobile-focal, center center);
  }

  .scx-swiper {
    height: var(--scx-slider-height-mobile, 85vw);
    min-height: 280px;
  }

  .scx-slide__content {
    padding: 24px 20px;
    max-width: 100%;
  }

  .scx-slide__title  { margin-bottom: 8px; }
  .scx-slide__desc   { margin-bottom: 16px; font-size: 13px; }

  .scx-cta {
    padding: 11px 20px;
    font-size: 14px;
  }

  .scx-swiper .swiper-button-next,
  .scx-swiper .swiper-button-prev {
    width: 36px;
    height: 36px;
  }
  .scx-swiper .swiper-button-next::after,
  .scx-swiper .swiper-button-prev::after { font-size: 13px; }
}
