/* ---- Self-hosted fonts (Fontsource, OFL) — added v4.0.11 ---- */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/montserrat-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/montserrat-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/montserrat-latin-800-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/inter-latin-300-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/inter-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-latin-500-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/inter-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/inter-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* =========================================================
   AGF DESIGN SYSTEM v4.0
   Shared stylesheet for all AGF pages.
   Built on the AGF Brand Book (pro bono, Mr Great).
   60% white / 30% purple / 10% teal – strict ratio.
   ========================================================= */

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

:root{
  /* BRAND COLOURS – Brand Book p.06 */
  --agf-purple:#2E008B;
  --agf-purple-deep:#1F005E;
  --teal:#33D6C9;
  --teal-dark:#1FB5A8;
  --teal-soft:#E6FBF9;
  --ink:#111111;
  --ink-soft:#444444;
  --ink-muted:#6B6B6B;
  --cloud:#F8F8F8;
  --stone:#E7E7E7;
  --lilac:#EEE9FF;
  --white:#FFFFFF;

  /* TYPOGRAPHY – Brand Book p.07 */
  --font-heading:'Montserrat',system-ui,-apple-system,sans-serif;
  --font-body:'Inter',system-ui,-apple-system,sans-serif;
  --font-accent:'Montserrat',system-ui,sans-serif;

  /* SYSTEM */
  --max-w:1200px;
  --max-w-narrow:880px;
  --ease:cubic-bezier(.4,0,.2,1);
  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:20px;
}

html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  font-weight:400;
}

img{max-width:100%;height:auto;display:block}
a{color:var(--agf-purple);text-decoration:none;transition:color .2s var(--ease)}
a:hover{color:var(--agf-purple-deep)}

