/* MISA — Malaysia Intelligence System Association
   Soft agency style (BeAgency 08 layout language, MISA navy/blue) */

:root {
  --navy: #0a2744;
  --navy-deep: #061a2e;
  --blue: #1a5a9a;
  --blue-soft: #2a6fb0;
  --blue-tint: #e8f1f8;
  --blue-line: rgba(26, 90, 154, 0.14);
  --text: #243447;
  --text-muted: #5c6b7a;
  --white: #ffffff;
  --off-white: #f5f8fb;
  --border: rgba(10, 39, 68, 0.1);
  --shadow-soft: 0 12px 40px rgba(10, 39, 68, 0.08);
  --soft-bg: #f3f5f8;
  --soft-card: #ffffff;
  --soft-radius: 1.75rem;
  --soft-radius-sm: 1.15rem;
  --soft-shadow: 0 18px 50px rgba(10, 39, 68, 0.08);
  --soft-shadow-hover: 0 22px 56px rgba(10, 39, 68, 0.14);
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 5.75rem;
  --max: 88rem;
  --max-banner: 88rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Type scale (+1px from soft lock) */
  --fs-h1: clamp(calc(1.75rem + 1px), calc(3.5vw + 1px), calc(2.5rem + 1px));
  --fs-h2: clamp(calc(1.75rem + 1px), calc(3.5vw + 1px), calc(2.5rem + 1px));
  --fs-h3: clamp(calc(1.25rem + 1px), calc(2vw + 1px), calc(1.4rem + 1px));
  --fs-h4: calc(1.15rem + 1px);
  --fs-h5: calc(1.05rem + 1px);
  --fs-body: calc(1.0625rem + 1px);
  --lh-heading: 1.25;
  --lh-body: 1.65;
  --gap-eyebrow: 0.65rem;
  --gap-heading: 0.75rem;
  --gap-paragraph: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overflow-y: scroll; /* keep y visible so sticky header logos are not clipped */
  width: 100%;
  max-width: 100%;
  background: var(--white);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  position: relative;
}

main,
.section,
.banner,
.hero-slider,
.site-header,
.site-footer {
  width: 100%;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
  margin: 0 0 var(--gap-heading);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
}

h2 {
  /* Same size as Who We Are h1 */
  font-size: var(--fs-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

h5 {
  font-size: var(--fs-h5);
}

p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0 0 var(--gap-paragraph);
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  overflow: visible;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(10, 39, 68, 0.06);
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-block: 0.45rem;
  overflow: visible;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
  line-height: 0;
  text-decoration: none;
}

.logo-link img {
  height: 5rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.primary-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav > li {
  position: relative;
}

.primary-nav a,
.nav-dropdown-toggle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.nav-dropdown-toggle:hover,
.has-dropdown.is-open > .nav-dropdown-toggle {
  opacity: 1;
  color: var(--blue);
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-dropdown-toggle svg {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 0.2s var(--ease);
}

.has-dropdown.is-open > .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 14rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
  z-index: 120;
}

.has-dropdown.is-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.3rem;
  white-space: normal;
  line-height: 1.35;
}

.nav-dropdown a:hover {
  background: var(--blue-tint);
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.btn-compact {
  padding: 0.55rem 0.85rem;
  font-size: 0.72rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0.7rem 1.2rem;
  border-radius: 0.35rem;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s,
    transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 0.875rem;
}

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}

.btn-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* —— Hero slider —— */
.hero-slider {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 44rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
  /* Clear separation from pathway cards below */
  margin-bottom: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide.is-leaving {
  opacity: 0;
  visibility: visible;
  z-index: 2;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.hero-slide.is-active .hero-slide-media img {
  animation-duration: 7.5s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.hero-slide[data-effect="ken-in"].is-active .hero-slide-media img {
  animation-name: kenIn;
}

.hero-slide[data-effect="ken-out"].is-active .hero-slide-media img {
  animation-name: kenOut;
}

.hero-slide[data-effect="ken-pan"].is-active .hero-slide-media img {
  animation-name: kenPan;
}

.hero-slide-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 26, 46, 0.88) 0%, rgba(6, 26, 46, 0.55) 42%, rgba(10, 39, 68, 0.35) 100%),
    linear-gradient(0deg, rgba(6, 26, 46, 0.7) 0%, transparent 45%);
  z-index: 1;
}

.hero-slide-chip {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(4.5rem, 10vw, 5.5rem);
  z-index: 2;
  margin: 0;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease) 0.35s, transform 0.6s var(--ease) 0.35s;
}

.hero-slide.is-active .hero-slide-chip {
  opacity: 1;
  transform: translateY(0);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 4.5rem 0 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Nudge block slightly above geometric centre (above controls) */
  transform: translateY(-1.75rem);
}

.hero-content-inner {
  max-width: 64rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  animation: heroRise 0.9s var(--ease) both;
  max-width: 58rem;
}

.hero-logo {
  width: clamp(9.5rem, 18vw, 14rem);
  flex-shrink: 0;
  margin: 0;
  background: transparent;
}

.hero-copy {
  min-width: 0;
  flex: 1;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin: 0 0 1.15rem;
  max-width: 22ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 44ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  animation: heroRise 0.9s var(--ease) 0.12s both;
}

.hero-actions .btn-lg {
  padding: 1rem 1.75rem;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .hero-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo {
    width: 10.5rem;
  }
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0 1.25rem;
}

.hero-nav {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(6, 26, 46, 0.35);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.05);
}

.hero-nav svg {
  width: 1.15rem;
  height: 1.15rem;
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.35s var(--ease), background 0.25s, border-radius 0.35s;
}

.hero-dot.is-active {
  width: 1.6rem;
  border-radius: 999px;
  background: var(--white);
}

.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 4;
  overflow: hidden;
}

.hero-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-soft), #7eb6e8);
  transform-origin: left center;
}

.hero-progress.is-running span {
  animation: heroProgress 6.5s linear forwards;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  position: relative;
}

.section-paths {
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
  background: var(--white);
  border-bottom: none;
}

.section-alt {
  background: var(--off-white);
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/bg/circuit-pattern.svg");
  background-size: 480px;
  opacity: 0.28;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0 0 var(--gap-paragraph);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--gap-eyebrow);
}

.eyebrow-light {
  color: #9ec5e8;
}

/* —— Image banners —— */
.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.banner-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.banner-media img,
.page-hero-media img,
.statement-panel-media img,
.statement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s linear;
}

