/**
 * Shared hero banner (.hero)
 * Used by: pages/about-us.html, pages/category-page.html
 * Optional: set --hero-bg-image on .hero for a custom photo (category, etc.)
 */

.hero {
  position: relative;
  height: 350px;
  min-height: 350px !important;
  background-color: #444;
  background-image: var(
    --hero-bg-image,
    url("https://hahne.in/wp-content/uploads/2026/03/aboutusbanner.jpg.jpeg")
  );
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 3rem;
  padding: 0 100px 20px;
  letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
  .hero h1 {
    padding: 0 5% 16px;
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 200px;
    min-height: 200px !important;
  }

  .hero h1 {
    font-size: 1.8rem;
    padding: 0 5% 16px;
  }
}