.skip{position:absolute;top:-100%;left:16px;z-index:9999;padding:12px 24px;background:var(--agf-purple);color:#fff;border-radius:0 0 8px 8px;font-weight:600;font-family:var(--font-accent)}
.skip:focus{top:0}

/* =========================================================
   BRAND GRAPHIC ELEMENTS – Brand Book p.08
   ========================================================= */
.brand-divider{display:inline-flex;align-items:center;gap:6px;margin:12px 0 20px;color:var(--agf-purple)}
.brand-divider .ln{display:block;width:32px;height:1.5px;background:currentColor;opacity:.7}
.brand-divider .dt{display:block;width:6px;height:6px;border-radius:50%;background:currentColor}
.brand-divider .dt-teal{background:var(--teal)}
.brand-divider .hex{display:block;width:14px;height:16px;background:currentColor;clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);position:relative}
.brand-divider .hex::after{content:'';position:absolute;inset:2px;background:var(--cloud);clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%)}
.brand-divider--light{color:#fff}
.brand-divider--light .hex::after{background:var(--agf-purple-deep)}

/* Hex pattern as a CSS background – usable on any element via .hex-pattern */
.hex-pattern{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 230' fill='none'><g stroke='%23ffffff' stroke-width='1.2' opacity='0.08'><polygon points='50,5 95,30 95,80 50,105 5,80 5,30'/><polygon points='150,5 195,30 195,80 150,105 105,80 105,30'/><polygon points='100,90 145,115 145,165 100,190 55,165 55,115'/><polygon points='50,175 95,200 95,250 50,275 5,250 5,200'/><polygon points='150,175 195,200 195,250 150,275 105,250 105,200'/></g></svg>");
  background-size:240px auto;
  background-repeat:repeat;
}

/* Body watermark – the AGF hex mark, fixed at viewport centre.
   Sits behind all content at very low opacity (paper-watermark effect).
   Hidden over dark sections via the .no-watermark utility (auto-applied
   to .section--purple, .section--purple-deep, .journey, .donate-cta, .footer
   via the rules at the end of this block). */
body::before{
  content:'';
  position:fixed;
  top:50%;
  left:50%;
  width:46vmin;
  height:46vmin;
  transform:translate(-50%,-50%);
  z-index:0;
  pointer-events:none;
  background-image:url("../img/agf-hex-mark.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  opacity:0.05;
  will-change:transform;
}
@media(max-width:700px){
  body::before{width:60vmin;height:60vmin;opacity:0.04}
}
/* Ensure all stacking contexts sit above the watermark */
.header,main,.footer,.persistent-donate,.cookie-banner,.page-hero,.section,.section-sm{position:relative;z-index:1}

/* Hex motif cluster – a feature element used in section corners.
   Faithful to the brand book usage (hex pattern as accent, not wallpaper).
   Position via the .hex-motif--bl/br/tl/tr variants. */
.hex-motif{
  position:absolute;
  width:280px;
  height:320px;
  pointer-events:none;
  opacity:.5;
  z-index:0;
}
.hex-motif--br{bottom:-60px;right:-60px}
.hex-motif--bl{bottom:-60px;left:-60px;transform:scaleX(-1)}
.hex-motif--tr{top:-60px;right:-60px;transform:scaleY(-1)}
.hex-motif--tl{top:-60px;left:-60px;transform:scale(-1,-1)}
.hex-motif svg{width:100%;height:100%;display:block}

/* =========================================================
   INFOGRAPHIC: ASA PILLARS (Vision / Mission / Values) v3.6
   Three rows on purple banner panels, white hex icons,
   per 3_pillars_hierarchy reference
   ========================================================= */
.pillars-stack{
  display:flex;
  flex-direction:column;
  gap:28px;
  margin-top:24px;
}

/* Shared banner panel (purple background, hex pattern, white hex icon left, content right) */
.pillar-banner{
  background:linear-gradient(135deg,var(--agf-purple) 0%,var(--agf-purple-deep) 100%);
  color:#fff;
  border-radius:var(--radius-lg);
  padding:44px;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:36px;
  align-items:center;
  position:relative;
  overflow:hidden;
}
.pillar-banner::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 230' fill='none'><g stroke='%23ffffff' stroke-width='1.2' opacity='0.10'><polygon points='100,5 145,30 145,80 100,105 55,80 55,30'/><polygon points='50,90 95,115 95,165 50,190 5,165 5,115'/><polygon points='150,90 195,115 195,165 150,190 105,165 105,115'/></g></svg>");
  background-size:280px auto;
  background-repeat:repeat;
  pointer-events:none;
  opacity:.5;
}
.pillar-banner > *{position:relative;z-index:1}

/* White hex with purple icon inside (per AMK: "hex have a white background") */
.pillar-hex-icon{
  width:96px;height:106px;
  background:var(--white);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.pillar-hex-icon svg{width:44px;height:44px;color:var(--agf-purple);stroke-width:1.8}

.pillar-banner .pillar-label{
  color:var(--teal);
  font-family:var(--font-accent);
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  margin-bottom:12px;
  display:block;
}

/* Vision row – single statement */
.pillar-banner--vision .pillar-body p{
  font-family:var(--font-heading);
  font-weight:600;
  font-size:clamp(1.15rem,2vw,1.4rem);
  line-height:1.45;
  color:#fff;
  max-width:780px;
}

/* Mission row – 3 inner pillars on the right */
.pillar-banner--mission .pillar-body .pillars-mission{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:4px;
}
.mission-pillar{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius-md);
  padding:20px 16px 18px;
  text-align:center;
  transition:all .3s var(--ease);
  backdrop-filter:blur(6px);
}
.mission-pillar:hover{background:rgba(255,255,255,.14);transform:translateY(-2px)}
.mission-pillar-hex{
  width:46px;height:52px;
  background:var(--teal);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  margin:0 auto 12px;
  display:flex;align-items:center;justify-content:center;
  color:var(--agf-purple);
  font-family:var(--font-heading);
  font-weight:800;
  font-size:1rem;
}
.mission-pillar p{
  color:#fff;
  font-size:.92rem;
  line-height:1.5;
  font-weight:500;
}

/* Values row – 3x2 grid on the right */
.pillar-banner--values .pillar-body .pillars-values{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:4px;
}
.value-pillar{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius-md);
  padding:18px 14px;
  text-align:center;
  transition:all .3s var(--ease);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.value-pillar:hover{background:rgba(255,255,255,.14);transform:translateY(-2px)}
.value-pillar-hex{
  width:42px;height:48px;
  background:var(--teal);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display:flex;align-items:center;justify-content:center;
  color:var(--agf-purple);
}
.value-pillar-hex svg{width:20px;height:20px;stroke-width:2}
.value-pillar h4{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:.98rem;
  color:#fff;
  line-height:1.3;
  margin:0;
}
.value-pillar p{
  font-size:.85rem;
  line-height:1.5;
  color:rgba(255,255,255,.85);
  margin:0;
}

/* Responsive collapse */
@media(max-width:880px){
  .pillar-banner{grid-template-columns:1fr;padding:36px 28px;gap:24px;text-align:center}
  .pillar-hex-icon{margin:0 auto}
  .pillar-banner--mission .pillar-body .pillars-mission{grid-template-columns:1fr;gap:12px}
  .pillar-banner--values .pillar-body .pillars-values{grid-template-columns:repeat(2,1fr);gap:12px}
}
@media(max-width:480px){
  .pillar-banner--values .pillar-body .pillars-values{grid-template-columns:1fr}
}

/* =========================================================
   PHOTO GALLERY – multi-photo grid (Pastoral, Celebrating 10 Years, Cambridge)
   ========================================================= */
.photo-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
  margin-top:24px;
}
.photo-gallery-item{
  margin:0;
  border-radius:var(--radius-lg);
  overflow:hidden;
  position:relative;
  aspect-ratio:4/3;
  box-shadow:0 8px 24px rgba(46,0,139,.08);
  transition:transform .35s var(--ease),box-shadow .35s var(--ease);
}
.photo-gallery-item:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(46,0,139,.14)}
.photo-gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.photo-gallery--3x3{
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.photo-gallery--3x3 .photo-gallery-item{aspect-ratio:4/3}
@media(max-width:700px){
  .photo-gallery--3x3{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:440px){
  .photo-gallery--3x3{grid-template-columns:1fr}
}
.photo-gallery--4x4{
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.photo-gallery--4x4 .photo-gallery-item{aspect-ratio:4/3}
@media(max-width:900px){
  .photo-gallery--4x4{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:600px){
  .photo-gallery--4x4{grid-template-columns:repeat(2,1fr)}
}
.photo-gallery--4x3{
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.photo-gallery--4x3 .photo-gallery-item{aspect-ratio:4/3}
@media(max-width:900px){
  .photo-gallery--4x3{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:600px){
  .photo-gallery--4x3{grid-template-columns:repeat(2,1fr)}
}
/* 2-col, 3-row gallery (6 photos) */
.photo-gallery--2x3{
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}
.photo-gallery--2x3 .photo-gallery-item{aspect-ratio:4/3}
@media(max-width:600px){
  .photo-gallery--2x3{grid-template-columns:1fr}
}

/* Flags variant: 4-then-3 staggered layout (7 portrait tiles, centred bottom row)
   Uses a 12-column grid so top-row tiles span 3 cols (4×3=12) and bottom-row tiles
   span 4 cols (3×4=12). Both rows fill the same total width — bottom row centres
   automatically with no offset arithmetic. */
.photo-gallery--flags-4-3{
  grid-template-columns:repeat(12,1fr);
  gap:20px;
}
.photo-gallery--flags-4-3 .photo-gallery-item{aspect-ratio:3/4}
.photo-gallery--flags-4-3 .photo-gallery-item:nth-child(-n+4){grid-column:span 3}
.photo-gallery--flags-4-3 .photo-gallery-item:nth-child(n+5){grid-column:span 4}
@media(max-width:900px){
  .photo-gallery--flags-4-3{grid-template-columns:repeat(6,1fr)}
  .photo-gallery--flags-4-3 .photo-gallery-item:nth-child(-n+4){grid-column:span 3}
  .photo-gallery--flags-4-3 .photo-gallery-item:nth-child(n+5){grid-column:span 2}
}
@media(max-width:600px){
  .photo-gallery--flags-4-3{grid-template-columns:repeat(2,1fr)}
  .photo-gallery--flags-4-3 .photo-gallery-item:nth-child(-n+4){grid-column:span 1}
  .photo-gallery--flags-4-3 .photo-gallery-item:nth-child(n+5){grid-column:span 1}
}

/* =========================================================
   CAMBRIDGE LEARNER CYCLE – 5 attributes in a circular arrangement
   Brand-coloured re-imagining of the Cambridge International graphic
   ========================================================= */
.learner-cycle{
  position:relative;
  width:100%;
  max-width:620px;
  margin:48px auto 0;
  aspect-ratio:1/1;
}
.learner-cycle-centre{
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:30%;
  aspect-ratio:1/1;
  border-radius:50%;
  background:var(--white);
  border:2px solid var(--agf-purple);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  box-shadow:0 10px 30px rgba(46,0,139,.12);
}
.learner-cycle-centre-label{
  font-family:var(--font-heading);
  font-weight:800;
  color:var(--agf-purple);
  text-align:center;
  font-size:clamp(.95rem,1.8vw,1.15rem);
  line-height:1.2;
}
.learner-attr{
  position:absolute;
  width:26%;
  aspect-ratio:1/1.1;
}
.learner-attr-hex{
  width:100%;
  height:100%;
  background:linear-gradient(135deg,var(--agf-purple) 0%,var(--agf-purple-deep) 100%);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-family:var(--font-accent);
  font-weight:700;
  font-size:clamp(.7rem,1.3vw,.86rem);
  letter-spacing:.04em;
  text-transform:uppercase;
  text-align:center;
  padding:0 6px;
  box-shadow:0 6px 20px rgba(46,0,139,.18);
  transition:transform .3s var(--ease);
}
.learner-attr:hover .learner-attr-hex{transform:scale(1.04)}
.learner-attr--2 .learner-attr-hex,
.learner-attr--4 .learner-attr-hex{background:var(--teal);color:var(--agf-purple)}
/* Position each attribute around the circle – pulled outwards to clear the centre circle (v3.6) */
.learner-attr--1{top:-2%;left:50%;transform:translateX(-50%)}
.learner-attr--2{top:28%;right:-2%}
.learner-attr--3{bottom:-2%;right:18%}
.learner-attr--4{bottom:-2%;left:18%}
.learner-attr--5{top:28%;left:-2%}
@media(max-width:520px){
  .learner-cycle{max-width:380px}
  .learner-attr{width:28%}
  .learner-cycle-centre{width:32%}
}
.pillars-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:24px;
}
.pillar{
  background:var(--white);
  border:1px solid var(--stone);
  border-radius:var(--radius-lg);
  padding:36px 28px;
  position:relative;
  transition:all .3s var(--ease);
}
.pillar:hover{border-color:rgba(46,0,139,.2);box-shadow:0 12px 36px rgba(46,0,139,.08);transform:translateY(-4px)}
.pillar-icon{
  width:64px;height:64px;
  background:var(--lilac);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:22px;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.pillar-icon svg{width:28px;height:28px;color:var(--agf-purple)}
.pillar--mission .pillar-icon{background:var(--teal-soft)}
.pillar--mission .pillar-icon svg{color:var(--teal-dark)}
.pillar--values .pillar-icon{background:var(--lilac)}
.pillar-label{
  font-family:var(--font-accent);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--teal-dark);
  margin-bottom:14px;
}
.pillar p{
  color:var(--ink-soft);
  font-size:.98rem;
  line-height:1.65;
}
.pillar-list{
  list-style:none;
  padding:0;
  margin:0;
}
.pillar-list li{
  font-size:.98rem;
  line-height:1.55;
  color:var(--ink-soft);
  padding:8px 0 8px 22px;
  position:relative;
  border-bottom:1px solid var(--stone);
}
.pillar-list li:last-child{border-bottom:none}
.pillar-list li::before{
  content:'';
  position:absolute;
  left:0;top:14px;
  width:10px;height:10px;
  background:var(--teal);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
@media(max-width:900px){.pillars-grid{grid-template-columns:1fr;gap:16px}}

/* =========================================================
   INFOGRAPHIC: SIX CORE VALUES (hex grid)
   ========================================================= */
.values-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:24px;
}
.value-cell{
  background:var(--white);
  border:1px solid var(--stone);
  border-radius:var(--radius-lg);
  padding:32px 28px;
  position:relative;
  transition:all .3s var(--ease);
  overflow:hidden;
}
.value-cell:hover{border-color:rgba(46,0,139,.2);box-shadow:0 10px 30px rgba(46,0,139,.08);transform:translateY(-3px)}
.value-cell::before{
  /* decorative outline hex sitting in the top-right corner */
  content:'';
  position:absolute;
  top:-20px;right:-20px;
  width:70px;height:70px;
  border:1.5px solid var(--teal);
  opacity:.5;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.value-hex{
  width:48px;height:48px;
  background:linear-gradient(135deg,var(--agf-purple) 0%, var(--agf-purple-deep) 100%);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  margin-bottom:18px;
}
.value-name{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1.15rem;
  color:var(--agf-purple);
  margin-bottom:8px;
  line-height:1.3;
}
.value-desc{
  font-size:.94rem;
  line-height:1.6;
  color:var(--ink-soft);
}
@media(max-width:900px){.values-grid{grid-template-columns:1fr;gap:16px}}
@media(min-width:600px) and (max-width:900px){.values-grid{grid-template-columns:repeat(2,1fr)}}

/* =========================================================
   HONOUR CODE BLOCK (Who We Are)
   ========================================================= */
.honour-code{
  background:var(--agf-purple);
  color:#fff;
  padding:48px 56px;
  border-radius:var(--radius-lg);
  max-width:760px;
  margin:0 auto;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.honour-code::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 230' fill='none'><g stroke='%23ffffff' stroke-width='1.2' opacity='0.09'><polygon points='50,5 95,30 95,80 50,105 5,80 5,30'/><polygon points='150,5 195,30 195,80 150,105 105,80 105,30'/><polygon points='100,90 145,115 145,165 100,190 55,165 55,115'/><polygon points='50,175 95,200 95,250 50,275 5,250 5,200'/><polygon points='150,175 195,200 195,250 150,275 105,250 105,200'/></g></svg>");
  background-size:240px auto;
  background-repeat:repeat;
  pointer-events:none;
}
.honour-code p{
  position:relative;
  z-index:1;
  font-family:var(--font-heading);
  font-weight:600;
  font-size:1.2rem;
  line-height:1.55;
  text-align:center;
  font-style:normal;
}
.honour-code::after{
  content:'\201C';
  position:absolute;
  top:8px;left:24px;
  font-size:5rem;
  color:var(--teal);
  opacity:.4;
  line-height:1;
  font-family:Georgia,serif;
  z-index:1;
}
@media(max-width:700px){.honour-code{padding:36px 28px}.honour-code p{font-size:1.05rem}}

/* Honour code with companion photo layout */
.honour-code-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);
  gap:32px;
  align-items:stretch;
  max-width:1080px;
  margin:0 auto;
}
.honour-code-photo{
  margin:0;
  border-radius:var(--radius-lg);
  overflow:hidden;
  position:relative;
  min-height:380px;
  box-shadow:0 12px 32px rgba(46,0,139,.12);
}
.honour-code-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.honour-code-layout .honour-code{margin:0}
@media(max-width:880px){
  .honour-code-layout{grid-template-columns:1fr;gap:20px}
  .honour-code-photo{min-height:280px;aspect-ratio:4/3}
}

/* =========================================================
   CURRICULUM SKILLS LIST (Cambridge A-Levels)
   ========================================================= */
.curriculum-skills{
  background:var(--lilac);
  border-radius:var(--radius-lg);
  padding:36px 40px;
  margin:48px 0 24px;
}
.curriculum-skills h3{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1.15rem;
  color:var(--agf-purple);
  margin-bottom:18px;
}
.skills-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px 28px;
}
.skills-list li{
  position:relative;
  padding:6px 0 6px 22px;
  font-size:.95rem;
  line-height:1.55;
  color:var(--ink-soft);
}
.skills-list li::before{
  content:'';
  position:absolute;
  left:0;top:13px;
  width:8px;height:8px;
  background:var(--teal);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
@media(max-width:700px){.skills-list{grid-template-columns:1fr}}

/* =========================================================
   SUBJECT GRID (Cambridge A-Levels – 4 subject cards)
   ========================================================= */
.subject-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
  margin-top:24px;
}
.subject-card{
  background:var(--white);
  border:1px solid var(--stone);
  border-radius:var(--radius-lg);
  padding:32px 32px;
  transition:all .3s var(--ease);
}
.subject-card:hover{border-color:rgba(46,0,139,.2);box-shadow:0 10px 30px rgba(46,0,139,.08)}
.subject-eyebrow{
  font-family:var(--font-accent);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--teal-dark);
  margin-bottom:10px;
}
.subject-card h3{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1.35rem;
  color:var(--agf-purple);
  margin-bottom:18px;
  line-height:1.25;
}
.subject-card ul{
  list-style:none;
  padding:0;
  margin:0;
}
.subject-card li{
  position:relative;
  padding:6px 0 6px 18px;
  font-size:.94rem;
  line-height:1.55;
  color:var(--ink-soft);
}
.subject-card li::before{
  content:'';
  position:absolute;
  left:0;top:12px;
  width:7px;height:7px;
  background:var(--teal);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
@media(max-width:800px){.subject-grid{grid-template-columns:1fr;gap:16px}}

/* =========================================================
   CARE PILLARS (Pastoral Care – 4 cards)
   ========================================================= */
.care-pillars{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
  margin-top:48px;
}
.care-pillar{
  background:var(--white);
  border:1px solid var(--stone);
  border-radius:var(--radius-lg);
  padding:32px 28px;
  display:flex;
  flex-direction:column;
  transition:all .3s var(--ease);
}
.care-pillar:hover{border-color:rgba(46,0,139,.2);box-shadow:0 10px 30px rgba(46,0,139,.08);transform:translateY(-3px)}
.care-pillar-icon{
  width:52px;height:52px;
  background:var(--lilac);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:18px;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.care-pillar-icon svg{width:24px;height:24px;color:var(--agf-purple)}
.care-pillar-emoji{
  font-size:2.2rem;
  line-height:1;
  margin-bottom:14px;
  display:block;
}
.care-pillar h3{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1.2rem;
  color:var(--agf-purple);
  margin-bottom:14px;
  line-height:1.3;
}
.care-pillar p{
  font-size:.95rem;
  line-height:1.6;
  color:var(--ink-soft);
}
.care-pillar-list{
  list-style:none;
  padding:0;
  margin:0;
}
.care-pillar-list li{
  position:relative;
  padding-left:22px;
  margin-bottom:12px;
  font-size:.95rem;
  line-height:1.55;
  color:var(--ink-soft);
}
.care-pillar-list li::before{
  content:'';
  position:absolute;
  left:0;
  top:9px;
  width:10px;
  height:11px;
  background:var(--teal);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.care-pillar-list li:last-child{margin-bottom:0}
@media(max-width:700px){.care-pillars{grid-template-columns:1fr;gap:16px}}

/* =========================================================
   STUDENT JOURNEY FLOW (4-step horizontal)
   ========================================================= */
.journey-flow{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;
  align-items:stretch;
  gap:12px;
  margin-top:24px;
}
.jf-step{
  background:var(--white);
  border:1px solid var(--stone);
  border-radius:var(--radius-lg);
  padding:28px 20px;
  text-align:center;
  position:relative;
  transition:all .3s var(--ease);
}
.jf-step:hover{border-color:rgba(46,0,139,.2);box-shadow:0 8px 24px rgba(46,0,139,.08)}
.jf-step-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;height:44px;
  background:linear-gradient(135deg,var(--agf-purple) 0%, var(--agf-purple-deep) 100%);
  color:#fff;
  font-family:var(--font-heading);
  font-weight:800;
  font-size:1.2rem;
  margin:0 auto 16px;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.jf-step-label{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1.05rem;
  color:var(--agf-purple);
  margin-bottom:8px;
  line-height:1.3;
}
.jf-step-desc{
  font-size:.88rem;
  line-height:1.55;
  color:var(--ink-soft);
  margin:0;
}
.jf-arrow{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.5rem;
  color:var(--teal);
  font-weight:300;
  user-select:none;
}
@media(max-width:900px){
  .journey-flow{
    grid-template-columns:1fr;
    gap:8px;
  }
  .jf-arrow{transform:rotate(90deg);padding:4px 0}
}

/* =========================================================
   HEADER + NAVIGATION
   ========================================================= */
.header{position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(46,0,139,.06);transition:box-shadow .3s var(--ease)}
.header.scrolled{box-shadow:0 2px 24px rgba(46,0,139,.08)}
.header-inner{max-width:1380px;margin:0 auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;height:96px}

.logo img{width:auto}
.logo-wrap{position:relative;display:inline-block}
.logo-wrap .logo-primary{height:80px;width:auto;transition:opacity .4s ease}

.nav{display:flex;align-items:center;gap:4px}
.nav-link{
  font-family:var(--font-body);
  font-size:.88rem;
  font-weight:500;
  color:var(--ink-soft);
  padding:10px 11px;
  border-radius:var(--radius-sm);
  transition:all .2s var(--ease);
  background:none;
  border:none;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
}
.nav-link:hover,.nav-link.active{color:var(--agf-purple);background:var(--lilac)}
.nav-link.has-dropdown::after{content:'';display:inline-block;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid currentColor;margin-left:6px;vertical-align:middle;opacity:.6;flex-shrink:0}
.nav-link.has-dropdown{display:inline-flex;align-items:center}

.dropdown-wrap{position:relative}
.dropdown{position:absolute;top:100%;left:0;min-width:260px;background:var(--white);border-radius:var(--radius-md);box-shadow:0 10px 36px rgba(46,0,139,.14);padding:8px;opacity:0;visibility:hidden;transform:translateY(8px);transition:all .25s var(--ease);z-index:100;border:1px solid var(--stone)}
.dropdown-wrap:hover .dropdown,.dropdown-wrap:focus-within .dropdown,.dropdown-wrap.dd-open .dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown a{display:block;padding:10px 14px;border-radius:var(--radius-sm);font-size:.88rem;color:var(--ink-soft);font-weight:400;transition:all .15s var(--ease)}
.dropdown a:hover,.dropdown a.active{background:var(--lilac);color:var(--agf-purple)}

.btn-donate-nav{
  background:var(--agf-purple);
  color:#fff!important;
  padding:11px 18px;
  border-radius:50px;
  font-family:var(--font-accent);
  font-weight:600;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:all .25s var(--ease);
  border:none;
  cursor:pointer;
  white-space:nowrap;
}
.btn-donate-nav:hover{background:var(--agf-purple-deep);transform:translateY(-1px);box-shadow:0 6px 20px rgba(46,0,139,.28);color:#fff!important}
.btn-donate-nav svg{width:15px;height:15px;fill:currentColor}

.nav-linkedin{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;height:36px;
  border-radius:50%;
  background:transparent;
  color:var(--ink-soft);
  transition:all .2s var(--ease);
  flex-shrink:0;
}
.nav-linkedin:hover{background:var(--lilac);color:var(--agf-purple)}
.nav-linkedin svg{width:18px;height:18px;fill:currentColor}

.mobile-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px}
.mobile-toggle span{display:block;width:24px;height:2px;background:var(--agf-purple);margin:5px 0;border-radius:2px}

@media(max-width:980px){
  .nav{display:none}
  .mobile-toggle{display:block}
  .nav.open{display:flex;flex-direction:column;position:fixed;top:96px;left:0;right:0;height:calc(100vh - 96px);height:calc(100dvh - 96px);z-index:1000;background:var(--white);padding:24px;gap:4px;overflow-y:auto;overscroll-behavior:contain;align-items:stretch}
  .nav.open .dropdown{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;background:var(--lilac);border:none;border-radius:var(--radius-sm);margin-top:4px}
  .nav.open .nav-link{padding:14px 16px;font-size:1rem;text-align:left;width:100%}
  .nav.open .btn-donate-nav{justify-content:center;margin-top:8px}
}

/* =========================================================
   PAGE HERO (Watermark 2 style)
   Contoured purple bleed from the right with hex pattern overlay.
   Full-bleed photo background – see .page-hero rules below
   cross-browser compatibility and responsive curves.
   ========================================================= */
/* =========================================================
   VIDEO EMBED (YouTube etc.)
   Responsive 16:9 container with rounded corners
   ========================================================= */
.video-intro{
  text-align:center;
  max-width:680px;
  margin:0 auto 36px;
}
.video-intro .section-label{
  font-family:var(--font-accent);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--teal-dark);
  margin-bottom:10px;
}
.video-intro .section-heading{
  font-family:var(--font-heading);
  font-weight:800;
  font-size:clamp(1.6rem,3.2vw,2.2rem);
  line-height:1.15;
  color:var(--agf-purple);
  margin-bottom:14px;
}
.video-intro .section-sub{
  color:var(--ink-soft);
  font-size:1rem;
  line-height:1.65;
  margin:0;
}
.video-embed{
  position:relative;
  width:100%;
  max-width:880px;
  margin:0 auto;
  aspect-ratio:16/9;
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:0 12px 36px rgba(46,0,139,.18);
  background:#000;
}
.video-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
}

/* =========================================================
   PAGE HERO – full-bleed photo, matches homepage hero pattern
   v3.4: replaced curved purple bleed with full image background
   ========================================================= */
.page-hero{
  position:relative;
  padding:160px 24px 40px;
  overflow:hidden;
  min-height:97vh;
  display:flex;
  align-items:flex-end;
  background:var(--agf-purple-deep); /* fallback while image loads */
}
.page-hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.page-hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 30%;
  display:block;
}
.page-hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  /* Light brand-purple tint + stronger bottom-darken for text at bottom of hero */
  background:
    linear-gradient(180deg, rgba(46,0,139,0.0) 0%, rgba(46,0,139,0.12) 40%, rgba(31,0,94,0.42) 75%, rgba(31,0,94,0.55) 100%),
    rgba(46,0,139,0.08);
}
.page-hero-content{
  max-width:var(--max-w);
  margin:0 auto;
  width:100%;
  position:relative;
  z-index:2;
  padding:0 24px;
}
.page-hero-text{max-width:800px}
/* v3.8: --drop variant now redundant since base uses flex-end + 97vh, kept for backward compat */
.page-hero--drop{align-items:flex-end;padding-top:160px;padding-bottom:56px;min-height:97vh}
.page-hero--drop .page-hero-content{padding-bottom:0}
.page-hero-eyebrow{
  font-family:var(--font-accent);
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--teal);
  margin-bottom:16px;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}
