/* ==========================================================================
   Agora Learning Partnership — Complete Design System & Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Nunito+Sans:wght@400;600;700&family=Reddit+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-colour: #3b4a57;
  --primary-dark: #2c3842;
  --primary-darker: #232d36;
  --secondary-colour: #ffa400;
  --secondary-hover: #e69300;
  --text-colour: #333333;
  --text-over-primary: #ffffff;
  --text-over-secondary: #3b4a57;
  --heading-colour: #000000;
  --intro-colour: #3b4a57;
  --link-colour: #3b4a57;
  --link-colour-hover: #ffa400;
  --text-colour-grey: #9DA9AD;
  --light-grey: #F5F5F5;
  --dark-grey: #4d4d4d;
  --border-colour: #a3a3a3;
  --asterix-colour: #C12626;

  /* AGORA Values Palette */
  --agora-a1: #ad2055; /* Ambition */
  --agora-g:  #4377b4; /* Generosity */
  --agora-o:  #5b811b; /* Optimism */
  --agora-r:  #7d2f8c; /* Respect */
  --agora-a2: #b65e09; /* Adventurous & Brave */

  /* Typography */
  --font-primary: 'Lato', Tahoma, Geneva, sans-serif;
  --font-secondary: 'Nunito Sans', Tahoma, Geneva, sans-serif;
  --font-heading: 'Reddit Sans', Geneva, sans-serif;
  --body-font-size: 17px;

  /* Spacing & Radii */
  --home-margin: 100px;
  --block-link-radius: 12px;
  --th-border-radius: 15px;
  --block-link-shadow: 0px 0px 10px rgba(0, 0, 0, 0.12);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
}

/* High Visibility Override (?highvis or .high-vis) */
body.high-vis {
  --primary-colour: #000000;
  --primary-dark: #111111;
  --secondary-colour: #ffff00;
  --text-colour: #000000;
  --heading-colour: #000000;
  --light-grey: #ffffff;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: var(--body-font-size);
  line-height: 1.65;
  color: var(--text-colour);
  background-color: #ffffff;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

a {
  color: var(--link-colour);
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

a:hover {
  color: var(--link-colour-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--heading-colour);
}

h1 { font-size: clamp(2rem, 1.375rem + 1.5vw, 2.65rem); }
h2 { font-size: clamp(1.6rem, 1.325rem + 0.9vw, 2.05rem); }
h3 { font-size: clamp(1.35rem, 1.3rem + 0.6vw, 1.75rem); }
h4 { font-size: clamp(1.15rem, 1.275rem + 0.3vw, 1.45rem); }

p {
  margin-bottom: 1.15rem;
}

.intro-text {
  font-family: var(--font-primary);
  font-size: 22px;
  line-height: 30px;
  font-weight: 400;
  color: var(--intro-colour);
  margin-bottom: 1.5rem;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 1060px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 28px;
  border-radius: 50px;
  border: 1.5px solid var(--primary-colour);
  color: var(--primary-colour);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-colour);
  color: #ffffff;
}

.button--amber-outline {
  border-color: var(--secondary-colour);
  color: var(--primary-colour);
}

.button--amber-outline:hover {
  background: var(--secondary-colour);
  border-color: var(--secondary-colour);
  color: var(--primary-colour);
}

.button--white-outline {
  border-color: #ffffff;
  color: #ffffff;
}

.button--white-outline:hover {
  background: #ffffff;
  color: var(--primary-colour);
}

.button--dark-on-amber {
  border-color: var(--primary-colour);
  color: var(--primary-colour);
  background: transparent;
}

.button--dark-on-amber:hover {
  background: var(--primary-colour);
  color: #ffffff;
}

/* ==========================================================================
   Site Header & Utility Bar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header--solid,
.site-header.is-scrolled {
  background-color: var(--primary-colour);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  padding: 14px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  text-decoration: none;
}

.site-logo svg {
  height: 64px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-logo:hover svg {
  transform: scale(1.02);
}

.header__links {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* Pill & Circular Utility Buttons */
.util-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #ffffff;
  border-radius: 50px;
  padding: 0 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.util-btn--circle {
  width: 42px;
  padding: 0;
  border-radius: 50%;
}

.util-btn:hover,
.util-btn.is-active {
  background: #ffffff;
  color: var(--primary-colour);
  border-color: #ffffff;
}

.util-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
}

