/*
 * Ministry cards — Sermons page template (PHP-rendered, not a Gutenberg block).
 */

.ministry-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 240px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-radius: 16px;
}

.ministry-banner.ministry-banner--no-image {
  background-color: #1a1a1a;
}

.ministry-banner__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, var(--overlay-opacity, 0.55));
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}

.ministry-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.ministry-banner__left {
  flex: 1 1 auto;
  max-width: min(62ch, 70%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ministry-banner__heading {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.ministry-banner__description {
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
  margin: 0;
}

.ministry-banner__right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  text-align: right;
}

.ministry-banner__label {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.ministry-banner__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 180ms ease;
}

.ministry-banner__link:hover,
.ministry-banner__link:focus-visible {
  opacity: 0.75;
  color: #ffffff;
  text-decoration: none;
}

.ministry-banner__link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .ministry-banner__content {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
  }

  .ministry-banner__left {
    max-width: 100%;
  }

  .ministry-banner__right {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .ministry-banner__label {
    font-size: 1.375rem;
    text-align: left;
  }
}