.page-hero h1{
  font-family:var(--font-heading);
  font-weight:800;
  font-size:clamp(1.8rem,3.6vw,2.8rem);
  line-height:1.12;
  letter-spacing:-.018em;
  color:#fff;
  margin-bottom:18px;
  text-transform:none;
  text-shadow:0 2px 12px rgba(0,0,0,.35);
}
.page-hero h1 .accent{
  color:var(--teal);
  display:block;
  font-size:clamp(1rem,1.8vw,1.25rem);
  font-weight:600;
  line-height:1.5;
  margin-top:8px;
}
.page-hero-intro{
  color:rgba(255,255,255,.92);
  font-size:1.05rem;
  line-height:1.85;
  max-width:580px;
  text-shadow:0 1px 8px rgba(0,0,0,.4);
}
.page-hero .brand-divider{
  color:#fff;
  opacity:.85;
  margin:8px 0 22px;
}
.page-hero .brand-divider .hex::after{background:var(--agf-purple-deep)}

@media(max-width:900px){
  .page-hero{padding:120px 20px 56px;min-height:72vh}
  .page-hero h1{font-size:clamp(1.6rem,6vw,2.2rem)}
  .page-hero h1 .accent{font-size:clamp(0.9rem,3vw,1.1rem)}
  .page-hero-intro{font-size:.95rem;max-width:100%}
}

