/* ============================================
   HERO SLIDER - Full Screen Image Slider
   ============================================ */

/* --- Slider Container --- */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  z-index: 1;
}

/* --- Slider Wrapper --- */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* --- Individual Slides --- */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* --- Slide Background Images --- */
.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark overlay for better text readability */
.hero-slide-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

/* --- Content Overlay --- */
.hero-slide-content {
  position: relative;
  z-index: 3;
  height: 100%;
}

/* --- Hero Banner Adjustments --- */
.hero-banner.style-3 {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 100vh;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.hero-banner.style-3 .container {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-banner.style-3 .inner-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* --- Slider Navigation Dots --- */
.hero-slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 12px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.hero-slider-dot.active {
  background: var(--bs-primary, #f46700);
  border-color: var(--bs-primary, #f46700);
  width: 32px;
  border-radius: 10px;
}

/* --- Responsive Design --- */

/* Tablet (Portrait) */
@media (max-width: 991px) {
  .hero-banner.style-3 {
    min-height: 500px;
  }

  .hero-slider-dots {
    bottom: 30px;
    gap: 10px;
    padding: 12px 20px;
  }

  .hero-slider-dot {
    width: 10px;
    height: 10px;
  }

  .hero-slider-dot.active {
    width: 28px;
  }

  /* Adjust overlay gradient for tablets */
  .hero-slide-bg::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .hero-banner.style-3 {
    position: relative !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-slider {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    z-index: 1 !important;
  }
  
  .hero-slider-wrapper {
    width: 100% !important;
    height: 100% !important;
  }
  
  .hero-slide {
    width: 100% !important;
    height: 100% !important;
  }
  
  .hero-slide-bg {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  .hero-slider-dots {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    gap: 8px;
    padding: 10px 15px;
    z-index: 200 !important;
  }

  .hero-slider-dot {
    width: 8px;
    height: 8px;
  }

  .hero-slider-dot.active {
    width: 24px;
  }

  /* Stronger overlay for mobile readability */
  .hero-slide-bg::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%);
  }
  
  /* Ensure container and inner wrapper take full height */
  .hero-banner.style-3 .container {
    height: 100% !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }
  
  .hero-banner.style-3 .inner-wrapper {
    height: 100% !important;
    max-height: 100vh !important;
  }
  
  /* Ensure main page content starts below hero */
  .page-content {
    position: relative !important;
  }
}

/* Small Mobile */
@media (max-width: 575px) {
  .hero-banner.style-3 {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    display: block !important;
  }

  .hero-slider-dots {
    bottom: 15px !important;
  }
}

/* --- Preloader for Images --- */
.hero-slide-bg.loading {
  background-color: #f5f5f5;
}

/* --- Animation Performance --- */
.hero-slide,
.hero-slide-bg {
  will-change: opacity;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.3s ease-in-out;
  }

  .hero-slider-dot {
    transition: none;
  }
}

/* --- Touch Response --- */
.hero-slider-wrapper {
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* --- Z-Index Management --- */
/* Ensure content elements stay above slider */
.hero-banner .vertical-info {
  z-index: 50;
}

.hero-banner .item1,
.hero-banner .item2,
.hero-banner .item3,
.hero-banner .item4 {
  z-index: 20;
}

.hero-banner .shape1,
.hero-banner .shape2 {
  z-index: 15;
}

.hero-banner .banner-shape4,
.hero-banner .banner-shape5,
.hero-banner .banner-shape6 {
  z-index: 15;
}
