/* =====================================================================
   GOMBE STATE MINISTRY OF EDUCATION — HOME PAGE
   Page-specific styles. Relies on the gs tokens defined in styles.css.
   ===================================================================== */

:root {
  --home-radius: 18px;
  --home-radius-sm: 12px;
  --home-shadow: 0 18px 40px -24px rgba(16, 18, 12, 0.35);
  --home-shadow-sm: 0 8px 22px -16px rgba(16, 18, 12, 0.4);
  --home-deep: #143519;
  --home-section-space: clamp(4rem, 8vw, 6.5rem);
}

:root[data-theme="dark"] {
  --home-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  --home-shadow-sm: 0 8px 22px -16px rgba(0, 0, 0, 0.8);
  --home-deep: #0e2412;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --home-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
    --home-shadow-sm: 0 8px 22px -16px rgba(0, 0, 0, 0.8);
    --home-deep: #0e2412;
  }
}

main img {
  max-width: 100%;
}

/* ---------------------------------------------------------------------
   SHARED PIECES
   --------------------------------------------------------------------- */

.home-section {
  padding-block: var(--home-section-space);
}

.home-section--tint {
  background: var(--gs-primary-tint);
}

.home-section--primary {
  background:
    radial-gradient(circle at 85% 10%, rgba(248, 200, 0, 0.18), transparent 45%),
    var(--home-deep);
  color: #ffffff;
}

.home-section__head {
  max-width: 46rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.home-section__head p:last-child {
  margin-bottom: 0;
  color: var(--gs-text-muted);
}

.home-section__head--light p:last-child {
  color: rgba(255, 255, 255, 0.8);
}

.home-section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: none;
  text-align: left;
}

.home-section__title-light {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #ffffff;
}

.home-section .gs-heading-2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  font-family: var(--gs-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gs-accent-text);
}

.home-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--gs-secondary);
}

.home-eyebrow--light {
  color: var(--gs-secondary);
}

.home-eyebrow--light::before {
  display: none;
}

.home-eyebrow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gs-secondary);
  box-shadow: 0 0 0 4px rgba(248, 200, 0, 0.25);
}

.home-lead {
  font-size: 1.25rem;
  color: var(--gs-text);
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--gs-primary-text);
  text-decoration: none;
}

.home-link .bi {
  transition: transform 0.2s ease;
}

.home-link:hover .bi,
a:hover > .home-link .bi,
a:hover .home-link .bi {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------------
   HERO
   Theme-aware: every colour comes from gs tokens, so the hero follows
   light and dark mode. The navbar overlays it (data-gs-nav="overlay").
   --------------------------------------------------------------------- */

.home-hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--gs-header-height, 84px);
  background: var(--gs-page-bg);
  color: var(--gs-text);
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.9;
}

.home-hero__blob--green {
  top: -18%;
  right: -10%;
  width: 60vw;
  max-width: 820px;
  aspect-ratio: 1;
  background: var(--gs-primary-tint);
}

.home-hero__blob--gold {
  bottom: -25%;
  left: -12%;
  width: 45vw;
  max-width: 620px;
  aspect-ratio: 1;
  background: var(--gs-secondary-tint);
  opacity: 0.75;
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--gs-border) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  opacity: 0.8;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 7.5rem;
}

.home-hero__content {
  max-width: 40rem;
}

.home-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  padding: 0.45rem 1rem 0.45rem 0.75rem;
  border: 1px solid var(--gs-border);
  border-radius: 999px;
  font-family: var(--gs-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gs-primary-text);
  background: var(--gs-surface);
  box-shadow: var(--home-shadow-sm);
}

.home-hero__pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gs-secondary);
  box-shadow: 0 0 0 4px var(--gs-secondary-tint);
  animation: home-pulse 2.4s ease-in-out infinite;
}

.home-hero__title {
  margin-bottom: 1.35rem;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--gs-heading-4);
}