/* =========================================================
   GENERIC SECTIONS
   ========================================================= */
.section{padding:96px 24px;position:relative}
.section-sm{padding:64px 24px;position:relative}
.section--lilac{background:var(--lilac)}
.section--cloud{background:var(--cloud)}
.section--purple{background:var(--agf-purple)}

/* =========================================================
   TESTIMONIAL CARDS (partner quotes – Celebrating 10 Years)
   Lilac card, teal left border, teal quote mark, dark text
   ========================================================= */
.testimonial-card{
  background:var(--lilac);
  border-left:5px solid var(--teal);
  border-radius:0 var(--radius-lg) var(--radius-lg) 0;
  padding:48px 56px;
  max-width:860px;
  margin:0 auto 32px;
}
.testimonial-card blockquote{
  font-family:var(--font-heading);
  font-weight:600;
  font-size:clamp(1.15rem,2.2vw,1.45rem);
  line-height:1.55;
  color:var(--ink);
  font-style:normal;
  position:relative;
  padding-left:0;
}
.testimonial-card blockquote::before{
  content:'\201C';
  display:block;
  font-size:4.5rem;
  line-height:.4;
  color:var(--teal);
  margin-bottom:24px;
  font-family:Georgia,serif;
}
.testimonial-card cite{
  display:block;
  margin-top:24px;
  font-family:var(--font-accent);
  font-size:.82rem;
  color:var(--teal-dark);
  font-style:normal;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}
@media(max-width:700px){
  .testimonial-card{padding:32px 28px}
  .testimonial-card blockquote{font-size:1.05rem}
}
.section--purple-deep{background:var(--agf-purple-deep)}

.container{max-width:var(--max-w);margin:0 auto;position:relative}
.container--narrow{max-width:var(--max-w-narrow);margin:0 auto}

.section-label{
  font-family:var(--font-accent);
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--teal-dark);
  margin-bottom:14px;
  display:inline-block;
}
.section--purple .section-label,.section--purple-deep .section-label{color:var(--teal)}

.section-heading{
  font-family:var(--font-heading);
  font-weight:800;
  font-size:clamp(1.9rem,3.6vw,2.5rem);
  color:var(--agf-purple);
  line-height:1.18;
  letter-spacing:-.015em;
  margin-bottom:20px;
  max-width:760px;
}
.section-heading--long{font-weight:700;font-size:clamp(1.7rem,3.2vw,2.2rem)}
.section--purple .section-heading,.section--purple-deep .section-heading{color:#fff}

.section-sub{
  color:var(--ink-soft);
  font-size:1.05rem;
  max-width:680px;
  line-height:1.7;
  font-weight:400;
}
.section-sub--centered{margin:0 auto}
.section--purple .section-sub,.section--purple-deep .section-sub{color:rgba(255,255,255,.85)}

.section-intro{text-align:center;margin-bottom:48px}

/* Generic body prose – for narrative copy on About / Pastoral / etc */
.prose{max-width:var(--max-w-narrow);font-size:1.05rem;line-height:1.8;color:var(--ink-soft)}
.prose p{margin-bottom:1.2em}
.prose p:last-child{margin-bottom:0}
.prose strong{color:var(--ink);font-weight:600}
.prose h3{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1.4rem;
  color:var(--agf-purple);
  margin:2em 0 .6em;
  line-height:1.3;
}
.prose ul{margin:0 0 1.2em 1.4em;padding:0}
.prose li{margin-bottom:.5em}

/* =========================================================
   PULL QUOTE (used on Our Story etc)
   ========================================================= */
.pull-quote{
  background:var(--lilac);
  border-left:4px solid var(--teal);
  padding:32px 36px;
  margin:48px auto;
  max-width:760px;
  border-radius:0 var(--radius-md) var(--radius-md) 0;
}
.pull-quote blockquote{
  font-family:var(--font-heading);
  font-weight:600;
  font-size:1.2rem;
  line-height:1.5;
  color:var(--agf-purple);
  font-style:normal;
  position:relative;
  padding-left:48px;
}
.pull-quote blockquote::before{
  content:'\201C';
  position:absolute;
  left:0;
  top:-8px;
  font-size:3.4rem;
  line-height:1;
  color:var(--teal);
  font-family:Georgia,serif;
}
.pull-quote cite{
  display:block;
  margin-top:14px;
  font-family:var(--font-accent);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--teal-dark);
  font-style:normal;
}