.banner.reveal.is-visible .banner-media img,
.banner.is-visible .banner-media img,
.page-hero.reveal.is-visible .page-hero-media img,
.page-hero.is-visible .page-hero-media img,
.statement-panel.reveal.is-visible .statement-panel-media img,
.statement-panel.is-visible .statement-panel-media img {
  transform: scale(1.12);
}

/* Activities Our focus — no zoom on side image */
.statement-panel .statement-media img {
  transform: none;
  transition: none;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 26, 46, 0.9) 0%, rgba(10, 39, 68, 0.78) 48%, rgba(26, 90, 154, 0.55) 100%);
}

.banner-overlay-strong {
  background:
    linear-gradient(105deg, rgba(6, 26, 46, 0.92) 0%, rgba(6, 26, 46, 0.82) 55%, rgba(10, 39, 68, 0.7) 100%);
}

.banner-body {
  position: relative;
  max-width: 44rem;
}

.banner-body-wide {
  max-width: 56rem;
}

.banner h1,
.banner h2,
.banner h3,
.banner h4,
.banner h5 {
  color: var(--white);
  margin-bottom: var(--gap-heading);
}

.banner p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 var(--gap-paragraph);
}

.banner p:last-child {
  margin-bottom: 0;
}

/* Keep class for markup compatibility — same as Who We Are body */
.banner-lead {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0 0 var(--gap-paragraph);
}

.banner-cta-inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 800px) {
  .banner-cta-inner {
    grid-template-columns: 1.4fr auto;
    gap: 2.5rem;
  }
}

.banner-cta-inner h2 {
  color: var(--white);
}

.banner-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Community contrast helpers — reinforced after base audience styles below */

/* Intro — text left, banner right; content vertically centered to image middle */
.section-intro {
  padding-top: clamp(2.75rem, 6vw, 4rem);
}

.intro-block {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .intro-block {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
  }
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-malay {
  font-style: italic;
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0 0 var(--gap-paragraph);
}

.intro-copy h1,
.intro-copy h2,
.intro-copy h3,
.intro-copy h4,
.intro-copy h5 {
  margin-bottom: var(--gap-heading);
}

.intro-copy p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0 0 var(--gap-paragraph);
}

.vision-callout {
  border-left: 3px solid var(--blue);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin-top: 1.75rem;
}

.vision-callout p {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--navy);
  line-height: var(--lh-body);
  margin: 0;
}

.intro-banner {
  position: relative;
  border-radius: 0.55rem;
  overflow: hidden;
  min-height: 18rem;
  box-shadow: var(--shadow-soft);
  background: var(--navy);
}

.intro-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
  transition: transform 8s linear;
}

.intro-block.reveal.is-visible .intro-banner img {
  transform: scale(1.06);
}

.intro-banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 26, 46, 0.82) 100%);
  pointer-events: none;
}

.intro-banner-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
}

/* Quick path CTAs */
.path-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 760px) {
  .path-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.path-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.95rem;
  padding: 1.2rem 1.15rem;
  text-decoration: none;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: 0.65rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.25s,
    background 0.35s var(--ease),
    color 0.25s;
}

.path-card:hover,
.path-card-accent:hover {
  transform: translateY(-4px);
  text-decoration: none;
  color: var(--white);
  border-color: var(--navy-deep);
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 48%, #123a63 100%);
  box-shadow: 0 18px 40px rgba(6, 26, 46, 0.22);
}

.path-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-tint);
  color: var(--navy);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}

.path-card:hover .path-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #d7e8f7;
}

.path-icon svg,
.path-arrow svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.path-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.path-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.path-desc {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
  transition: color 0.25s;
}

.path-card:hover .path-desc {
  color: rgba(255, 255, 255, 0.78);
}

.path-arrow {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 39, 68, 0.06);
  color: var(--navy);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}

.path-card:hover .path-arrow {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

/* Connecting */
.connecting-text {
  max-width: 42rem;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
}

.connecting-text .lead {
  font-size: var(--fs-body);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: var(--lh-body);
}

/* Focus areas */
.focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .focus-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .focus-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.focus-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .focus-item {
    padding: 1.75rem;
  }

  .focus-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
}

@media (min-width: 1000px) {
  .focus-item {
    border-right: 1px solid var(--border);
  }

  .focus-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .focus-item:nth-child(3n) {
    border-right: none;
  }
}

.focus-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.focus-item h3 {
  margin-bottom: var(--gap-heading);
}

.focus-item p {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0;
}

/* Audience */
.audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .audience-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
  }
}

@media (min-width: 960px) {
  .audience-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1.35rem;
  }
}

