/**
 * Taxonomy Hero - Page Title Override
 * For programs-category taxonomy term pages.
 *
 * Add this to your theme's CSS or attach it via a library.
 */

.taxonomy-hero__wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #2a2a2a; /* fallback when no image */
  border-radius: 32px;
  height: 500px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 50px;
}

.taxonomy-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.taxonomy-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.taxonomy-hero__title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .taxonomy-hero__wrapper {
    min-height: 220px;
  }

  .taxonomy-hero__title {
    font-size: 1.75rem;
  }
}