/* =========================================================
   PERSON CARDS WITH EXPANDABLE BIO
   ========================================================= */
.people-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:20px;
  margin-top:48px;
}
.person-card{
  background:var(--white);
  border:1px solid var(--stone);
  border-radius:var(--radius-lg);
  overflow:hidden;
  transition:all .3s var(--ease);
  display:flex;
  flex-direction:column;
}
.person-card:hover{
  border-color:rgba(46,0,139,.2);
  box-shadow:0 12px 36px rgba(46,0,139,.08);
}
.person-photo{
  width:100%;
  aspect-ratio:1/1;
  background:var(--lilac);
  /* Hexagonal mask placeholder when no photo */
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.person-photo .hex-placeholder{
  width:64%;
  aspect-ratio:1/1.15;
  background:var(--agf-purple);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  opacity:.12;
}
.person-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 15%}

/* Placeholder variant for "to be announced" board seats */
.person-card--placeholder{opacity:.85;border-style:dashed}
.person-card--placeholder:hover{transform:none;box-shadow:0 6px 22px rgba(46,0,139,.06)}
.person-photo--placeholder{
  background:linear-gradient(135deg,var(--lilac) 0%,var(--cloud) 100%);
  display:flex;align-items:center;justify-content:center;
  color:var(--agf-purple);
  opacity:.5;
}
.person-photo--placeholder svg{width:48%;height:48%}
.person-body{padding:22px 24px 8px;flex:1;display:flex;flex-direction:column}
.person-name{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1.1rem;
  color:var(--agf-purple);
  margin-bottom:4px;
  line-height:1.3;
}
.person-title{
  font-family:var(--font-accent);
  font-size:.74rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--teal-dark);
  margin-bottom:12px;
}
.person-snippet{
  font-size:.92rem;
  line-height:1.6;
  color:var(--ink-soft);
  margin-bottom:14px;
}
.person-toggle{
  background:none;
  border:none;
  cursor:pointer;
  padding:14px 24px;
  font-family:var(--font-accent);
  font-size:.74rem;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--agf-purple);
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  border-top:1px solid var(--stone);
  transition:background .2s var(--ease);
  margin-top:auto;
}
.person-toggle:hover{background:var(--lilac)}
.person-toggle .plus{
  width:22px;
  height:22px;
  border:1.5px solid var(--agf-purple);
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  line-height:1;
  font-weight:400;
  transition:transform .3s var(--ease),background .2s,color .2s;
}
.person-card.expanded .person-toggle .plus{transform:rotate(45deg);background:var(--agf-purple);color:#fff}
.person-bio-full{
  max-height:0;
  overflow:hidden;
  transition:max-height .4s var(--ease);
  padding:0 24px;
}
.person-card.expanded .person-bio-full{max-height:1200px;padding-bottom:20px}
.person-bio-full p{
  font-size:.92rem;
  line-height:1.7;
  color:var(--ink-soft);
  margin-bottom:1em;
}
.person-bio-full p:last-child{margin-bottom:0}

/* =========================================================
   INFOGRAPHIC SHELLS
   Each infographic provides its own internal structure but
   these classes give consistent framing.
   ========================================================= */
.infographic{
  background:var(--white);
  border:1px solid var(--stone);
  border-radius:var(--radius-lg);
  padding:48px 40px;
  position:relative;
}
.infographic--on-lilac{background:var(--white)}
.infographic-title{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1.5rem;
  color:var(--agf-purple);
  margin-bottom:8px;
  text-align:center;
}
.infographic-sub{
  text-align:center;
  font-size:.95rem;
  color:var(--ink-muted);
  margin-bottom:36px;
}

/* Stat block grid – used inside infographics */
.stat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:24px;
}
.stat-block{
  text-align:center;
  padding:18% 14% 16%;
  background:var(--lilac);
  position:relative;
  overflow:hidden;
  aspect-ratio:1/1.155;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  transition:transform .3s var(--ease);
}
.stat-block:hover{transform:translateY(-4px)}
.stat-block--purple{background:linear-gradient(135deg,var(--agf-purple) 0%,var(--agf-purple-deep) 100%);color:#fff}
.stat-block--teal{background:var(--teal-soft)}
.stat-block-number{
  font-family:var(--font-heading);
  font-weight:800;
  font-size:clamp(1.8rem,3.4vw,2.6rem);
  line-height:1;
  color:var(--agf-purple);
  letter-spacing:-.02em;
  margin-bottom:8px;
}
.stat-block--purple .stat-block-number{color:var(--teal)}
.stat-block-label{
  font-family:var(--font-accent);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--agf-purple);
  line-height:1.35;
}
.stat-block--purple .stat-block-label{color:rgba(255,255,255,.95)}
.stat-block-detail{
  display:block;
  margin-top:6px;
  font-family:var(--font-body);
  font-size:.74rem;
  font-weight:400;
  text-transform:none;
  letter-spacing:0;
  color:var(--ink-soft);
  line-height:1.4;
}
.stat-block--purple .stat-block-detail{color:rgba(255,255,255,.78)}
@media(max-width:700px){
  .stat-block{padding:16% 12% 14%}
  .stat-block-detail{font-size:.7rem}
}

/* =========================================================
   IMPACT EDITORIAL STATS – Impact in Action page (v3.30)
   Deliberately distinct from .stat-hex (homepage) and .stat-block (Celebrating 10 Years)
   to avoid visual repetition. Big editorial type, no hex shapes, no card backgrounds.
   ========================================================= */
.impact-stats{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:48px 64px;
  margin:48px auto 0;
  max-width:980px;
}
.impact-stat{position:relative;padding-top:18px}
.impact-stat::before{
  content:'';
  position:absolute;
  top:0;left:0;
  width:48px;height:2px;
  background:var(--teal);
}
.impact-stat-number{
  font-family:var(--font-heading);
  font-weight:800;
  font-size:clamp(3rem,6vw,5.25rem);
  line-height:1;
  color:var(--agf-purple);
  letter-spacing:-0.02em;
  margin-bottom:14px;
}
.impact-stat-number .impact-stat-suffix{
  font-size:.55em;
  color:var(--teal);
  font-weight:700;
  letter-spacing:0;
}
.impact-stat-label{
  font-family:var(--font-body);
  font-weight:500;
  font-size:1.05rem;
  line-height:1.55;
  color:var(--ink);
  max-width:340px;
}
@media(max-width:720px){
  .impact-stats{grid-template-columns:1fr;gap:40px}
  .impact-stat-number{font-size:clamp(2.6rem,12vw,4rem)}
}

/* =========================================================
   IMPACT DESTINATIONS – clean typographic list of universities
   replacing the legacy university-collage image
   ========================================================= */