.audience-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.audience-dot {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.audience-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.audience-list span {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* Must come after base audience colors so text stays readable on dark banners */
.banner .audience-list-light strong {
  color: var(--white);
}

.banner .audience-list-light span {
  color: rgba(255, 255, 255, 0.9);
}

.banner .audience-list-light .audience-dot {
  background: #9ec5e8;
  box-shadow: 0 0 0 4px rgba(158, 197, 232, 0.25);
}

.banner-network .banner-body h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* Membership + Collaborate split */
.split-panel {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  align-items: stretch;
}

@media (min-width: 800px) {
  .split-panel {
    grid-template-columns: 1fr 1fr;
  }
}

.split-block {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.split-block-main {
  flex: 1 1 auto;
}

.split-block-main h2 {
  min-height: 2.6em;
}

.split-block + .split-block {
  border-top: 1px solid var(--border);
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, #0d3558 100%);
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  overflow: hidden;
}

@media (min-width: 800px) {
  .split-block + .split-block {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.split-block + .split-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/bg/circuit-pattern-light.svg");
  background-size: 240px;
  opacity: 0.2;
  pointer-events: none;
}

.split-block + .split-block > * {
  position: relative;
  z-index: 1;
}

.split-block + .split-block h2,
.split-block + .split-block .eyebrow {
  color: var(--white);
}

.split-block + .split-block .eyebrow {
  opacity: 0.7;
}

.split-block + .split-block p {
  color: rgba(255, 255, 255, 0.82);
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.75rem;
}

.split-actions .btn {
  min-height: 2.75rem;
}

.split-block .btn-primary {
  background: var(--blue);
  border-color: var(--blue);
}

.split-block .btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.split-block + .split-block .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.split-block + .split-block .btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.email-line {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-body);
}

.email-line a {
  color: #9ec5e8;
  font-weight: 600;
  text-decoration: none;
}

.email-line a:hover {
  color: var(--white);
  text-decoration: underline;
}

.banner-cta .banner-cta-inner {
  align-items: center;
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-brand img {
  height: 5.5rem;
  width: auto;
  max-width: 12rem;
  object-fit: contain;
  margin-bottom: 1rem;
  background: transparent;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 28ch;
  margin: 0;
}

.footer-col h3 {
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0.45rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* —— Motion —— */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenIn {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.18) translate(-1.5%, -1%);
  }
}

@keyframes kenOut {
  from {
    transform: scale(1.18) translate(1%, 0);
  }
  to {
    transform: scale(1.05) translate(0, 0);
  }
}

@keyframes kenPan {
  from {
    transform: scale(1.12) translate(-2%, 0);
  }
  to {
    transform: scale(1.12) translate(2%, -1%);
  }
}

@keyframes heroProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes circuitDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 280px 140px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s linear, transform 0.5s linear;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/*
  Card components set their own `transition` later in the file, which would
  wipe the reveal fade. Keep opacity/transform fade when both classes apply.
*/
.focus-item.reveal,
.blog-card.reveal,
.enquire-step.reveal,
.programme-feature.reveal,
.membership-type-card.reveal,
.contact-pathway.reveal,
.contact-card.reveal,
.path-card.reveal {
  transition:
    opacity 0.5s linear,
    transform 0.5s linear,
    box-shadow 0.3s var(--ease),
    background 0.35s var(--ease),
    color 0.25s,
    border-color 0.25s;
}

.focus-item.reveal.is-visible:hover,
.blog-card.reveal.is-visible:hover,
.enquire-step.reveal.is-visible:hover,
.programme-feature.reveal.is-visible:hover {
  transition:
    opacity 0.5s linear,
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.35s var(--ease),
    color 0.25s,
    border-color 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-brand,
  .hero-actions,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-slide.is-active .hero-slide-media img,
  .hero-progress.is-running span,
  .banner-media img,
  .page-hero-media img,
  .statement-panel-media img,
  .statement-media img {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* —— Tablet / dense nav: hamburger —— */
@media (max-width: 1400px) {
  /*
    backdrop-filter on .site-header makes position:fixed children use the
    header as containing block (menu collapses to header height). Disable it
    so the drawer can cover the viewport below the bar.
  */
  .site-header {
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-panel {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    width: 100vw;
    max-width: 100vw;
    height: calc(100dvh - var(--header-h));
    max-height: calc(100vh - var(--header-h));
    margin: 0;
    padding: 0.85rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(10, 39, 68, 0.12);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0.3s;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .nav-panel.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .primary-nav {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
  }

  .primary-nav > li > a,
  .nav-dropdown-toggle {
    display: flex;
    width: 100%;
    padding: 0.78rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }

  .nav-panel > nav {
    flex: 0 0 auto;
    width: 100%;
  }

  .nav-panel .header-ctas {
    flex-shrink: 0;
    width: 100%;
    padding-bottom: 0.5rem;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0.5rem 0.85rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    background: transparent;
  }

  .has-dropdown.is-open > .nav-dropdown {
    display: block;
    transform: none;
  }

  .nav-dropdown a {
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .header-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 0.35rem;
  }

  .header-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    font-size: 0.88rem;
  }

  body.nav-open {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
  }

  /* Keep logo + close toggle pinned while the drawer is open */
  body.nav-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 300;
  }
}

/* ===== Soft agency (canonical) ===== */
.primary-nav a,
.nav-dropdown-toggle {
  font-size: 0.9rem;
}

.btn {
  font-size: calc(0.8125rem + 1px);
}

.btn-compact {
  font-size: calc(0.72rem + 1px);
}

.btn-lg {
  font-size: calc(0.875rem + 1px);
}

.eyebrow {
  font-size: calc(0.7rem + 1px);
}

.hero-tagline {
  font-size: clamp(calc(1.75rem + 1px), calc(3.6vw + 1px), calc(2.55rem + 1px));
}

.hero-lead {
  font-size: clamp(calc(1.15rem + 1px), calc(2vw + 1px), calc(1.3rem + 1px));
}

.path-label {
  font-size: calc(1rem + 1px);
}

.path-desc {
  font-size: calc(0.85rem + 1px);
}

.path-arrow {
  font-size: calc(0.8rem + 1px);
}

.focus-num {
  font-size: calc(0.75rem + 1px);
}

.focus-item h3 {
  font-size: calc(1.15rem + 1px);
}

body {
  background: var(--soft-bg);
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(10, 39, 68, 0.04);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(10, 39, 68, 0.06);
}

.btn {
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
}

.btn-compact {
  border-radius: 999px;
}

.btn-ghost {
  background: var(--soft-bg);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--blue-tint);
}

.section,
.section-paths,
.section-intro {
  background: var(--soft-bg);
}

.section-paths {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

/* —— Soft pathway cards: compact, icon left / content right —— */
.path-strip {
  gap: 1.1rem;
}

.path-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon copy"
    "icon more";
  align-items: start;
  column-gap: 1rem;
  row-gap: 0.55rem;
  padding: 1.15rem 1.2rem;
  background: var(--soft-card);
  border: none;
  border-radius: var(--soft-radius-sm);
  box-shadow: var(--soft-shadow);
  color: var(--navy);
  min-height: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s,
    color 0.3s;
}

.path-card:hover,
.path-card-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(6, 26, 46, 0.22);
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 48%, #123a63 100%);
  color: var(--white);
  border-color: transparent;
}

.path-icon {
  grid-area: icon;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  margin-top: 0.1rem;
  transition: background 0.25s, color 0.25s;
}

.path-card:hover .path-icon {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.path-copy {
  grid-area: copy;
  gap: 0.25rem;
}

.path-label {
  font-size: calc(1rem + 1px);
}

.path-desc {
  font-size: calc(0.85rem + 1px);
  color: var(--text-muted);
  line-height: 1.4;
  transition: color 0.25s;
}

.path-card:hover .path-desc {
  color: rgba(255, 255, 255, 0.78);
}

.path-arrow {
  grid-area: more;
  margin-top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: calc(0.8rem + 1px);
  font-weight: 600;
  gap: 0.3rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  transition: color 0.25s, transform 0.25s var(--ease);
}

.path-arrow::before {
  content: "Learn more";
}

.path-card:hover .path-arrow {
  background: transparent;
  color: var(--white);
  transform: translateX(3px);
}

.path-arrow svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* —— Intro: soft rounded media + airy type —— */
.section-intro {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

@media (min-width: 880px) {
  .intro-block {
    gap: 4.75rem;
    column-gap: 5.25rem;
  }
}

.intro-banner {
  border-radius: 2rem;
  min-height: 20rem;
  /* Thick outer border + blue fill in the gap between image and border */
  outline: 6px solid rgba(26, 90, 154, 0.35);
  outline-offset: 10px;
  box-shadow:
    var(--soft-shadow),
    0 0 0 10px rgba(26, 90, 154, 0.35);
}

.intro-banner img {
  min-height: 24rem;
}

.intro-banner-shade {
  background: linear-gradient(180deg, transparent 40%, rgba(6, 26, 46, 0.72) 100%);
}

.intro-copy h1 {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.vision-callout {
  border-left: none;
  background: var(--white);
  border-radius: var(--soft-radius-sm);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--soft-shadow);
  margin-top: 1.75rem;
}

/* —— Banners: wide panel with visible 4-corner rounding —— */
.banner {
  width: auto;
  max-width: none;
  margin-inline: 1.375rem;
  margin-block: 0 1.5rem;
  border-radius: 2rem;
  overflow: hidden;
  box-sizing: border-box;
}

.banner-network,
.banner-cta,
.banner-connect {
  margin-bottom: 1.5rem;
}

/* Match Activities Our focus width (inside .container) */
.banner-contained {
  margin-inline: 0;
  margin-bottom: 0;
  width: 100%;
  max-width: none;
  border-radius: calc(var(--soft-radius) + 0.35rem);
}

.banner-contained .banner-body,
.banner-contained .banner-body-wide,
.banner-contained .banner-cta-inner {
  max-width: none;
  width: auto;
  margin-inline: 0;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

.banner .banner-body,
.banner .banner-body-wide,
.banner .banner-cta-inner {
  max-width: var(--max-banner);
  width: min(100% - 2.5rem, var(--max-banner));
  margin-inline: auto;
}

.banner-overlay {
  background: linear-gradient(
    105deg,
    rgba(6, 26, 46, 0.88) 0%,
    rgba(10, 39, 68, 0.72) 55%,
    rgba(26, 90, 154, 0.5) 100%
  );
}

/* —— Focus / mission cards —— */
#focus-areas,
#mission {
  background: var(--soft-bg);
}

#focus-areas .section-header,
#mission .section-header {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 2.75rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  border-top: none;
}

@media (min-width: 700px) {
  .focus-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .focus-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.focus-item {
  background: var(--white);
  border: none !important;
  /* Slightly tighter radius so short/tall cards look equally “rectangular” */
  border-radius: 1.25rem;
  padding: 1.75rem 1.6rem !important;
  box-shadow: var(--soft-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.35s var(--ease),
    color 0.25s;
}

.focus-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(6, 26, 46, 0.22);
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 48%, #123a63 100%);
  color: var(--white);
}

.focus-num {
  display: block;
  padding: 0;
  margin: 0 0 0.85rem;
  min-width: 0;
  border-radius: 0;
  background: none;
  color: var(--blue) !important;
  font-size: calc(0.75rem + 1px);
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.25s;
}

.focus-item:hover .focus-num {
  background: none;
  color: rgba(255, 255, 255, 0.75) !important;
}

.focus-item h3 {
  font-size: calc(1.15rem + 1px);
  margin-top: 0.15rem;
  transition: color 0.25s;
}

.focus-item:hover h3 {
  color: var(--white);
}

.focus-item p {
  color: var(--text-muted);
  transition: color 0.25s;
}

.focus-item:hover p {
  color: rgba(255, 255, 255, 0.8);
}

/* —— Community audience —— */
.banner-network {
  border-radius: 2rem;
}

/* Community cards: 3 per row; last row stretches to fill full width */
.banner .audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.banner .audience-list li {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
  box-sizing: border-box;
  flex: 1 1 100%;
}

@media (min-width: 700px) {
  .banner .audience-list li {
    flex: 1 1 calc(50% - 0.55rem);
  }
}

@media (min-width: 960px) {
  .banner .audience-list li {
    /* Target 3 per row; last-row items grow to fill leftover width */
    flex: 1 1 calc(33.333% - 0.75rem);
    min-width: 12.5rem;
    max-width: 100%;
  }
}

.audience-list-light li {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  height: auto;
}

/* —— Membership split soft —— */
#membership-collaborate {
  background: var(--soft-bg);
}

.split-panel {
  border: none;
  border-radius: 2rem;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.split-block {
  padding: clamp(2rem, 4vw, 2.75rem);
}

.split-block + .split-block {
  border-left: none;
}

@media (min-width: 800px) {
  .split-block + .split-block {
    border-left: none;
  }
}

.split-actions .btn {
  border-radius: 999px;
}

/* —— CTA banner —— */
.banner-cta {
  border-radius: 2rem;
}

.banner-cta-inner .btn {
  border-radius: 999px;
}

/* —— Hero soft touches —— */
.hero-slider {
  border-radius: 0;
  overflow: hidden;
}

.hero-nav {
  border-radius: 999px;
}

.hero-slide-chip {
  border-radius: 999px;
}

.site-footer {
  margin-top: 1rem;
  border-radius: 0;
}

.eyebrow {
  letter-spacing: 0.16em;
}

/* Soft page rhythm */
.container {
  width: min(100% - 2.75rem, var(--max));
}

/* —— Inner page hero —— */
.page-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(14rem, 28vw, 20rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media img {
  display: block;
  min-height: 100%;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(6, 26, 46, 0.9) 0%,
    rgba(10, 39, 68, 0.78) 55%,
    rgba(26, 90, 154, 0.55) 100%
  );
}

.page-hero-body {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.75rem, 6vw, 4rem);
  color: var(--white);
}

.page-hero-body h1 {
  color: var(--white);
  max-width: 18ch;
  margin-bottom: 0.5rem;
}

.page-hero-malay {
  margin: 0;
  font-style: italic;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.82);
}

/* —— About page —— */
.about-lead {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .about-lead {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.75rem, 5vw, 4.5rem);
    align-items: start;
  }
}

.about-lead-copy p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0 0 var(--gap-paragraph);
}

.about-lead-copy p:last-child {
  margin-bottom: 0;
}

.about-lead .intro-banner {
  min-height: 0;
}

.about-lead .intro-banner img {
  min-height: 16rem;
}

.section-header-narrow {
  max-width: 36rem;
  margin-bottom: 1.35rem;
}

.section-header-narrow .eyebrow {
  margin-bottom: 0.2rem;
}

.section-header-narrow h2 {
  margin-bottom: 0;
}

/* Vision / Commitment: tight block rhythm */
.about-vision {
  margin-top: 1.35rem;
}

.section-commitment {
  padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(4.5rem, 9vw, 6.5rem);
  background: var(--soft-bg);
}

#why-connect.section-commitment {
  padding-block: clamp(1.5rem, 3.5vw, 2.25rem);
}

