


 /* hero.css */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 70vh;
}

.slider {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  text-align: center;
  padding: 2rem;
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.hero-slider-nav button {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  color: #000;
  transition: background 0.3s;
}

.hero-slider-nav button:hover {
  background: rgba(255, 255, 255, 0.9);
}
/* Mobile - square hero slider */
@media (max-width: 767px) {
  .hero-slider {
    aspect-ratio: 1 / 1;
    height: auto; /* Let aspect-ratio control height */
  }
  .hero-overlay h1 {
    font-size: 1rem;
  }
  .hero-overlay p {
    font-size: 0.6rem;
  }
  .hero-slider-nav button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

/* Tablet - square hero slider */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-slider {
    aspect-ratio: 1 / 1;
    height: auto;
  }
  .hero-overlay h1 {
    font-size: 1.5rem;
  }
  .hero-overlay p {
    font-size: 0.9rem;
  }
  .hero-slider-nav button {
    padding: 0.75rem 1.25rem;
    font-size: 1.25rem;
  }
}

/* Desktop - regular height */
@media (min-width: 1025px) {
  .hero-slider {
    height: 70vh;
    aspect-ratio: auto;
  }
}
