.hero-section {
  position: relative;
  width: 100%;
  height: auto;
}

.hero-img-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay improves contrast */
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 90%;
  max-width: 600px;
}

.hero-text-box {
  background-color: rgba(255, 255, 255, 0.85); /* Improved opacity for better readability */
  padding: 1.5rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-heading {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #1f2937;
}

.hero-subtext {
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  color: #374151;
}

.btn-blue {
  background-color: var(--primary-blue);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-blue:hover {
  background-color: var(--primary-blue-hover);
}

/* Desktop */
@media (min-width: 640px) {
  .hero-img {
    height: 500px;
  }

  .hero-content {
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 550px;
  }

  .hero-heading {
    font-size: 1.5rem;
  }

  .hero-subtext {
    font-size: 1.05rem;
  }

  .btn-blue {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 639px) {
  .hero-heading {
    font-size: 1.2rem;
  }

  .hero-subtext {
    font-size: 0.75rem;
  }

  .btn-blue {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }

  .hero-img {
    height: 320px;
  }

  .hero-text-box {
    padding: 1.25rem;
  }
}