#why-connect .commitment-panel {
  box-shadow: none;
}

.section-commitment .about-vision {
  margin-top: 0;
}

.banner-connect + .section-commitment {
  margin-top: 0.5rem;
}

#mission {
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
}

.vision-panel,
.commitment-panel {
  background: var(--soft-card);
  border-radius: var(--soft-radius);
  box-shadow: var(--soft-shadow);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.vision-panel p,
.commitment-panel p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0;
  color: var(--navy);
}

.vision-panel p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(calc(1.1rem + 1px), 2vw, calc(1.35rem + 1px));
  line-height: 1.55;
}

.commitment-panel p + p {
  margin-top: 1rem;
  color: var(--text);
  font-weight: 400;
}

.contact-facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-facts li {
  display: grid;
  gap: 0.25rem;
}

.contact-facts-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.contact-facts a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.contact-facts a:hover {
  color: var(--blue);
}

.banner-cta .contact-facts-light {
  margin-top: 1.15rem;
  gap: 0.85rem;
}

.banner-cta .contact-facts-light .contact-facts-label {
  color: #d4e8f8;
}

.banner-cta .contact-facts-light a,
.banner-cta .contact-facts-light li > span:last-child {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(6, 26, 46, 0.45);
}

.banner-cta .contact-facts-light a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.banner-note {
  margin-top: 1rem !important;
  font-size: calc(0.9rem + 1px) !important;
  font-style: italic;
  color: rgba(255, 255, 255, 0.78) !important;
}

