/* 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;
  background-repeat:no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  display: flex;              /* use flex to control overlay positioning */
  justify-content: flex-start; /* horizontal alignment */
  align-items: flex-end;      /* vertical alignment: bottom */
}
.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Overlay moved down, title only */
.hero-overlay {
  /* remove bottom: 3% */
  margin-bottom: 3%; /* spacing from bottom */
  left: 10%;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.909);
  max-width: 600px;
  background-color: rgba(0,0,0,0.57);
  z-index: 2;
}

.hero-overlay h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  white-space: nowrap;       /* keep title on one line */
  overflow: hidden;          /* prevent overflow */
  text-overflow: ellipsis;   /* optional ellipsis if too long */
  color:white;
}
.hero-overlay p,
.hero-overlay .button {
  display: none; /* hide subtitle or button */
}

/* 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  ========= */

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

@media (min-width: 768px) {
  .hero-slider {
    height: 80vh;
  }
  .hero-overlay {
    bottom: 15%;  /* slightly higher for larger screens */
    left: 10%;
    max-width: 50%;
  }
}

@media (max-width: 480px) {
  .hero-overlay {
    bottom: 5%;
    left: 5%;
    max-width: 90%;
  }
  .hero-overlay h1 {
    font-size: clamp(1.2rem, 4vw, 2rem);
  }
  .nav-arrow {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
  }
  .slider-dots {
    bottom: 10px;
  }
  .dot {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
  .slide {
      background-size: contain;
      background-repeat:no-repeat;
  }
}