.destinations-wrap{
  margin-top:40px;
  max-width:1080px;
  margin-left:auto;
  margin-right:auto;
}
.destinations-region{
  margin-bottom:40px;
  padding-bottom:0;
}
.destinations-region:last-child{margin-bottom:0}
.destinations-region-head{
  margin-bottom:24px;
  text-align:center;
}
.destinations-region-label{
  font-family:var(--font-accent);
  font-size:.85rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--agf-purple);
  font-weight:700;
  display:block;
  margin-bottom:10px;
}
.destinations-region-divider{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--agf-purple);
}
.destinations-region-divider .ln{display:block;width:48px;height:1.5px;background:currentColor;opacity:.6}
.destinations-region-divider .dt{display:block;width:6px;height:6px;border-radius:50%;background:currentColor}
.destinations-region-divider .dt-teal{background:var(--teal)}
.destinations-region-divider .hex-sm{display:block;width:12px;height:14px;background:currentColor;clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%)}
.destinations-region-divider .hex-lg{display:block;width:18px;height:20px;background:currentColor;clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);position:relative}
.destinations-region-divider .hex-lg::after{content:'';position:absolute;inset:2px;background:var(--cloud);clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%)}
.destinations-list{
  column-count:3;
  column-gap:32px;
  list-style:none;
  padding:0;
  margin:0;
}
.destinations-list li{
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.45;
  color:var(--ink);
  padding-left:18px;
  position:relative;
  margin-bottom:14px;
  break-inside:avoid;
  -webkit-column-break-inside:avoid;
  page-break-inside:avoid;
}
.destinations-list li::before{
  content:'';
  position:absolute;
  left:0;top:.62em;
  width:6px;height:6px;
  background:var(--agf-purple);
  border-radius:50%;
  opacity:.4;
}
.destinations-list li .destination-country{
  display:block;
  font-size:.78rem;
  color:var(--ink-soft);
  margin-top:2px;
}
@media(max-width:900px){
  .destinations-list{column-count:2;column-gap:24px}
}
@media(max-width:560px){
  .destinations-list{column-count:1}
  .destinations-region-head{flex-wrap:wrap;gap:10px}
}

/* =========================================================
   ALUMNI STORY CARDS – Q&A treatment
   ========================================================= */
.alumni-story{
  background:var(--white);
  border:1px solid var(--stone);
  border-radius:var(--radius-lg);
  padding:36px 40px;
  margin-bottom:24px;
  position:relative;
  overflow:hidden;
}
.alumni-story::before{
  content:'';
  position:absolute;
  top:0;left:0;bottom:0;
  width:4px;
  background:linear-gradient(180deg,var(--agf-purple),var(--teal));
}
.alumni-story-header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:20px;
  padding-bottom:18px;
  border-bottom:1px solid var(--stone);
}
.alumni-story-name{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1.4rem;
  color:var(--agf-purple);
  line-height:1.2;
}
.alumni-story-cohort{
  font-family:var(--font-accent);
  font-size:.74rem;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--teal-dark);
}
.alumni-qa{margin-bottom:18px}
.alumni-qa:last-child{margin-bottom:0}
.alumni-qa-q{
  font-family:var(--font-heading);
  font-weight:600;
  font-size:.95rem;
  color:var(--agf-purple);
  margin-bottom:6px;
}
.alumni-qa-a{
  font-size:.98rem;
  line-height:1.7;
  color:var(--ink-soft);
  font-style:italic;
  padding-left:16px;
  border-left:2px solid var(--teal);
}

/* =========================================================
   ALUMNI STACK CAROUSEL – cards in a peek-deck, rotate on hover/click (v3.6)
   ========================================================= */
.alumni-stack{
  position:relative;
  max-width:920px;
  margin:0 auto;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:16px;
  align-items:center;
}
.alumni-stack-cards{
  position:relative;
  width:100%;
  height:560px;
}
.alumni-stack-cards .alumni-story{
  position:absolute;
  inset:0;
  width:100%;
  background:var(--white);
  border:1px solid var(--stone);
  border-radius:var(--radius-lg);
  padding:32px 36px;
  box-shadow:0 14px 36px rgba(46,0,139,.10);
  transition:transform .55s var(--ease),opacity .55s var(--ease),box-shadow .35s var(--ease);
  overflow-y:auto;
  cursor:pointer;
  transform-origin:center top;
}
/* Stack visual offsets – each position back is shifted down + scaled down + dimmed */
.alumni-stack-cards .alumni-story[data-position="0"]{
  transform:translateY(0) scale(1);
  z-index:5;opacity:1;
}
.alumni-stack-cards .alumni-story[data-position="1"]{
  transform:translateY(14px) scale(.97);
  z-index:4;opacity:.85;
}
.alumni-stack-cards .alumni-story[data-position="2"]{
  transform:translateY(28px) scale(.94);
  z-index:3;opacity:.65;
}
.alumni-stack-cards .alumni-story[data-position="3"]{
  transform:translateY(42px) scale(.91);
  z-index:2;opacity:.45;
}
.alumni-stack-cards .alumni-story[data-position="4"]{
  transform:translateY(56px) scale(.88);
  z-index:1;opacity:.3;
}
/* Mid-rotation: the leaving card swings off to the side */
.alumni-stack-cards .alumni-story.is-leaving{
  transform:translateX(-120%) translateY(0) rotate(-8deg);
  opacity:0;
  z-index:6;
}
.alumni-stack-cards .alumni-story:hover[data-position="0"]{
  box-shadow:0 20px 44px rgba(46,0,139,.18);
}

/* Prev / Next buttons */
.alumni-stack-prev,.alumni-stack-next{
  width:44px;height:44px;
  border-radius:50%;
  background:var(--white);
  border:1.5px solid var(--lilac);
  color:var(--agf-purple);
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s var(--ease);
  flex-shrink:0;
}
.alumni-stack-prev:hover,.alumni-stack-next:hover{
  background:var(--agf-purple);
  color:#fff;
  border-color:var(--agf-purple);
  transform:scale(1.08);
}
.alumni-stack-prev svg,.alumni-stack-next svg{width:20px;height:20px}

/* Dots indicator */
.alumni-stack-dots{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:80px;
}
.stack-dot{
  width:36px;height:6px;
  background:var(--lilac);
  border:none;
  border-radius:3px;
  cursor:pointer;
  padding:0;
  transition:background .3s var(--ease),width .3s var(--ease);
}
.stack-dot--active{background:var(--teal);width:48px}
.stack-dot:hover:not(.stack-dot--active){background:var(--agf-purple-deep)}

@media(max-width:880px){
  .alumni-stack{grid-template-columns:1fr;gap:12px}
  .alumni-stack-prev,.alumni-stack-next{
    position:absolute;
    top:50%;
    z-index:10;
    transform:translateY(-50%);
  }
  .alumni-stack-prev{left:-4px}
  .alumni-stack-next{right:-4px}
  .alumni-stack-cards{height:640px}
  .alumni-stack-cards .alumni-story{padding:24px 22px}
}
@media(max-width:560px){
  .alumni-stack-cards{height:720px}
}

/* =========================================================
   JOURNEY / TIMELINE (moved from index to celebrating-10-years)
   v3.7: brand purple background (was near-black)
   ========================================================= */
