/* HERO SLIDER - UPDATED FOR FADE TRANSITION & RESPONSIVE HEIGHT */
.hero-slider { 
  position: relative; 
  height: 50vh; 
  min-height: 300px; 
  max-height: 500px; 
  border-radius: 10px; 
  margin: 0 30px 40px 30px; 
  overflow: hidden; 
  width: calc(100% - 60px);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.slider-dot {
  width: 10px; /* Smaller size */
  height: 10px; /* Smaller size */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-dot.active {
  background: white;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

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

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

/* Mobile Responsive Styles */
@media (max-width: 600px) {
  .hero-slider {
    height: 40vh; /* Shorter height on mobile */
    min-height: 250px; /* Smaller minimum height */
    max-height: 350px; /* Smaller maximum height */
    margin: 0 15px 30px 15px; /* Adjusted padding for mobile */
    width: calc(100% - 30px); /* Adjust width for mobile padding */
    border-radius: 8px; /* Slightly smaller border radius */
  }
  
  .slider-arrow { 
    width: 30px; 
    height: 30px; 
  }
  
  .slider-arrow.prev { 
    left: 10px; 
  }
  
  .slider-arrow.next { 
    right: 10px; 
  }
  
  .slider-nav {
    bottom: 15px; /* Move dots up slightly */
  }
  
  .slider-dot {
    width: 8px; /* Even smaller on mobile */
    height: 8px; /* Even smaller on mobile */
    margin: 0 4px;
  }
}

/* Tablet adjustments */
@media (min-width: 601px) and (max-width: 1024px) {
  .hero-slider {
    height: 45vh; /* Medium height for tablets */
    min-height: 280px;
    max-height: 400px;
  }
}

/* Large desktop adjustments */
@media (min-width: 1200px) {
  .hero-slider {
    height: 55vh; 
    min-height: 350px;
    max-height: 600px;
  }
}