/* ============================================================
   Theme-level enhancements beyond the ported prototype.
   Kept separate from vs.css (= prototype site3.css) so the
   design system stays pristine. Enqueued after vs-styles.
   ============================================================ */

/* Prevent horizontal overflow (off-canvas slider, wide embeds) — clip keeps sticky working. */
html{overflow-x:clip}

/* --- Mobile navigation -------------------------------------------------
   The prototype hid the desktop nav below 980px with no replacement, so
   mobile had no menu. Add a hamburger toggle + a slide-down nav panel. */
.navtoggle{
  display:none;                 /* desktop: hidden (real nav is visible) */
  align-items:center;justify-content:center;
  width:44px;height:44px;flex:0 0 auto;
  border:1.5px solid var(--line);border-radius:8px;
  background:#fff;color:var(--ink);cursor:pointer;padding:0;
}
.navtoggle svg{display:block}
.navtoggle .ic-close{display:none}
header.site.nav-open .navtoggle .ic-open{display:none}
header.site.nav-open .navtoggle .ic-close{display:block}

/* Utility links (Schedule a Meeting, My Account) sit in the topbar on desktop;
   they're duplicated inside <nav> as .nav-util and surfaced in the mobile dropdown. */
.nav-util{display:none}

/* WP-managed primary menu (Appearance → Menus) + dropdowns */
header.site nav .primary-menu{display:flex;align-items:center;gap:26px;list-style:none;margin:0;padding:0}
header.site nav .primary-menu li{position:relative}
header.site nav .primary-menu .menu-item-has-children>a::after{content:"▾";font-size:10px;margin-left:5px;opacity:.55}
header.site nav .primary-menu .current-menu-item>a,
header.site nav .primary-menu .current-menu-ancestor>a{color:var(--green-d)}
header.site nav .primary-menu .sub-menu{position:absolute;top:100%;left:0;min-width:235px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 18px 38px -22px rgba(16,40,28,.45);padding:8px 0;list-style:none;margin:0;opacity:0;visibility:hidden;transition:opacity .15s;z-index:30}
/* Opened via JS hover-intent (.vs-open) — not CSS :hover — so it only triggers on the item, never the area below. */
header.site nav .primary-menu li.vs-open>.sub-menu{opacity:1;visibility:visible}
header.site nav .primary-menu .sub-menu a{display:block;padding:9px 18px;font-size:14px;white-space:nowrap;color:var(--ink)}
header.site nav .primary-menu .sub-menu a:hover{background:var(--paper);color:var(--green-d)}
/* tall dropdowns → scroll instead of overflowing the viewport */
header.site nav .primary-menu .sub-menu{max-height:72vh;overflow-y:auto}

/* Mega menu: Volunteer Abroad → continents (columns) → countries */
/* 3-column flow: Asia | Africa+Pacific | Europe+South America (shorter than the old
   5-across wrap). Continents are ordered Asia, Africa, Pacific, Europe, South America. */
header.site nav .primary-menu .nav-mega>.sub-menu{column-count:3;column-gap:40px;left:0;padding:22px 26px;max-height:none;overflow:visible;min-width:560px}
header.site nav .primary-menu .nav-mega>.sub-menu>li{position:static;break-inside:avoid;margin-bottom:14px}
header.site nav .primary-menu .nav-mega>.sub-menu>li:nth-child(2),header.site nav .primary-menu .nav-mega>.sub-menu>li:nth-child(4){break-before:column}
header.site nav .primary-menu .nav-mega>.sub-menu>li>a{font-family:Sora;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--green);padding:2px 8px 6px}
header.site nav .primary-menu .nav-mega>.sub-menu>li>a::after{display:none}
header.site nav .primary-menu .nav-mega .sub-menu .sub-menu{position:static;opacity:1;display:block;min-width:150px;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;max-height:none;overflow:visible}
/* The 3rd-level (countries) is only visible/clickable while the mega is open — else
   the hidden panel's invisible links would capture hovers over the page below. */
header.site nav .primary-menu .nav-mega.vs-open .sub-menu .sub-menu{visibility:visible}
header.site nav .primary-menu .nav-mega .sub-menu .sub-menu a{padding:6px 8px;font-size:13.5px}