.util-btn--x svg {
  fill: currentColor;
  stroke: none;
  width: 15px;
  height: 15px;
}

/* Hamburger button */
.nav-toggle-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
}

.nav-toggle-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.nav-toggle-btn:hover span {
  background-color: var(--secondary-colour);
}

/* Popover Dropdowns (Quick Links & Translate) */
.header-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 95px;
  width: 270px;
  background-color: var(--primary-colour);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.22s ease;
  z-index: 1010;
}

.header-popover--translate {
  right: 175px;
  width: 230px;
}

.header-popover.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-popover::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 38px;
  width: 14px;
  height: 14px;
  background: var(--primary-colour);
  transform: rotate(45deg);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.popover-pill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popover-pill-list a,
.popover-pill-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.popover-pill-list a:hover,
.popover-pill-list button:hover,
.popover-pill-list button.is-selected {
  background: #ffffff;
  color: var(--primary-colour);
}

/* ==========================================================================
   Slide-in Navigation Drawer
   ========================================================================== */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 25, 31, 0.65);
  backdrop-filter: blur(2px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: var(--primary-colour);
  color: #ffffff;
  z-index: 1110;
  padding: 32px 30px 60px 32px;
  overflow-y: auto;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-drawer__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.nav-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-drawer__close:hover {
  background: #ffffff;
  color: var(--primary-colour);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-menu__item {
  border-radius: var(--block-link-radius);
  overflow: hidden;
}

.nav-menu__row {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--block-link-radius);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu__item.is-expanded .nav-menu__row,
.nav-menu__row:hover {
  background: #ffffff;
}

.nav-menu__link {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.nav-menu__item.is-expanded .nav-menu__link,
.nav-menu__row:hover .nav-menu__link {
  color: var(--primary-colour);
}

.nav-menu__expand {
  width: 46px;
  height: 48px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-menu__item.is-expanded .nav-menu__expand,
.nav-menu__row:hover .nav-menu__expand {
  color: var(--primary-colour);
}

.nav-submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 12px;
}

.nav-menu__item.is-expanded .nav-submenu {
  max-height: 400px;
  padding: 10px 12px 6px;
}

.nav-submenu li {
  margin-bottom: 6px;
}

.nav-submenu a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-submenu a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--secondary-colour);
}

/* ==========================================================================
   Site Search Modal
   ========================================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 45, 54, 0.96);
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 24px 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s ease;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay__box {
  width: 100%;
  max-width: 720px;
  color: #ffffff;
}

.search-overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.search-overlay__header h2 {
  color: #ffffff;
  margin: 0;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 24px;
}

.search-input {
  width: 100%;
  padding: 18px 56px 18px 24px;
  font-size: 18px;
  font-family: var(--font-primary);
  border-radius: 50px;
  border: 2px solid var(--secondary-colour);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 55vh;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #ffffff;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: rgba(255, 164, 0, 0.22);
  color: #ffffff;
}

.search-result-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--secondary-colour);
  margin-bottom: 4px;
}

.search-result-item span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   Homepage Section 1: Hero Carousel (.home-section--home-header)
   ========================================================================== */
.home-header {
  position: relative;
  height: calc(100vh - 15px);
  min-height: 740px;
  background-color: var(--primary-colour);
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  overflow: hidden;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 14s linear;
}

.hero-slide.is-active .hero-slide__img {
  transform: scale(1.22);
}

.home-header__gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.home-header__gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(37, 167, 175, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.home-header__text-contain {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 105px;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
}

.home-header__headline {
  max-width: 860px;
  margin: 0 auto 22px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3.35rem);
  font-weight: 500;
  line-height: 1.18;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-dots {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot.is-active {
  background: var(--secondary-colour);
  transform: scale(1.25);
}

.scroll-down-btn {
  position: absolute;
  right: 38px;
  bottom: 42px;
  z-index: 4;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(59, 74, 87, 0.35);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.scroll-down-btn:hover {
  background: var(--secondary-colour);
  border-color: var(--secondary-colour);
  color: var(--primary-colour);
  transform: translateY(3px);
}

/* ==========================================================================
   Homepage Section 2: Welcome Intro (.home-section--home-intro)
   ========================================================================== */
.home-intro {
  position: relative;
  padding: var(--home-margin) 0 60px;
  overflow: hidden;
}

.watermark-bg {
  position: absolute;
  width: 680px;
  height: 680px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.watermark-bg--left {
  top: -80px;
  left: -220px;
}

.watermark-bg--right {
  bottom: -140px;
  right: -200px;
}

.home-intro__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.home-intro__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--primary-colour);
  margin-bottom: 6px;
}

.home-intro__heading {
  font-size: clamp(2.1rem, 1.5rem + 1.5vw, 2.75rem);
  color: #000000;
  margin-bottom: 24px;
}

.home-intro__image-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.home-intro__image-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.home-intro__image-wrap:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   Homepage Section 3: Trust Values Carousel — "Children at the heart"
   ========================================================================== */
.home-values {
  position: relative;
  padding: 50px 0 110px;
  text-align: center;
}

.home-values__header {
  margin-bottom: 44px;
}

.home-values__header h1 {
  color: #000000;
  margin-bottom: 4px;
}

.home-values__header h2 {
  color: var(--primary-colour);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.75rem);
}

.agora-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin-bottom: 44px;
}

.agora-card {
  position: relative;
  height: 440px;
  border-radius: var(--th-border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: #ffffff;
  background: var(--primary-colour);
}

.agora-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 75%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.agora-card:hover .agora-card__img {
  transform: scale(1.08);
}

.agora-card__circle {
  position: absolute;
  left: 50%;
  bottom: -115px;
  transform: translateX(-50%);
  width: 315px;
  height: 315px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 38px;
  transition: all 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.agora-card--a1 .agora-card__circle { background-color: var(--agora-a1); }
.agora-card--g  .agora-card__circle { background-color: var(--agora-g); }
.agora-card--o  .agora-card__circle { background-color: var(--agora-o); }
.agora-card--r  .agora-card__circle { background-color: var(--agora-r); }
.agora-card--a2 .agora-card__circle { background-color: var(--agora-a2); }

.agora-card:hover .agora-card__circle {
  width: 620px;
  height: 620px;
  bottom: -90px;
  padding-top: 130px;
}

.agora-card__letter {
  font-family: var(--font-heading);
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 8px;
}

.agora-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.agora-card__desc {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  max-width: 195px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.agora-card:hover .agora-card__desc {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Homepage Section 4: Our Schools Map Banner (.home-section--our_academies)
   ========================================================================== */
.home-schools {
  position: relative;
  background-color: var(--primary-colour);
  color: #ffffff;
  padding: 90px 0 110px;
  overflow: hidden;
}

.home-schools__curve-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}

.home-schools__curve-top svg {
  width: 100%;
  height: 48px;
  display: block;
}

.home-schools__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}

.home-schools__card {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 44px 38px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.home-schools__card h1 {
  color: #ffffff;
  margin-bottom: 12px;
}

.home-schools__card h2 {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 28px;
}

/* Interactive SVG Map Widget */
.academies-map-box {
  position: relative;
  background: #2d3a45;
  border-radius: 18px;
  height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.academies-map-svg {
  width: 100%;
  height: 100%;
}

.map-pin {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.map-pin:hover circle.pin-dot {
  r: 10;
  fill: #ffffff;
}

.map-tooltip {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(35, 45, 54, 0.95);
  border-left: 4px solid var(--secondary-colour);
  padding: 14px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
}

.map-tooltip strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--secondary-colour);
}

.map-tooltip span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Homepage Section 5 & 6: Togetherness in Action (News & X Feed on #ffa400)
   ========================================================================== */
.home-togetherness {
  position: relative;
  background-color: var(--secondary-colour);
  color: var(--primary-colour);
  padding: 90px 0 100px;
  overflow: hidden;
}

.home-togetherness__curve-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.home-togetherness__curve-top svg {
  width: 100%;
  height: 42px;
  display: block;
}

.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.section-header-bar__title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-header-bar h1 {
  color: var(--primary-colour);
  margin: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--primary-colour);
  background: transparent;
  color: var(--primary-colour);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--primary-colour);
  color: #ffffff;
}

.cards-track-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin-bottom: 44px;
  padding-bottom: 8px;
}

.cards-track-wrapper::-webkit-scrollbar {
  display: none;
}

.cards-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(33.333% - 16px);
  gap: 24px;
}

.news-card {
  background: #ffffff;
  border-radius: var(--block-link-radius);
  padding: 28px 26px;
  box-shadow: var(--block-link-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.news-card__meta {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--agora-a1);
  margin-bottom: 10px;
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--primary-colour);
  line-height: 1.35;
  margin-bottom: 18px;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary-colour);
}

