/* =========================================================
   CBES theme - main stylesheet
   Order: fonts, tokens, base, layout, header/footer, components,
   pages, forms, then ONE responsive block at the end (descending widths).
   ========================================================= */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--black: #0a0a0a;
	--ink: #3a3a3a;
	--off: #f5f5f5;
	--white: #fff;
	--purple: #4d194d;
	--purple-h: #772c77;
	--orange: #f47f20;
	--orange-h: #d78e53;
	--teal: #2d9b9b;
	--teal-h: #058585;
	--max: 1200px;
	--gutter: 20px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--black); font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 14px; z-index: 9999; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.accent { color: var(--purple); }
.accent2 { color: var(--orange); }
.empty { text-align: center; padding: 40px 0; font-size: 18px; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(50px); transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal="fade-in-title"] { transition-delay: .35s; }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-reveal="sequence"] > * { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
.js [data-reveal="sequence"].is-revealed > * { opacity: 1; transform: none; }
.js [data-reveal="sequence"] { opacity: 1; transform: none; }
.js [data-reveal="sequence"].is-revealed > *:nth-child(2) { transition-delay: .25s; }
.js [data-reveal="sequence"].is-revealed > *:nth-child(3) { transition-delay: .5s; }
.js [data-reveal="sequence"].is-revealed > *:nth-child(4) { transition-delay: .75s; }
.js [data-reveal="sequence"].is-revealed > *:nth-child(5) { transition-delay: 1s; }
.js [data-reveal="sequence"].is-revealed > *:nth-child(n+6) { transition-delay: 1.2s; }
@media (prefers-reduced-motion: reduce) {
	.js [data-reveal], .js [data-reveal] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 18px;
	font-size: 20px; line-height: 24px; font-weight: 500; text-decoration: none; text-align: center;
	color: #fff; background: var(--purple); border: 0; border-radius: 12px; padding: 15px 38px;
	cursor: pointer; transition: background-color .2s, color .2s;
}
.btn--lg { padding: 18px 38px; }
.btn--md { font-size: 18px; line-height: 28px; padding: 18px 38px; }
.btn--outline { background: transparent; color: var(--purple); border: 2px solid var(--purple); padding-block: 16px; }
.btn--outline:hover { background: var(--purple); color: #fff; }
.hero__actions--row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn--wide { width: 100%; }
.btn--purple { background: var(--purple); }
.btn--purple:hover { background: var(--orange); }
.btn--orange { background: var(--orange); }
.btn--orange:hover { background: var(--orange-h); }
.btn--teal { background: var(--teal); }
.btn--teal:hover { background: var(--teal-h); }
.btn--white { background: #fff; color: var(--black); }
.btn--white:hover { background: var(--orange); color: #fff; }
.btn__arrow { flex: none; }
.btn--header { padding: 14px 34px; }

/* ---------- header ---------- */
.site-header__bar { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand img { width: 169px; height: auto; }
main { padding-top: 20px; }
.site-header__right { display: flex; align-items: center; gap: 24px; }
.nav-list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list a { font-size: 18px; line-height: 26px; font-weight: 500; color: var(--black); text-decoration: none; transition: color .2s; }
.nav-list a:hover { color: var(--orange); }
.menu-toggle { display: none; background: none; border: 0; padding: 0; cursor: pointer; }
.menu-toggle, .offcanvas__close { -webkit-tap-highlight-color: transparent; }
.menu-toggle:focus, .menu-toggle:focus-visible, .offcanvas__close:focus, .offcanvas__close:focus-visible { outline: none; box-shadow: none; }

.offcanvas { position: fixed; inset: 0; z-index: 1000; background: #fff; padding: 30px 20px; overflow-y: auto; }
.offcanvas[hidden] { display: none; }
.offcanvas__top { display: flex; justify-content: space-between; align-items: center; }
.offcanvas__top .brand img { width: 130px; }
.offcanvas__close { background: none; border: 0; padding: 0; cursor: pointer; }
.offcanvas__list { list-style: none; padding: 100px 0 0; display: grid; gap: 10px; }
.offcanvas__list a { font-size: 34px; line-height: 42px; font-weight: 500; color: var(--black); text-decoration: none; }
.offcanvas__list a:hover { color: var(--orange); }
.offcanvas__donate { margin-top: 32px; }
body.menu-open { overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { margin-top: 120px; margin-bottom: 30px; }
.footer-card {
	background: var(--black); border-radius: 36px; padding: 75px 40px 60px; min-height: 600px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--off);
}
.footer-cta { width: 74%; display: flex; flex-direction: column; align-items: center; }
.footer-cta__title { color: #fff; font-size: 60px; line-height: 74px; font-weight: 800; }
.footer-cta__text { margin-top: 20px; max-width: 540px; padding-inline: 0; font-size: 18px; line-height: 26px; color: var(--off); }
.footer-cta__actions { margin-top: 28px; display: flex; gap: 24px; justify-content: center; }
.footer-cta .btn--orange:hover { background: #fff; color: var(--black); }
.footer-divider { width: 100%; border: 0; border-top: 1.4px solid #515151; margin: 70px 0; }
.footer-list { display: flex; gap: 40px; list-style: none; padding: 0; margin: 0; justify-content: center; flex-wrap: wrap; }
.footer-list a { font-size: 18px; line-height: 26px; color: var(--off); text-decoration: none; transition: color .2s; }
.footer-list a:hover { color: var(--orange); }
.footer-copy { margin-top: 70px; font-size: 16px; line-height: 26px; color: var(--off); }

/* ---------- hero ---------- */
.gutter-10 { --gutter: 20px; }
.hero {
	position: relative; display: flex; align-items: center; justify-content: center;
	min-height: 400px; padding: 50px 40px; border-radius: 36px; background: var(--off); overflow: hidden;
}
.hero--light { background: var(--off) url("../img/hero-shapes.png") center / cover no-repeat; padding-block: 0; }
.hero--center { flex-direction: column; text-align: center; }
.hero--purple { background: var(--purple); }
.hero--dark { background: #111827; }
.hero--teal { background: var(--teal); }
.hero--orange { background: var(--orange); }
.hero--compact { padding-block: 50px; }
.hero--tall { min-height: 600px; }
.hero__inner { width: 51%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__inner--wide { width: 68%; }
.hero__title { font-weight: 800; color: var(--black); }
.hero__title--xl { font-size: 72px; line-height: 85px; }
.hero__title--lg { font-size: 64px; line-height: 74px; }
.hero__title--md { font-size: 43px; line-height: 56px; }
.hero__title--home { font-size: 64px; line-height: 74px; margin-top: 20px; }
.hero__title--thanks { padding-inline: 220px; font-size: 78px; line-height: 88px; }
.hero__title--left { text-align: left; }
.hero--purple .hero__title, .hero--dark .hero__title, .hero--teal .hero__title, .hero--orange .hero__title { color: #fff; }
.hero--purple .accent, .hero--teal .accent { color: var(--orange); }
.hero--dark .accent { color: var(--teal); }
.hero__text { font-size: 18px; line-height: 26px; color: var(--ink); margin-top: 16px; }
.hero--compact .hero__text { font-size: 20px; }
.hero--purple .hero__text, .hero--dark .hero__text, .hero--teal .hero__text, .hero--orange .hero__text { color: var(--off); }
.hero__text--w48 { width: 48%; }
.hero__text--w74 { width: 74%; }
.hero__text--w92 { width: 92%; }
.hero__text--thanks { font-size: 20px; padding-inline: 240px; }
.hero__text p + p { margin-top: 12px; }
.hero__actions { margin-top: 28px; }

/* homepage hero */
.hero--home { gap: 50px; min-height: 600px; align-items: center; background: var(--off); }
.hero__copy { flex: 1.1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero__media { flex: 1 1 0; min-width: 0; }
.hero--home .hero__text { font-size: 20px; width: 92%; margin-top: 20px; }

/* ---------- pills ---------- */
.pill {
	display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 50px;
	font-size: 16px; line-height: 24px; font-weight: 400; background: #f7edf1; border: 1px solid #4d194d2e; color: var(--orange);
}
.pill b, .pill strong { font-weight: 700; }
.pill__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; }
.pill-rotator { display: grid; justify-items: start; }
.pill-rotator .pill { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.pill-rotator .pill.is-active { opacity: 1; visibility: visible; }
.pill--tint { font-weight: 600; width: fit-content; }
.pill--tint.pill--teal { background: #2d9b9b21; border-color: #2d9b9b2e; color: var(--teal); }
.pill--tint.pill--orange { background: #f47f202b; border-color: #f47f202e; color: var(--orange); }
.pill--white { background: #fff; color: var(--black); gap: 8px; }
.pill-list { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- sections ---------- */
.section { margin-top: 120px; }
.section--tight { margin-top: 80px; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-title { font-size: 54px; line-height: 66px; font-weight: 700; text-align: center; }
.section-title--left { text-align: left; }
.section-title--md { font-size: 40px; line-height: 48px; text-align: center; }
.section-title--teal .accent { color: var(--teal); }
.section-lead { margin-top: 16px; width: 41%; font-size: 18px; line-height: 26px; color: var(--ink); }
.section-lead--w45 { width: 45%; }
.section-head--tight { margin-bottom: 24px; }
.section-actions { display: flex; justify-content: center; margin-top: 40px; }
.section-head + .program-grid, .section-head + .session-grid, .section-head + .testimonials, .section-head + .flag-row, .section-head + .mentor-grid { margin-top: 60px; }
.prose { font-size: 18px; line-height: 26px; color: var(--ink); }
.prose p + p { margin-top: 26px; }
.prose a { color: var(--purple); }
.prose ul, .prose ol { padding-left: 1.4em; margin-block: 1em; }
.prose img { border-radius: 12px; }
.h-md { font-size: 26px; line-height: 32px; font-weight: 800; }
.h-lg { font-size: 32px; line-height: 44px; font-weight: 800; margin-bottom: 20px; }

.split { display: flex; align-items: center; gap: 40px; }
.split > * { flex: 1 1 0; min-width: 0; }
.split--about { gap: 60px; align-items: flex-start; }
.split__body .prose, .split__body .section-title { margin-bottom: 0; }
.split__body .prose { margin-top: 20px; }
.split__actions { margin-top: 28px; }
.split__media--end { display: flex; justify-content: flex-end; }
.split--paths { align-items: center; }
.split--paths .split__media img { width: 100%; height: auto; }
.split--impact { width: 90%; max-width: 1120px; }
.split--impact .split__body { flex: 0 0 463px; }
.split--impact .split__body .prose { width: 90%; }
.split--impact .split__media { flex: 1 1 0; }
.split--impact .split__media img { width: 100%; max-width: 577px; }
.about__media { position: relative; }
.about__media > img:first-child { width: 93%; border-radius: 0; }
.about__tag { position: absolute; right: 7%; bottom: 0; width: auto; max-width: 224px; }
.video { position: relative; width: 84%; margin: 40px auto 0; aspect-ratio: 16 / 9; border-radius: 36px; overflow: hidden; background: #000 center / cover no-repeat; cursor: pointer; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; margin: auto; width: 82px; height: 82px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .2s; }
.video__play:hover { transform: scale(1.06); }
.section--video { text-align: center; }
.section-title--video { width: 58%; margin-inline: auto; }

/* ---------- program cards ---------- */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card { display: flex; flex-direction: column; align-items: flex-start; background: var(--off); border-radius: 24px; padding: 32px 24px; }
.program-card__icon { width: 48px; height: 48px; margin-bottom: 24px; }
.program-card__title { margin-top: 0; font-size: 24px; line-height: 32px; font-weight: 700; }
.program-card__tag { margin-top: 16px; font-size: 16px; line-height: 26px; font-weight: 600; }
.program-card--teal .program-card__tag { color: var(--teal); }
.program-card--orange .program-card__tag { color: var(--orange); }
.program-card__text { margin-top: 16px; font-size: 16px; line-height: 26px; color: var(--ink); }
.dot-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font-size: 16px; line-height: 26px; color: var(--ink); }
.dot-list li { position: relative; padding-left: 20px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.dot-list--orange li::before { background: var(--orange); }
.program-card__btn { align-self: stretch; }
.program-card .dot-list { margin-bottom: 36px; }

/* ---------- session / testimonial / mentor / post grids ---------- */
.session-grid { --cols: 2; --gap: 20px; columns: var(--cols); column-gap: var(--gap); }
.session-card { break-inside: avoid; margin-bottom: 20px; background: var(--off); border: 1px solid #dcdcdca3; border-radius: 24px; overflow: hidden; }
.session-card__cover { height: 350px; }
.session-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.session-card__body { padding: 24px; }
.session-card__body p { font-size: 18px; line-height: 26px; font-weight: 500; color: var(--black); }

.testimonials { --cols: 3; --gap: 24px; columns: var(--cols); column-gap: var(--gap); }
/* Masonry (built by JS: items fill the shortest column, in reading order) */
[data-masonry].is-masonry { display: flex; align-items: flex-start; gap: var(--gap); columns: auto; }
.masonry-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.masonry-col > * { margin-bottom: 0 !important; width: 100%; }
.t-card { break-inside: avoid; margin-bottom: 24px; display: flex; flex-direction: column; gap: 24px; background: var(--off); border-radius: 24px; padding: 24px 18px; }
.t-card__rating { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--ink); }
.t-card__rating svg { color: #e3392d; }
.t-card__text { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.t-card__who { display: flex; align-items: center; gap: 16px; }
.t-card__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.t-card__name { font-size: 18px; line-height: 28px; font-weight: 800; }
.t-card__flag { width: 28px; height: auto; margin-left: -6px; }
[data-loadmore] .is-hidden { display: none; }

.mentor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.mentor-card { position: relative; overflow: hidden; border-radius: 24px; outline-offset: -3px; }
.mentor-card__img { overflow: hidden; }
.mentor-card__img img { display: block; width: 100%; height: auto; transition: transform .5s ease-in-out; }
.mentor-card:hover .mentor-card__img img, .mentor-card:focus-within .mentor-card__img img { transform: scale(1.2); }
.mentor-card__info { position: absolute; left: 0; right: 0; bottom: 0; transform: translate3d(0, 100%, 0); transition: transform .5s ease; background: var(--purple); padding: 30px 15px; text-align: left; }
.mentor-card:hover .mentor-card__info, .mentor-card:focus .mentor-card__info, .mentor-card:focus-within .mentor-card__info { transform: none; }
.mentor-card__name { color: #fff; font-size: 24px; line-height: 32px; font-weight: 700; padding-bottom: 24px; margin: 0 0 5px; }
.mentor-card__loc { color: var(--off); font-size: 14px; font-weight: 600; margin: 0 0 20px; padding: 0; }
.mentor-card__bio { color: var(--off); font-size: 14px; line-height: 24px; font-weight: 400; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: var(--off); border: 1px solid #dcdcdca3; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.post-card__cover { display: block; height: 250px; background: #e8e8e8; }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post-card__date { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; color: var(--ink); }
.post-card__date svg { color: var(--orange); }
.post-card__title { font-size: 18px; line-height: 26px; font-weight: 600; }
.post-card__title a { text-decoration: none; color: var(--black); }
.post-card__excerpt { font-size: 16px; line-height: 22px; color: var(--ink); }
.post-card__more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--orange); text-decoration: none; transition: color .2s; }
.post-card__more:hover { color: var(--purple); }
.pagination { margin-top: 40px; }
.pagination ul, .navigation .nav-links { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; flex-wrap: wrap; }
.pagination a, .pagination span, .navigation .page-numbers { padding: 8px 14px; border-radius: 10px; background: var(--off); text-decoration: none; color: var(--black); font-weight: 500; }
.pagination .current { background: var(--purple); color: #fff; }

/* ---------- bands ---------- */
.band { display: flex; align-items: center; gap: 40px; border-radius: 36px; padding: 86px 40px; background: var(--purple) url("../img/overlay-follow.png") no-repeat center / cover; }
.band > * { flex: 1 1 0; min-width: 0; }
.band__title { color: #fff; font-size: 54px; line-height: 66px; font-weight: 700; }
.band__text { margin-top: 16px; font-size: 18px; line-height: 26px; color: var(--off); }
.band__text p + p { margin-top: 12px; }
.band__kicker { font-size: 18px; line-height: 26px; color: var(--orange); }
.band__kicker + .band__title { margin-top: 16px; }
.band__btn { margin-top: 36px; }
.band--follow .band__body { flex: 1 1 0; }
.band--follow .band__media { flex: 0 0 452px; max-width: 42%; }
.band--partner { justify-content: center; text-align: center; }
.band--partner .band__body { flex: 0 1 760px; display: flex; flex-direction: column; align-items: center; }
.band__stack { display: flex; flex-direction: column; gap: 16px; }
.iconbox { display: flex; align-items: center; gap: 14px; }
.iconbox__icon { flex: none; }
.iconbox__title { font-size: 18px; line-height: 24px; font-weight: 600; margin: 0 0 4px; color: var(--black); }
.iconbox__text { font-size: 16px; line-height: 22px; color: var(--ink); }
.iconbox--glass { padding: 20px 24px; background: #ffffff17; border: 1px solid #ffffff1a; border-radius: 16px; }
.iconbox--glass .iconbox__title { color: #fff; }
.iconbox--glass .iconbox__text { color: var(--off); }

.future { position: relative; width: 100%; min-height: 400px; border-radius: 24px; overflow: hidden; display: flex; align-items: center; padding: 40px 0 40px 42px; background: #0a0a0a center / cover no-repeat; }
.future::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a0a0abf 44%, #0a0a0a7d 69%); }
.future__panel { position: relative; width: 42%; }
.future__title { color: #fff; font-size: 24px; line-height: 32px; font-weight: 700; }
.future__text { margin-top: 12px; font-size: 16px; line-height: 26px; color: var(--off); }
.future__btn { margin-top: 20px; }

/* ---------- flags ---------- */
.flag-row { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 40px 24px; width: 90%; margin: 0 auto; justify-items: center; }
.flag-link { display: flex; flex-direction: column; align-items: center; text-decoration: none; gap: 17px; }
.flag-link__img { width: 88px; height: 100px; object-fit: contain; }
.flag-link__name { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; line-height: 24px; font-weight: 500; color: var(--black); white-space: nowrap; transition: color .2s; }
.flag-link__name::after { content: ""; width: 14px; height: 14px; flex: none; background: url("../icons/arrow-play.svg") center / contain no-repeat; }
.flag-link:hover .flag-link__name { color: var(--purple); }

/* ---------- accordion / tabs ---------- */
.faq { display: flex; flex-direction: column; align-items: center; }
.accordion { width: 52%; margin-top: 40px; display: grid; gap: 16px; }
.accordion__item { padding-block: 10px; }
.accordion__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none; cursor: pointer; font-size: 20px; line-height: 28px; font-weight: 500; color: var(--black); }
.accordion__q::-webkit-details-marker { display: none; }
.accordion__q svg { flex: none; transition: transform .25s; }
.accordion__item[open] .accordion__q svg { transform: rotate(180deg); }
.accordion__a { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--ink); }
.accordion__a p + p { margin-top: 10px; }

.tabs__list { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.tabs__tab { background: #e7e7e7; color: var(--ink); border: 0; border-radius: 12px; padding: 14px 26px; font-size: 18px; line-height: 24px; font-weight: 400; cursor: pointer; transition: background-color .2s, color .2s; }
.tabs__tab:hover, .tabs__tab[aria-selected="true"] { background: var(--orange); color: #fff; }
.tabs--teal .tabs__tab:hover, .tabs--teal .tabs__tab[aria-selected="true"] { background: var(--teal); }
.tabs__panel[hidden] { display: none; }
.apply-card { width: 44%; margin: 40px auto 0; padding: 40px 32px; border-radius: 36px; background: var(--off) url("../img/hero-shapes.png") center / cover no-repeat; }
.apply-card__title { font-size: 43px; line-height: 56px; font-weight: 800; }
.apply-card--teal .accent { color: var(--teal); }
.apply-card--orange .accent { color: var(--orange); }
.apply-card__text { margin-top: 12px; font-size: 18px; line-height: 26px; color: var(--ink); }
.apply-card__text p + p { margin-top: 12px; }
.apply-card .icon-list { margin-top: 16px; }
.apply-card__form { margin-top: 28px; }
.overview { display: flex; flex-direction: column; align-items: center; }
.overview__book { width: 100%; margin-top: 24px; }

.icon-list { list-style: none; display: grid; gap: 5px; }
.icon-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 18px; line-height: 26px; color: var(--ink); }
.icon-list__icon { flex: none; margin-top: 1px; }
.program-block__card .icon-list { padding: 24px 0 40px; }
.facts { display: flex; gap: 40px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- programs page ---------- */
.program-block { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.program-block > * { flex: 1 1 0; min-width: 0; }
.program-block__text { display: flex; flex-direction: column; align-items: flex-start; }
.program-block__title { margin-top: 14px; font-size: 40px; line-height: 48px; font-weight: 700; }
.program-block__tag { margin-top: 10px; font-size: 24px; line-height: 32px; font-weight: 600; }
.program-block__tag--teal { color: var(--teal); }
.program-block__tag--orange { color: var(--orange); }
.program-block__text .prose { margin-top: 16px; }
.program-block__btn { margin-top: 28px; }
.program-block__card { background: var(--off); border-radius: 32px; padding: 32px 20px; }
.program-block__card-title { font-size: 20px; line-height: 28px; font-weight: 700; }
.program-block__img { width: 100%; margin-inline: auto; }
.program-block .accent { color: var(--purple); }

/* ---------- carousel ---------- */
.carousel { position: relative; }
.carousel__viewport { position: relative; border-radius: 24px; overflow: hidden; background: #fff; }
.carousel__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
.carousel__slide.is-active { position: relative; opacity: 1; visibility: visible; }
.carousel__slide img { width: 100%; height: auto; border-radius: 24px; }
.carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: #666; display: grid; place-items: center; cursor: pointer; z-index: 2; box-shadow: 0 1px 6px rgba(0, 0, 0, .15); }
.carousel__nav--prev { left: 10px; }
.carousel__nav--next { right: 10px; }
.carousel__nav:hover { color: var(--orange); }
.hero--home .carousel { background: #fff; border-radius: 24px; }

/* ---------- AMP / apply heroes ---------- */
.hero--amp { background-image: none; gap: 50px; min-height: 600px; padding: 50px 40px; }
.hero--amp .hero__copy { flex: 1 1 0; }
.hero--amp .icon-list { margin-top: 20px; }
.hero--amp .hero__actions { margin-top: 24px; }
.hero__media--amp { flex: 0 0 55%; }
.hero--apply { gap: 50px; align-items: flex-start; min-height: 600px; padding: 40px 30px; justify-content: center; }
.apply__intro, .apply__form { flex: 1 1 0; min-width: 0; }
.apply__text { margin-top: 16px; font-size: 18px; line-height: 26px; color: var(--ink); }
.apply__text p + p { margin-top: 14px; }
.apply__intro .icon-list { margin-top: 16px; }
.apply__img { margin-top: 40px; }
.apply__form-title { font-size: 20px; line-height: 38px; font-weight: 700; }
.apply__form-text { margin-top: 6px; font-size: 18px; line-height: 26px; color: var(--ink); }
.apply__form .cbes-form { margin-top: 20px; }

/* ---------- country page ---------- */
.hero--country { flex-direction: row; justify-content: space-between; align-items: center; gap: 34px; min-height: 600px; padding: 40px; }
.country__intro { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.country__title-row { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.country__flag { width: 72px; height: auto; flex: none; }
.country__desc { margin-top: 18px; font-size: 20px; line-height: 28px; color: var(--ink); width: 82%; }
.country__stats { width: 56%; display: flex; flex-direction: column; gap: 24px; }
.country__gauge { width: 100%; }
.stat-row { display: flex; gap: 24px; }
.stat { flex: 1; background: #fff; border-radius: 24px; padding: 24px; }
.stat--tint { background: #4d194d14; }
.stat__label { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 24px; color: var(--black); }
.stat__value { margin-top: 12px; font-size: 32px; line-height: 44px; font-weight: 800; color: var(--black); }
.stat__value--purple { color: var(--purple); }
.backlink { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--orange); text-decoration: none; }
.country__cols { display: flex; align-items: center; gap: 48px; }
.country__cols > * { flex: 1 1 0; min-width: 0; }
.country__copy { margin-top: 16px; font-size: 20px; line-height: 28px; color: var(--ink); }
.country__overall { background: #f47f200f; border-left: 4px solid var(--orange); border-radius: 24px; padding: 24px; }

.hci-chart { display: flex; flex-direction: column; gap: 22px; padding: 24px 0; }
.hci-bar-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; transition: background .2s; }
.hci-bar-item:hover { background: #f8f8f8; }
.hci-flag { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.hci-label { min-width: 120px; display: flex; flex-direction: column; gap: 2px; }
.hci-country-name { font-size: 14px; font-weight: 600; color: #1a1a1a; line-height: 1; }
.hci-tier { font-size: 10px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.tier-high { color: #2d9b9b; }
.tier-medium { color: #f59e0b; }
.tier-low { color: #ef4444; }
.hci-bar-track { flex: 1; background: #e8e8e8; border-radius: 999px; height: 10px; overflow: hidden; }
.hci-bar-fill { height: 100%; border-radius: 999px; width: 0; transition: width 1.4s cubic-bezier(.4, 0, .2, 1); }
.bar-high { background: linear-gradient(90deg, #2d9b9b, #3ab5b5); }
.bar-medium { background: linear-gradient(90deg, #f59e0b, #fbb740); }
.bar-low { background: linear-gradient(90deg, #ef4444, #f46b6b); }
.hci-score { font-size: 14px; font-weight: 700; color: #1a1a1a; min-width: 38px; text-align: right; }
.active-country { background: linear-gradient(135deg, #f3f0ff, #ede8ff) !important; }
.active-country .hci-country-name, .active-country .hci-score { color: #5b3fd4; }
@media (prefers-reduced-motion: reduce) { .hci-bar-fill { transition: none; } }

.explore-countries__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.country-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid #ebebeb; border-radius: 10px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .15s; }
.country-card:hover { border-color: #d0d0d0; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.country-card__flag { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.country-card__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.country-card__name { font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-card__hci { font-size: 11px; font-weight: 400; color: #999; line-height: 1; }

/* ---------- article ---------- */
.article { max-width: 1000px; padding-block: 80px 0; }
.article__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.article__title { font-size: 32px; line-height: 44px; font-weight: 700; }
.article__image { margin-top: 30px; }
.article__image img { border-radius: 24px; width: 100%; }
.article__content { margin-top: 30px; font-size: 18px; line-height: 34px; }
.article__nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 60px; }
.article__nav a { text-decoration: none; display: flex; flex-direction: column; gap: 6px; font-size: 22px; color: var(--black); }
.article__nav-next { text-align: right; margin-left: auto; }
.article__nav-label { font-size: 18px; font-weight: 600; color: var(--orange); }

/* ---------- impact reports / PDF reader ---------- */
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
.report { display: flex; }
.report > * { width: 100%; }
.cbes-pdf-reader { border: 1px solid #e8e8e8; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 16px rgba(0, 0, 0, .07); transition: box-shadow .2s; display: flex; flex-direction: column; }
.cbes-pdf-reader:hover { box-shadow: 0 6px 28px rgba(0, 0, 0, .11); }
.cbes-pdf-reader__canvas-wrap { position: relative; width: 100%; background: #f0f0f0; min-height: 420px; display: flex; align-items: center; justify-content: center; flex: 1; }
.cbes-pdf-reader__canvas { display: block; width: 100%; height: auto; }
.cbes-pdf-reader__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #666; background: #f0f0f0; text-align: center; padding: 20px; }
.cbes-pdf-reader__controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid #eee; background: #fafafa; font-size: 14px; }
.cbes-pdf-btn { border: 1px solid #ddd; background: #fff; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--black); }
.cbes-pdf-btn:hover:not(:disabled) { border-color: var(--purple); color: var(--purple); }
.cbes-pdf-btn:disabled { opacity: .4; cursor: default; }
.cbes-pdf-reader__footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid #eee; font-size: 14px; }
.cbes-pdf-reader__title { font-weight: 600; color: var(--black); }
.cbes-pdf-reader__download { color: var(--orange); text-decoration: none; font-weight: 600; white-space: nowrap; }

/* ---------- donate / fundraising ---------- */
.give-card { max-width: 860px; margin-inline: auto; text-align: center; padding: 64px 48px; border-radius: 36px; background: var(--off) url("../img/hero-shapes.png") center / cover no-repeat; display: flex; flex-direction: column; align-items: center; }
.give-card__title { font-size: 54px; line-height: 66px; font-weight: 700; }
.give-card__text { margin-top: 16px; max-width: 560px; font-size: 18px; line-height: 26px; color: var(--ink); }
.give-card__btn { margin-top: 32px; }
.give-card__note { margin-top: 16px; font-size: 14px; line-height: 20px; color: #6b7280; }
.progress { max-width: 860px; margin-inline: auto; background: var(--off); border-radius: 24px; padding: 28px 32px; }
.progress__head { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; color: var(--black); }
.progress__pct { color: var(--purple); }
.progress__track { margin-top: 14px; height: 12px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.progress__track span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--orange)); }
.progress__nums { margin-top: 12px; font-size: 16px; color: var(--ink); }

/* ---------- forms ---------- */
.cbes-form { display: grid; gap: 14px; }
.cbes-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cbes-form__errors { background: #fdecea; border: 1px solid #f5c2c0; color: #8a1f17; border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.cbes-form__errors ul { margin: 6px 0 0; padding-left: 20px; }
.cbes-field { display: grid; gap: 6px; }
.cbes-field__label { font-size: 16px; font-weight: 600; color: var(--black); }
.cbes-field input[type="text"], .cbes-field input[type="email"], .cbes-field input[type="tel"], .cbes-field select, .cbes-field textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--black); background: #fff; border: 1px solid #dcdcdc; border-radius: 12px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
.cbes-field textarea { min-height: 130px; resize: vertical; }
.cbes-field input:focus, .cbes-field select:focus, .cbes-field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px #4d194d26; }
.cbes-field.has-error input, .cbes-field.has-error select, .cbes-field.has-error textarea { border-color: #c03d3d; }
.cbes-field__error { color: #c03d3d; font-size: 14px; }
.cbes-field__hint { color: #666; font-size: 13px; }
.cbes-field input[type="file"] { font-size: 15px; padding: 10px; background: #fff; border: 1px dashed #bbb; border-radius: 12px; width: 100%; }
.cbes-field--html { font-size: 14px; color: #666; }
.cbes-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.cbes-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; color: var(--ink); cursor: pointer; }
.cbes-check input { margin-top: 3px; accent-color: var(--purple); width: 16px; height: 16px; flex: none; }
.cbes-form__submit { margin-top: 6px; }
.cbes-form__note { font-size: 12px; color: #777; text-align: center; }
.grecaptcha-badge { visibility: hidden; }

/* =========================================================
   RESPONSIVE - one authoritative block, widest first
   ========================================================= */
@media (max-width: 1024px) {
	.menu-toggle { display: block; }
	.site-header__right { display: none; }
	.section { margin-top: 80px; }
	.site-footer { margin-top: 80px; }
	.hero__title--xl { font-size: 54px; line-height: 66px; }
	.hero__title--lg { font-size: 54px; line-height: 66px; }
	.hero__title--md { font-size: 36px; line-height: 44px; }
	.hero__title--home { font-size: 54px; line-height: 66px; }
	.hero__title--thanks { padding-inline: 100px; font-size: 54px; line-height: 66px; }
	.hero__text--thanks { padding-inline: 60px; }
	.hero { min-height: 450px; }
	.hero--home, .hero--amp, .hero--apply, .hero--country { flex-direction: column; align-items: stretch; padding: 40px 20px; }
	.hero--home .hero__media, .hero__media--amp { flex: none; width: 100%; }
	.hero__inner { width: 68%; }
	.hero__text--w48 { width: 70%; }
	.section-title { font-size: 36px; line-height: 44px; }
	.band__title { font-size: 36px; line-height: 44px; }
	.footer-cta { width: 94%; }
	.footer-cta__title { font-size: 46px; line-height: 64px; }
	.program-grid, .mentor-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.flag-row { grid-template-columns: repeat(4, 1fr); width: 100%; }
	.testimonials { --cols: 2; }
	.split, .band, .program-block, .country__cols { flex-direction: column; align-items: stretch; }
	.band--follow .band__media { flex: none; max-width: 100%; }
	.split--impact { width: 100%; }
	.split--impact .split__body { flex: none; }
	.split--impact .split__body .prose { width: 100%; }
	.split--about, .split--paths, .split--impact { gap: 24px; }
	.program-block--reverse { flex-direction: column-reverse; }
	.country__stats { width: 100%; }
	.country__desc { width: 100%; }
	.accordion { width: 80%; }
	.apply-card { width: 70%; }
	.section-lead { width: 70%; }
	.explore-countries__grid { grid-template-columns: repeat(3, 1fr); }
	.future { width: 100%; padding-left: 24px; }
	.future__panel { width: 70%; }
	.program-block__title { font-size: 36px; line-height: 44px; }
}

@media (max-width: 767px) {
	.hero { border-radius: 24px; padding: 30px 20px; min-height: 0; }
	.hero--light { min-height: 30vh; }
	.hero--tall { min-height: 70vh; }
	.hero__title--xl { font-size: 31px; line-height: 42px; }
	.hero__title--lg { font-size: 31px; line-height: 42px; }
	.hero__title--md { font-size: 30px; line-height: 38px; }
	.hero__title--home { font-size: 31px; line-height: 42px; }
	.hero__title--thanks { padding-inline: 0; font-size: 36px; line-height: 44px; }
	.hero__text--thanks { padding-inline: 0; font-size: 18px; }
	.hero__inner, .hero__text--w48, .hero__text--w74, .hero__text--w92 { width: 100%; }
	.hero--home .hero__text { width: 100%; }
	.hero__text, .hero--compact .hero__text { font-size: 18px; }
	.section-title { font-size: 30px; line-height: 38px; }
	.section-title--video { width: 90%; }
	.section-title--md { font-size: 20px; line-height: 28px; }
	.section-lead, .section-lead--w45 { width: 100%; }
	.video { width: 100%; border-radius: 16px; }
	.video__play { width: 48px; height: 48px; }
	.btn { font-size: 18px; padding: 15px 24px; }
	.band__btn { width: 100%; padding-inline: 16px; gap: 10px; font-size: 17px; }
	.about__media > img:first-child { width: 100%; }
	.about__tag { right: 0; max-width: 56%; }
	.split--impact .split__media { justify-content: center; }
	.brand img { width: 120px; }
	.offcanvas__list a { font-size: 30px; }
	.band { border-radius: 24px; padding: 40px 20px; }
	.band--follow { flex-direction: column-reverse; }
	.band__title { font-size: 30px; line-height: 38px; }
	.give-card { padding: 40px 20px; border-radius: 24px; }
	.give-card__title { font-size: 30px; line-height: 38px; }
	.hero__actions--row .btn { width: 100%; }
	.program-grid, .mentor-grid, .post-grid, .report-grid { grid-template-columns: 1fr; }
	.program-block__title { font-size: 20px; line-height: 28px; }
	.program-block__tag { font-size: 18px; line-height: 28px; }
	.session-grid, .testimonials { --cols: 1; }
	.session-card__cover { height: 280px; }
	.flag-row { width: 100%; grid-template-columns: repeat(2, 1fr); }
	.flag-link__img { width: 120px; }
	.accordion { width: 100%; }
	.accordion__q { font-size: 18px; line-height: 26px; }
	.footer-card { border-radius: 24px; padding: 40px 20px; }
	.site-footer { margin-top: 80px; margin-bottom: 20px; }
	.footer-cta { width: 100%; }
	.footer-cta__title { font-size: 28px; line-height: 36px; }
	.footer-divider { margin: 40px 0; }
	.footer-copy { margin-top: 40px; }
	.footer-list { gap: 30px; }
	.apply-card { width: 100%; padding: 28px 18px; border-radius: 24px; }
	.apply-card__title { font-size: 30px; line-height: 38px; }
	.tabs__tab { font-size: 14px; line-height: 20px; padding: 12px 16px; }
	.explore-countries__grid { grid-template-columns: repeat(2, 1fr); }
	.stat-row { flex-direction: column; }
	.stat-row, .hero--country { gap: 24px; }
	.country__flag { width: 54px; }
	.country__copy, .country__desc { font-size: 18px; line-height: 26px; }
	.h-lg { font-size: 24px; line-height: 32px; }
	.cbes-checks { grid-template-columns: 1fr; }
	.future { border-radius: 24px; padding: 30px 20px; min-height: 0; }
	.future__panel { width: 100%; }
	.article { padding-top: 40px; }
	.article__title { font-size: 28px; line-height: 36px; }
	.hci-label { min-width: 90px; }
	.hero--home .carousel__nav { width: 30px; height: 30px; }
}