/* —— Page lead (inner pages) —— */
.page-lead {
  max-width: 42rem;
}

.page-lead-block {
  max-width: 46rem;
}

.page-lead h2 {
  margin-bottom: var(--gap-heading);
}

.page-lead p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0 0 var(--gap-paragraph);
}

.page-lead p:last-child {
  margin-bottom: 0;
}

.section-intro:has(.page-lead) {
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

/* Fancy statement panel (Activities overview) */
.section-statement {
  background: var(--soft-bg);
  padding-block: clamp(2rem, 5vw, 3.25rem);
}

.statement-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 0;
  border-radius: calc(var(--soft-radius) + 0.35rem);
  background: linear-gradient(145deg, #071f36 0%, var(--navy) 48%, #13406a 100%);
  box-shadow: none;
  color: var(--white);
}

@media (min-width: 900px) {
  .statement-panel {
    grid-template-columns: 1.45fr 0.7fr;
    align-items: stretch;
  }
}

.statement-glow {
  position: absolute;
  inset: auto -10% -40% 40%;
  width: min(28rem, 70vw);
  height: min(28rem, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 182, 232, 0.28) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.statement-main {
  position: relative;
  z-index: 1;
  padding: clamp(4.5rem, 10vw, 7rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.statement-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(158, 197, 232, 0.95);
}

.statement-panel h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--white);
}

.statement-rule {
  width: 3.5rem;
  height: 3px;
  margin: 1.5rem 0 1.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #7eb6e8, transparent);
}

.statement-copy {
  max-width: none;
  display: grid;
  gap: 0.9rem;
}

.statement-copy p {
  margin: 0;
  font-size: calc(1.05rem + 1px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
}

.statement-media {
  position: relative;
  z-index: 1;
  min-height: 24rem;
  overflow: hidden;
}

@media (min-width: 900px) {
  .statement-media {
    min-height: 100%;
  }
}

.statement-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 31, 54, 0.55) 0%,
    rgba(7, 31, 54, 0.12) 45%,
    transparent 100%
  );
  pointer-events: none;
}

.statement-media img {
  display: block;
  min-height: 14rem;
}

@media (max-width: 899px) {
  .statement-media {
    min-height: 12rem;
    order: -1;
  }

  .statement-media::after {
    background: linear-gradient(
      180deg,
      transparent 40%,
      rgba(7, 31, 54, 0.72) 100%
    );
  }
}

/* Programme areas — soft cards, 2 per row */
#programme-areas {
  background: var(--soft-bg);
}

#programme-areas .section-header {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 2.75rem;
}

.programme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 800px) {
  .programme-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.programme-grid .focus-item {
  min-height: 100%;
}

.programme-grid .focus-item p + p {
  margin-top: 0.65rem;
}

@media (min-width: 800px) {
  .programme-grid .focus-item-wide {
    grid-column: 1 / -1;
  }
}

.programme-grid-follow {
  margin-top: 1.5rem;
}

/* Training feature panel — same hover language as focus cards */
.programme-feature {
  margin-top: 1.5rem;
  background: var(--white);
  border-radius: var(--soft-radius);
  box-shadow: var(--soft-shadow);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.35s var(--ease),
    color 0.25s;
}

.programme-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(6, 26, 46, 0.22);
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 48%, #123a63 100%);
  color: var(--white);
}

.programme-feature h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 2.2vw, 1.45rem);
  transition: color 0.25s;
}

.programme-feature:hover h3 {
  color: var(--white);
}

.programme-feature-lead {
  margin: 0;
  max-width: 40rem;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
  transition: color 0.25s;
}

.programme-feature:hover .programme-feature-lead {
  color: rgba(255, 255, 255, 0.82);
}

.programme-feature-label {
  margin: 1.5rem 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color 0.25s;
}

.programme-feature:hover .programme-feature-label {
  color: rgba(255, 255, 255, 0.7);
}

