/* ==========================================================================
   BSS Hero Slider Design System
   High-performance dynamic carousel with auto-play, touch swipe & animations
   ========================================================================== */

.hero-slider-section {
  position: relative;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 24px;
}

.slider-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25);
  background: #090d16;
  min-height: 480px;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.slide-item {
  flex: 0 0 100%;
  width: 100%;
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 40px;
  box-sizing: border-box;
}

/* Background & Gradient Effects */
.slide-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.92;
}

.slide-item::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Slide Content Grid */
.slide-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.slide-text-col {
  color: #ffffff;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.slide-badge.badge-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.slide-badge.badge-indigo {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.slide-badge.badge-amber {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.slide-badge.badge-teal {
  background: rgba(20, 184, 166, 0.2);
  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.4);
}

.slide-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 18px;
}

.slide-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 32px;
  max-width: 540px;
}

.slide-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Visual Image Column */
.slide-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.slide-media-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
}

.slide-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.slide-item.active .slide-media-card img {
  transform: scale(1.04);
}

.slide-card-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Slider Controls & Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}

.slider-arrow:hover {
  background: rgba(37, 99, 235, 0.9);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow.arrow-prev {
  left: 20px;
}

.slider-arrow.arrow-next {
  right: 20px;
}

/* Slider Indicator Dots */
.slider-dots-wrap {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.6);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  padding: 0;
}

.slider-dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* Slider Progress Bar */
.slider-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--primary);
  width: 0%;
  z-index: 12;
  transition: width 0.1s linear;
}

/* Mobile & Tablet Slider Responsiveness */
@media (max-width: 992px) {
  .slide-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .slide-title {
    font-size: 2.2rem;
  }
  
  .slide-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .slide-actions {
    justify-content: center;
  }
  
  .slide-image-col {
    display: none; /* Emphasize clean copy & CTA on mobile */
  }

  .slide-item {
    min-height: 400px;
    padding: 40px 24px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .slide-title {
    font-size: 1.75rem;
  }
  .slide-subtitle {
    font-size: 0.95rem;
  }
  .slide-item {
    min-height: 360px;
    padding: 32px 16px;
  }
  .slider-arrow {
    display: none; /* Rely on touch swipe on small phones */
  }
}