.home-hero__highlight {
  position: relative;
  display: inline;
  color: var(--gs-primary-text);
  background-image: linear-gradient(transparent 68%, var(--gs-secondary-tint) 68%, var(--gs-secondary-tint) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.home-hero__lead {
  max-width: 35rem;
  margin-bottom: 2rem;
  font-size: clamp(1.1rem, 1.5vw, 1.28rem);
  color: var(--gs-text-muted);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.home-hero__actions .gs-button {
  padding: 0.9rem 1.55rem;
}

.home-hero__actions .gs-button--primary {
  box-shadow: 0 12px 24px -12px var(--gs-primary);
}

.home-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  color: var(--gs-text-muted);
}

.home-hero__tags .bi {
  margin-right: 0.3rem;
  color: var(--gs-primary-text);
}

/* Visual composition */

.home-hero__visual {
  position: relative;
  padding: 0 0 14% 10%;
}

.home-hero__frame {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--gs-surface);
}

.home-hero__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__frame--main {
  aspect-ratio: 4 / 4.2;
  border-radius: 200px 28px 28px 28px;
  box-shadow: var(--home-shadow);
}

.home-hero__frame--main img {
  object-position: 40% center;
}

.home-hero__frame--inset {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42%;
  aspect-ratio: 1;
  border: 6px solid var(--gs-page-bg);
  border-radius: 24px;
  box-shadow: var(--home-shadow);
}

.home-hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem 0.8rem 0.8rem;
  border: 1px solid var(--gs-glass-border, var(--gs-border));
  border-radius: 16px;
  background: var(--gs-glass-bg, var(--gs-surface));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--home-shadow);
  animation: home-float 6s ease-in-out infinite;
}

.home-hero__float strong {
  display: block;
  font-family: var(--gs-font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gs-heading-4);
}

.home-hero__float small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--gs-text-muted);
}

.home-hero__float--top {
  top: 12%;
  left: 0;
}

.home-hero__float--bottom {
  right: -2%;
  bottom: 6%;
  animation-delay: -3s;
}

.home-hero__float-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.2rem;
  color: var(--gs-on-primary);
  background: var(--gs-primary);
}

.home-hero__float-icon--gold {
  color: var(--gs-on-secondary);
  background: var(--gs-secondary);
}

@keyframes home-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes home-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px var(--gs-secondary-tint);
  }

  50% {
    box-shadow: 0 0 0 8px var(--gs-secondary-tint);
  }
}

/* ---------------------------------------------------------------------
   STATS
   --------------------------------------------------------------------- */

.home-stats {
  position: relative;
  z-index: 2;
  margin-top: -4.5rem;
}

.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--gs-border);
  border-radius: var(--home-radius);
  background: var(--gs-surface);
  box-shadow: var(--home-shadow);
}

.home-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  padding: 1.75rem clamp(1rem, 2vw, 1.75rem);
  border-right: 1px solid var(--gs-border);
}

.home-stat:last-child {
  border-right: 0;
}

.home-stat__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  font-size: 1.5rem;
  color: var(--gs-primary-text);
  background: var(--gs-primary-tint);
}

.home-stat:nth-child(even) .home-stat__icon {
  color: var(--gs-accent-text);
  background: var(--gs-secondary-tint);
}

.home-stat__value {
  font-family: var(--gs-font-heading);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gs-heading-1);
  font-variant-numeric: tabular-nums;
}

.home-stat__label {
  font-size: 1rem;
  color: var(--gs-text-muted);
}

/* ---------------------------------------------------------------------
   ABOUT
   --------------------------------------------------------------------- */

.home-about__media {
  position: relative;
  padding: 0 12% 18% 0;
}

.home-about__img {
  display: block;
  object-fit: cover;
  border-radius: var(--home-radius);
}

.home-about__img--main {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  box-shadow: var(--home-shadow);
}

.home-about__img--inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--gs-page-bg);
  box-shadow: var(--home-shadow);
}

.home-about__badge {
  position: absolute;
  top: 1.25rem;
  left: -0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.9rem 1.2rem;
  border-radius: var(--home-radius-sm);
  background: var(--gs-secondary);
  color: var(--gs-on-secondary);
  box-shadow: var(--home-shadow-sm);
  line-height: 1.1;
}

.home-about__badge strong {
  font-family: var(--gs-font-heading);
  font-size: 2.1rem;
  font-weight: 800;
}

.home-about__badge span {
  font-size: 0.85rem;
  font-weight: 600;
}

.home-checklist {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  list-style: none;
}

.home-checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.home-checklist .bi {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--gs-primary-text);
}

/* ---------------------------------------------------------------------
   LEADERSHIP
   --------------------------------------------------------------------- */

