/*
Theme Name: BOIF Foundation
Theme URI: https://benotubofoundation.org/
Author: Joy Chukwu
Author URI: https://joychukwu.com
Description: Custom WordPress theme for The Ben Otubo International Foundation (BOIF) — "More on Others…". Homepage, About, Projects, Team, Blog, Contact, Thematic Areas and Donation (GiveWP-ready) templates, using BOIF's brand colours (#df5311, #144047, #138999).
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boif
Tags: charity, non-profit, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ==========================================================================
   1. Tokens — BOIF brand colours (from benotubofoundation.org)
   ========================================================================== */
:root {
	--primary: #df5311;          /* BOIF orange  (--primary-color) */
	--primary-dark: #c2450c;
	--secondary: #144047;        /* BOIF deep teal (--secondary-color) */
	--secondary-dark: #0e2f34;
	--four: #138999;             /* BOIF teal (--four-color) */
	--text: #636363;             /* body text (--third-color) */
	--heading: #144047;
	--cream: #fefcf4;            /* footer cream */
	--line: #e6e3d4;
	--mist: #eef3f1;
	--white: #fff;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 10px 30px rgba(20, 64, 71, .10);
	--shadow-lg: 0 24px 60px rgba(20, 64, 71, .18);
	--font-head: "DM Serif Display", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1200px;
	--gutter: 24px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--secondary); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 400;
	color: var(--heading);
	line-height: 1.18;
	margin: 0 0 .5em;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
.icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }
.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--secondary); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.hl { color: var(--primary); }
.eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: .75rem;
}
.lead { font-size: 1.08rem; color: #555; }
.badge {
	display: inline-flex; align-items: center; gap: 6px;
	background: rgba(20, 64, 71, .85);
	color: #fff;
	font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 6px 12px; border-radius: 999px;
}
.badge .icon { color: var(--primary); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px;
	border-radius: var(--radius-sm);
	font-weight: 600; font-size: .95rem; line-height: 1.2;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--secondary); color: #fff; }
.btn--primary:hover { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(223, 83, 17, .3); }
.btn--accent { background: var(--primary); color: #fff; }
.btn--accent:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 8px 20px rgba(223, 83, 17, .3); }
.btn--ghost { background: #fff; color: var(--secondary); }
.btn--ghost:hover { background: var(--secondary); color: #fff; }
.btn--ghost .icon { color: var(--primary); }
.btn--outline { border-color: var(--secondary); color: var(--secondary); background: transparent; }
.btn--outline:hover { background: var(--secondary); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .88rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--secondary); }
.link-arrow .icon { transition: transform .2s; color: var(--primary); }
.link-arrow:hover { color: var(--primary); }
.link-arrow:hover .icon { transform: translateX(4px); }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: transparent; color: var(--secondary); cursor: pointer;
	transition: background .2s;
}
.icon-btn:hover { background: var(--mist); }

/* ==========================================================================
   3. Top bar + header
   ========================================================================== */
.topbar { background: var(--secondary); color: rgba(255, 255, 255, .88); font-size: .8rem; }
.topbar__inner { display: flex; align-items: center; gap: 28px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item .icon { color: var(--primary); }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--primary); }
.topbar__right { margin-left: auto; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .97);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid rgba(20, 64, 71, .08);
	transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 64, 71, .1); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--secondary); flex-shrink: 0; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; color: var(--secondary); }
