/* Activities banner only: original chapter photograph and readable HTML text. */
.activities-page .page-header-activities {
  min-height: 320px;
  padding: 64px 0;
  display: flex;
  align-items: center;
  background: #0a2463;
  color: #fff;
}

/* Keep the photograph separate from the contrast overlay. */
.activities-page .page-header-activities::before {
  background-image: url('../photos/activities-banner.webp');
  background-position: center 48%;
  background-size: cover;
  animation: none;
  opacity: 1;
}

.activities-page .page-header-activities::after {
  background: linear-gradient(90deg, rgba(7, 22, 55, .96) 0%,
    rgba(7, 22, 55, .88) 44%, rgba(7, 22, 55, .28) 76%,
    rgba(7, 22, 55, .12) 100%);
}

.activities-page .page-header-activities .container { width: 100%; }
.activities-page .page-header-activities .page-header-title,
.activities-page .page-header-activities .page-header-lead {
  max-width: min(560px, 46%);
  color: #fff;
  opacity: 1;
}

/* Match the Opportunities page typography without changing shared styles. */
.activities-page .page-header-activities h1.page-header-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  margin-bottom: 16px;
}

.activities-page .page-header-activities p.page-header-lead {
  font-family: "Work Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
}

.activity-banner-eyebrow {
  color: #a5efff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.activity-banner-credit {
  padding: 8px 5%;
  background: #f1f5f9;
  color: #475569;
  font-size: .8rem;
  text-align: right;
}

/* On smaller screens, use a uniform overlay to protect text contrast. */
@media (max-width: 900px) {
  .activities-page .page-header-activities::after {
    background: rgba(7, 22, 55, .82);
  }
  .activities-page .page-header-activities .page-header-title,
  .activities-page .page-header-activities .page-header-lead {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .activities-page .page-header-activities {
    min-height: 280px;
    padding: 40px 0;
  }
  .activities-page .page-header-activities h1.page-header-title {
    font-size: 2.25rem;
  }
  .activities-page .page-header-activities p.page-header-lead {
    font-size: 1.125rem;
  }
  .activities-page .page-header-activities::before {
    background-position: 58% center;
  }
}