.news-card:hover .news-card__link {
  color: var(--agora-a1);
}

/* X / Social Posts Track */
.tweet-card {
  background: var(--primary-colour);
  color: #ffffff;
  border-radius: var(--block-link-radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  box-shadow: var(--block-link-shadow);
  transition: transform 0.25s ease;
}

.tweet-card:hover {
  transform: translateY(-4px);
}

.tweet-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.tweet-card__handle {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--secondary-colour);
}

.tweet-card__text {
  font-size: 15px;
  line-height: 1.55;
  color: #ffffff;
  margin-bottom: 18px;
}

.tweet-card__link {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--secondary-colour);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.togetherness-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

/* ==========================================================================
   Inner Pages Layout (Light & Dark Themes)
   ========================================================================== */
.page-hero-banner {
  position: relative;
  height: 380px;
  background-color: var(--primary-colour);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.page-hero-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.page-hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 45, 54, 0.75) 0%, rgba(59, 74, 87, 0.88) 100%);
}

.page-hero-banner__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 42px;
  color: #ffffff;
}

.breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumbs a {
  color: var(--secondary-colour);
}

.page-hero-banner__title {
  color: #ffffff;
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem);
  margin: 0;
}

.page-main {
  position: relative;
  padding: 64px 0 100px;
  overflow: hidden;
}

