/* Hero Section Styles */
.hero-section {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 600px; /* Back to fixed height for desktop */
  margin: 0;
  padding: 0;
}

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

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

.hero-slide-desktop,
.hero-slide-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Show desktop image on larger screens, hide on mobile */
.hero-slide-desktop {
  display: block;
}

.hero-slide-mobile {
  display: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 100px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.slider-dots {
  display: flex;
  gap: 10px;
}

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

.slider-dot.active {
  background-color: #fff;
}

.slider-prev,
.slider-next {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 15px;
  transition: background-color 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Responsive styles */
@media (max-width: 991px) {
  .hero-slider {
    height: 500px; /* Back to fixed height for tablets */
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  .hero-slider {
    height: 150px; /* Back to fixed height for mobile */
  }

  /* Switch to mobile image on small screens */
  .hero-slide-desktop {
    display: none;
  }

  .hero-slide-mobile {
    display: block;
  }

  .hero-content {
    padding: 80px 15px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .slider-prev,
  .slider-next {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 400px; /* Back to fixed height for small mobile */
  }

  .hero-content {
    padding: 60px 10px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 15px;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
}

/* Fix for the gap between menu and hero */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.main-content {
  padding-top: 0;
  margin-top: 0;
}

/* Ensure no gap between sections */
section {
  margin: 0;
  padding: 0;
}

.section {
  margin-top: 0;
}

/* Fix for any potential margin issues in the container */
.container,
.row,
.col-md-12 {
  margin-top: 0;
  padding-top: 0;
}

/* Fix for the bottom gap in desktop view */
.hero-section {
  margin-bottom: -1px !important; /* Fix for the small gap at bottom */
}

/* Ensure the next section after hero has no top margin */
.hero-section + section,
.hero-section + div,
.hero-slider + section,
.hero-slider + div {
  margin-top: 0 !important;
  padding-top: 60px !important;
}