.programme-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.programme-tags li {
  margin: 0;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--blue-tint);
  border: 1px solid transparent;
  font-size: calc(0.88rem + 1px);
  line-height: 1.35;
  color: var(--navy);
  font-weight: 500;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.programme-feature:hover .programme-tags li {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

/* Static feature panel with photo background (no hover) */
.programme-feature-static {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0;
  background: var(--navy-deep);
  box-shadow: none;
  padding: 0;
  color: var(--white);
  transition: none;
}

.programme-feature-static:hover {
  transform: none;
  box-shadow: none;
  background: var(--navy-deep);
  color: var(--white);
}

.programme-feature-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.programme-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 8s linear;
}

.programme-feature-static.reveal.is-visible .programme-feature-media img,
.programme-feature-static.is-visible .programme-feature-media img {
  transform: scale(1.12);
}

.programme-feature-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 26, 46, 0.92) 0%,
    rgba(6, 26, 46, 0.82) 55%,
    rgba(10, 39, 68, 0.7) 100%
  );
}

.programme-feature-content {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.programme-feature-static h3 {
  color: var(--white);
}

.programme-feature-static .programme-feature-lead {
  max-width: none;
  color: rgba(255, 255, 255, 0.88);
}

.programme-feature-static .programme-feature-label {
  color: #9ec5e8;
}

.programme-feature-static .programme-feature-footnote {
  color: rgba(255, 255, 255, 0.72);
  border-top-color: rgba(255, 255, 255, 0.16);
}

.programme-feature-static:hover h3,
.programme-feature-static:hover .programme-feature-lead,
.programme-feature-static:hover .programme-feature-label,
.programme-feature-static:hover .programme-feature-footnote {
  color: inherit;
}

.programme-feature-static:hover .programme-feature-lead {
  color: rgba(255, 255, 255, 0.88);
}

.programme-feature-static:hover .programme-feature-label {
  color: #9ec5e8;
}

.programme-feature-static:hover .programme-feature-footnote {
  color: rgba(255, 255, 255, 0.72);
  border-top-color: rgba(255, 255, 255, 0.16);
}

.programme-tags-glass li {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.programme-feature-static:hover .programme-tags-glass li,
.programme-feature:hover .programme-tags-glass li {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.92);
}

/* Programme cards without numbers — tighten title spacing */
.programme-grid .focus-item h3 {
  margin-top: 0;
}

/* Soft white content cards (Join MISA / community-style panels) */
.banner-soft-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 1.75rem;
}

@media (min-width: 800px) {
  .banner-soft-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.banner-soft-card {
  /* Match home Community `.banner .audience-list li` exactly */
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.banner-soft-card p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* Community look at Our focus panel size */
.statement-panel-community {
  grid-template-columns: 1fr !important;
  background: var(--navy-deep);
}

.statement-panel-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.statement-panel-media img {
  display: block;
}

.statement-panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 26, 46, 0.92) 0%,
    rgba(6, 26, 46, 0.82) 55%,
    rgba(10, 39, 68, 0.7) 100%
  );
}

.statement-main-community {
  position: relative;
  z-index: 1;
  max-width: none;
  width: 100%;
}

.statement-main-community h2 {
  max-width: none;
}

/* —— Membership page —— */

#membership-types {
  background: var(--soft-bg);
}

#membership-types .section-header {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 2.75rem;
}

.membership-type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 880px) {
  .membership-type-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.membership-type-card {
  background: var(--white);
  border-radius: var(--soft-radius);
  box-shadow: var(--soft-shadow);
  padding: clamp(1.6rem, 3.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.membership-type-card h3 {
  margin: 0 0 0.75rem;
  font-size: calc(1.25rem + 1px);
}

.membership-type-card > p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.membership-type-label {
  margin: 1.35rem 0 0.85rem !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue) !important;
}

.membership-type-card .programme-tags {
  margin-bottom: 1.5rem;
}

.membership-type-note {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(10, 39, 68, 0.1);
}

.membership-type-note h4 {
  margin: 0 0 0.55rem;
  font-size: calc(1rem + 1px);
  color: var(--navy);
}

.membership-type-note p {
  margin: 0;
  font-size: calc(0.95rem + 1px);
  line-height: 1.6;
  color: var(--text-muted);
}

.membership-policy {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: calc(0.95rem + 1px);
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
  max-width: 40rem;
  margin-inline: auto;
}

#how-to-enquire {
  background: var(--soft-bg);
}

#how-to-enquire .section-header {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 2.5rem;
}

.enquire-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .enquire-steps {
    grid-template-columns: 1fr 1fr;
  }
}

.enquire-step {
  background: var(--white);
  border-radius: 1.25rem;
  box-shadow: var(--soft-shadow);
  padding: 1.6rem 1.5rem;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.35s var(--ease),
    color 0.25s;
}

.enquire-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(6, 26, 46, 0.22);
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 48%, #123a63 100%);
  color: var(--white);
}

.enquire-step-num {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color 0.25s;
}

.enquire-step:hover .enquire-step-num {
  color: rgba(255, 255, 255, 0.7);
}

.enquire-step h3 {
  margin: 0 0 0.55rem;
  font-size: calc(1.1rem + 1px);
  transition: color 0.25s;
}

.enquire-step:hover h3 {
  color: var(--white);
}

.enquire-step p {
  margin: 0;
  font-size: calc(0.95rem + 1px);
  line-height: 1.6;
  color: var(--text-muted);
  transition: color 0.25s;
}

.enquire-step:hover p {
  color: rgba(255, 255, 255, 0.82);
}

/* —— Partnerships page —— */
#who-can-collaborate {
  background: var(--soft-bg);
}

#who-can-collaborate .section-header {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 2.75rem;
}

#who-can-collaborate .programme-grid .focus-item h3 {
  margin-top: 0;
}

.banner-soft-cards-stack {
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .banner-soft-cards-stack {
    grid-template-columns: 1fr 1fr;
  }

  .banner-soft-cards-stack .banner-soft-card-wide {
    grid-column: 1 / -1;
  }
}

#collaboration-areas.section-commitment {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

#collaboration-areas .commitment-panel {
  box-shadow: none;
}

.collaboration-areas-panel .programme-tags {
  margin-bottom: 1.25rem;
}

.collaboration-note {
  margin: 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(10, 39, 68, 0.1);
  font-size: calc(0.95rem + 1px);
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
}

/* —— AI & Intelligent Systems —— */
#what-is-ai.section-commitment {
  padding-block: clamp(1.5rem, 3.5vw, 2.25rem);
}

#what-is-ai .commitment-panel {
  box-shadow: none;
}

