/* =====================================================================
   HOME PAGE HERO (round 9)
   Full-width photo slideshow with a soft blue shade, the group name,
   the mantra, two buttons and the three schools along the bottom.
   Scroll and entrance animations live in js/bloom-hero.js (Motion).
   ===================================================================== */
.bgx-hero {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: clamp(560px, 86vh, 820px);
  background: #153749;
  color: #fff;
  font-family: var(--bgp-body-font, "Open Sans", sans-serif);
  isolation: isolate;
}

/* Photos */
.bgx-hero-media {
  position: absolute;
  inset: -4% 0 -4% 0;
  z-index: -2;
  will-change: transform;
}
.bgx-hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.bgx-hero-slide.is-active { opacity: 1; }

/* Shade: darker on the left where the words sit, lighter on the right */
.bgx-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(21, 55, 73, 0.92) 0%, rgba(21, 55, 73, 0.74) 42%, rgba(21, 55, 73, 0.28) 100%),
    linear-gradient(0deg, rgba(21, 55, 73, 0.85) 0%, rgba(21, 55, 73, 0) 38%);
}

.bgx-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  padding-top: clamp(64px, 11vh, 120px);
  padding-bottom: 32px;
}

.bgx-hero-copy { max-width: 660px; }

.bgx-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--bgp-gold, #f2c75c);
  font-family: var(--bgp-head-font, "Montserrat", sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bgx-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--bgp-head-font, "Montserrat", sans-serif);
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}

.bgx-hero-mantra {
  margin: 18px 0 0;
  color: var(--bgp-gold, #f2c75c);
  font-family: var(--bgp-head-font, "Montserrat", sans-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.3;
}

.bgx-hero-lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
}

.bgx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.bgx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--bgp-head-font, "Montserrat", sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.bgx-btn:hover { transform: translateY(-2px); text-decoration: none; }
.bgx-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.bgx-btn-gold { background: var(--bgp-gold, #f2c75c); color: var(--bgp-ink, #234b65); }
.bgx-btn-gold:hover, .bgx-btn-gold:focus-visible { background: #fff; color: var(--bgp-ink, #234b65); }
.bgx-btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.bgx-btn-ghost:hover, .bgx-btn-ghost:focus-visible { border-color: #fff; background: #fff; color: var(--bgp-ink, #234b65); }

/* The three schools, along the bottom of the hero */
.bgx-hero-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bgx-hero-schools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  list-style: none;
}
.bgx-hero-schools li { margin: 0; background: rgba(21, 55, 73, 0.55); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .bgx-hero-schools li {
    background: rgba(21, 55, 73, 0.38);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
.bgx-hero-schools a {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 18px 22px;
  color: #fff;
  text-decoration: none;
  transition: background-color 180ms ease;
}
.bgx-hero-schools a:hover, .bgx-hero-schools a:focus-visible { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.bgx-hero-schools a:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.bgx-hero-schools strong {
  font-family: var(--bgp-head-font, "Montserrat", sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.bgx-hero-schools strong::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--school, #f2c75c);
  vertical-align: 1px;
  content: "";
}
.bgx-hero-schools span { color: rgba(255, 255, 255, 0.78); font-size: 13.5px; line-height: 1.45; }
/* The Vocational Training Center green needs a lift to show on the dark shade */
.bgx-hero-schools .bg-school--vocational { --school: #6fbf8e; }
.bgx-hero-schools .bg-school--academy { --school: #7fc3dc; }

/* Pause control for the slideshow */
.bgx-hero-pause {
  align-self: flex-end;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--bgp-head-font, "Montserrat", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
  cursor: pointer;
}
.bgx-hero-pause:hover, .bgx-hero-pause:focus-visible { color: #fff; }
.bgx-hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bgx-hero-pause[hidden] { display: none; }

/* Before the entrance animation runs. Only set when motion is allowed;
   js/bloom-hero.js (or a safety timer) always clears it. */
.bgx-anim .bgx-hero [data-hero-in] { opacity: 0; }

@media (max-width: 991px) {
  .bgx-hero-shade {
    background:
      linear-gradient(90deg, rgba(21, 55, 73, 0.9) 0%, rgba(21, 55, 73, 0.66) 100%),
      linear-gradient(0deg, rgba(21, 55, 73, 0.85) 0%, rgba(21, 55, 73, 0) 45%);
  }
  .bgx-hero-schools { grid-template-columns: 1fr; }
  .bgx-hero-schools a { padding: 14px 18px; }
}

@media (max-width: 575px) {
  .bgx-hero { min-height: 0; }
  .bgx-hero-inner { gap: 36px; padding-top: 56px; padding-bottom: 24px; }
  .bgx-hero-eyebrow { font-size: 12px; letter-spacing: 0.12em; }
  .bgx-hero-actions .bgx-btn { flex: 1 1 100%; }
  .bgx-hero-pause { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .bgx-hero-slide { transition: none; }
  .bgx-btn, .bgx-btn:hover { transition: none; transform: none; }
  .bgx-hero-media { will-change: auto; }
}
