/* =====================================================================
   Facilities page - clean unique image-led redesign
   Full facilities UI with banner, facility mosaic, infrastructure,
   support system, campus life and CTA sections.
   ===================================================================== */

.facilities-page {
  background: var(--white);
  color: var(--text);
  overflow: hidden;
}

.facilities-page * {
  box-sizing: border-box;
}

.facilities-page img {
  display: block;
  max-width: 100%;
}

.facilities-page h1,
.facilities-page h2,
.facilities-page h3,
.facilities-page p {
  margin-top: 0;
}

.facilities-page h1,
.facilities-page h2,
.facilities-page h3 {
  color: var(--navy-dark, #041f3d);
}

.facilities-page p {
  color: var(--muted);
  line-height: 1.72;
}

.facilities-page .section {
  padding-bottom: clamp(78px, 7vw, 118px);
  padding-top: clamp(78px, 7vw, 118px);
}

.facilities-page .lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 600;
  line-height: 1.78;
  margin-bottom: 0;
}

.facilities-page h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.facilities-kicker {
  align-items: center;
  color: var(--gold-dark, #b98800);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 950;
  gap: 10px;
  letter-spacing: 1.55px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.facilities-kicker:before {
  background: var(--gold, #ffc600);
  border-radius: 999px;
  content: "";
  height: 3px;
  width: 28px;
}

.facilities-kicker-light {
  color: var(--gold, #ffc600);
}

/* ============ HERO ============ */
.facilities-hero {
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(4, 22, 42, 0.93) 0%,
      rgba(5, 39, 70, 0.82) 43%,
      rgba(14, 91, 72, 0.62) 100%
    ),
    url("../images/folder-3/8.jpeg") center / cover no-repeat;
  color: var(--white);
  display: flex;
  min-height: clamp(560px, 74vh, 740px);
  overflow: hidden;
  position: relative;
}

.facilities-hero:before {
  background: linear-gradient(
    90deg,
    var(--gold, #ffc600),
    var(--green-bright, #20c997),
    var(--blue, #4d8dff)
  );
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
}

.facilities-hero-shell {
  align-items: center;
  display: flex;
  min-height: inherit;
  position: relative;
  z-index: 2;
}

.facilities-hero-copy {
  max-width: 830px;
  padding: clamp(104px, 10vw, 150px) 0 clamp(80px, 8vw, 120px);
}

.facilities-hero .facilities-kicker {
  color: var(--gold, #ffc600);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.facilities-hero h1 {
  color: var(--white);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.7rem, 5.25vw, 5.1rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
  margin: 0 0 24px;
  max-width: 850px;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.facilities-hero .hero-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.03rem, 1.45vw, 1.2rem);
  font-weight: 650;
  line-height: 1.72;
  margin: 0 0 32px;
  max-width: 720px;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.facilities-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.facilities-hero-tags li {
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 900;
  min-height: 50px;
  padding: 12px 20px;
}

/* ============ FACILITY SNAPSHOT ============ */
.facility-snapshot {
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 198, 0, 0.14), transparent 30%),
    radial-gradient(
      circle at 88% 22%,
      rgba(32, 201, 151, 0.12),
      transparent 28%
    ),
    linear-gradient(180deg, var(--white) 0%, #f7fbff 100%);
}

.snapshot-layout {
  align-items: end;
  display: grid;
  gap: clamp(30px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  margin-bottom: clamp(34px, 5vw, 64px);
}

.snapshot-copy {
  max-width: 740px;
}

.snapshot-copy .lead {
  max-width: 680px;
}

.snapshot-feature {
  align-items: end;
  background: var(--white);
  border: 1px solid rgba(6, 43, 85, 0.08);
  border-radius: 32px;
  box-shadow: 0 24px 62px rgba(6, 43, 85, 0.09);
  display: grid;
  gap: 20px;
  grid-template-columns: 190px minmax(0, 1fr);
  padding: 18px;
}

.snapshot-feature figure {
  border-radius: 24px;
  height: 190px;
  margin: 0;
  overflow: hidden;
}

.snapshot-feature img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.snapshot-feature span,
.facility-tile span,
.life-card span {
  align-items: center;
  background: rgba(255, 198, 0, 0.16);
  border-radius: 999px;
  color: var(--gold-dark, #b98800);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.45px;
  margin-bottom: 12px;
  padding: 7px 12px;
  text-transform: uppercase;
}

.snapshot-feature h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  line-height: 1.16;
  margin-bottom: 0;
}

.facility-mosaic {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.16fr 0.92fr 0.92fr;
}

.facility-tile {
  border: 1px solid rgba(6, 43, 85, 0.08);
  border-radius: 30px;
  box-shadow: 0 20px 52px rgba(6, 43, 85, 0.09);
  min-height: 360px;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.facility-tile:hover {
  box-shadow: 0 28px 70px rgba(6, 43, 85, 0.15);
  transform: translateY(-5px);
}

.facility-tile-lab {
  grid-row: span 2;
  min-height: 738px;
}

.facility-tile-soft {
  background: var(--white);
}

.facility-tile img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.62s ease;
  width: 100%;
}

.facility-tile:hover img {
  transform: scale(1.05);
}

.facility-tile:after {
  background: linear-gradient(
    180deg,
    rgba(4, 31, 61, 0.02),
    rgba(4, 31, 61, 0.84)
  );
  content: "";
  inset: 0;
  position: absolute;
}

.facility-tile div {
  bottom: 0;
  display: grid;
  left: 0;
  padding: 28px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.facility-tile h3 {
  color: var(--white);
  font-size: clamp(1.28rem, 2vw, 2rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

.facility-tile p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0;
}

.facility-tile:nth-child(2) span,
.facility-tile:nth-child(4) span {
  background: rgba(32, 201, 151, 0.16);
  color: var(--green-bright, #20c997);
}

.facility-tile:nth-child(3) span {
  background: rgba(77, 141, 255, 0.16);
  color: #9bbcff;
}

/* ============ INFRASTRUCTURE EXPERIENCE ============ */
.facility-infra {
  background:
    radial-gradient(
      circle at 12% 16%,
      rgba(255, 198, 0, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 76%,
      rgba(32, 201, 151, 0.14),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      var(--navy-dark, #041f3d) 0%,
      #062b55 54%,
      #073066 100%
    );
  color: var(--white);
  overflow: hidden;
}

.infra-grid {
  align-items: center;
  display: grid;
  gap: clamp(42px, 6vw, 88px);
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.infra-panel {
  max-width: 640px;
}

.infra-panel h2,
.infra-panel p {
  color: var(--white);
}

.infra-panel .lead {
  color: rgba(255, 255, 255, 0.78);
}

.infra-stat-row {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.infra-stat-row span {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  display: flex;
  font-weight: 850;
  gap: 12px;
  padding: 12px 16px;
}

.infra-stat-row strong {
  align-items: center;
  background: var(--gold, #ffc600);
  border-radius: 999px;
  color: var(--navy-dark, #041f3d);
  display: inline-flex;
  font-family: "Fraunces", Georgia, serif;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.infra-visual-stage {
  min-height: 620px;
  position: relative;
}

.infra-main-photo,
.infra-side-photo {
  margin: 0;
  overflow: hidden;
  position: absolute;
}

.infra-main-photo {
  border-radius: 42px;
  box-shadow: 0 34px 78px rgba(0, 0, 0, 0.28);
  inset: 42px 126px 42px 0;
}

.infra-main-photo img,
.infra-side-photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  width: 100%;
}

.infra-main-photo:hover img,
.infra-side-photo:hover img {
  transform: scale(1.06);
}

.infra-main-photo:after,
.infra-side-photo:after {
  background: linear-gradient(
    180deg,
    rgba(4, 31, 61, 0.04),
    rgba(4, 31, 61, 0.82)
  );
  content: "";
  inset: 0;
  position: absolute;
}

.infra-main-photo figcaption {
  bottom: 30px;
  display: grid;
  gap: 10px;
  left: 30px;
  max-width: 470px;
  position: absolute;
  right: 30px;
  z-index: 2;
}

.infra-main-photo small,
.infra-side-photo figcaption {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--gold, #ffc600);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 950;
  justify-self: flex-start;
  letter-spacing: 0.5px;
  padding: 8px 13px;
  text-transform: uppercase;
}

.infra-main-photo strong {
  color: var(--white);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  line-height: 1.08;
}

.infra-side-photo {
  border: 8px solid var(--white);
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
  right: 0;
  width: min(250px, 38%);
  z-index: 3;
}

.infra-side-photo figcaption {
  bottom: 16px;
  color: var(--white);
  left: 16px;
  position: absolute;
  z-index: 2;
}

.infra-side-top {
  height: 220px;
  top: 0;
}

.infra-side-bottom {
  bottom: 0;
  height: 250px;
}

/* ============ FACILITY SYSTEM ============ */
.facility-system {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 198, 0, 0.13), transparent 30%),
    radial-gradient(
      circle at 92% 78%,
      rgba(77, 141, 255, 0.12),
      transparent 28%
    ),
    linear-gradient(180deg, #f8fbff 0%, var(--white) 100%);
}

.system-heading,
.life-heading {
  display: grid;
  justify-items: center;
  margin: 0 auto clamp(34px, 4vw, 54px);
  max-width: 920px;
  text-align: center;
}

.system-heading .lead,
.life-heading .lead {
  max-width: 720px;
}

.system-board {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-card {
  background: var(--white);
  border: 1px solid rgba(6, 43, 85, 0.08);
  border-radius: 30px;
  box-shadow: 0 20px 52px rgba(6, 43, 85, 0.08);
  display: grid;
  gap: 20px;
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 210px;
  padding: 28px;
  position: relative;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.system-card:hover {
  box-shadow: 0 28px 68px rgba(6, 43, 85, 0.13);
  transform: translateY(-5px);
}

.system-card-wide {
  grid-column: span 2;
}

.system-card span {
  align-items: center;
  background: rgba(255, 198, 0, 0.18);
  border: 1px solid rgba(255, 198, 0, 0.28);
  border-radius: 20px;
  color: var(--gold-dark, #b98800);
  display: inline-flex;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 950;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.system-card h3 {
  font-size: clamp(1.22rem, 1.7vw, 1.48rem);
  line-height: 1.18;
  margin-bottom: 10px;
}

.system-card p {
  font-size: 0.96rem;
  font-weight: 650;
  margin-bottom: 0;
}

.system-card-green span {
  background: rgba(32, 201, 151, 0.16);
  border-color: rgba(32, 201, 151, 0.28);
  color: var(--green-dark, #0a7f60);
}

.system-card-dark {
  background: linear-gradient(145deg, var(--navy-dark, #041f3d), #062b55);
}

.system-card-dark h3,
.system-card-dark p {
  color: var(--white);
}

.system-card-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.system-card-dark span {
  background: var(--blue, #4d8dff);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* ============ DAILY CAMPUS LIFE ============ */
.facility-life {
  background:
    radial-gradient(
      circle at 12% 16%,
      rgba(255, 198, 0, 0.12),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #071d36 0%,
      var(--navy-dark, #041f3d) 58%,
      #062b55 100%
    );
  color: var(--white);
}

.life-heading h2,
.life-heading p {
  color: var(--white);
}

.life-heading .lead {
  color: rgba(255, 255, 255, 0.76);
}

.life-gallery {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.24fr 0.88fr 0.88fr;
}

.life-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  min-height: 440px;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.life-card:hover {
  box-shadow: 0 34px 82px rgba(0, 0, 0, 0.34);
  transform: translateY(-5px);
}

.life-card-large {
  min-height: 520px;
}

.life-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.62s ease;
  width: 100%;
}

.life-card:hover img {
  transform: scale(1.05);
}

.life-card:after {
  background: linear-gradient(
    180deg,
    rgba(4, 31, 61, 0.02),
    rgba(4, 31, 61, 0.88)
  );
  content: "";
  inset: 0;
  position: absolute;
}

.life-card div {
  bottom: 0;
  display: grid;
  gap: 10px;
  left: 0;
  padding: 28px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.life-card h3 {
  color: var(--white);
  font-size: clamp(1.28rem, 2vw, 2rem);
  line-height: 1.1;
  margin-bottom: 0;
}

.life-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0;
}

.life-card:nth-child(2) span {
  background: rgba(32, 201, 151, 0.18);
  color: var(--green-bright, #20c997);
}

.life-card:nth-child(3) span {
  background: rgba(77, 141, 255, 0.18);
  color: #9bbcff;
}

/* ============ CTA ============ */
.facilities-enquiry-section {
  background: var(--white);
}

.facilities-enquiry-card {
  align-items: center;
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(255, 198, 0, 0.18),
      transparent 30%
    ),
    linear-gradient(140deg, var(--navy-dark, #041f3d), var(--navy, #062b55));
  border-radius: 34px;
  box-shadow: 0 28px 64px rgba(4, 31, 61, 0.28);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: clamp(32px, 5vw, 58px);
  position: relative;
}

.facilities-enquiry-card:before {
  background: linear-gradient(
    90deg,
    var(--gold, #ffc600),
    var(--green-bright, #20c997),
    var(--blue, #4d8dff)
  );
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.facilities-enquiry-card h2,
.facilities-enquiry-card p {
  color: var(--white);
}

.facilities-enquiry-card h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.85rem);
  max-width: 760px;
}

.facilities-enquiry-card p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
  max-width: 640px;
}

.facilities-enquiry-button {
  align-items: center;
  background: linear-gradient(
    180deg,
    var(--gold, #ffc600),
    var(--gold-dark, #b98800)
  );
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(242, 184, 0, 0.32);
  color: var(--navy-dark, #041f3d);
  display: inline-flex;
  font-size: 1.04rem;
  font-weight: 950;
  justify-content: center;
  min-width: 190px;
  padding: 15px 24px;
  text-decoration: none;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.facilities-enquiry-button:hover {
  box-shadow: 0 18px 36px rgba(242, 184, 0, 0.42);
  transform: translateY(-2px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .snapshot-layout,
  .infra-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-feature {
    max-width: 760px;
  }

  .facility-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .facility-tile-lab {
    grid-column: 1 / -1;
    min-height: 520px;
  }

  .infra-panel {
    max-width: 820px;
  }

  .infra-visual-stage {
    margin: 0 auto;
    max-width: 860px;
    width: 100%;
  }

  .system-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .life-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .life-card-large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .facilities-hero-shell {
    justify-content: center;
    text-align: center;
  }

  .facilities-hero-copy {
    margin: 0 auto;
    max-width: 820px;
  }

  .facilities-hero .facilities-kicker,
  .facilities-hero-tags {
    justify-content: center;
  }

  .facilities-hero .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .system-heading,
  .life-heading {
    justify-items: start;
    text-align: left;
  }

  .system-card-wide {
    grid-column: auto;
  }

  .facilities-enquiry-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .facilities-page .section {
    padding-bottom: 72px;
    padding-top: 72px;
  }

  .facilities-hero {
    min-height: 560px;
  }

  .facilities-hero-copy {
    padding-top: 86px;
  }

  .facilities-hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.7rem);
  }

  .facilities-hero-tags li {
    width: 100%;
    justify-content: center;
  }

  .snapshot-feature,
  .facility-mosaic,
  .system-board,
  .life-gallery {
    grid-template-columns: 1fr;
  }

  .snapshot-feature {
    align-items: start;
  }

  .snapshot-feature figure {
    height: 260px;
  }

  .facility-tile,
  .facility-tile-lab,
  .life-card,
  .life-card-large {
    min-height: 340px;
  }

  .infra-visual-stage {
    min-height: 680px;
  }

  .infra-main-photo {
    inset: 0 0 150px;
  }

  .infra-side-photo {
    bottom: 0;
    top: auto;
    width: calc(50% - 8px);
  }

  .infra-side-top {
    height: 140px;
    left: 0;
    right: auto;
  }

  .infra-side-bottom {
    height: 140px;
  }

  .system-card {
    grid-template-columns: 1fr;
  }

  .facilities-enquiry-button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .snapshot-feature,
  .system-card,
  .facilities-enquiry-card {
    padding: 22px;
  }

  .facility-tile div,
  .life-card div {
    padding: 22px;
  }

  .snapshot-feature figure,
  .facility-tile,
  .facility-tile-lab,
  .life-card,
  .life-card-large {
    min-height: 300px;
  }
}

/* ============ SAFE MOVEMENT & TRANSPORT ============ */
.facility-movement {
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 198, 0, 0.14), transparent 30%),
    radial-gradient(
      circle at 90% 86%,
      rgba(32, 201, 151, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, var(--white) 0%, #f8fbff 100%);
  overflow: hidden;
  position: relative;
}

.facility-movement:before {
  background: linear-gradient(180deg, rgba(6, 43, 85, 0.07), transparent);
  border-radius: 999px;
  content: "";
  height: 210px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: min(980px, 86vw);
}

.movement-shell {
  align-items: center;
  display: grid;
  gap: clamp(38px, 6vw, 86px);
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  position: relative;
  z-index: 1;
}

.movement-copy {
  max-width: 640px;
}

.movement-copy h2 {
  max-width: 650px;
}

.movement-copy .lead {
  max-width: 610px;
}

.movement-board {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  grid-template-rows: repeat(2, minmax(230px, 1fr));
  min-height: 520px;
}

.movement-card {
  border: 1px solid rgba(6, 43, 85, 0.08);
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(6, 43, 85, 0.12);
  overflow: hidden;
  position: relative;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.movement-card:hover {
  box-shadow: 0 30px 76px rgba(6, 43, 85, 0.18);
  transform: translateY(-5px);
}

.movement-card-main {
  grid-row: 1 / -1;
}

.movement-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.62s ease;
  width: 100%;
}

.movement-card:hover img {
  transform: scale(1.05);
}

.movement-card:after {
  background: linear-gradient(
    180deg,
    rgba(4, 31, 61, 0.02),
    rgba(4, 31, 61, 0.86)
  );
  content: "";
  inset: 0;
  position: absolute;
}

.movement-card div {
  bottom: 0;
  display: grid;
  gap: 9px;
  left: 0;
  padding: 28px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.movement-card span,
.wellness-feature span,
.wellness-strip-card span {
  align-items: center;
  background: rgba(255, 198, 0, 0.18);
  border: 1px solid rgba(255, 198, 0, 0.24);
  border-radius: 999px;
  color: var(--gold, #ffc600);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 950;
  justify-self: flex-start;
  letter-spacing: 0.5px;
  padding: 8px 13px;
  text-transform: uppercase;
}

.movement-card h3 {
  color: var(--white);
  font-size: clamp(1.22rem, 2vw, 2rem);
  line-height: 1.1;
  margin-bottom: 0;
}

.movement-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0;
}

.movement-card-small h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.44rem);
}

/* ============ ACTIVITY & WELLNESS SPACES ============ */
.facility-wellness {
  background:
    radial-gradient(
      circle at 14% 16%,
      rgba(255, 198, 0, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 82%,
      rgba(32, 201, 151, 0.16),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      #071d36 0%,
      var(--navy-dark, #041f3d) 58%,
      #062b55 100%
    );
  color: var(--white);
  overflow: hidden;
}

.wellness-heading {
  display: grid;
  justify-items: center;
  margin: 0 auto clamp(34px, 4vw, 54px);
  max-width: 920px;
  text-align: center;
}

.wellness-heading h2,
.wellness-heading p {
  color: var(--white);
}

.wellness-heading .lead {
  color: rgba(255, 255, 255, 0.76);
  max-width: 760px;
}

.wellness-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.88fr) minmax(0, 0.88fr);
  grid-template-rows: repeat(2, 270px);
}

.wellness-feature,
.wellness-strip-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  position: relative;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.wellness-feature:hover,
.wellness-strip-card:hover {
  box-shadow: 0 34px 82px rgba(0, 0, 0, 0.34);
  transform: translateY(-5px);
}

.wellness-feature {
  grid-row: 1 / -1;
}

.wellness-feature figure {
  inset: 0;
  margin: 0;
  overflow: hidden;
  position: absolute;
}

.wellness-feature img,
.wellness-strip-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.62s ease;
  width: 100%;
}

.wellness-feature:hover img,
.wellness-strip-card:hover img {
  transform: scale(1.05);
}

.wellness-feature:after,
.wellness-strip-card:after {
  background: linear-gradient(
    180deg,
    rgba(4, 31, 61, 0.02),
    rgba(4, 31, 61, 0.9)
  );
  content: "";
  inset: 0;
  position: absolute;
}

.wellness-feature div,
.wellness-strip-card div {
  bottom: 0;
  display: grid;
  gap: 10px;
  left: 0;
  padding: 28px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.wellness-feature h3,
.wellness-strip-card h3 {
  color: var(--white);
  font-size: clamp(1.22rem, 2vw, 2.05rem);
  line-height: 1.1;
  margin-bottom: 0;
}

.wellness-feature p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 0;
  max-width: 560px;
}

.wellness-strip-card:nth-child(3) span {
  background: rgba(32, 201, 151, 0.18);
  border-color: rgba(32, 201, 151, 0.24);
  color: var(--green-bright, #20c997);
}

.wellness-award-card span {
  background: rgba(77, 141, 255, 0.18);
  border-color: rgba(77, 141, 255, 0.24);
  color: #9bbcff;
}

/* ============ EXTRA SECTIONS RESPONSIVE ============ */
@media (max-width: 1180px) {
  .movement-shell {
    grid-template-columns: 1fr;
  }

  .movement-copy {
    max-width: 820px;
  }

  .wellness-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wellness-feature {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 480px;
  }
}

@media (max-width: 900px) {
  .wellness-heading {
    justify-items: start;
    text-align: left;
  }

  .movement-board {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .movement-card-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 430px;
  }

  .movement-card-small {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .movement-board,
  .wellness-grid {
    grid-template-columns: 1fr;
  }

  .movement-card-main,
  .movement-card-small,
  .wellness-feature,
  .wellness-strip-card {
    min-height: 340px;
  }

  .wellness-grid {
    grid-template-rows: auto;
  }
}

@media (max-width: 460px) {
  .movement-card div,
  .wellness-feature div,
  .wellness-strip-card div {
    padding: 22px;
  }

  .movement-card-main,
  .movement-card-small,
  .wellness-feature,
  .wellness-strip-card {
    min-height: 300px;
  }
}

/* ============ CLIENT FIX: FILL EMPTY GRID SPACES WITHOUT CHANGING UI COLORS ============
   Keeps the original light/dark section backgrounds and only fixes the grid alignment.
   - Snapshot: bottom activity image fills the empty third-column space.
   - Facility System: last card fills the final row so no blank card gap remains.
   - Activity & Wellness: achievement card fills the empty bottom-right space.
   ===================================================================== */
.facility-mosaic,
.system-board,
.wellness-grid {
  grid-auto-flow: dense;
}

@media (min-width: 1181px) {
  .facility-mosaic .facility-tile:nth-child(4) {
    grid-column: span 2;
  }

  .system-board .system-card:nth-child(6) {
    grid-column: 1 / -1;
  }

  .wellness-award-card {
    grid-column: span 2;
  }
}

@media (max-width: 1180px) and (min-width: 721px) {
  .facility-mosaic .facility-tile:nth-child(4),
  .system-board .system-card:nth-child(6),
  .wellness-award-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .facility-mosaic .facility-tile:nth-child(4),
  .system-board .system-card:nth-child(6),
  .wellness-award-card {
    grid-column: auto;
  }
}