.journey{background:#EEE9FF;position:relative;overflow:hidden;padding:0}
.journey-intro{
  text-align:center;
  padding:96px 24px 40px;
  max-width:820px;
  margin:0 auto;
}
.journey-intro .section-label{color:var(--teal-dark)}
.journey-intro .section-heading{color:var(--agf-purple-deep)}
.journey-intro .section-sub{color:rgba(31,0,94,.72);margin:0 auto}
.journey-intro .brand-divider .hex::after{background:#EEE9FF}

.journey-stage{
  position:relative;
  height:80vh;
  min-height:600px;
  max-height:860px;
  overflow:hidden;
}
.j-slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .8s var(--ease),visibility .8s var(--ease);
}
.j-slide.j-active{opacity:1;visibility:visible}
.j-slide-bg{position:absolute;inset:0;z-index:0}
.j-slide-bg--logomix{background:#1F005E}
.j-slide-bg--logomix img{object-fit:contain;padding:40px 0}
.j-slide-bg img{width:100%;height:100%;object-fit:cover}
.j-slide-overlay{
  position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(180deg, rgba(46,0,139,0.0) 0%, rgba(46,0,139,0.18) 60%, rgba(31,0,94,0.55) 100%),
    rgba(46,0,139,0.08);
}
.j-slide-content{
  position:absolute;inset:0;z-index:2;
  display:flex;align-items:flex-end;
  padding:0 24px 72px;
}
.j-slide-inner{
  max-width:var(--max-w);
  margin:0 auto;
  width:100%;
}
.j-eyebrow{
  display:inline-block;
  font-family:var(--font-accent);
  font-size:.95rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--teal);
  margin-bottom:14px;
}
.j-slide-inner h3{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:clamp(1.6rem,3.4vw,2.4rem);
  line-height:1.2;
  color:#fff;
  max-width:780px;
  margin-bottom:16px;
  text-shadow:0 2px 24px rgba(0,0,0,.5);
}
.j-slide-inner p{
  color:rgba(255,255,255,.92);
  font-size:1.02rem;
  line-height:1.7;
  max-width:680px;
  text-shadow:0 1px 14px rgba(0,0,0,.4);
}

/* Year progress-bar pagination — sits within lilac intro area, above photos (v3.20.1) */
.j-pagination{
  position:relative;
  z-index:4;
  background:transparent;
  padding:0 24px 24px;
}
.j-pagination-inner{
  max-width:var(--max-w);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(11,1fr);
  gap:20px;
}
.j-year-btn{
  background:none;
  border:none;
  cursor:pointer;
  padding:18px 6px 8px;
  text-align:center;
  position:relative;
  transition:transform .2s var(--ease);
}
.j-year-btn:hover{transform:translateY(-2px)}
.j-year-btn::before{
  content:'';
  display:block;
  height:4px;
  background:rgba(46,0,139,.3);
  border-radius:2px;
  margin-bottom:14px;
  transition:background .3s var(--ease);
}
.j-year-btn.j-year-active::before{background:var(--teal);box-shadow:0 0 12px rgba(51,214,201,.5)}
.j-year-btn .j-year-label{
  font-family:var(--font-accent);
  font-size:1.45rem;
  font-weight:700;
  letter-spacing:.06em;
  color:rgba(31,0,94,.65);
  transition:color .3s var(--ease);
}
.j-year-btn.j-year-active .j-year-label{
  color:var(--teal-dark);
  font-size:1.66rem;
}
.j-year-btn:hover .j-year-label{color:rgba(31,0,94,.9)}

@media(max-width:900px){
  .j-pagination-inner{
    grid-template-columns:repeat(6,1fr);
    gap:8px;
  }
  .j-year-btn .j-year-label{font-size:1.05rem}
  .j-year-btn.j-year-active .j-year-label{font-size:1.22rem}
  .journey-stage{height:70vh}
  .j-slide-content{padding:0 24px 48px}
}

/* =========================================================
   FOOTER (shared)
   ========================================================= */
.footer{
  background:#1F005E;
  color:rgba(255,255,255,.65);
  padding:72px 24px 32px;
  position:relative;
  z-index:2;
}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;margin-bottom:48px;max-width:var(--max-w);margin-left:auto;margin-right:auto}
.footer h4{
  font-family:var(--font-accent);
  color:#fff;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:20px;
}
.footer-links{list-style:none}
.footer-links li{margin-bottom:10px}
.footer-links a{color:rgba(255,255,255,.62);font-size:.9rem;transition:color .2s}
.footer-links a:hover{color:var(--teal)}
.footer-logo{height:40px;margin-bottom:20px;filter:brightness(0) invert(1);opacity:.85}
.footer-desc{font-size:.9rem;line-height:1.7;margin-bottom:18px}
.footer-charity{font-size:.78rem;color:rgba(255,255,255,.42);line-height:1.7}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:28px;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;
  max-width:var(--max-w);margin:0 auto;
}
.footer-bottom p{font-size:.82rem;color:rgba(255,255,255,.42)}
.footer-link-muted{color:rgba(255,255,255,.55)}
.footer-link-muted:hover{color:#fff}
.footer-social{display:flex;gap:10px}
.footer-social a{
  width:36px;height:36px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;
}
.footer-social a:hover{background:var(--agf-purple)}
.footer-social svg{width:15px;height:15px;fill:rgba(255,255,255,.75)}

.footer-credit{
  text-align:center;
  max-width:var(--max-w);
  margin:22px auto 0;
  font-size:.78rem;
  color:rgba(255,255,255,.42);
}
.footer-credit a{display:inline-block;line-height:0;vertical-align:middle}
.footer-credit-logo{
  height:1.5em;width:auto;
  vertical-align:middle;
  margin-left:.4em;
  position:relative;top:-.08em;
  opacity:.92;transition:opacity .2s;
}
.footer-credit a:hover .footer-credit-logo,
.footer-credit a:focus-visible .footer-credit-logo{opacity:1}

@media(max-width:900px){.footer-grid{grid-template-columns:1fr;gap:36px}}

/* =========================================================
   PERSISTENT DONATE + COOKIE BANNER (shared)
   ========================================================= */
.persistent-donate{
  position:fixed;bottom:24px;right:24px;z-index:998;
  background:var(--agf-purple);
  color:#fff;
  padding:14px 26px;
  border-radius:50px;
  font-family:var(--font-accent);
  font-weight:600;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  display:flex;align-items:center;gap:9px;
  box-shadow:0 6px 28px rgba(46,0,139,.4);
  transition:all .3s var(--ease), bottom .4s var(--ease);
  opacity:0;transform:translateY(20px);
  border:none;cursor:pointer;
  text-decoration:none;
}
.persistent-donate.visible{opacity:1;transform:translateY(0)}
.persistent-donate.cookie-offset{bottom:108px}
.persistent-donate:hover{background:var(--agf-purple-deep);transform:translateY(-3px);box-shadow:0 10px 36px rgba(46,0,139,.5);color:#fff}
.persistent-donate svg{width:15px;height:15px;fill:currentColor}

.cookie-banner{
  position:fixed;bottom:0;left:0;right:0;z-index:999;
  background:#1F005E;color:rgba(255,255,255,.88);
  padding:22px 24px;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;
  transform:translateY(100%);
  transition:transform .4s var(--ease);
}
.cookie-banner.visible{transform:translateY(0)}
.cookie-banner p{font-size:.9rem;max-width:720px;line-height:1.55}
.cookie-banner a{color:var(--teal);text-decoration:underline}
.cookie-btns{display:flex;gap:12px}
.cookie-accept{
  background:var(--teal);color:var(--agf-purple-deep);
  border:none;padding:11px 26px;border-radius:50px;
  font-family:var(--font-accent);font-weight:700;font-size:.78rem;
  letter-spacing:.08em;text-transform:uppercase;cursor:pointer;
}
.cookie-decline{
  background:transparent;color:rgba(255,255,255,.7);
  border:1px solid rgba(255,255,255,.25);padding:10px 24px;border-radius:50px;
  font-family:var(--font-accent);font-weight:600;font-size:.78rem;
  letter-spacing:.08em;text-transform:uppercase;cursor:pointer;
}
/* On narrow viewports the cookie banner wraps to a taller block — push donate up further */
@media(max-width:600px){
  .persistent-donate.cookie-offset{bottom:172px}
}

/* =========================================================
   REVEAL
   ========================================================= */
[data-reveal]{opacity:0;transform:translateY(24px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
[data-reveal].revealed{opacity:1;transform:translateY(0)}
[data-reveal][data-reveal-delay="1"]{transition-delay:.08s}
[data-reveal][data-reveal-delay="2"]{transition-delay:.16s}
[data-reveal][data-reveal-delay="3"]{transition-delay:.24s}

/* =====================================================
   SUPPORT SECTION – get-involved cards (v3.16: moved from homepage inline to shared;
   v3.28: expandable details/summary pattern, embedded DonorBox iframes, partner contact)
   ===================================================== */
.support-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin-top:32px;
}
.support-card{
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:0;
  text-align:center;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s var(--ease);
  border:1px solid var(--stone);
  overflow:hidden;
}
.support-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(46,0,139,.10);border-color:var(--teal)}
.support-card[open]{
  grid-column:1/-1;
  transform:none;
  border-color:var(--teal);
  box-shadow:0 14px 32px rgba(46,0,139,.12);
  text-align:left;
}
.support-card[open]:hover{transform:none}
.support-card-summary{
  list-style:none;
  cursor:pointer;
  padding:32px 24px;
  position:relative;
  display:block;
}
.support-card-summary::-webkit-details-marker{display:none}
.support-card-summary:focus-visible{outline:2px solid var(--teal);outline-offset:-2px;border-radius:var(--radius-lg)}
.support-card-toggle{
  position:absolute;
  top:14px;right:14px;
  width:28px;height:28px;
  border-radius:50%;
  background:var(--cloud);
  display:flex;align-items:center;justify-content:center;
  color:var(--agf-purple);
  font-size:1.1rem;
  font-weight:700;
  line-height:1;
  transition:transform .3s var(--ease),background .3s var(--ease),color .3s var(--ease);
  pointer-events:none;
}
.support-card[open] .support-card-toggle{
  transform:rotate(45deg);
  background:var(--teal);
  color:var(--white);
}
.support-card-hex{
  width:64px;height:72px;
  background:linear-gradient(135deg,var(--agf-purple) 0%,var(--agf-purple-deep) 100%);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  margin:0 auto 18px;
  display:flex;align-items:center;justify-content:center;
}
.support-card[open] .support-card-hex{margin-left:auto;margin-right:auto}
.support-card-hex svg{width:26px;height:26px;color:var(--teal)}
.support-card h3{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1.1rem;
  color:var(--agf-purple);
  margin-bottom:8px;
}
.support-card-summary p{
  color:var(--ink-soft);
  font-size:.95rem;
  line-height:1.6;
  margin:0;
}
.support-card-body{
  padding:0 32px 32px;
  border-top:1px solid var(--stone);
  margin-top:8px;
  padding-top:24px;
}
.support-card-body p{
  color:var(--ink-soft);
  font-size:1rem;
  line-height:1.65;
  margin-bottom:16px;
  max-width:680px;
}
.support-card-iframe-wrap{
  background:var(--cloud);
  border-radius:var(--radius-lg);
  overflow:hidden;
  /* Centre the DonorBox embed. Capping width below DonorBox's ~780px two-column
     breakpoint forces its responsive single-column layout, removing the empty
     grey right-hand gutter, and margin auto centres it within the card. */
  max-width:540px;
  margin:16px auto 0;
  /* DonorBox embed: provide generous height; iframe handles its own scroll */
  min-height:820px;
}
.support-card-iframe-wrap iframe{
  width:100%;
  min-height:820px;
  border:0;
  display:block;
}
/* Partner contact block — Corporate Partnership card */
.partner-contact{
  background:var(--cloud);
  border-radius:var(--radius-lg);
  padding:24px 28px;
  margin-top:20px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:20px;
}
.partner-contact-meta{flex:1;min-width:240px}
.partner-contact-meta .role{
  font-family:var(--font-accent);
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--teal);
  font-weight:700;
  margin-bottom:4px;
}
.partner-contact-meta .name{
  font-family:var(--font-heading);
  font-weight:700;
  color:var(--agf-purple);
  font-size:1.15rem;
  margin-bottom:4px;
}
.partner-contact-meta .email a{
  color:var(--agf-purple);
  text-decoration:underline;
  text-decoration-color:rgba(46,0,139,.3);
  text-underline-offset:3px;
  font-size:.95rem;
  word-break:break-all;
}
.partner-contact-meta .email a:hover{text-decoration-color:var(--teal)}
@media(max-width:600px){
  .support-card-body{padding:24px 18px 24px}
  .support-card-iframe-wrap,
  .support-card-iframe-wrap iframe{min-height:880px}
}

/* =====================================================
   CONTACT SECTION – form + intro side-by-side (v3.16: moved from homepage inline to shared)
   ===================================================== */
.contact-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);
  gap:64px;
  align-items:start;
  max-width:1080px;
  margin:0 auto;
}
.contact-intro .section-heading{margin-bottom:14px}
.contact-intro .section-sub{margin-bottom:28px}
.contact-details{
  font-size:.95rem;
  line-height:1.7;
  color:var(--ink-soft);
}
.contact-details p{margin-bottom:18px}
.contact-details strong{
  color:var(--agf-purple);
  display:block;
  font-family:var(--font-accent);
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin-bottom:4px;
}
.contact-details a{color:var(--agf-purple);font-weight:500}
.contact-details a:hover{color:var(--agf-purple-deep)}
.contact-social{display:flex;gap:10px;margin-top:8px}
.contact-social a{
  width:42px;height:42px;
  border-radius:50%;
  background:var(--lilac);
  color:var(--agf-purple);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:all .2s var(--ease);
}
.contact-social a:hover{background:var(--agf-purple);color:#fff}
.contact-social svg{width:18px;height:18px;fill:currentColor}

.contact-form{
  background:var(--cloud);
  border-radius:var(--radius-lg);
  padding:36px 32px;
}
.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:18px;
}
.form-field{margin-bottom:18px}
.form-field label{
  display:block;
  font-family:var(--font-accent);
  font-size:.82rem;
  font-weight:600;
  color:var(--ink);
  margin-bottom:6px;
  letter-spacing:.02em;
}
.form-req{color:var(--ink-muted);font-weight:400}
.form-field input,
.form-field textarea{
  width:100%;
  padding:12px 14px;
  border:1.5px solid var(--stone);
  border-radius:var(--radius-sm);
  background:var(--white);
  font-family:var(--font-body);
  font-size:1rem;
  color:var(--ink);
  transition:border-color .2s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus{
  outline:none;
  border-color:var(--agf-purple);
  box-shadow:0 0 0 3px rgba(46,0,139,.08);
}
.form-field textarea{resize:vertical;min-height:140px}
.btn-form-submit{
  background:var(--agf-purple);
  color:#fff;
  padding:13px 36px;
  border-radius:50px;
  font-family:var(--font-accent);
  font-weight:600;
  font-size:.85rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  border:none;
  cursor:pointer;
  transition:all .25s var(--ease);
}
.btn-form-submit:hover{background:var(--agf-purple-deep);transform:translateY(-1px);box-shadow:0 6px 20px rgba(46,0,139,.28)}
.form-note{
  font-size:.78rem;
  color:var(--ink-muted);
  margin-top:14px;
  line-height:1.5;
}
@media(max-width:880px){
  .contact-grid{grid-template-columns:1fr;gap:32px}
  .form-row{grid-template-columns:1fr;gap:0}
}

/* =====================================================
   PARTNER GRID (relocated from homepage to own page v3.21;
   tiered layout with lead partner row v3.27)
   ===================================================== */
.partners-section{background:var(--cloud);padding:88px 0;border-top:1px solid var(--stone);border-bottom:1px solid var(--stone)}
.partners-intro{text-align:center;max-width:780px;margin:0 auto 48px}
/* Lead partner row */
.partners-lead{display:flex;justify-content:center;align-items:center;margin:0 auto 40px;max-width:960px}
.partners-lead .partner-tile{height:120px;max-width:320px}
.partners-lead--xl .partner-tile{height:160px;max-width:400px}
/* Standard 4-col rows */
.partners-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:32px 40px;
  align-items:center;
  justify-items:center;
  max-width:960px;
  margin:0 auto;
}
/* Row 2 is 3 cols when David Suddens removed */
.partners-grid--row2-3{grid-template-columns:repeat(3,1fr)}
.partner-tile{
  width:100%;
  height:96px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px;
  transition:transform .25s var(--ease);
}
.partner-tile:hover{transform:scale(1.05)}
.partner-tile img{
  max-height:100%;
  max-width:100%;
  width:auto;
  height:auto;
  object-fit:contain;
}
/* Harrington Foundation stacked logo: circle icon above text */
.partner-tile--hf{
  flex-direction:column;
  gap:4px;
  height:auto;
  padding:12px 8px;
}
.partner-tile--hf .hf-icon{max-height:56px}
.partner-tile--hf .hf-text{max-height:24px;width:auto}
/* Small partner tile (e.g. Mr Great) */
.partner-tile--sm{height:64px;max-width:120px}
/* Text-only partner tile (no logo available) */
.partner-tile--text{
  font-family:var(--font-heading);
  font-size:1.1rem;
  font-weight:600;
  color:var(--ink-soft);
  text-align:center;
  line-height:1.3;
}
/* Compact testimonial for partner pages */
.testimonial-card--compact{padding:32px 28px}
.testimonial-card--compact blockquote{font-size:1rem;line-height:1.65}
/* 5-column stat grid for celebrating-10-years */
.stat-grid--five{grid-template-columns:repeat(5,1fr)!important;gap:20px!important}
@media(max-width:1000px){.stat-grid--five{grid-template-columns:repeat(3,1fr)!important}}
@media(max-width:600px){.stat-grid--five{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:900px){
  .partners-grid{grid-template-columns:repeat(2,1fr);gap:28px 24px}
}
@media(max-width:560px){
  .partners-grid{grid-template-columns:repeat(2,1fr);gap:24px 16px}
  .partner-tile{height:72px}
  .partners-lead .partner-tile{height:88px}
  .partners-lead--xl .partner-tile{height:110px}
  .partner-tile--sm{height:52px;max-width:100px}
}

/* === v4.2 additions === */

/* XTX 10% larger */
.partners-lead--xl .partner-tile{height:176px;max-width:440px}

/* Tier 2: 4-col row, one step below XTX (Dave Suddens / Harrington / Spectris / Takeda) */
.partners-grid--tier2{
  grid-template-columns:repeat(4,1fr);
  gap:28px 32px;
  margin-bottom:32px;
}
.partners-grid--tier2 .partner-tile{height:100px}
/* Solid circular marks carry more visual weight than wide wordmarks at equal
   height, so the disc is capped slightly smaller for optical parity with peers.
   FLAG: confirm on screenshot QA - aspect ratios across this row vary widely. */
.partners-grid--tier2 .partner-tile--circle img{max-height:84px}

/* Tier 3: 4-col, medium */
.partners-grid--tier3{
  grid-template-columns:repeat(4,1fr);
  margin-bottom:32px;
}
.partners-grid--tier3 .partner-tile{height:88px}

/* Tier 4: 4-col, smaller */
.partners-grid--tier4{
  grid-template-columns:repeat(4,1fr);
}
.partners-grid--tier4 .partner-tile{height:72px}

@media(max-width:900px){
  .partners-grid--tier2,.partners-grid--tier3,.partners-grid--tier4{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .partners-grid--tier2{grid-template-columns:repeat(2,1fr)}
  .partners-grid--tier2 .partner-tile{height:80px}
  .partners-grid--tier3 .partner-tile{height:68px}
  .partners-grid--tier4 .partner-tile{height:56px}
  .partners-lead--xl .partner-tile{height:120px}
}

/* The Path: lilac background */
.section--path-lilac{background:#EEE9FF}

/* Cambridge A-Levels: tighter section spacing */
.cambridge-tight .section{padding-top:64px;padding-bottom:64px}
.cambridge-tight .section--path-lilac{padding-top:72px;padding-bottom:72px}