#ai-for-business {
  background: var(--soft-bg);
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}

.programme-feature-footnote {
  margin: 1.35rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(10, 39, 68, 0.1);
  font-size: calc(0.92rem + 1px);
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
  transition: color 0.25s, border-color 0.25s;
}

.programme-feature:hover .programme-feature-footnote {
  color: rgba(255, 255, 255, 0.75);
  border-top-color: rgba(255, 255, 255, 0.18);
}

#ai-themes {
  background: var(--soft-bg);
}

#ai-themes .section-header {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 2.75rem;
}

#ai-themes .programme-grid .focus-item h3 {
  margin-top: 0;
}

#ai-themes .focus-item p + p {
  margin-top: 0.65rem;
}

/* —— News & Events —— */
#news-channels {
  background: var(--soft-bg);
}

#news-channels .section-header {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 2.75rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--soft-radius);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(6, 26, 46, 0.14);
}

.blog-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-deep);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.05);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.4rem 1.5rem;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.blog-card-body h3 {
  margin: 0 0 0.65rem;
  font-size: calc(1.15rem + 1px);
  line-height: 1.3;
}

.blog-card-body h3 a {
  color: var(--navy);
  text-decoration: none;
}

.blog-card-body h3 a:hover {
  color: var(--blue);
}

.blog-card-body > p {
  margin: 0;
  font-size: calc(0.95rem + 1px);
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
}

.news-note {
  margin: 2rem 0 0;
  text-align: center;
  font-size: calc(0.95rem + 1px);
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
  max-width: 40rem;
  margin-inline: auto;
}

/* —— Contact page (dedicated layout) —— */
.contact-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(26, 90, 154, 0.12), transparent 42%),
    linear-gradient(180deg, #eef3f8 0%, var(--soft-bg) 100%);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.contact-hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: stretch;
}

@media (min-width: 920px) {
  .contact-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
}

.contact-hero-copy h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
}

.contact-hero-copy p {
  max-width: 38rem;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
  margin: 0 0 var(--gap-paragraph);
}

.contact-hero-copy p:last-child {
  margin-bottom: 0;
}

.contact-card {
  background: var(--white);
  border-radius: calc(var(--soft-radius) + 0.15rem);
  box-shadow: var(--soft-shadow);
  padding: clamp(1.6rem, 3.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--blue);
}

.contact-card-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.contact-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
}

.contact-card > p {
  margin: 0 0 1.25rem;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.contact-card-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-card-list li {
  display: grid;
  gap: 0.25rem;
}

.contact-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.contact-card-list a,
.contact-card-list span:not(.contact-card-label) {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  font-size: calc(0.98rem + 1px);
  line-height: 1.5;
}

.contact-card-list a:hover {
  color: var(--blue);
}

.contact-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

#contact-pathways {
  background: var(--white);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

#contact-pathways .section-header-left {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.contact-pathways {
  display: grid;
  gap: 1rem;
}

.contact-pathway {
  display: grid;
  gap: 1.15rem;
  align-items: center;
  padding: 1.35rem 1.4rem;
  border-radius: 1.25rem;
  background: var(--soft-bg);
  border: 1px solid rgba(10, 39, 68, 0.08);
}

@media (min-width: 800px) {
  .contact-pathway {
    grid-template-columns: 1fr auto;
    gap: 2rem;
    padding: 1.5rem 1.75rem;
  }
}

.contact-pathway h3 {
  margin: 0 0 0.45rem;
  font-size: calc(1.15rem + 1px);
}

.contact-pathway p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.contact-pathway .btn,
.contact-pathway .btn-ghost {
  white-space: normal;
  text-align: center;
  justify-self: start;
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  box-shadow: none;
}

.contact-pathway .btn:hover,
.contact-pathway .btn-ghost:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
  transform: translateY(-1px);
}

@media (min-width: 800px) {
  .contact-pathway .btn,
  .contact-pathway .btn-ghost {
    justify-self: end;
    max-width: 16rem;
  }
}