.brand__text em { font-style: normal; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.brand--light .brand__text strong { color: #fff; }
.brand--light img { background: #fff; border-radius: 50%; padding: 4px; }

.main-nav { display: flex; align-items: center; margin-left: auto; }
.main-nav__head, .main-nav__donate { display: none; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav .menu li { position: relative; }
.main-nav .menu a {
	display: block; padding: 10px 14px;
	font-size: .93rem; font-weight: 500; color: var(--secondary);
	position: relative;
}
.main-nav .menu > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
	background: var(--primary); transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.main-nav .menu > li > a:hover::after,
.main-nav .menu > .current-menu-item > a::after,
.main-nav .menu > .current_page_item > a::after,
.main-nav .menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.main-nav .menu .current-menu-item > a, .main-nav .menu .current_page_item > a { color: var(--primary); }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	list-style: none; margin: 0; padding: 8px;
	background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; }
.nav-overlay { display: none; }

.search-panel { background: var(--mist); border-bottom: 1px solid var(--line); }
.search-panel__form { display: flex; align-items: center; gap: 12px; padding: 14px 0; color: var(--secondary); }
.search-panel__form input { flex: 1; border: 0; background: transparent; font-size: 1.1rem; padding: 8px 0; outline: none; }

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero {
	position: relative;
	color: #fff;
	background:
		linear-gradient(90deg, rgba(14, 47, 52, .92) 0%, rgba(20, 64, 71, .72) 42%, rgba(20, 64, 71, .15) 75%, rgba(20, 64, 71, .05) 100%),
		var(--hero-img) center 30% / cover no-repeat;
	padding: 90px 0 150px;
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: start; }
.hero__content { max-width: 620px; }
.hero__eyebrow { margin: 18px 0 6px; font-family: var(--font-head); font-style: italic; font-size: 1.25rem; color: #ffd9c6; }
.hero__title { color: #fff; margin-bottom: 20px; }
.hero__lead { font-size: 1.05rem; color: rgba(255, 255, 255, .88); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 32px; }
.hero__people { display: flex; align-items: center; gap: 14px; max-width: 480px; }
.hero__people p { margin: 0; font-size: .85rem; font-weight: 500; color: rgba(255, 255, 255, .9); line-height: 1.45; }
.avatars { display: flex; flex-shrink: 0; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid #fff; margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }

.donate-card {
	justify-self: end;
	width: 100%; max-width: 330px;
	background: #fff; color: var(--text);
	border-radius: 16px;
	padding: 26px 24px 20px;
	box-shadow: var(--shadow-lg);
}
.donate-card h2 { font-size: 1.45rem; margin-bottom: 6px; }
.donate-card > p { font-size: .88rem; margin-bottom: 16px; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
	display: block; text-align: center; padding: 10px 6px;
	border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	font-weight: 600; font-size: .9rem; color: var(--secondary);
	transition: .2s;
}
.chip:hover span { border-color: var(--secondary); }
.chip input:checked + span { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.donate-card__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: .78rem; color: #8a8a8a; }

/* Support bar (overlapping the hero) */
.support-bar-wrap { position: relative; z-index: 3; margin-top: -90px; }
.support-bar {
	background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
	padding: 8px 28px 22px;
}
.support-bar__tabs { display: flex; justify-content: space-around; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.support-tab {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 18px 16px; border: 0; background: none; cursor: pointer;
	font-weight: 600; font-size: .92rem; color: var(--secondary);
	border-bottom: 2px solid transparent; margin-bottom: -1px;
	transition: .2s;
}
.support-tab .icon { color: var(--four); }
.support-tab.is-active { color: var(--primary); border-color: var(--primary); }
.support-tab.is-active .icon { color: var(--primary); }
.support-bar__form { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 16px; align-items: end; }
.support-bar__note { text-align: center; margin: 16px 0 0; font-size: .86rem; }
.support-bar[data-mode="volunteer"] .support-bar__form { grid-template-columns: 1fr auto; }
.support-bar [data-hide-for][hidden] { display: none; }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .8rem; font-weight: 600; color: var(--secondary); }
.field input, .field textarea, .select select {
	width: 100%;
	border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	background: #fff; padding: 12px 14px; font-size: .92rem;
	transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .select select:focus { outline: none; border-color: var(--four); box-shadow: 0 0 0 3px rgba(19, 137, 153, .15); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
.select::after {
	content: ""; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px;
	border-right: 2px solid var(--secondary); border-bottom: 2px solid var(--secondary);
	transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

/* ==========================================================================
   5. Sections
   ========================================================================== */
.section { padding: 90px 0; }
.section--cream { background: var(--cream); }
.areas { padding-top: 80px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { position: relative; padding-bottom: 18px; margin-bottom: 14px; }
.section-head h2::after {
	content: ""; position: absolute; left: 50%; bottom: 0; width: 46px; height: 3px;
	background: var(--primary); border-radius: 3px; transform: translateX(-50%);
}
.section-head p { margin: 0; font-size: .98rem; }

/* Thematic area cards */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.area-card {
	position: relative; background: #fff; border-radius: var(--radius);
	border: 1px solid #eee9da; overflow: hidden;
	box-shadow: 0 4px 16px rgba(20, 64, 71, .05);
	transition: transform .3s, box-shadow .3s;
	display: flex; flex-direction: column;
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.area-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.area-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.area-card:hover .area-card__media img { transform: scale(1.06); }
.area-card__icon {
	display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
	color: #fff; border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.area-card .area-card__icon { position: relative; left: auto; top: auto; margin: -25px 0 0 22px; z-index: 2; }
.tone-primary { background: var(--primary); }
.tone-secondary { background: var(--secondary); }
.tone-four { background: var(--four); }
.area-card__body { padding: 12px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.area-card__body h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.area-card__body h3 a { color: var(--heading); }
.area-card__body h3 a:hover { color: var(--primary); }
.area-card__body p { font-size: .9rem; flex: 1; }

/* Split / mission */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); }
.split__media { min-height: 520px; background-size: cover; background-position: center; }
.split__content { padding: 80px clamp(24px, 6vw, 90px); max-width: 720px; }
.split__content h2 { margin-bottom: 16px; }
.split__content .lead { font-size: .98rem; margin-bottom: 30px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 30px; margin-bottom: 34px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature h3 { font-family: var(--font-body); font-weight: 700; font-size: .93rem; line-height: 1.35; margin: 2px 0 4px; color: var(--secondary); letter-spacing: 0; }
.feature p { font-size: .84rem; margin: 0; line-height: 1.55; }
.feature__icon {
	display: grid; place-items: center; flex-shrink: 0;
	width: 48px; height: 48px; border-radius: 10px;
	background: #fff; color: var(--primary);
	box-shadow: 0 4px 14px rgba(20, 64, 71, .08);
}

/* Stats */
.stats {
	position: relative; color: #fff; text-align: center;
	padding: 64px 0 70px;
	background: linear-gradient(rgba(14, 47, 52, .9), rgba(14, 47, 52, .9)), var(--stats-img) center / cover no-repeat fixed;
}
.stats h2 { color: #fff; margin-bottom: 40px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat .icon { color: var(--primary); margin-bottom: 8px; }
.stat strong { font-family: var(--font-head); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: #fff; }
.stat span { font-size: .92rem; color: rgba(255, 255, 255, .85); }

/* News cards (testimonial style) */
.news { background: #faf9f4; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote-card {
	background: #fff; border: 1px solid #eee9da; border-radius: var(--radius);
	padding: 28px; display: flex; flex-direction: column;
	box-shadow: 0 4px 16px rgba(20, 64, 71, .05);
	transition: transform .3s, box-shadow .3s;
}
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.quote-card__mark { color: var(--secondary); opacity: .9; margin-bottom: 10px; }
.quote-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.quote-card h3 a { color: var(--heading); }
.quote-card h3 a:hover { color: var(--primary); }
.quote-card > p { font-size: .9rem; flex: 1; }
.quote-card__foot { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #f0ece0; }
.quote-card__foot img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-card__foot strong { display: block; color: var(--secondary); font-size: .88rem; }
.quote-card__foot span { font-size: .78rem; color: #8a8a8a; }
.quote-card__go { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mist); color: var(--primary); }
.quote-card__go:hover { background: var(--primary); color: #fff; }

/* Get involved */
.involve {
	position: relative; overflow: hidden;
	background: linear-gradient(90deg, #fff 0%, #fff 42%, rgba(255, 255, 255, .6) 60%, rgba(255, 255, 255, 0) 80%), var(--involve-img) right center / 62% auto no-repeat, #fff;
	padding: 80px 0;
}
.involve__inner { min-height: 360px; display: flex; align-items: center; }
.involve__content { max-width: 520px; }
.involve__content h2 { margin-bottom: 22px; }
.involve__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.involve__list li { display: flex; gap: 14px; align-items: flex-start; }
.involve__list strong { display: block; color: var(--secondary); font-size: .95rem; }
.involve__list span { font-size: .88rem; }
.involve__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(223, 83, 17, .1); color: var(--primary); flex-shrink: 0; }
.involve__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   6. Inner pages
   ========================================================================== */
.page-hero {
	position: relative; color: #fff; text-align: center;
	background: linear-gradient(rgba(14, 47, 52, .82), rgba(14, 47, 52, .78)), var(--hero-img) center / cover no-repeat;
	padding: 110px 0 100px;
}
.page-hero h1 { color: #fff; margin: 14px 0 12px; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.breadcrumb { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span:last-child { color: var(--primary); }

/* About */
.about-intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-intro__media { position: relative; }
.about-intro__media > img { border-radius: 16px; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; box-shadow: var(--shadow); }
.director-card {
	position: absolute; right: -24px; bottom: 32px; margin: 0;
	display: flex; align-items: center; gap: 14px;
	background: #fff; padding: 14px 20px 14px 14px; border-radius: 14px; box-shadow: var(--shadow-lg);
	border-left: 4px solid var(--primary);
}
.director-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; }
.director-card strong { display: block; font-family: var(--font-head); font-weight: 400; color: var(--secondary); font-size: 1.1rem; }
.director-card span { font-size: .8rem; color: var(--primary); font-weight: 600; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--mist); color: var(--secondary); font-size: .85rem; font-weight: 600; }
.pill .icon { color: var(--primary); }

.objective-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.objective {
	position: relative; background: #fff; border-radius: var(--radius); padding: 30px 24px;
	border: 1px solid #eee9da; transition: transform .3s, box-shadow .3s; overflow: hidden;
}
.objective:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.objective__num { position: absolute; right: 18px; top: 8px; font-family: var(--font-head); font-size: 3.4rem; color: rgba(20, 64, 71, .07); line-height: 1; }
.objective .feature__icon { background: var(--mist); margin-bottom: 18px; }
.objective h3 { font-size: 1.15rem; }
.objective p { font-size: .88rem; margin: 0; }

.partner-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner-grid li {
	display: flex; align-items: center; gap: 14px; padding: 18px 20px;
	border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
	font-weight: 600; color: var(--secondary); font-size: .92rem; line-height: 1.4;
}
.partner-grid .icon { color: var(--four); }

/* Projects gallery */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.filter {
	border: 1.5px solid var(--line); background: #fff; color: var(--secondary);
	padding: 8px 18px; border-radius: 999px; font-size: .86rem; font-weight: 600; cursor: pointer; transition: .2s;
}
.filter:hover { border-color: var(--secondary); }
.filter.is-active { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #eee9da; transition: transform .3s, box-shadow .3s; }
.gallery-item[hidden] { display: none; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.gallery-item a { position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__zoom {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: rgba(20, 64, 71, .55); color: #fff; opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-item__zoom { opacity: 1; }
.gallery-item figcaption { padding: 16px 20px 18px; font-weight: 600; color: var(--secondary); font-size: .95rem; }
.gallery-item figcaption span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 4px; }

.mini-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-area {
	display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fff;
	border-radius: var(--radius); border: 1px solid var(--line); color: var(--secondary); transition: .2s;
}
.mini-area .area-card__icon { width: 44px; height: 44px; border-width: 0; box-shadow: none; }
.mini-area strong { flex: 1; font-size: .95rem; }
.mini-area > .icon { color: var(--primary); transition: transform .2s; }
.mini-area:hover { border-color: var(--primary); color: var(--primary); }
.mini-area:hover > .icon { transform: translateX(4px); }

.lightbox {
	position: fixed; inset: 0; z-index: 200; background: rgba(8, 24, 27, .94);
	display: flex; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #fff; margin-top: 14px; font-weight: 500; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: var(--primary); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; justify-content: center; }
.team-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #eee9da; text-align: center; transition: transform .3s, box-shadow .3s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card__photo { aspect-ratio: 1 / 1.08; overflow: hidden; background: var(--mist); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.team-card:hover .team-card__photo img { transform: scale(1.05); }
.team-card__body { padding: 18px 16px 22px; position: relative; }
.team-card__body::before { content: ""; position: absolute; top: 0; left: 50%; width: 40px; height: 3px; background: var(--primary); transform: translateX(-50%); }
.team-card h3 { font-size: 1.12rem; margin: 4px 0 4px; }
.team-card span { font-size: .85rem; color: var(--primary); font-weight: 600; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.contact-card {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 34px 24px; border-radius: var(--radius); background: #fff; border: 1px solid #eee9da;
	color: var(--text); transition: transform .3s, box-shadow .3s;
}
a.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--text); }
.contact-card .feature__icon { background: var(--mist); margin-bottom: 16px; width: 58px; height: 58px; border-radius: 50%; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.contact-card p { margin: 0; font-weight: 600; color: var(--secondary); word-break: break-word; }
.contact-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: stretch; }
.contact-form-card { background: #fff; border-radius: 16px; padding: 40px; box-shadow: var(--shadow); border: 1px solid #eee9da; }
.form { display: grid; gap: 18px; margin-top: 10px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; }
.notice--ok { background: #e7f5f1; color: #0e5b4a; }
.notice--err { background: #fdece4; color: #9c3a0a; }
.contact-aside {
	border-radius: 16px; overflow: hidden; color: #fff; display: flex; align-items: flex-end;
	background: linear-gradient(180deg, rgba(14, 47, 52, .35) 0%, rgba(14, 47, 52, .95) 60%), var(--aside-img) center / cover;
	padding: 36px;
}
.contact-aside h3 { color: #fff; font-size: 1.5rem; }
.contact-aside ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; font-size: .9rem; }
.contact-aside li { display: flex; gap: 10px; }
.contact-aside .icon { color: var(--primary); margin-top: 4px; }

/* Blog */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.layout-sidebar--left { grid-template-columns: 320px minmax(0, 1fr); }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #eee9da; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__cat { position: absolute; left: 16px; top: 16px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .03em; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 1.3rem; margin: 8px 0 10px; }
.post-card__title a { color: var(--heading); }
.post-card__title a:hover { color: var(--primary); }
.post-card__body p { font-size: .9rem; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .8rem; color: #8a8a8a; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { color: var(--primary); }
.meta--lg { font-size: .9rem; margin-bottom: 22px; }
.meta a { color: var(--secondary); }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 50%;
	border: 1.5px solid var(--line); color: var(--secondary); font-weight: 600;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }

.sidebar { display: grid; gap: 28px; position: sticky; top: 110px; }
.widget { background: var(--cream); border: 1px solid #f0ecdd; border-radius: var(--radius); padding: 26px; }
.widget-title { font-size: 1.2rem; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--line); position: relative; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--primary); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.cat-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.cat-list li:last-child { border-bottom: 0; }
.cat-list a { color: var(--secondary); font-weight: 500; }
.cat-list a:hover { color: var(--primary); }
.recent-list { display: grid; gap: 16px; }
.recent-list li { display: flex; gap: 14px; align-items: center; }
.recent-list img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.recent-list a { display: block; color: var(--secondary); font-weight: 600; font-size: .88rem; line-height: 1.35; }
.recent-list a:hover { color: var(--primary); }
.recent-list span { font-size: .76rem; color: #8a8a8a; }
.widget--donate {
	color: #fff; border: 0;
	background: linear-gradient(180deg, rgba(14, 47, 52, .55), rgba(14, 47, 52, .95)), var(--aside-img) center / cover;
	padding: 40px 28px; text-align: center;
}
.widget--donate h3 { color: #fff; font-size: 1.5rem; }
.widget--contact p { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--secondary); font-weight: 600; font-size: .9rem; word-break: break-word; }
.widget--contact .icon { color: var(--primary); }
.area-nav { display: grid; gap: 8px; }
.area-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-radius: var(--radius-sm); color: var(--secondary); font-weight: 600; font-size: .9rem; border: 1px solid #f0ecdd; transition: .2s; }
.area-nav a span { flex: 1; }
.area-nav a .icon:first-child { color: var(--four); }
.area-nav a .icon:last-child { color: var(--primary); opacity: 0; transition: .2s; }
.area-nav a:hover, .area-nav .is-current a { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.area-nav a:hover .icon, .area-nav .is-current a .icon { color: #fff !important; opacity: 1; }

.search-form { display: flex; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.search-form input { flex: 1; border: 0; padding: 12px 14px; outline: none; min-width: 0; background: transparent; }
.search-form button { border: 0; background: var(--secondary); color: #fff; width: 50px; cursor: pointer; }
.search-form button:hover { background: var(--primary); }

.single-post__image { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }
.single-post__image img { width: 100%; }
.service-body h2 { margin-bottom: 18px; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.help-item { background: var(--cream); border-radius: var(--radius); padding: 22px; border: 1px solid #f0ecdd; }
.help-item .feature__icon { margin-bottom: 12px; }
.help-item strong { color: var(--secondary); display: block; margin-bottom: 4px; }
.help-item p { font-size: .86rem; margin: 0; }
.post-grid--2 { margin-top: 18px; }

/* Entry content */
.entry-content { font-size: 1.02rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
	margin: 1.8em 0; padding: 28px 32px; border-left: 4px solid var(--primary);
	background: var(--secondary); color: #fff; border-radius: 0 var(--radius) var(--radius) 0;
	font-family: var(--font-head); font-size: 1.3rem; line-height: 1.5;
}
.entry-content .wp-block-image figcaption, .entry-content figcaption { font-size: .82rem; color: #8a8a8a; text-align: center; }
.entry-content .wp-block-gallery { gap: 12px; }
.entry-content .wp-block-button__link { background: var(--secondary); color: #fff; border-radius: var(--radius-sm); text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--primary); }
.has-primary-color { color: var(--primary) !important; } .has-primary-background-color { background-color: var(--primary) !important; }
.has-secondary-color { color: var(--secondary) !important; } .has-secondary-background-color { background-color: var(--secondary) !important; }
.has-four-color { color: var(--four) !important; } .has-four-background-color { background-color: var(--four) !important; }
.has-cream-background-color { background-color: var(--cream) !important; }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tags a { padding: 6px 14px; border-radius: 999px; background: var(--mist); color: var(--secondary); font-size: .82rem; font-weight: 600; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--secondary); font-weight: 600; height: 100%; }
.post-nav a:hover { border-color: var(--primary); }
.post-nav small { display: block; color: var(--primary); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.post-nav__next { text-align: right; grid-column: 2; }
.empty { text-align: center; padding: 40px; background: var(--cream); border-radius: var(--radius); }
.comments { margin-top: 50px; }
.comment-list { list-style: none; padding: 0; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }

/* GiveWP donation forms */
.give-form-wrap, .give-embed-form-wrapper, form[id*="give-form"] { max-width: 760px; margin: 0 auto; }
.give-btn, .give-submit, [id^="give-purchase-button"] { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; border-radius: var(--radius-sm) !important; }
.give-donation-amount .give-currency-symbol { background: var(--secondary) !important; color: #fff !important; }
.give-donation-level-btn.give-default-level { background: var(--secondary) !important; color: #fff !important; }
.single-give_forms .site-main > .give_forms, .single-give_forms .site-main > article { max-width: 900px; margin: 60px auto; padding: 0 var(--gutter); }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer { background: var(--secondary); color: rgba(255, 255, 255, .78); font-size: .9rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr .8fr 1.15fr 1.55fr 1.1fr; gap: 36px; padding-top: 70px; padding-bottom: 50px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .98rem; margin-bottom: 18px; letter-spacing: 0; }
.footer-tagline { font-family: var(--font-head); font-style: italic; color: #ffd9c6; font-size: 1.1rem; margin: 16px 0 8px; }
.footer-col--brand p:not(.footer-tagline) { font-size: .86rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: var(--primary); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; overflow-wrap: anywhere; }
.footer-contact .icon { color: var(--primary); margin-top: 3px; }
.social { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.social a:hover { background: var(--primary); color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); background: var(--secondary-dark); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 18px; font-size: .82rem; }
.site-footer__bottom p { margin: 0; }
.credit a { color: #ffd9c6; }

.to-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
	border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer;
	box-shadow: 0 8px 20px rgba(223, 83, 17, .35); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
.to-top .icon { transform: rotate(180deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.site-footer__grid { grid-template-columns: repeat(3, 1fr); }
	.footer-col--brand { grid-column: span 3; max-width: 560px; }
	.main-nav .menu a { padding: 10px 10px; }
	.main-nav .menu > li > a::after { left: 10px; right: 10px; }
	.hide-md { display: none !important; }
}

@media (max-width: 1024px) {
	.nav-toggle { display: inline-grid; }
	.main-nav {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
		width: min(340px, 86vw); background: #fff;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 18px 22px 28px; overflow-y: auto;
		transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
		box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
	}
	.main-nav.is-open { transform: none; visibility: visible; }
	.main-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
	.main-nav__head .brand img { width: 44px; height: 44px; }
	.main-nav .menu { flex-direction: column; gap: 0; }
	.main-nav .menu a { padding: 14px 4px; border-bottom: 1px solid #f0ece0; font-size: 1rem; }
	.main-nav .menu > li > a::after { display: none; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; }
	.main-nav__donate { display: inline-flex; margin-top: 24px; }
	.nav-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(8, 24, 27, .5); opacity: 0; visibility: hidden; transition: .3s; display: block; }
	.nav-overlay.is-open { opacity: 1; visibility: visible; }
	body.nav-locked { overflow: hidden; }

	.hero { padding: 70px 0 140px; }
	.hero__inner { grid-template-columns: 1fr; }
	.donate-card { justify-self: start; max-width: 420px; }
	.support-bar__form { grid-template-columns: 1fr 1fr; }
	.support-bar__form .btn { grid-column: span 2; }
	.support-bar[data-mode="volunteer"] .support-bar__form { grid-template-columns: 1fr; }
	.support-bar[data-mode="volunteer"] .support-bar__form .btn { grid-column: auto; }
	.area-grid, .news-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.split { grid-template-columns: 1fr; }
	.split__media { min-height: 380px; }
	.split__content { max-width: none; }
	.stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
	.objective-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
	.partner-grid, .mini-areas { grid-template-columns: repeat(2, 1fr); }
	.about-intro { grid-template-columns: 1fr; gap: 50px; }
	.director-card { right: 16px; }
	.layout-sidebar, .layout-sidebar--left { grid-template-columns: 1fr; }
	.layout-sidebar--left .sidebar { order: 2; }
	.sidebar { position: static; }
	.contact-wrap { grid-template-columns: 1fr; }
	.involve { background: linear-gradient(rgba(255, 255, 255, .93), rgba(255, 255, 255, .93)), var(--involve-img) center / cover no-repeat; }
	.stats { background-attachment: scroll; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 680px) {
	:root { --gutter: 16px; }
	body { font-size: 15px; }
	.section { padding: 64px 0; }
	.topbar__inner { gap: 14px; font-size: .74rem; }
	.hide-sm { display: none !important; }
	.site-header__inner { min-height: 70px; gap: 12px; }
	.brand img { width: 46px; height: 46px; }
	.brand__text strong { font-size: 1.1rem; }
	.brand__text em { font-size: .6rem; }
	.hero { padding: 54px 0 120px; }
	.hero__actions .btn { flex: 1; }
	.donate-card { max-width: none; }
	.support-bar { padding: 4px 16px 18px; }
	.support-bar__tabs { justify-content: flex-start; overflow-x: auto; }
	.support-tab { padding: 14px 10px; font-size: .84rem; white-space: nowrap; }
	.support-bar__form { grid-template-columns: 1fr; }
	.support-bar__form .btn { grid-column: auto; }
	.area-grid, .news-grid, .gallery-grid, .post-grid, .objective-grid, .partner-grid, .mini-areas, .contact-cards, .help-grid, .form__row { grid-template-columns: 1fr; }
	.team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.team-card h3 { font-size: .98rem; }
	.team-card span { font-size: .76rem; }
	.feature-grid { grid-template-columns: 1fr; }
	.split__content { padding: 56px var(--gutter); }
	.stats__grid { gap: 30px 12px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; padding-top: 54px; }
	.footer-col--brand { grid-column: span 2; }
	.site-footer__bottom-inner { flex-direction: column; text-align: center; }
	.contact-form-card { padding: 26px 20px; }
	.page-hero { padding: 80px 0 70px; }
	.director-card { position: relative; right: auto; bottom: auto; margin: -40px 16px 0; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__next { grid-column: auto; text-align: left; }
	.alignwide { margin-left: 0; margin-right: 0; }
	.lightbox { padding: 60px 12px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
}