.home-leader {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--gs-border);
  border-radius: var(--home-radius);
  background: var(--gs-surface);
  box-shadow: var(--home-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-leader:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow);
}

.home-leader__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gs-primary-tint);
}

.home-leader__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

/* The Governor's portrait is landscape with him left of centre. */
.home-leader__photo img.leader-photo--governor,
.page-profile__photo img.leader-photo--governor {
  object-position: 12% 20%;
}

.home-leader__photo--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gs-primary-text);
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(40, 96, 48, 0.05) 14px 28px),
    var(--gs-primary-tint);
}

.home-leader__photo--placeholder .bi {
  display: grid;
  place-items: center;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  font-size: 5.5rem;
  line-height: 1;
  background: var(--gs-surface);
  border: 3px dashed var(--gs-border);
}

.home-leader__photo--placeholder span {
  font-size: 0.95rem;
  color: var(--gs-text-muted);
}

.home-leader__body {
  padding: 1.5rem 1.6rem 1.75rem;
  border-top: 4px solid var(--gs-secondary);
}

.home-leader__role {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gs-primary-text);
  background: var(--gs-primary-tint);
}

.home-leader__name {
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gs-heading-4);
}

.home-leader__body p {
  margin-bottom: 0.9rem;
  color: var(--gs-text-muted);
}

/* ---------------------------------------------------------------------
   COMMISSIONER QUOTE
   --------------------------------------------------------------------- */

.home-quote {
  padding-block: var(--home-section-space);
  background:
    linear-gradient(180deg, var(--gs-primary-tint) 0 30%, var(--gs-page-bg) 30% 100%);
}

.home-quote__card {
  overflow: hidden;
  border-radius: calc(var(--home-radius) + 6px);
  background: var(--home-deep);
  box-shadow: var(--home-shadow);
}

.home-quote__photo {
  position: relative;
  height: 100%;
  min-height: 320px;
}

.home-quote__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
}

.home-quote__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(20, 53, 25, 0.6));
}

.home-quote__body {
  position: relative;
  height: 100%;
  padding: clamp(2rem, 5vw, 4rem);
  color: #ffffff;
}

.home-quote__mark {
  display: block;
  margin: -0.5rem 0 -1.5rem -0.5rem;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--gs-secondary);
  opacity: 0.9;
}

.home-quote__text {
  margin: 0 0 2rem;
}

.home-quote__text p {
  margin: 0;
  font-family: var(--gs-font-editorial);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.4;
  color: #ffffff;
}

.home-quote__author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.home-quote__signature {
  font-family: var(--gs-font-editorial);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--gs-secondary);
}

.home-quote__role {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------------------------------------------------------------------
   STRUCTURE / DEPARTMENTS
   --------------------------------------------------------------------- */

.home-structure__counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.home-structure__counts li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--home-radius-sm);
  background: var(--gs-primary);
  color: var(--gs-on-primary);
}

.home-structure__counts li:nth-child(2) {
  background: var(--gs-secondary);
  color: var(--gs-on-secondary);
}

.home-structure__counts li:nth-child(3) {
  background: var(--gs-accent);
  color: var(--gs-on-accent);
}

.home-structure__counts strong {
  font-family: var(--gs-font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.home-structure__counts span {
  font-size: 1.1rem;
  font-weight: 600;
}

.home-card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--gs-border);
  border-radius: var(--home-radius);
  background: var(--gs-surface);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
  border-color: var(--gs-primary-text);
  transform: translateY(-3px);
  box-shadow: var(--home-shadow-sm);
}

.home-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  font-size: 1.4rem;
  color: var(--gs-on-primary);
  background: var(--gs-primary);
}

.home-card__title {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gs-heading-4);
}

.home-card p {
  margin: 0;
  color: var(--gs-text-muted);
}

/* ---------------------------------------------------------------------
   LEVELS OF EDUCATION
   --------------------------------------------------------------------- */

.home-level {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--gs-border);
  border-radius: var(--home-radius);
  background: var(--gs-surface);
  color: var(--gs-text);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-level:hover {
  color: var(--gs-text);
  transform: translateY(-4px);
  box-shadow: var(--home-shadow);
}

.home-level:focus-visible {
  outline: 3px solid var(--gs-focus-ring);
  outline-offset: 3px;
}

.home-level__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.home-level__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-level:hover .home-level__media img {
  transform: scale(1.06);
}