.section-contact-identity {
  background: var(--soft-bg);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.contact-identity {
  display: grid;
  gap: 1.75rem;
  background: var(--white);
  border-radius: var(--soft-radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: none;
  border: 1px solid rgba(10, 39, 68, 0.08);
}

@media (min-width: 880px) {
  .contact-identity {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.contact-identity-brand h2 {
  margin-bottom: 0.85rem;
  max-width: 16ch;
}

.contact-identity-brand p:not(.eyebrow) {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.contact-identity-details {
  padding: 1.25rem 1.35rem;
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #071f36 0%, var(--navy) 55%, #13406a 100%);
  color: var(--white);
}

.contact-identity-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(1.05rem + 1px);
  line-height: 1.35;
}

.contact-identity-malay {
  margin: 0 0 1.15rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
  font-size: calc(0.95rem + 1px);
}

.contact-identity-details .contact-card-list {
  margin-bottom: 0;
}

.contact-identity-details .contact-card-label {
  color: #9ec5e8;
}

.contact-identity-details .contact-card-list a,
.contact-identity-details .contact-card-list span:not(.contact-card-label) {
  color: #ffffff;
}

.contact-identity-details .contact-card-list a:hover {
  color: #d4e8f8;
}

/* ===== Mobile / tablet layout polish ===== */
@media (max-width: 899px) {
  :root {
    --header-h: 5rem;
    --soft-radius: 1.25rem;
    --soft-radius-sm: 0.95rem;
    --fs-h1: clamp(1.45rem, 5.2vw, 1.85rem);
    --fs-h2: clamp(1.4rem, 4.8vw, 1.75rem);
    --fs-h3: clamp(1.1rem, 3.5vw, 1.25rem);
    --fs-h4: 1.05rem;
    --fs-h5: 0.98rem;
    --fs-body: 0.95rem;
  }

  body {
    font-size: var(--fs-body);
  }

  .container {
    width: min(100% - 1.75rem, var(--max));
  }

  .logo-link img {
    height: 4rem;
  }

  .header-inner {
    gap: 0.85rem;
    min-height: var(--header-h);
    padding-block: 0.35rem;
  }

  /* Keep mobile drawer link size after soft-agency overrides */
  .primary-nav > li > a,
  .nav-dropdown-toggle {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.01em;
  }

  .btn {
    font-size: 0.8rem;
  }

  .btn-lg {
    font-size: 0.85rem;
  }

  .btn-compact {
    font-size: 0.72rem;
  }

  .eyebrow {
    font-size: 0.65rem;
  }

  .path-label {
    font-size: 0.92rem;
  }

  .path-desc {
    font-size: 0.8rem;
  }

  .hero-slider {
    min-height: min(78vh, 36rem);
    align-items: flex-start;
  }

  .hero-content {
    padding: 2.75rem 0 5.75rem;
    transform: none;
    align-items: flex-start;
  }

  .hero-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .hero-logo {
    width: 8.5rem;
  }

  .hero-tagline {
    max-width: none;
    font-size: clamp(1.25rem, 5.4vw, 1.6rem);
  }

  .hero-lead {
    font-size: 0.95rem;
    margin-bottom: 1.35rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .hero-actions .btn-lg {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.35rem;
  }

  /* Chip overlaps CTAs on narrow screens — hide it */
  .hero-slide-chip {
    display: none;
  }

  .hero-controls {
    bottom: 0.85rem;
    gap: 0.65rem;
  }

  .page-hero {
    min-height: 12.5rem;
  }

  .page-hero-body {
    padding-block: 2.25rem;
  }

  .page-hero-body h1 {
    max-width: none;
    font-size: clamp(1.35rem, 5.2vw, 1.7rem);
  }

  .banner {
    margin-inline: 0.85rem;
    margin-block: 0 1.15rem;
    border-radius: 1.25rem;
    padding: 2.5rem 0;
  }

  .banner-contained {
    margin-inline: 0;
    border-radius: var(--soft-radius);
  }

  .banner-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .banner-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .intro-banner {
    border-radius: 1.25rem;
    min-height: 14rem;
    outline-width: 4px;
    outline-offset: 6px;
    box-shadow:
      var(--soft-shadow),
      0 0 0 6px rgba(26, 90, 154, 0.35);
  }

  .intro-banner img {
    min-height: 14rem;
  }

  .section-intro {
    padding: 2.5rem 0;
  }

  .section-paths {
    padding: 2rem 0;
  }

  .path-card {
    padding: 1.05rem 1.05rem;
  }

  .statement-panel {
    border-radius: 1.25rem;
  }

  .statement-main {
    padding: 2.25rem 1.25rem;
  }

  .statement-panel h2 {
    font-size: clamp(1.25rem, 4.8vw, 1.55rem);
  }

  .statement-copy p {
    font-size: 0.95rem;
  }

  .focus-item h3,
  .membership-type-card h3,
  .blog-card-body h3,
  .contact-pathway h3 {
    font-size: 1.05rem;
  }

  .statement-media {
    min-height: 11rem;
  }

  .focus-item,
  .membership-type-card,
  .programme-feature,
  .blog-card,
  .contact-card,
  .contact-identity {
    border-radius: 1.15rem;
  }

  .footer-brand img {
    height: 4.25rem;
    max-width: 9.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-hero-copy h1 {
    max-width: none;
  }

  .contact-pathway .btn,
  .contact-pathway .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .contact-card .btn {
    width: 100%;
    justify-content: center;
    align-self: stretch;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 4.5rem;
    --fs-h1: clamp(1.3rem, 5.5vw, 1.65rem);
    --fs-h2: clamp(1.25rem, 5vw, 1.55rem);
    --fs-h3: 1.05rem;
    --fs-body: 0.9rem;
  }

  .container {
    width: min(100% - 1.35rem, var(--max));
  }

  .logo-link img {
    height: 3.6rem;
  }

  .nav-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }

  .hero-slider {
    min-height: min(72vh, 34rem);
  }

  .hero-content {
    padding: 2.35rem 0 5.5rem;
  }

  .hero-logo {
    width: 7.25rem;
  }

  .hero-tagline {
    font-size: clamp(1.15rem, 5.8vw, 1.45rem);
    margin-bottom: 0.85rem;
  }

  .hero-lead {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .primary-nav > li > a,
  .nav-dropdown-toggle {
    font-size: 0.9rem;
  }

  .banner {
    margin-inline: 0.65rem;
    border-radius: 1.1rem;
    padding: 2.15rem 0;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .intro-banner {
    outline: none;
    outline-offset: 0;
    box-shadow: var(--soft-shadow);
  }

  .vision-callout {
    padding: 1rem 1.1rem;
  }

  .statement-main {
    padding: 1.85rem 1.1rem;
  }

  .site-footer {
    padding: 2.35rem 0 1.65rem;
  }

  .footer-grid {
    gap: 1.65rem;
    margin-bottom: 1.75rem;
  }
}

@media (max-width: 480px) {
  .logo-link img {
    height: 3.25rem;
  }

  .hero-actions .btn-lg {
    font-size: 0.88rem;
  }
}

/* Prefer less motion on touch hover states */
@media (hover: none) {
  .path-card:hover,
  .path-card-accent:hover,
  .focus-item:hover,
  .membership-type-card:hover {
    transform: none;
  }
}

/* —— Mobile footer nav (sticky bottom bar) —— */
.mobile-footer-nav {
  display: none;
}

@media (max-width: 899px) {
  .mobile-footer-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    gap: 0;
    min-height: 3.65rem;
    padding: 0.35rem 0.2rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid rgba(10, 39, 68, 0.1);
    box-shadow: 0 -8px 28px rgba(10, 39, 68, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.1rem;
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: capitalize;
    line-height: 1.15;
    text-align: center;
    border-radius: 0.55rem;
    transition: color 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-footer-link span {
    max-width: 4.6rem;
  }

  .mobile-footer-link svg {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
  }

  .mobile-footer-link:hover,
  .mobile-footer-link:focus-visible {
    color: var(--blue);
    background: rgba(26, 90, 154, 0.06);
    outline: none;
  }

  .mobile-footer-link.is-active,
  .mobile-footer-link[aria-current="page"] {
    color: var(--navy);
  }

  .mobile-footer-link.is-active svg,
  .mobile-footer-link[aria-current="page"] svg {
    stroke: var(--blue);
  }

  /* Clear content above the bar */
  body {
    padding-bottom: calc(4.1rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer {
    padding-bottom: 1.25rem;
  }

  /* Hide while hamburger drawer is open */
  body.nav-open .mobile-footer-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 360px) {
  .mobile-footer-link {
    font-size: 0.55rem;
  }

  .mobile-footer-link svg {
    width: 1.2rem;
    height: 1.2rem;
  }
}
