/* Hero Section styles */
.hero-slider {
  margin-top: 0; /* Ensure no negative margin */
  position: relative;
  z-index: 1;
}

.carousel-item {
  height: 600px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  filter: brightness(0.7);
}

.carousel-caption {
  bottom: 20%;
  z-index: 10;
}

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

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

/* Page Hero */
.page-hero {
  padding-top: 100px; /* Internal padding for content */
  padding-bottom: 50px;
  background-color: var(--primary-color);
  position: relative;
  color: white;
  overflow: hidden;
  margin-top: 0; /* Ensure no negative margin */
}

.page-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

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

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1,
.page-hero p {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Mobile-specific hero adjustments - these should now be handled by body padding */
@media (max-width: 991.98px) {
  .hero-slider {
    margin-top: 0; /* Remove previous compensation */
  }

  .page-hero {
    padding-top: 50px; /* Adjust internal padding for mobile, not compensating for header */
    margin-top: 0; /* Remove previous compensation */
  }
}

@media (max-width: 767.98px) {
  .carousel-item {
    height: 400px;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }
}