.home-level__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gs-on-secondary);
  background: var(--gs-secondary);
}

.home-level__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem 1.6rem 1.75rem;
}

.home-level__title {
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gs-heading-3);
}

.home-level__body p {
  flex: 1;
  color: var(--gs-text-muted);
}

/* ---------------------------------------------------------------------
   PROGRAMMES
   --------------------------------------------------------------------- */

.home-programmes__intro {
  position: sticky;
  top: 2rem;
}

.home-programmes__intro p {
  color: var(--gs-text-muted);
}

.home-programmes__img {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
}

.home-programmes__list {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: programme;
}

.home-programme {
  position: relative;
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--gs-border);
  border-left: 5px solid var(--gs-primary);
  border-radius: var(--home-radius-sm);
  background: var(--gs-surface);
  counter-increment: programme;
}

.home-programme::after {
  content: "0" counter(programme);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--gs-font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gs-border);
}

.home-programme:nth-child(even) {
  border-left-color: var(--gs-secondary);
}

.home-programme__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--gs-primary-text);
  background: var(--gs-primary-tint);
}

.home-programme__title {
  margin: 0.2rem 2.5rem 0.4rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gs-heading-4);
}

.home-programme p {
  margin: 0;
  color: var(--gs-text-muted);
}

/* ---------------------------------------------------------------------
   QUICK ACCESS
   --------------------------------------------------------------------- */

.home-access {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--home-radius);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.home-access:hover {
  color: var(--gs-on-secondary);
  background: var(--gs-secondary);
  border-color: var(--gs-secondary);
  transform: translateY(-4px);
}

.home-access:focus-visible {
  outline: 3px solid var(--gs-secondary);
  outline-offset: 3px;
}

.home-access > .bi {
  margin-bottom: 0.6rem;
  font-size: 2rem;
  color: var(--gs-secondary);
  transition: color 0.2s ease;
}

.home-access:hover > .bi {
  color: var(--gs-on-secondary);
}

.home-access__title {
  font-family: var(--gs-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.home-access__text {
  font-size: 1rem;
  opacity: 0.85;
}

/* ---------------------------------------------------------------------
   NEWS
   --------------------------------------------------------------------- */

.home-news {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--gs-border);
  border-radius: var(--home-radius);
  background: var(--gs-surface);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.home-news:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow);
}

.home-news > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-news__body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.home-news__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gs-accent-text);
}

.home-news__title {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-news__title a {
  color: var(--gs-heading-4);
  text-decoration: none;
}

/* Make the whole card clickable */
.home-news__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.home-news {
  position: relative;
}

.home-news__title a:hover {
  color: var(--gs-primary-text);
}

.home-news__body p {
  margin: 0;
  color: var(--gs-text-muted);
}

/* ---------------------------------------------------------------------
   PARTNERS & STAKEHOLDERS
   --------------------------------------------------------------------- */

.home-partners {
  border-top: 1px solid var(--gs-border);
}

.home-partners__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  padding: 1.75rem 1.25rem 1.5rem;
  border: 1px solid var(--gs-border);
  border-radius: var(--home-radius);
  background: var(--gs-surface);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-partner:hover {
  border-color: var(--gs-secondary);
  transform: translateY(-3px);
  box-shadow: var(--home-shadow-sm);
}

/* Logos sit on a white plate so they read well in light and dark mode. */
.home-partner__plate {
  display: grid;
  place-items: center;
  width: 100%;
  height: 112px;
  margin-bottom: 0.85rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--home-radius-sm);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(16, 18, 12, 0.06);
}

.home-partner__logo {
  display: block;
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(0.15);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.home-partner:hover .home-partner__logo {
  filter: none;
  transform: scale(1.05);
}

.home-partner__name {
  font-family: var(--gs-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gs-heading-4);
}

.home-partner__role {
  font-size: 0.95rem;
  color: var(--gs-text-muted);
}

.home-partners__note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
  color: var(--gs-text-muted);
}