@media(max-width:980px){
  header.site .wrap{gap:16px}
  .navtoggle{display:inline-flex}
  header.site .hr{margin-left:auto}

  /* Full-width dropdown panel anchored under the sticky header. */
  header.site nav{
    display:none;
    position:absolute;left:0;right:0;top:100%;
    flex-direction:column;gap:0;
    background:#fff;border-top:1px solid var(--line);
    box-shadow:0 26px 46px -24px rgba(16,40,28,.55);
    padding:0 0 6px;z-index:24;
    max-height:calc(100dvh - 64px);overflow-y:auto;-webkit-overflow-scrolling:touch;
  }
  header.site.nav-open nav{display:flex}

  /* Stacked primary list — clean rows with an inset chevron. */
  header.site nav .primary-menu{display:block;width:100%;gap:0;margin:0;padding:0;list-style:none}
  header.site nav .primary-menu>li{width:100%;border-bottom:1px solid #eef1ee}
  header.site nav .primary-menu>li>a{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 22px;font-family:Sora;font-weight:600;font-size:16px;color:var(--ink);
  }
  header.site nav .primary-menu>li>a:active{background:var(--paper)}
  header.site nav .primary-menu .current-menu-item>a,
  header.site nav .primary-menu .current-menu-ancestor>a{color:var(--green-d)}
  /* Chevron sits inside the row (flex child), never off-screen. */
  header.site nav .primary-menu .menu-item-has-children>a::after{
    content:"";flex:0 0 auto;width:9px;height:9px;margin-left:14px;
    border-right:2px solid var(--green);border-bottom:2px solid var(--green);
    transform:rotate(45deg);transition:transform .2s;
  }
  header.site nav .primary-menu li.open>a::after{transform:rotate(-135deg)}
  header.site nav a.on::after{display:none}

  /* Accordion sub-menus — collapsed; tinted panel when open. */
  header.site nav .primary-menu .sub-menu{
    position:static;opacity:1;visibility:visible;display:block;
    max-height:0;overflow:hidden;background:var(--paper);
    border:0;border-radius:0;box-shadow:none;padding:0;min-width:0;
  }
  header.site nav .primary-menu li.open>.sub-menu{max-height:none;overflow:visible}
  header.site nav .primary-menu .sub-menu a{
    display:flex;align-items:center;
    padding:13px 22px 13px 40px;font-family:Inter;font-weight:500;font-size:15px;
    color:#33433b;border-top:1px solid #e6ece8;
  }
  header.site nav .primary-menu .sub-menu a:active{background:#eaf1ec}

  /* Mega menu (Volunteer Abroad) — two-level accordion. */
  header.site nav .primary-menu .nav-mega>.sub-menu{display:block;column-count:1;min-width:0;padding:0;gap:0;max-height:0;overflow:hidden}
  header.site nav .primary-menu .nav-mega.open>.sub-menu{max-height:none;overflow:visible}
  header.site nav .primary-menu .nav-mega>.sub-menu>li{border-top:1px solid #e6ece8}
  header.site nav .primary-menu .nav-mega>.sub-menu>li>a{
    display:flex;align-items:center;justify-content:space-between;
    padding:14px 22px 14px 40px;font-family:Sora;font-weight:600;font-size:15px;
    text-transform:none;letter-spacing:0;color:var(--ink);
  }
  header.site nav .primary-menu .nav-mega>.sub-menu>li>a::after{
    content:"";flex:0 0 auto;width:8px;height:8px;margin-left:14px;
    border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
    transform:rotate(45deg);transition:transform .2s;
  }
  header.site nav .primary-menu .nav-mega>.sub-menu>li.open>a::after{transform:rotate(-135deg)}
  header.site nav .primary-menu .nav-mega .sub-menu .sub-menu{display:block;visibility:visible;opacity:1;max-height:0;overflow:hidden;background:#fff}
  header.site nav .primary-menu .nav-mega .sub-menu li.open>.sub-menu{max-height:none;overflow:visible}
  header.site nav .primary-menu .nav-mega .sub-menu .sub-menu a{padding:12px 22px 12px 56px;font-size:14.5px;border-top:1px solid #eef2ef}

  /* Utility footer (Schedule a Meeting / My Account). */
  header.site nav .nav-util{
    display:flex;align-items:center;gap:12px;
    padding:15px 22px;font-family:Sora;font-weight:600;font-size:15px;color:var(--ink);
    background:var(--paper);border-top:1px solid var(--line);
  }
  header.site nav .nav-util:first-of-type{margin-top:6px;border-top:1px solid var(--line)}
  header.site nav .nav-util svg{flex:0 0 auto;color:var(--green)}
}

/* --- General mobile polish --------------------------------------------- */
@media(max-width:620px){
  .wrap{padding:0 18px}
  header.site .btn-apply{padding:9px 15px;font-size:14px}
  .hh-text h1{font-size:34px}
}

/* --- Static page header band (page.php, when there's no featured image) --- */
.legalhead{background:linear-gradient(135deg,#0f2e1f,#1c4a36);color:#fff;padding:56px 0 44px}
.legalhead .crumb{color:rgba(255,255,255,.72)}
.legalhead .crumb a{color:inherit}
.legalhead .crumb a:hover{color:#fff}
.legalhead h1{font-size:38px;font-weight:700;letter-spacing:-.02em;margin:14px 0 0}
.legalhead p{color:rgba(255,255,255,.82);font-size:15px;margin-top:8px}

/* --- Destination body "Read more" clamp (single-destination.php) --- */
.prose-collapse{position:relative}
.prose-toggle{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.prose-clamp{max-height:540px;overflow:hidden;position:relative;transition:max-height .25s ease}
.prose-clamp::after{content:"";position:absolute;left:0;right:0;bottom:0;height:96px;background:linear-gradient(rgba(255,255,255,0),#fff);pointer-events:none}
.prose-toggle:checked ~ .prose-clamp{max-height:8000px}
.prose-toggle:checked ~ .prose-clamp::after{opacity:0}
.prose-readmore{display:inline-flex;align-items:center;gap:6px;margin-top:14px;cursor:pointer;font-family:Sora;font-weight:600;font-size:14.5px;color:var(--green-d)}
.prose-readmore:hover{text-decoration:underline}
.prose-readmore::after{content:"Read more ↓"}
.prose-toggle:checked ~ .prose-readmore::after{content:"Read less ↑"}
/* "Explore other destinations" — horizontal scroller, 4 visible (cuts page height) */
.dest-scroll{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding-bottom:12px}
.dest-scroll .dcard{flex:0 0 calc((100% - 48px) / 4);scroll-snap-align:start;aspect-ratio:4/5}
.dest-scroll .cap b{font-size:15px;line-height:1.2}
.dest-scroll::-webkit-scrollbar{height:8px}
.dest-scroll::-webkit-scrollbar-thumb{background:var(--line);border-radius:99px}
@media(max-width:900px){.dest-scroll .dcard{flex:0 0 calc((100% - 16px) / 2)}}
@media(max-width:560px){.dest-scroll .dcard{flex:0 0 82%}}

/* --- Programme card additions (keeps the V3 .card design) --- */
.card .ph .card-sdg{position:absolute;top:12px;right:12px;width:46px;height:46px;border-radius:7px;box-shadow:0 4px 10px rgba(0,0,0,.28)}
.card .card-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.card .ctag{display:inline-flex;align-items:center;gap:4px;font-family:Sora;font-weight:600;font-size:11.5px;padding:4px 10px;border-radius:999px;background:var(--paper);color:var(--muted);border:1px solid var(--line)}
.card .ctag-cause{background:#e3f3e9;color:var(--green-d);border-color:#cfe6d8}

/* --- Programme sticky tab nav (single-programme.php) --- */
.ptabs{position:sticky;top:64px;z-index:18;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 6px 14px -12px rgba(16,40,28,.4)}
.ptabs .wrap{display:flex;gap:28px;overflow-x:auto;scrollbar-width:none}
.ptabs .wrap::-webkit-scrollbar{display:none}
.ptabs a{padding:16px 2px;font-family:Sora;font-weight:600;font-size:14.5px;color:var(--muted);white-space:nowrap;border-bottom:2px solid transparent;transition:.15s}
.ptabs a:hover{color:var(--green-d)}
.ptabs a.on{color:var(--green-d);border-bottom-color:var(--green)}
.psec{scroll-margin-top:128px}
/* Mobile: the site header (68px) is sticky at top:0, so the tabs must stick BELOW it
   (they were at top:0, hidden behind the header). scroll-margin clears header + tabs. */
@media(max-width:980px){.ptabs{top:64px}.psec{scroll-margin-top:120px}}

/* --- Programme fee table (single-programme.php #fees) --- */
.feetable{width:100%;border-collapse:collapse;background:#fff;border:1.5px solid var(--line);border-radius:12px;overflow:hidden}
.feetable th,.feetable td{padding:13px 20px;text-align:left;border-bottom:1px solid var(--line);font-size:15px}
.feetable thead th{font-family:Sora;font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);background:var(--paper)}
.feetable td:last-child,.feetable th:last-child{text-align:right;font-weight:600;color:var(--ink)}
.feetable tbody tr:last-child td{border-bottom:0}
.feetable tr.extra td{color:var(--muted);font-style:italic}
/* Costs section (prototype: fee table + paying-for / not-included cards) */
.costsplit{grid-template-columns:1fr 1fr;gap:30px;align-items:start}
.costs-h2{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}
.curpick{font-family:Sora;font-size:12px;font-weight:600;color:#475247;display:flex;align-items:center;gap:8px}
.cursel{border:1px solid var(--line);border-radius:8px;padding:5px 8px;font:inherit;font-size:13px;font-weight:600;background:#fff;cursor:pointer}
.appfee{font-size:13.5px;color:var(--muted);margin:0 0 18px;max-width:900px}
.conv-note{font-size:12px;color:#9aa5a0;margin-top:10px}
.costcards{display:flex;flex-direction:column;gap:16px}
.val{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px 24px}
.val h3{font-family:Sora;font-size:16px;margin:0 0 10px}
.val-yes{color:var(--green-d)}
.val-no{color:#9aa5a0}
.val ul{list-style:none;margin:0;padding:0;font-size:14px;line-height:1.85;color:#3a463f}
.val .val-no + ul{color:#6b766f}
.val .val-yes + ul li::before{content:"✅ "}
.val .val-no + ul li::before{content:"— ";color:#9aa5a0}
@media(max-width:760px){.costsplit{grid-template-columns:1fr}}

/* --- Footer (live VS design) --- */
.foot{background:#163d2a;color:#fff;padding:60px 0 0;margin-top:0}
.foot-main{display:grid;grid-template-columns:1.25fr 1fr 1fr 1.25fr auto;gap:40px;padding-bottom:46px}
.foot-logo{height:52px;width:auto;margin-bottom:22px}
.foot h4{font-family:Sora;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#5cba8f;margin:0 0 16px}
.foot-col a{display:block;color:rgba(255,255,255,.88);font-size:14.5px;padding:6px 0;text-decoration:none;border:0}
.foot-col a:hover{color:#fff;text-decoration:underline}
.foot-connect{margin-top:4px}
.foot-social{display:flex;gap:12px}
.foot-social a{display:inline-flex;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.12);align-items:center;justify-content:center;color:#fff}
.foot-social a:hover{background:rgba(255,255,255,.24)}
.foot-division{margin-top:26px}
.foot-division span{display:block;font-size:13px;color:rgba(255,255,255,.72);margin-bottom:10px}
.foot-medtrips{height:44px;width:auto;filter:brightness(0) invert(1)}
.foot-badges{display:flex;flex-direction:column;gap:22px;align-items:flex-start}
.foot-bcorp{height:118px;width:auto}
.foot-impact{height:50px;width:auto;opacity:.95}
.foot-legal{border-top:1px solid rgba(255,255,255,.16)}
.foot-legal .wrap{padding-top:20px;padding-bottom:28px;text-align:center}
.foot-legal p{margin:3px 0;font-size:13px;color:rgba(255,255,255,.66)}
.foot-badge-x{height:56px;width:auto;max-width:210px}
/* Pharos Response badge — stacked directly under the Impact Explorers logo */
.foot-impact-stack{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.foot-pharos{height:48px;width:auto;max-width:210px}
.foot-madeby .foot-ie{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.foot-madeby .foot-ie:hover{color:#fff}
.foot-madeby{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 0 8px;font-size:13.5px;font-weight:500;color:rgba(255,255,255,.82)}
.foot-heart{flex:0 0 auto;display:inline-block}

/* --- Policy cross-page navigation (on every policy page) --- */
.policy-nav{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px 28px}
.policy-nav h4{font-family:Sora;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--green);margin:0 0 14px}
.policy-nav ul{list-style:none;margin:0;padding:0;columns:2;column-gap:32px}
.policy-nav li{break-inside:avoid;margin:0 0 9px}
.policy-nav a{color:var(--ink);font-size:14.5px;text-decoration:none}
.policy-nav a:hover{color:var(--green-d);text-decoration:underline}
.policy-nav li.on a{color:var(--green-d);font-weight:700}
@media(max-width:560px){.policy-nav ul{columns:1}}

/* --- Logo marquee (e.g. "Our Past Volunteer Student Groups") --- */
.logo-marquee{overflow:hidden;position:relative;padding:10px 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.logo-track{display:flex;align-items:center;gap:60px;width:max-content;animation:vs-logoscroll 55s linear infinite}
.logo-marquee:hover .logo-track{animation-play-state:paused}
.logo-item{flex:0 0 auto;display:flex;align-items:center;justify-content:center;height:72px}
.logo-item img{max-height:62px;max-width:165px;width:auto;object-fit:contain;filter:grayscale(1);opacity:.62;transition:filter .2s,opacity .2s}
.logo-item img:hover{filter:none;opacity:1}
@keyframes vs-logoscroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.logo-track{animation:none;flex-wrap:wrap;justify-content:center;width:auto;gap:40px}}

/* --- Group page: student-group logo marquee (uni-card boxes), per prototype --- */
.uni-marq{overflow:hidden;position:relative;margin-top:6px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.uni-track{display:flex;gap:16px;width:max-content;animation:vs-uniscroll 55s linear infinite}
.uni-marq:hover .uni-track{animation-play-state:paused}
.uni-card{flex:0 0 auto;width:168px;height:94px;background:#fff;border:1.5px solid var(--line);border-radius:12px;display:flex;align-items:center;justify-content:center;padding:16px}
.uni-card img{max-width:100%;max-height:100%;object-fit:contain;filter:grayscale(1);opacity:.72;transition:.25s}
.uni-card:hover img{filter:none;opacity:1}
@keyframes vs-uniscroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.uni-track{animation:none;flex-wrap:wrap;justify-content:center;width:auto}}

/* --- Mosaic gallery + lightbox (Groups in action), per prototype --- */
.gal{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,150px);gap:12px;grid-template-areas:"a a b c" "a a d d" "e f f g" "e h h g"}
.gtile{position:relative;overflow:hidden;border-radius:14px;cursor:pointer;margin:0;background:#eef2ee;box-shadow:0 16px 32px -24px rgba(14,31,23,.55)}
.gtile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.gtile:hover img{transform:scale(1.07)}
.gtile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,35,26,0) 60%,rgba(11,35,26,.4));opacity:0;transition:.3s}
.gtile:hover::after{opacity:1}
.gtile .zoom{position:absolute;top:10px;right:10px;z-index:2;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(.85);transition:.25s}
.gtile:hover .zoom{opacity:1;transform:none}
.gtile .zoom svg{width:15px;height:15px;stroke:#c8542d}
.gta{grid-area:a}.gtb{grid-area:b}.gtc{grid-area:c}.gtd{grid-area:d}.gte{grid-area:e}.gtf{grid-area:f}.gtg{grid-area:g}.gth{grid-area:h}
@media(max-width:860px){.gal{grid-template-columns:1fr 1fr;grid-template-rows:none;grid-auto-rows:138px;grid-template-areas:none}.gal .gtile{grid-area:auto}.gal .gta{grid-column:span 2;grid-row:span 2}}
@media(max-width:520px){.gal{grid-auto-rows:124px}}
.glb{position:fixed;inset:0;z-index:9999;background:rgba(8,20,15,.93);display:none;align-items:center;justify-content:center;padding:28px}
.glb.on{display:flex}
.glb img{max-width:92vw;max-height:80vh;border-radius:12px;box-shadow:0 30px 80px -20px rgba(0,0,0,.7)}
.glb-x,.glb-nav{position:absolute;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.28);color:#fff;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;line-height:1;transition:.2s}
.glb-x:hover,.glb-nav:hover{background:rgba(255,255,255,.27)}
.glb-x{top:20px;right:22px;font-size:24px}
.glb-nav{top:50%;transform:translateY(-50%);font-size:30px}
.glb-prev{left:18px}.glb-next{right:18px}
@media(max-width:560px){.glb-prev{left:8px}.glb-next{right:8px}}

/* --- About page: vertical timeline (Our story so far) --- */
.tl{max-width:780px;margin:0 auto;position:relative;padding-left:30px}
.tl::before{content:"";position:absolute;left:6px;top:8px;bottom:8px;width:2px;background:var(--line)}
.tl .ev{position:relative;padding:0 0 26px 24px}
.tl .ev:last-child{padding-bottom:0}
.tl .ev::before{content:"";position:absolute;left:-30px;top:5px;width:14px;height:14px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px #fff}
.tl .yr{font-family:Sora;font-weight:700;color:var(--green);font-size:16px}
.tl .ev p{font-size:15px;color:#3a463f;line-height:1.7;margin-top:5px}

/* --- About page side photo --- */
.side-photo{border-radius:14px;overflow:hidden;border:1.5px solid var(--line);height:100%}
.side-photo img{display:block;width:100%;height:100%;min-height:340px;object-fit:cover}

/* --- Group sub-page fresh design (hero pills + numbered accented flow) --- */
.group-page .hero-pills{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px}
.group-page .hero-pills span{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.34);color:#fff;font-family:Sora;font-weight:600;font-size:12.5px;padding:6px 14px;border-radius:999px}
.group-page .hero-pills span::before{content:"✓";font-weight:700}
.gp-flow{counter-reset:gps}
.gp-flow > section.sec{position:relative;counter-increment:gps;padding-top:52px;padding-bottom:52px}
.gp-flow > section.sec > .wrap{position:relative}
.gp-flow > section.sec > .wrap::before{content:counter(gps,decimal-leading-zero);position:absolute;top:-30px;right:4px;font-family:Sora;font-weight:800;font-size:66px;line-height:1;color:var(--green);opacity:.07;pointer-events:none}
.gp-flow .prose h2{position:relative;font-size:27px;line-height:1.18;margin:0 0 18px;padding-bottom:13px;border-bottom:2px solid #e7ece8}
.gp-flow .prose h2::after{content:"";position:absolute;left:0;bottom:-2px;width:58px;height:2px;background:var(--accent)}
.gp-flow .prose h3{font-size:18px;color:var(--green-d);margin:22px 0 8px}
.gp-flow .prose img{border-radius:14px;box-shadow:0 22px 42px -26px rgba(14,31,23,.55)}
@media(max-width:620px){.gp-flow > section.sec > .wrap::before{font-size:44px;top:-20px}.gp-flow > section.sec{padding-top:38px;padding-bottom:38px}}

/* --- Country filter chips (continent pages) --- */
.cfilter{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 28px}
.cf-chip{font-family:Sora;font-weight:600;font-size:13.5px;padding:8px 16px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--muted);cursor:pointer;transition:.15s}
.cf-chip:hover{border-color:var(--green);color:var(--green-d)}
.cf-chip.on{background:var(--green);border-color:var(--green);color:#fff}

/* --- Program dates explorer --- */
.df-bar{display:grid;grid-template-columns:1fr 1fr;gap:14px;background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:16px 18px;box-shadow:0 16px 34px -26px rgba(14,31,23,.4);max-width:620px}
.df-f label{display:block;font-family:Sora;font-weight:700;font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--accent);margin-bottom:5px}
.df-f select{width:100%;padding:11px 12px;border:1.5px solid var(--line);border-radius:9px;font:inherit;font-size:14.5px;color:var(--ink);background:#fff;cursor:pointer;outline:none}
.df-f select:focus{border-color:var(--accent)}
.dlist{background:#fff;border:1.5px solid var(--line);border-radius:14px;overflow:hidden}
.drow{display:flex;gap:22px;align-items:flex-start;padding:14px 18px;border-bottom:1px solid var(--line)}
.drow:last-child{border-bottom:0}
.drow:hover{background:#fff8f5}
.drow-info{flex:0 0 34%;min-width:0}
.drow-info h3{font-family:Sora;font-size:14.5px;font-weight:600;color:var(--ink);margin:0;line-height:1.35}
.drow-info .dloc{font-size:12px;color:var(--muted);margin-top:2px}
.dchips{flex:1;display:flex;flex-wrap:wrap;gap:7px;align-content:flex-start}
.dchip{font-size:12px;font-weight:600;color:var(--accent-d);background:#fff4ef;border:1px solid #f6cdbb;border-radius:7px;padding:4px 9px}
.dchip.flex{color:var(--green-d);background:#eefaf3;border-color:#bfe8cf}
.dmore{font-size:11.5px;color:var(--muted);align-self:center}
.df-count{font-size:13px;color:var(--muted);margin:18px 0 14px}
.df-empty{padding:34px;text-align:center;color:var(--muted);background:#fff;border:1.5px dashed var(--line);border-radius:12px}
@media(max-width:680px){.drow{flex-direction:column;gap:9px}.drow-info{flex:none}.df-bar{grid-template-columns:1fr}}

/* --- Resource / info page: two-column article + sticky sidebar --- */
.resource-page .rp-grid{display:grid;grid-template-columns:minmax(0,1fr) 336px;gap:46px;align-items:start}
/* Resource article images: honour the editor's alignment + size, so a page can
   float/resize a logo (e.g. the B Corp badge). Aligned images float and wrap text;
   UNALIGNED images stay clean centred blocks (prevents the diploma float pile-up). */
.resource-page .rp-main .prose img{height:auto;max-width:100%;border-radius:13px}/* no width here → the editor's width attribute controls size */
.resource-page .rp-main .prose img:not(.alignleft):not(.alignright):not(.aligncenter){float:none;clear:both;display:block;margin:22px auto;box-shadow:0 18px 38px -28px rgba(14,31,23,.45)}
.resource-page .rp-main .prose img.alignright{float:right;margin:4px 0 18px 28px;max-width:46%}
.resource-page .rp-main .prose img.alignleft{float:left;margin:4px 28px 18px 0;max-width:46%}
.resource-page .rp-main .prose img.aligncenter{float:none;clear:both;display:block;margin:22px auto}
.resource-page .rp-h{margin:30px 0 14px}
.resource-page .rp-h h2{font-size:25px;margin:0}
.rp-side{position:sticky;top:88px;display:flex;flex-direction:column;gap:16px}
.rp-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 22px 24px;box-shadow:0 18px 40px -30px rgba(14,31,23,.5)}
.rp-card h4{font-family:Sora;font-weight:700;font-size:16px;margin:0 0 8px;color:var(--ink)}
.rp-cta{background:linear-gradient(150deg,#f6fbf8,#eef6f0);border-color:#d8e8df}
.rp-cta p{font-size:13.5px;color:var(--muted);line-height:1.55;margin:0 0 14px}
.btn-ghost{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1.5px solid var(--green);color:var(--green-d);font-family:Sora;font-weight:600;border-radius:999px;padding:10px 18px;text-decoration:none}
.btn-ghost:hover{background:var(--paper)}
/* Press / media: uniform "as featured in" cards — contained logo + headline */
.press-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.press-cards .card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 16px 36px -28px rgba(14,31,23,.4);transition:transform .15s,box-shadow .15s}
.press-cards .card:hover{transform:translateY(-4px);box-shadow:0 24px 46px -26px rgba(14,31,23,.5)}
.press-cards .card .ph{aspect-ratio:16/10;background:#f5f8f6;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:center;padding:22px}
.press-cards .card .ph img{width:auto;height:auto;max-width:74%;max-height:62%;object-fit:contain;transition:transform .3s}
.press-cards .card:hover .ph img{transform:scale(1.05)}
.press-cards .card .bd{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1}
.press-cards .card .bd h3{font-family:Sora;font-size:16px;line-height:1.32;margin:0 0 10px}
.press-cards .card .bd .ds{font-size:13.5px;color:var(--muted);line-height:1.55;margin:0 0 14px}
.press-cards .card .bd .go{margin-top:auto;color:var(--green-d);font-weight:600;font-size:13.5px}
@media(max-width:820px){.press-cards{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.press-cards{grid-template-columns:1fr}}

/* --- Our Impact: stat band + UN SDG tiles --- */
.statband{background:var(--green-d);color:#fff}
.statband .wrap{padding-top:46px;padding-bottom:46px}
.statband .sb-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center}
.statband .sb .n{font-family:Sora;font-weight:700;font-size:46px;line-height:1;letter-spacing:-.02em;color:#bdf0d3}
.statband .sb .l{font-size:13.5px;line-height:1.4;color:rgba(255,255,255,.82);margin-top:10px}
@media(max-width:780px){.statband .sb-grid{grid-template-columns:1fr 1fr;gap:28px 18px}.statband .sb .n{font-size:38px}}
.sdg{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.sdg-ic{width:148px;height:auto;display:block;border-radius:10px;box-shadow:0 12px 26px -20px rgba(14,31,23,.5)}
@media(max-width:600px){.sdg-ic{width:104px}}
/* The header provides the language switcher; hide WPML's auto-added footer flag list. */
.wpml-ls-statics-footer,.wpml-ls-statics-footer *{display:none!important}
.rp-fact{display:flex;justify-content:space-between;gap:12px;font-size:14.5px;padding:6px 0}
.rp-fact b{color:var(--green-d)}
.rp-why ul{list-style:none;margin:0;padding:0}
.rp-why li{position:relative;padding:9px 0 9px 26px;font-size:14px;color:#3a463f;border-bottom:1px solid var(--line)}
.rp-why li:last-child{border:0}
.rp-why li::before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:700}
@media(max-width:900px){.resource-page .rp-grid{grid-template-columns:1fr;gap:28px}.rp-side{position:static;flex-direction:row;flex-wrap:wrap}.rp-side .rp-card{flex:1;min-width:240px}}
@media(max-width:560px){.resource-page .rp-main .prose img{max-width:100%;float:none;display:block;margin:14px auto}.rp-side{flex-direction:column}}

/* --- About page: accreditation logos grid + tidy prose --- */
.about-logos{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:34px 46px}
.about-logos img{height:62px;width:auto;max-width:158px;object-fit:contain;filter:grayscale(1);opacity:.82;transition:filter .2s,opacity .2s}
.about-logos img:hover{filter:none;opacity:1}
.about-page .prose p[class*="justify"],.about-page .prose .text-align-justify{text-align:left}
@media(max-width:620px){.about-logos{gap:24px}.about-logos img{height:46px;max-width:110px}}
@media(max-width:980px){
  .foot-main{grid-template-columns:1fr 1fr;gap:30px}
  .foot-brand{grid-column:1/-1}
  .foot-badges{flex-direction:row;grid-column:1/-1}
}
@media(max-width:560px){ .foot-main{grid-template-columns:1fr} }

/* --- About page: timeline + quote --- */
.timeline{display:flex;flex-direction:column;gap:0}
.tl-row{display:grid;grid-template-columns:96px 1fr;gap:22px;padding:18px 0;border-top:1px solid var(--line)}
.tl-row:first-child{border-top:0}
.tl-year{font-family:Sora;font-weight:700;font-size:20px;color:var(--green-d)}
.tl-body{color:var(--muted);font-size:15px;line-height:1.6}
.tl-body p{margin:0}
.vs-quote{font-family:Sora;font-weight:600;font-size:24px;line-height:1.4;color:var(--ink);margin:0;position:relative}
.vs-quote::before{content:"\201C";color:var(--green);font-size:40px;line-height:0;vertical-align:-12px;margin-right:4px}
@media(max-width:560px){.tl-row{grid-template-columns:1fr;gap:4px}}

/* --- Topbar "Get in touch" CTA (orange, prominent) --- */
.topbar .topbar-cta{background:var(--accent);color:#fff;padding:5px 14px;border-radius:7px;font-weight:600}
.topbar .topbar-cta:hover{background:var(--accent-d,#b8431f);color:#fff}

/* --- Topbar language switcher (WPML) --- */
.lang-flag{display:inline-block;width:20px;height:14px;border-radius:2px;object-fit:cover;vertical-align:-2px;margin-right:7px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
/* Mega-menu country flags */
.navflag{display:inline-block;width:20px;height:14px;border-radius:2px;object-fit:cover;vertical-align:-2px;margin-right:9px;box-shadow:0 0 0 1px rgba(0,0,0,.1)}
.vs-langmenu a{display:flex;align-items:center}
.vs-langsel{position:relative;cursor:pointer}
.vs-langmenu{position:absolute;top:100%;left:0;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 28px -16px rgba(16,40,28,.45);padding:6px 0;min-width:160px;display:none;z-index:40}
.vs-langsel:hover .vs-langmenu{display:block}
.vs-langmenu a{display:block;padding:8px 14px;font-size:13px;color:var(--ink)}
.vs-langmenu a:hover,.vs-langmenu a.on{background:var(--paper);color:var(--green-d)}

/* --- Get-in-touch right slider --- */
.vs-git-ov{position:fixed;inset:0;background:rgba(14,31,23,.5);z-index:60}
.vs-git{position:fixed;top:0;right:0;height:100%;width:760px;max-width:94vw;background:#1c4a36;color:#fff;z-index:61;transform:translateX(105%);transition:transform .3s ease;overflow-y:auto;padding:34px 36px;box-shadow:-20px 0 50px -30px rgba(0,0,0,.6)}
.vs-git-form{max-width:100%}
.vs-git.on{transform:translateX(0)}
.vs-git h2{font-family:Sora;font-size:30px;margin:0 0 6px;color:#fff}
.vs-git-sub{color:rgba(255,255,255,.8);font-size:14px;margin:0 0 18px}
.vs-git-x{position:absolute;top:16px;right:18px;background:none;border:0;color:#fff;font-size:32px;line-height:1;cursor:pointer;opacity:.85}
.vs-git-x:hover{opacity:1}

/* --- Cookie consent bar (full-width bottom bar) --- */
.vs-cookie{position:fixed;left:0;right:0;bottom:0;z-index:55;background:#143d2a;color:#fff;box-shadow:0 -8px 30px -16px rgba(0,0,0,.5);padding:16px 22px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;justify-content:center}
.vs-cookie p{margin:0;font-size:14px;color:rgba(255,255,255,.88);max-width:760px}
.vs-cookie a{color:#bfe8cf;text-decoration:underline}
.vs-cookie-act{display:flex;gap:10px;flex:0 0 auto}
.vs-cookie-act button{font-family:Sora;font-weight:600;font-size:14px;padding:10px 22px;border-radius:9px;border:1.5px solid rgba(255,255,255,.4);background:transparent;color:#fff;cursor:pointer}
.vs-cookie-act button.ok{background:var(--green);border-color:var(--green);color:#fff}
.vs-cookie-act button:hover{border-color:#fff}
@media(max-width:560px){.vs-cookie{padding:14px 16px}.vs-cookie-act{width:100%}.vs-cookie-act button{flex:1}}

/* --- Article body links (blog/pages) — the global reset strips link styling, so
   re-add it inside .prose so the SEO interlinks read as links, not plain text. --- */
.prose a{color:var(--green-d,#1c4a36);text-decoration:underline;text-underline-offset:.16em;text-decoration-thickness:1px;text-decoration-color:rgba(47,143,91,.5);font-weight:500;transition:color .15s,text-decoration-color .15s}
.prose a:hover{color:var(--accent,#e2693f);text-decoration-color:currentColor}
/* Inline page images: cap the size and float so the text wraps around them
   (fixes the oversized B Corp logo). Headings clear the float; mobile stacks. */
.prose img{max-width:400px;height:auto;border-radius:13px;box-shadow:0 20px 38px -26px rgba(14,31,23,.5);float:right;margin:6px 0 20px 34px;clear:right}/* width comes from the image's own attribute, capped at 400px */
.prose h2,.prose h3{clear:both}
@media(max-width:620px){.prose img{float:none;max-width:100%;margin:14px auto;display:block}}
/* Programme body: wrap photos AND videos in the text (all programme pages). Images
   already float via .prose img; this floats embedded videos/iframes the same way. */
.psec .prose iframe,.psec .prose video{float:right;width:42%;max-width:420px;aspect-ratio:16/9;height:auto;margin:6px 0 18px 30px;border:0;border-radius:12px;clear:right}
.psec .prose .wp-block-embed,.psec .prose figure.wp-block-embed{float:right;width:42%;max-width:420px;margin:6px 0 18px 30px;clear:right}
.psec .prose .wp-block-embed iframe,.psec .prose figure iframe{float:none;width:100%;max-width:100%;margin:0}
@media(max-width:620px){.psec .prose iframe,.psec .prose video,.psec .prose .wp-block-embed,.psec .prose figure.wp-block-embed{float:none;width:100%;max-width:100%;margin:14px 0}}

/* --- Photo galleries (programme Gallery tab, country page, About) — global so
   they style outside single-programme too --- */
.gallery{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:150px;gap:12px}
.gallery a{border-radius:14px;overflow:hidden;display:block}
.gallery a:first-child{grid-column:span 2;grid-row:span 2}
.gallery img,.livgal img{width:100%;height:100%;object-fit:cover;transition:.35s}
.gallery a:hover img,.livgal a:hover img{transform:scale(1.06)}
.livgal{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.livgal a{border-radius:13px;overflow:hidden;aspect-ratio:4/3;display:block}
@media(max-width:620px){.gallery{grid-template-columns:1fr 1fr;grid-auto-rows:120px}.gallery a:first-child{grid-column:span 2}.livgal{grid-template-columns:1fr 1fr}}

/* --- Photo lightbox (gallery / livgal) --- */
.gallery a,.livgal a{cursor:zoom-in}
.vs-lb{position:fixed;inset:0;z-index:200;background:rgba(8,18,12,.93);display:none;align-items:center;justify-content:center}
.vs-lb.on{display:flex}
.vs-lb-img{max-width:90vw;max-height:86vh;object-fit:contain;border-radius:6px;box-shadow:0 24px 70px -20px rgba(0,0,0,.8)}
.vs-lb button{position:absolute;background:rgba(255,255,255,.14);border:0;color:#fff;cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;line-height:1;transition:background .15s}
.vs-lb button:hover{background:rgba(255,255,255,.28)}
.vs-lb-x{top:20px;right:24px;width:46px;height:46px;font-size:28px}
.vs-lb-prev,.vs-lb-next{top:50%;transform:translateY(-50%);width:54px;height:54px;font-size:32px;padding-bottom:4px}
.vs-lb-prev{left:24px}.vs-lb-next{right:24px}
.vs-lb-count{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);color:#fff;font-family:Sora;font-size:14px;background:rgba(0,0,0,.45);padding:5px 14px;border-radius:99px}
@media(max-width:620px){.vs-lb-prev,.vs-lb-next{width:44px;height:44px;font-size:26px}.vs-lb-prev{left:8px}.vs-lb-next{right:8px}.vs-lb-x{top:12px;right:12px}}

/* --- Bigger, more visible "Recognised & accredited by" trust logos.
   Tighter gap + per-logo max-width so all 7 + the label stay on one row. --- */
/* Label on its own line, logos wrap centered below — bigger/readable but never
   overflowing the content container (stays within the page edges). */
.trust .wrap{gap:22px 44px;padding:30px 24px;flex-wrap:wrap;justify-content:center}
.trust .lbl{flex:0 0 100%;text-align:center;margin-bottom:6px}
.trust img{height:74px;max-width:178px;width:auto;object-fit:contain;opacity:1}
.trust img.bc{height:90px}
@media(max-width:560px){.trust .wrap{gap:22px 30px}.trust img{height:56px;max-width:150px}.trust img.bc{height:72px}}
/* Quick facts / At a glance: keep multi-line values right-aligned (e.g. Weekend travel) */
.sidecard .row{align-items:flex-start;gap:14px}
.sidecard .row span{flex-shrink:0}
.sidecard .row b{text-align:right}

/* --- Homepage awards & memberships strip --- */
.awards-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:40px}
.awards-strip img{height:78px;width:auto;object-fit:contain}
@media(max-width:620px){.awards-strip{gap:26px}.awards-strip img{height:56px}}

/* --- Team page: round photos, bio on hover (smaller) --- */
.team .tm{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px 18px;transition:transform .15s,box-shadow .15s}
.team .tm:hover{transform:translateY(-3px);box-shadow:0 18px 36px -22px rgba(16,40,28,.45)}
.team .tm .pho{width:120px;height:120px;border-radius:50%;object-fit:cover;margin:0 auto 12px;display:block;border:3px solid #fff;box-shadow:0 6px 18px -8px rgba(20,60,40,.3)}
.team .tm b{font-family:Sora;font-size:17px}
.team .tm span{font-size:13px;color:var(--accent);font-weight:600}
.team .tm p{font-size:12.5px;color:var(--muted);line-height:1.55;margin:8px 0 0;max-height:0;overflow:hidden;opacity:0;transition:max-height .3s ease,opacity .25s ease}
.team .tm:hover p{max-height:360px;opacity:1}

/* --- Contact form notice --- */
.formnote{border-radius:10px;padding:14px 18px;margin-bottom:18px;font-size:14.5px;font-family:Sora;font-weight:600}
.formnote.ok{background:#e3f3e9;color:var(--green-d);border:1px solid #cfe6d8}
.formnote.err{background:#fdecea;color:#b3402e;border:1px solid #f5ccc4}
form .field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}

/* --- Faceted search (page-search.php) --- */
.searchgrid{display:grid;grid-template-columns:280px 1fr;gap:32px;align-items:start}
.searchfilters{position:sticky;top:88px;background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:20px}
.searchfilters .fgroup{border-bottom:1px solid var(--line);padding:12px 0}
.searchfilters .fgroup:first-child{padding-top:0}
.searchfilters h4{font-family:Sora;font-size:13px;margin:0 0 8px;color:var(--ink)}
.searchfilters .fopt{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted);padding:4px 0;cursor:pointer}
.searchfilters .fopt input{flex:0 0 auto}
.rescount{font-family:Sora;font-weight:600;color:var(--muted);margin-bottom:18px}
/* Unified pagination — search (.searchpager) + blog/archives (.pagination) */
.searchpager,
.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:center}
.pagination{margin-top:8px}
.pagination .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.searchpager .page-numbers,
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;font-family:Sora;font-weight:600;font-size:14px;border:1.5px solid var(--line);border-radius:10px;color:var(--ink);background:#fff;transition:.15s}
.searchpager a.page-numbers:hover,
.pagination a.page-numbers:hover{border-color:var(--green);color:var(--green-d);transform:translateY(-1px)}
.searchpager .page-numbers.current,
.pagination .page-numbers.current{background:var(--green);color:#fff;border-color:var(--green)}
.pagination .page-numbers.dots{border-color:transparent;background:transparent;min-width:auto;padding:0 4px}
.pagination .page-numbers.prev,
.pagination .page-numbers.next{color:var(--green-d);font-weight:600}
@media(max-width:920px){.searchgrid{grid-template-columns:1fr}.searchfilters{position:static}}
