/* ============================================================
   Core Hero Banner — Slider Styles
   Preserves all existing ci-hero-main / side-banner-card
   dimensions. Only adds slider layer on top.
   ============================================================ */

/* ── Hero slider container ──────────────────────────────── */
.ci-hb-slider {
  position: relative;
  overflow: hidden;
  /* inherits border-radius, background, shadow from .banner-slider */
}

/* ── Track ────────────────────────────────────────────────── */
.ci-hb-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

/* ── Slides ───────────────────────────────────────────────── */
.ci-hb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--ci-hb-trans, 600ms) ease;
  pointer-events: none;
  display: flex;
  align-items: stretch;
}

.ci-hb-slide--active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

/* Slide mode — left/right enter/exit */
.ci-hb-slide--out-left  { transform: translateX(-100%); opacity: 0; }
.ci-hb-slide--out-right { transform: translateX(100%);  opacity: 0; }
.ci-hb-slide--in-left   { transform: translateX(-100%); opacity: 0; }
.ci-hb-slide--in-right  { transform: translateX(100%);  opacity: 0; }
.ci-hb-slide--in-left.ci-hb-slide--active,
.ci-hb-slide--in-right.ci-hb-slide--active {
  transform: translateX(0);
  opacity: 1;
}

/* ── Banner image ─────────────────────────────────────────── */
.ci-hb-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.ci-hb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  -webkit-user-drag: none;
  user-select: none;
}

/* ── Caption overlay ──────────────────────────────────────── */
.ci-hb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  pointer-events: none;
}

.ci-hb-caption-text {
  color: #fff;
  font-family: "Rajdhani", "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ── Navigation arrows ────────────────────────────────────── */
.ci-hb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(11, 11, 11, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ci-hb-arrow--prev { left: 0.75rem; }
.ci-hb-arrow--next { right: 0.75rem; }

/* Show arrows on hover */
.ci-hb-slider:hover .ci-hb-arrow,
.ci-hb-slider:focus-within .ci-hb-arrow {
  opacity: 1;
}

.ci-hb-arrow:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.7);
  color: #d4af37;
}

.ci-hb-arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.ci-hb-arrow--next:hover { transform: translateY(-50%) translateX(2px); }

/* ── Gold pagination dots ─────────────────────────────────── */
.ci-hb-dots {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}

.ci-hb-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.ci-hb-dot--active,
.ci-hb-dot:hover {
  background: var(--ci-gold, #d4af37);
  border-color: var(--ci-gold, #d4af37);
  width: 1.25rem;
  border-radius: 4px;
  transform: none;
}

/* ── Side card slider ─────────────────────────────────────── */
.ci-hb-side-slider {
  position: relative;
  overflow: hidden;
}

.ci-hb-side-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-hb-side-slide--active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.ci-hb-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--ci-radius, 14px);
  display: block;
  max-height: 180px;
  -webkit-user-drag: none;
  user-select: none;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .ci-hero-grid {
    grid-template-columns: 1fr !important;
  }

  .ci-hero-side-stack {
    flex-direction: row !important;
  }

  .ci-hero-side-stack > * {
    flex: 1;
  }
}

@media (max-width: 575px) {
  .ci-hero-side-stack {
    flex-direction: column !important;
  }

  .ci-hb-side-img {
    max-height: 140px;
  }
}