@media (max-width: 991.98px) {
  .home-partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 399.98px) {
  .home-partners__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------- */

.home-faq {
  display: grid;
  gap: 0.75rem;
}

.home-faq__item {
  border: 1px solid var(--gs-border);
  border-radius: var(--home-radius-sm);
  background: var(--gs-surface);
}

.home-faq__item summary {
  position: relative;
  padding: 1.15rem 3.5rem 1.15rem 1.4rem;
  font-family: var(--gs-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gs-heading-4);
  cursor: pointer;
  list-style: none;
}

.home-faq__item summary::-webkit-details-marker {
  display: none;
}

.home-faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gs-on-primary);
  background: var(--gs-primary);
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.home-faq__item[open] summary::after {
  content: "\2212";
  background: var(--gs-secondary);
  color: var(--gs-on-secondary);
}

.home-faq__item summary:focus-visible {
  outline: 3px solid var(--gs-focus-ring);
  outline-offset: 2px;
  border-radius: var(--home-radius-sm);
}

.home-faq__item p {
  margin: 0;
  padding: 0 1.4rem 1.25rem;
  color: var(--gs-text-muted);
}

.home-faq__item a,
.home-cta a:not(.gs-button) {
  color: var(--gs-primary-text);
}

/* ---------------------------------------------------------------------
   CONTACT CTA
   --------------------------------------------------------------------- */

.home-cta {
  padding-block: var(--home-section-space) 2rem;
}

.home-cta__card {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: calc(var(--home-radius) + 6px);
  background:
    radial-gradient(circle at 0% 100%, rgba(248, 200, 0, 0.22), transparent 50%),
    var(--gs-primary);
  color: #ffffff;
  box-shadow: var(--home-shadow);
}

.home-cta__text h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: #ffffff;
}

.home-cta__text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.home-cta__contacts {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.05rem;
}

.home-cta__contacts li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.home-cta__contacts .bi {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--gs-secondary);
}

.home-cta .home-cta__contacts a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.home-cta .home-cta__contacts a:hover {
  color: var(--gs-secondary);
}

.home-cta__button {
  white-space: nowrap;
}

.home-credits {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--gs-text-muted);
}

.home-credits a {
  color: inherit;
}

/* ---------------------------------------------------------------------
   SCROLL REVEAL (enabled by home.js)
   --------------------------------------------------------------------- */

.home-js .home-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.home-js .home-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .home-cta__card {
    grid-template-columns: 1fr 1fr;
  }

  .home-cta__button {
    justify-self: start;
  }
}

@media (max-width: 991.98px) {
  .home-hero__inner {
    padding-bottom: 7rem;
  }

  .home-hero__content {
    max-width: none;
  }

  .home-hero__visual {
    max-width: 560px;
    margin-inline: auto;
  }

  .home-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stat:nth-child(2) {
    border-right: 0;
  }

  .home-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--gs-border);
  }

  .home-programmes__intro {
    position: static;
  }

  .home-quote__photo {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .home-quote__photo::after {
    background: linear-gradient(180deg, transparent 60%, rgba(20, 53, 25, 0.6));
  }
}

@media (max-width: 767.98px) {
  .home-cta__card {
    grid-template-columns: 1fr;
  }

  .home-structure__counts {
    grid-template-columns: 1fr;
  }

  .home-structure__counts li {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .home-hero__inner {
    padding-block: 2rem 6.5rem;
  }

  .home-hero__visual {
    padding-left: 0;
  }

  .home-hero__frame--main {
    border-radius: 120px 22px 22px 22px;
  }

  .home-hero__float {
    padding: 0.6rem 0.8rem 0.6rem 0.6rem;
  }

  .home-hero__float strong {
    font-size: 1.15rem;
  }

  .home-hero__float small {
    font-size: 0.75rem;
  }

  .home-hero__float-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .home-hero__float--top {
    left: -0.25rem;
  }

  .home-hero__float--bottom {
    right: -0.25rem;
  }

  .home-hero__actions .gs-button {
    flex: 1 1 100%;
  }

  .home-stat {
    grid-template-columns: 1fr;
    justify-items: start;
    row-gap: 0.4rem;
    padding: 1.25rem 1rem;
  }

  .home-stat__icon {
    grid-row: auto;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .home-about__badge {
    left: 0.5rem;
  }

  .home-programme {
    flex-direction: column;
    gap: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__float,
  .home-hero__pill-dot {
    animation: none;
  }

  .home-js .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-leader,
  .home-card,
  .home-level,
  .home-level__media img,
  .home-access,
  .home-news,
  .home-partner {
    transition: none;
  }
}