.page-main--dark {
  background-color: var(--primary-colour);
  color: #ffffff;
  padding-top: 130px;
}

.page-main--dark h1,
.page-main--dark h2,
.page-main--dark h3,
.page-main--dark h4 {
  color: #ffffff;
}

.page-layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.in-this-section {
  background: var(--light-grey);
  border-radius: 14px;
  padding: 28px 24px;
  border-top: 4px solid var(--secondary-colour);
  position: sticky;
  top: 100px;
}

.in-this-section h3 {
  font-size: 19px;
  color: var(--primary-colour);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-nav-list a,
.section-nav-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-colour);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.section-nav-list a:hover,
.section-nav-list a.is-active,
.section-nav-list button:hover,
.section-nav-list button.is-active {
  background: var(--primary-colour);
  color: #ffffff;
}

/* Heading with amber underline accent */
.amber-underline {
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.amber-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3.5px;
  background-color: var(--secondary-colour);
  border-radius: 2px;
}

/* Data Tables (Ofsted, Governance, Newsletters, Aims) */
.agora-table-wrap {
  overflow-x: auto;
  margin: 24px 0 36px;
  border-radius: 12px;
  box-shadow: var(--block-link-shadow);
}

.agora-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  color: var(--text-colour);
  text-align: left;
}

.agora-table th {
  background-color: var(--primary-colour);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 15px 18px;
  font-size: 15px;
}

.agora-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e6e9ec;
  font-size: 15.5px;
}

.agora-table tr:last-child td {
  border-bottom: none;
}

.agora-table tr:hover td {
  background-color: rgba(255, 164, 0, 0.06);
}

