/* style/hero-slider.css */

/* Base styles */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  max-width: 600px;
}

/* Progress Bar */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #fff;
  width: 0;
  transition: width 5s linear;
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}
.nav-arrow.prev { left: 1rem; }
.nav-arrow.next { right: 1rem; }

/* Dots / Pagination */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}
.dot.active {
  background: #fff;
}


/* ====== RESPONSIVE RULES  ========= */

/* Responsive adjustments */
.hero-slider {
  height: 60vh; /* Default for smaller screens */
  min-height: 300px;
}

@media (min-width: 768px) {
  .hero-slider {
    height: 80vh;
  }
  .hero-overlay {
    bottom: 25%;
    left: 10%;
    max-width: 50%;
  }
}

@media (max-width: 480px) {
  .hero-overlay {
    bottom: 15%;
    left: 5%;
    max-width: 90%;
    font-size: 14px;
  }
  .hero-overlay h1 {
    font-size: 1.5rem;
  }
  .nav-arrow {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
  }
  .slider-dots {
    bottom: 10px;
  }
  .dot {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
}

/* Make text scale fluidly */
.hero-overlay h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
}
.hero-overlay p {
  font-size: clamp(1rem, 3vw, 1.5rem);
}



