/* HERO/BANNER SECTION */
.hero-banner {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  box-sizing: border-box;  /* Ensure padding and border are included in width/height */
}

/* Prevent horizontal overflow */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;  /* Prevent horizontal scrolling */
}

/* Dark overlay */
.hero-banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Slightly dark overlay */
  z-index: 1; /* Overlay should be below the content */
}

/* Banner content */
.hero-banner .banner-content {
  position: relative;
  z-index: 2; /* Ensure content is above the overlay */
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 0 15px;
}

/* Heading */
.hero-banner h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

/* Paragraph */
.hero-banner p {
  font-size: 20px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

/* Button styling */
.hero-banner .btn-appointment {
  background: linear-gradient(135deg, #579679, #d11e50);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-banner .btn-appointment:hover {
  background: #008648;
  transform: scale(1.05); /* Slight scale effect for hover */
}

/* RESPONSIVE STYLES */

/* For larger screens (up to 991px) */
@media (max-width: 991px) {
  .hero-banner {
    height: 70vh;
  }
  .hero-banner h1 {
    font-size: 36px;
  }
  .hero-banner p {
    font-size: 18px;
  }
}

/* For smaller screens (up to 600px) */
@media (max-width: 600px) {
  .hero-banner {
    height: 60vh;
  }
  .hero-banner .overlay {
    background: rgba(0, 0, 0, 0.6); /* Darker overlay on smaller screens */
  }
  .hero-banner h1 {
    font-size: 26px;
  }
  .hero-banner p {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .hero-banner .btn-appointment {
    padding: 10px 20px;
    font-size: 14px;
  }
  /* Ensure the background image behaves properly */
  .hero-banner .hero-img {
    object-fit: contain; /* Maintain full image on small screens */
    background-color: #000;
  }
}
