/* ══════════════════════════════════════════════════════════════════
   VillagKart Banner Slider CSS — Full Dynamic Slider with Images
══════════════════════════════════════════════════════════════════ */

/* ── SLIDER CONTAINER ─────────────────────────────────────────── */
.banner-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 860px;
  overflow: hidden;
  background: #0a2e14;
}

/* ── BANNER TRACK ─────────────────────────────────────────────── */
.banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: none;
  position: relative;
}

/* ── INDIVIDUAL SLIDE ─────────────────────────────────────────── */
.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  overflow: hidden;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.banner-slide.prev {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

/* ── BACKGROUND IMAGE OVERLAY ─────────────────────────────────── */
.banner-img-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 7s ease-out;
  z-index: 0;
}

.banner-slide.active .banner-img-overlay {
  transform: scale(1);
}

/* ── GRADIENT OVERLAY ON TOP OF IMAGE ────────────────────────── */
.banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── GEOMETRIC PATTERN ────────────────────────────────────────── */
.banner-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,0.02) 0%, transparent 35%);
  pointer-events: none;
}

.banner-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── BANNER CONTENT ───────────────────────────────────────────── */
.banner-content {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 90px;
}

/* Content enters with slide animation */
.banner-slide .banner-content > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.banner-slide.active .banner-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.banner-slide.active .banner-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.banner-slide.active .banner-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}
.banner-slide.active .banner-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

/* ── BADGE ────────────────────────────────────────────────────── */
.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.banner-badge i {
  color: #4ade80;
  font-size: 0.75rem;
}

/* ── TITLE ────────────────────────────────────────────────────── */
.banner-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 750px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  font-family: 'Playfair Display', 'Inter', serif;
}

/* ── SUBTITLE ─────────────────────────────────────────────────── */
.banner-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* ── CTA BUTTONS ──────────────────────────────────────────────── */
.banner-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.banner-cta .btn-primary {
  background: linear-gradient(135deg, #1a8a3c, #14692e);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(26,138,60,0.4);
  border: none;
  cursor: pointer;
}

.banner-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26,138,60,0.55);
}

.banner-cta .btn-outline {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}

.banner-cta .btn-outline:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.5);
}

/* ── NAVIGATION ARROWS ────────────────────────────────────────── */
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.banner-nav:hover {
  background: rgba(26,138,60,0.7);
  border-color: rgba(26,138,60,0.5);
  transform: translateY(-50%) scale(1.08);
}

.banner-nav.prev { left: 1.5rem; }
.banner-nav.next { right: 1.5rem; }

/* ── DOTS ─────────────────────────────────────────────────────── */
.banner-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1.5px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
}

.banner-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.3);
}

.banner-dot:hover:not(.active) {
  background: rgba(255,255,255,0.7);
}

/* ── PROGRESS BAR ─────────────────────────────────────────────── */
.banner-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
}

.banner-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #1a8a3c);
  width: 0%;
  transition: width linear;
  border-radius: 0 2px 2px 0;
}

/* ── SLIDE COUNTER ────────────────────────────────────────────── */
.banner-counter {
  position: absolute;
  bottom: 1.8rem;
  right: 2rem;
  z-index: 10;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ── FLOATING DECORATIVE CARDS ────────────────────────────────── */
.banner-float-cards {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.banner-float-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 200px;
  animation: floatCard 3.5s ease-in-out infinite;
}

.banner-float-card:nth-child(2) { animation-delay: 0.7s; }
.banner-float-card:nth-child(3) { animation-delay: 1.4s; }

.banner-float-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.banner-float-card-icon.green { background: rgba(26,138,60,0.4); }
.banner-float-card-icon.orange { background: rgba(249,115,22,0.4); }
.banner-float-card-icon.blue { background: rgba(37,99,235,0.4); }

.banner-float-card-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}
.banner-float-card-text span {
  font-size: 0.78rem;
  opacity: 0.8;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ── THUMBNAIL STRIP (optional) ───────────────────────────────── */
.banner-thumbs {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.banner-thumb {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.banner-thumb.active {
  border-color: #fff;
  transform: scale(1.08);
}

.banner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── SLIDE IN ANIMATION KEYFRAMES ─────────────────────────────── */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .banner-float-cards { display: none; }
  .banner-title { font-size: clamp(1.8rem, 4.5vw, 3rem); }
}

@media (max-width: 768px) {
  .banner-slider {
    height: 100svh;
    min-height: 520px;
    max-height: 700px;
  }
  .banner-content {
    padding: 0 1.25rem;
    padding-top: 80px;
  }
  .banner-title { font-size: clamp(1.6rem, 7vw, 2.5rem); }
  .banner-subtitle { font-size: 0.95rem; }
  .banner-nav {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }
  .banner-nav.prev { left: 0.75rem; }
  .banner-nav.next { right: 0.75rem; }
  .banner-cta { gap: 0.75rem; }
  .banner-cta .btn-primary,
  .banner-cta .btn-outline {
    padding: 0.75rem 1.4rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .banner-title { font-size: clamp(1.4rem, 6.5vw, 2rem); }
  .banner-cta { flex-direction: column; }
  .banner-cta .btn-primary,
  .banner-cta .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .banner-dots { bottom: 1.5rem; }
}

/* ── PAUSE ON HOVER ───────────────────────────────────────────── */
.banner-slider:hover .banner-progress-bar {
  animation-play-state: paused;
}

/* ── TOUCH SWIPE CURSOR ───────────────────────────────────────── */
.banner-slider.is-dragging { cursor: grabbing; }
.banner-slider { cursor: default; }
