/* Subtle, low-contrast ministry imagery. Kept separate so the base card layout remains unchanged. */
.ministry-card {
  isolation: isolate;
  background-color: #101a20;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(160, 181, 193, .18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
}

/* Keep imagery atmospheric, but visible enough to read as an image. */
.ministry-card::before {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(5, 18, 27, .18) 0%,
    rgba(5, 18, 27, .38) 48%,
    rgba(3, 16, 24, .86) 100%
  );
}

.ministry-card > * { z-index: 2; }
.ministry-card:nth-child(1) { background-image: url('assets/ministry-youth.svg'); }
.ministry-card:nth-child(2) { background-image: url('assets/ministry-worship.svg'); }
.ministry-card:nth-child(3) { background-image: url('assets/ministry-fellowship.svg'); }
.ministry-card:nth-child(4) { background-image: url('assets/ministry-outreach.svg'); }
.ministry-card:nth-child(5) { background-image: url('assets/ministry-social-values.svg'); }
.ministry-card:nth-child(6) { background-image: url('assets/ministry-cell-group.svg'); }

/* The image remains secondary to the copy. */
.ministry-card h3 {
  text-shadow: 0 2px 12px rgba(0,0,0,.58);
}

.ministry-card p {
  color: rgba(240, 245, 248, .91);
  text-shadow: 0 1px 10px rgba(0,0,0,.52);
}

@media (prefers-reduced-transparency: reduce) {
  .ministry-card::before { background: rgba(5, 18, 27, .80); }
}

/* Shared congregation-photo treatment for the homepage and About page. */
.church-family {
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line);
}
.church-family-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.church-family-photo {
  min-width: 0;
  margin: 0;
}
.church-family-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  /* Modest display correction retains the original people and composition. */
  filter: brightness(1.09) contrast(1.02) saturate(1.04);
}
.church-family-copy { min-width: 0; }
.church-family-copy h2 {
  margin: 12px 0 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.15;
}
.church-family-copy > p:not(.section-label) {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.church-family-copy .btn { min-height: 48px; }
.church-family-photo-about { margin-top: 32px; }
.church-family-photo figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .church-family-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .church-family-photo img { border-radius: 12px; }
  .church-family-copy .btn { width: 100%; }
}
