/*
 * Text-led hero alignment for the main student-facing pages.
 *
 * This borrows the School of Public Health hero's typography, colour system
 * and action treatment without rendering the school-impact metric visual or
 * a photograph in the hero background.
 */

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-hero,
.bc-faq-page .bc-faq-hero {
  --bc-hero-navy: #203578;
  --bc-hero-navy-deep: #172a68;
  --bc-hero-blue: #2b54a3;
  --bc-hero-green: #12a45a;
  --bc-hero-gold: #ffc916;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(420px, 31vw, 560px);
  height: auto;
  padding: clamp(42px, 4vw, 60px) 0 !important;
  color: #fff;
  background:
    radial-gradient(
      circle at -2.5% 28%,
      var(--bc-hero-gold) 0 58px,
      transparent 60px
    ),
    radial-gradient(
      circle at 99% 16%,
      var(--bc-hero-green) 0 54px,
      transparent 56px
    ),
    radial-gradient(
      circle at 79% 112%,
      var(--bc-hero-gold) 0 108px,
      transparent 110px
    ),
    radial-gradient(
      circle at 27% -8%,
      rgba(43, 84, 163, 0.78) 0 145px,
      transparent 147px
    ),
    linear-gradient(
      118deg,
      var(--bc-hero-navy-deep) 0%,
      var(--bc-hero-navy) 58%,
      #263d83 100%
    ) !important;
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-hero::before,
.bc-faq-page .bc-faq-hero::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -42px;
  z-index: 0;
  display: block;
  width: 340px;
  height: 360px;
  opacity: 0.68;
  transform: rotate(-18deg);
  pointer-events: none;
  background:
    radial-gradient(circle, var(--bc-hero-green) 0 10px, transparent 11px) 0 0 /
      58px 58px,
    linear-gradient(
        138deg,
        transparent 47%,
        rgba(18, 164, 90, 0.95) 48% 51%,
        transparent 52%
      )
      0 0 / 58px 58px;
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-hero::after,
.bc-faq-page .bc-faq-hero::after {
  z-index: 0;
  right: 6%;
  bottom: -165px;
  width: 330px;
  height: 330px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.04);
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  height: auto;
  min-height: clamp(330px, 23vw, 410px);
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 52px 20px;
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-hero__media {
  display: none;
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-eyebrow,
.bc-faq-page .bc-faq-eyebrow {
  margin-bottom: 16px;
  color: var(--bc-hero-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-hero
  h1,
.bc-faq-page .bc-faq-hero h1 {
  max-width: 100%;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(44px, 4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.047em;
  line-height: 0.98;
  text-wrap: balance;
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-hero
  h2 {
  margin: -8px 0 18px;
  color: #fff;
  font-size: clamp(21px, 1.65vw, 28px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.28;
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-hero
  .bc-life-copy,
:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-hero
  .bc-life-copy
  p,
.bc-faq-page .bc-faq-hero__copy > p {
  max-width: 980px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.72;
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-actions {
  gap: 12px;
  margin-top: 28px;
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-btn {
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 900;
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-btn.primary {
  color: var(--bc-hero-navy-deep);
  background: var(--bc-hero-gold);
  box-shadow: 0 18px 38px rgba(7, 20, 61, 0.24);
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-btn.primary:hover {
  color: var(--bc-hero-navy-deep);
  background: #fff;
}

:is(
    body.cms-page--apply-now,
    body.cms-page--student-library,
    body.cms-page--student-clinic,
    body.cms-page--student-representative-council,
    body.cms-page--sports-and-creation
  )
  .bc-life-btn.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

.bc-faq-page .bc-faq-hero__inner {
  position: relative;
  z-index: 2;
  display: block;
  width: min(1660px, calc(100% - 96px));
  margin-inline: auto;
}

.bc-faq-page .bc-faq-hero__copy {
  max-width: none;
}

.bc-faq-page .bc-faq-breadcrumb {
  margin-bottom: 22px;
}

.bc-faq-page .bc-faq-eyebrow i {
  display: none;
}

.bc-faq-page .bc-faq-hero h1 {
  margin-bottom: 22px;
}

.bc-faq-page .bc-faq-hero__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, max-content));
  gap: 12px;
  max-width: 380px;
  margin-top: 28px;
}

.bc-faq-page .bc-faq-hero__summary > div {
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  backdrop-filter: none;
}

.bc-faq-page .bc-faq-hero__summary strong {
  margin-bottom: 5px;
  color: var(--bc-hero-gold);
  font-size: 30px;
}

.bc-faq-page .bc-faq-hero__summary span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  letter-spacing: 0.03em;
}

@media (max-width: 767px) {
  :is(
      body.cms-page--apply-now,
      body.cms-page--student-library,
      body.cms-page--student-clinic,
      body.cms-page--student-representative-council,
      body.cms-page--sports-and-creation
    )
    .bc-life-hero,
  .bc-faq-page .bc-faq-hero {
    min-height: 0;
    padding: 34px 0 42px !important;
  }

  :is(
      body.cms-page--apply-now,
      body.cms-page--student-library,
      body.cms-page--student-clinic,
      body.cms-page--student-representative-council,
      body.cms-page--sports-and-creation
    )
    .bc-life-container,
  .bc-faq-page .bc-faq-hero__inner {
    width: calc(100% - 30px);
  }

  :is(
      body.cms-page--apply-now,
      body.cms-page--student-library,
      body.cms-page--student-clinic,
      body.cms-page--student-representative-council,
      body.cms-page--sports-and-creation
    )
    .bc-life-hero
    h1,
  .bc-faq-page .bc-faq-hero h1 {
    font-size: clamp(42px, 11vw, 56px);
  }

  .bc-faq-page .bc-faq-breadcrumb {
    margin-bottom: 18px;
  }

  .bc-faq-page .bc-faq-hero__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

/* Apply Now needs a compact service hero so the application steps appear sooner. */
body.cms-page--apply-now .bc-life-hero {
  min-height: 380px;
  padding: 28px 0 !important;
}

body.cms-page--apply-now .bc-life-hero__grid {
  min-height: 300px;
}

@media (max-width: 767px) {
  body.cms-page--apply-now .bc-life-hero {
    min-height: 0;
    padding: 30px 0 36px !important;
  }

  body.cms-page--apply-now .bc-life-hero__grid {
    min-height: 0;
  }
}