/* Dark Grid Cards (Schools, Team, News) */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--secondary-colour);
  background: transparent;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.is-active {
  background: var(--secondary-colour);
  color: var(--primary-colour);
  font-weight: 600;
}

.schools-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.school-card,
.team-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.school-card:hover,
.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-colour);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.school-card__media,
.team-card__media {
  position: relative;
  height: 210px;
  background: #2b3742;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.school-card__media img,
.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--secondary-colour);
  color: var(--primary-colour);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.school-card__body,
.team-card__body {
  padding: 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.school-card__title,
.team-card__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.team-card__role {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--secondary-colour);
  margin-bottom: 12px;
}

.school-card__details {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 18px;
}

.school-card__details p {
  margin-bottom: 5px;
}

/* Key Information Accordion List */
.key-info-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.key-info-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.key-info-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.key-info-trigger:hover {
  color: var(--secondary-colour);
  padding-left: 20px;
}

.key-info-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
}

.key-info-item.is-open .key-info-panel {
  max-height: 600px;
  padding: 22px 24px 26px;
  margin-bottom: 20px;
}

/* Contact & Partner Forms */
.agora-form {
  background: var(--light-grey);
  padding: 36px 32px;
  border-radius: 16px;
  border-top: 4px solid var(--secondary-colour);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 7px;
  color: var(--primary-colour);
}

.form-group label .req {
  color: var(--asterix-colour);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-primary);
  font-size: 16px;
  border: 1.5px solid var(--border-colour);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-colour);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-colour);
}

/* ==========================================================================
   Pre-Footer & Site Footer (Matches final_step_70.png screenshot)
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: var(--primary-colour);
  color: #ffffff;
  padding: 80px 0 95px;
  overflow: hidden;
}

.site-footer__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  padding-bottom: 54px;
}

.footer-brand-logo {
  display: inline-block;
  margin-bottom: 26px;
}

.footer-brand-logo svg {
  height: 112px;
  width: auto;
}

.footer-address {
  font-size: 18px;
  line-height: 1.75;
  color: #ffffff;
  margin-bottom: 28px;
}

.footer-address strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.footer-action-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
}

.footer-action-link:hover {
  color: var(--secondary-colour);
}

.footer-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.footer-action-link:hover .footer-action-icon {
  background: var(--secondary-colour);
  border-color: var(--secondary-colour);
  color: var(--primary-colour);
}

.footer-useful-links h3 {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 20px;
}

.footer-useful-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-useful-list a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 400;
}

.footer-useful-list a:hover {
  color: var(--secondary-colour);
  transform: translateX(4px);
}

.site-footer__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-legal-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}

.footer-legal-links a {
  color: #ffffff;
  font-size: 14.5px;
}

.footer-legal-links a:hover {
  color: var(--secondary-colour);
}

.footer-cleverbox {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  text-decoration: none;
}

.footer-cleverbox:hover {
  color: var(--secondary-colour);
}

/* ==========================================================================
   Persistent Floating Bottom Quick Bar (Matches final_step_70.png)
   ========================================================================== */
.floating-bottom-bar {
  position: fixed;
  bottom: 0;
  right: 32px;
  z-index: 990;
  background-color: #202830;
  border-radius: 12px 12px 0 0;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  gap: 34px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}

.floating-bottom-bar a {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.floating-bottom-bar a:hover {
  color: var(--secondary-colour);
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .agora-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .schools-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-track {
    grid-auto-columns: calc(50% - 12px);
  }
}

@media (max-width: 860px) {
  .home-intro__grid,
  .home-schools__grid,
  .site-footer__grid,
  .page-layout-sidebar {
    grid-template-columns: 1fr;
  }
  .agora-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .floating-bottom-bar {
    left: 12px;
    right: 12px;
    justify-content: space-around;
    gap: 12px;
    padding: 11px 14px;
  }
  .floating-bottom-bar a {
    font-size: 12px;
  }
}

@media (max-width: 580px) {
  .agora-cards-grid,
  .schools-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .cards-track {
    grid-auto-columns: 88%;
  }
  .site-header__inner {
    padding: 0 16px;
  }
  .site-logo svg {
    height: 48px;
  }
}
