/* ==========================================================================
   Elobied Organization Theme – main stylesheet
   Mobile first. Logical properties (inline-start / inline-end) so the same
   rules work for Arabic (RTL) and English / French (LTR).
   ========================================================================== */

:root {
	--c-primary: #0E5C9E;
	--c-navy: #0B2A45;
	--c-accent: #2F7D3A;
	--c-gold: #E9A919;
	--c-bg: #F6F2EA;
	--c-text: #1B2733;
	--c-white: #fff;
	/* Darker accent for text and buttons with white text (WCAG AA). */
	--c-accent-ink: #276832;
	--c-primary-deep: #0B4A80;
	--c-navy-deep: #071C2F;
	--c-soft: #EAF2FA;
	--c-muted: #56636F;
	--c-border: #E6E0D4;
	--radius: 20px;
	--radius-lg: 28px;
	--radius-sm: 12px;
	--shadow: 0 6px 24px rgba(11, 42, 69, .08);
	--shadow-lg: 0 18px 44px rgba(11, 42, 69, .16);
	--container: 1240px;
	--narrow: 800px;
	--gap: clamp(1rem, 2.5vw, 1.5rem);
	--section-y: clamp(3.5rem, 8vw, 6rem);
	--header-h: 84px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
	:root {
		--c-accent-ink: color-mix(in srgb, var(--c-accent) 85%, #000);
		--c-primary-deep: color-mix(in srgb, var(--c-primary) 80%, #000);
		--c-navy-deep: color-mix(in srgb, var(--c-navy) 70%, #000);
		--c-soft: color-mix(in srgb, var(--c-primary) 9%, #fff);
	}
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--c-text);
	background: var(--c-white);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--c-primary); text-underline-offset: .2em; }
a:hover { color: var(--c-navy); }
h1, h2, h3, h4, h5, h6 { color: var(--c-navy); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-inline-start: 1.4em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--c-gold); color: var(--c-navy); }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }
.icon.flip { transform: scaleX(-1); }
[dir="rtl"] .icon.flip { transform: none; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	inset-block-start: .75rem; inset-inline-start: .75rem; z-index: 1000;
	background: var(--c-white); color: var(--c-primary); padding: .75rem 1.25rem;
	border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-weight: 700;
}
.site-content:focus { outline: none; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container.narrow, .narrow { max-width: var(--narrow); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--c-text); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
	white-space: nowrap;
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 46px; padding: .6rem 1.35rem; border-radius: 999px;
	font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none;
	border: 2px solid transparent; cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--c-primary); color: var(--c-white); }
.btn--primary:hover { background: var(--c-primary-deep); color: var(--c-white); }
.btn--accent { background: var(--c-accent-ink); color: var(--c-white); }
.btn--accent:hover { background: var(--c-primary); color: var(--c-white); }
.btn--gold { background: var(--c-gold); color: var(--c-navy); font-weight: 800; }
.btn--gold:hover { background: #f4bd3a; color: var(--c-navy); }
.btn--navy { background: var(--c-navy); color: var(--c-white); }
.btn--navy:hover { background: var(--c-navy-deep); color: var(--c-white); }
.btn--soft { background: #FFF4D8; color: var(--c-navy); }
.btn--soft:hover { background: #FFE9AE; color: var(--c-navy); }
.btn--lg { min-height: 54px; padding-inline: 1.75rem; font-size: 1.05rem; }
.btn--light { background: var(--c-white); color: var(--c-navy); }
.btn--light:hover { background: var(--c-bg); color: var(--c-navy); }
.btn--outline { border-color: currentColor; color: var(--c-white); background: transparent; }
.btn--outline:hover { background: rgba(255, 255, 255, .12); color: var(--c-white); }
.btn--outline-dark { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--outline-dark:hover { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); }
.btn--ghost { color: var(--c-primary); background: transparent; padding-inline: .9rem; }
.btn--ghost:hover { background: var(--c-bg); color: var(--c-primary); }

.link-arrow {
	display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
	font-weight: 800; text-decoration: none; color: var(--c-primary);
}
.link-arrow--lg { font-size: 1.08rem; }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(3px); }

.tag {
	display: inline-block; padding: .1rem .65rem; border-radius: 999px;
	background: #e3f2f0; background: color-mix(in srgb, var(--c-accent) 12%, #fff); color: var(--c-accent-ink);
	font-size: .8rem; font-weight: 700; text-decoration: none;
}
.tag:hover { background: var(--c-accent-ink); color: var(--c-white); }

/* --- Header -------------------------------------------------------------- */
.site-header {
	position: sticky; inset-block-start: 0; z-index: 100;
	background: rgba(255, 255, 255, .97);
	border-block-end: 1px solid var(--c-border);
	backdrop-filter: saturate(1.4) blur(8px);
}
.admin-bar .site-header { inset-block-start: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { inset-block-start: 32px; } }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.site-branding { display: flex; align-items: center; gap: .75rem; margin-inline-end: auto; min-width: 0; }
.custom-logo-link img, .custom-logo { max-height: 64px; width: auto; }
.site-title { max-width: 30ch; margin: 0; font-size: clamp(.95rem, 1.6vw, 1.1rem); font-weight: 700; line-height: 1.35; }
.site-title a { color: var(--c-primary); text-decoration: none; font-weight: 800; }
.site-title__sub { display: block; font-size: .72rem; font-weight: 500; color: var(--c-muted); line-height: 1.4; margin-block-start: .1rem; }
@media (max-width: 599px) { .site-title__sub { display: none; } }

/* Top bar */
.topbar { background: var(--c-navy); color: #DCE6F0; font-size: .88rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.25rem; min-height: 40px; padding-block: .3rem; }
.topbar__text { margin: 0; }
@media (max-width: 699px) { .topbar__text { display: none; } .topbar__inner { justify-content: flex-end; } .topbar--text-only { display: none; } }
.topbar .lang-switcher a { color: #DCE6F0; }
.topbar .lang-switcher a:hover { background: rgba(255, 255, 255, .1); color: var(--c-white); }
.topbar .lang-switcher .is-current { background: var(--c-white); color: var(--c-navy); }
.topbar .lang-switcher a, .topbar .lang-switcher .is-current { min-height: 32px; }

.nav-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--c-border);
	background: var(--c-white); color: var(--c-primary); cursor: pointer;
}
.nav-toggle .nav-toggle__close { display: none; }
.nav-open .nav-toggle .nav-toggle__open { display: none; }
.nav-open .nav-toggle .nav-toggle__close { display: block; }

/* Mobile drawer */
.site-nav {
	position: fixed; inset-inline: 0; inset-block-start: var(--header-h); inset-block-end: 0;
	background: var(--c-white); padding: 1rem 1.25rem 2rem; overflow-y: auto;
	display: none; flex-direction: column; gap: 1.25rem;
	border-block-start: 1px solid var(--c-border);
}
.nav-open .site-nav { display: flex; }
.nav-open { overflow: hidden; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation a {
	display: block; padding: .7rem .25rem; color: var(--c-primary);
	font-weight: 600; text-decoration: none; border-block-end: 1px solid var(--c-border);
}
.main-navigation .sub-menu a { padding-inline-start: 1.25rem; font-weight: 500; }
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a { color: var(--c-accent-ink); }
.site-nav__extras { display: flex; flex-direction: column; gap: 1rem; }
.header-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.lang-switcher ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.lang-switcher a, .lang-switcher .is-current {
	display: inline-flex; align-items: center; min-height: 38px; padding: .2rem .7rem;
	border-radius: 999px; font-size: .9rem; font-weight: 700; text-decoration: none;
}
.lang-switcher a { color: var(--c-primary); }
.lang-switcher a:hover { background: var(--c-bg); }
.lang-switcher .is-current { background: var(--c-primary); color: var(--c-white); }

@media (min-width: 1240px) {
	.nav-toggle { display: none; }
	.site-nav {
		position: static; display: flex; flex-direction: row; align-items: center;
		padding: 0; overflow: visible; border: 0; background: transparent; gap: 1rem;
	}
	.main-navigation > ul { display: flex; align-items: center; gap: .15rem; }
	.main-navigation > ul > li { position: relative; }
	.main-navigation > ul > li > a { white-space: nowrap; border: 0; padding: .55rem .75rem; border-radius: 8px; font-size: .97rem; }
	.main-navigation > ul > li > a:hover { background: var(--c-bg); }
	.main-navigation .menu-item-has-children > a::after {
		content: ""; display: inline-block; width: .45em; height: .45em; margin-inline-start: .4em;
		border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor;
		transform: translateY(-.15em) rotate(45deg);
	}
	.main-navigation .sub-menu {
		position: absolute; inset-block-start: 100%; inset-inline-start: 0; min-width: 220px;
		background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-sm);
		box-shadow: var(--shadow-lg); padding: .4rem;
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
	}
	.main-navigation li:hover > .sub-menu,
	.main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.main-navigation .sub-menu a { border: 0; padding: .5rem .75rem; border-radius: 8px; }
	.main-navigation .sub-menu a:hover { background: var(--c-bg); }
	.site-nav__extras { flex-direction: row; align-items: center; }
	.header-actions { flex-wrap: nowrap; }
	.header-actions .btn { min-height: 42px; padding: .45rem 1rem; font-size: .92rem; }
}
@media (min-width: 1240px) and (max-width: 1439px) {
	.header-actions .btn:not(.btn--gold) { padding-inline: .7rem; }
	.header-actions .btn:not(.btn--gold) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
}

/* --- Page hero / breadcrumbs -------------------------------------------- */
.page-hero {
	background: var(--c-navy);
	background: radial-gradient(900px 400px at 15% 0%, color-mix(in srgb, var(--c-primary) 55%, transparent), transparent 70%), var(--c-navy);
	color: var(--c-white); padding-block: clamp(2.25rem, 6vw, 3.75rem);
}
.page-hero__title { color: var(--c-white); margin: 0; }
.page-hero__desc { margin-block-start: .75rem; opacity: .9; max-width: 60ch; }
.page-hero .entry-meta { margin-block-start: 1rem; color: #d6e0e8; }
.page-hero .entry-meta .tag { background: rgba(255, 255, 255, .14); color: var(--c-white); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0 0 .9rem; padding: 0; font-size: .9rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .35rem; color: #c3d1dc; }
.breadcrumbs li + li::before { content: "›"; opacity: .7; }
[dir="rtl"] .breadcrumbs li + li::before { content: "‹"; }
.breadcrumbs a { color: var(--c-white); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* --- Sections ------------------------------------------------------------ */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-bg); }
.section--white { background: var(--c-white); }
.site-main--home { background: var(--c-bg); }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 2rem; max-width: none; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__lead { margin: .75rem 0 0; color: var(--c-muted); font-size: 1.08rem; }
.section__title { font-weight: 800; }
.eyebrow.eyebrow--light { color: #FFD36B; }
.section__head { margin-block-end: clamp(1.5rem, 4vw, 2.5rem); max-width: 720px; }
.section__title { margin: 0; }
.eyebrow {
	display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .5rem;
	color: var(--c-accent-ink); font-weight: 700; font-size: .9rem; letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--c-gold); }
.section__more { margin: 2rem 0 0; text-align: center; }

/* --- Hero ---------------------------------------------------------------- */
.hero { background: var(--c-white); overflow: hidden; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 5.5rem); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 1000px) { .hero--split .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.hero--plain .hero__content { max-width: 820px; margin-inline: auto; text-align: center; }
.hero--plain .hero__eyebrow, .hero--plain .hero__actions { justify-content: center; }
.hero__content { display: flex; flex-direction: column; gap: 1.25rem; }
.hero--plain .hero__content { align-items: center; }
.hero__eyebrow {
	align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; margin: 0;
	padding: .35rem .95rem; border-radius: 999px; background: var(--c-soft); color: var(--c-primary);
	font-weight: 700; font-size: .92rem;
}
.hero--plain .hero__eyebrow { align-self: center; }
.hero__eyebrow .icon { width: 1em; height: 1em; }
.hero__title { margin: 0; color: var(--c-navy); font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.25; font-weight: 800; }
.hero__text { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #3D4A57; max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-block-start: .35rem; }
.hero__collage { position: relative; min-height: clamp(300px, 46vw, 500px); }
.hero__photo { object-fit: cover; }
.hero__photo--main { position: absolute; inset-block-start: 0; inset-inline-end: 0; width: 84%; height: 78%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__photo--second { position: absolute; inset-block-end: 0; inset-inline-start: 0; width: 52%; height: 46%; border-radius: 22px; border: 8px solid var(--c-white); box-shadow: var(--shadow-lg); }
.hero__collage--single .hero__photo--main { width: 100%; height: 100%; }
.hero__badge {
	position: absolute; inset-block-end: 8%; inset-inline-end: 4%; margin: 0;
	display: flex; align-items: center; gap: .85rem; padding: .9rem 1.3rem; border-radius: 20px;
	background: var(--c-navy); color: var(--c-white); box-shadow: var(--shadow-lg); max-width: 70%;
}
.hero__badge strong { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1; color: var(--c-gold); font-weight: 800; }
.hero__badge span { font-size: .9rem; line-height: 1.45; }

/* --- Documented highlights ------------------------------------------------ */
.highlights { background: var(--c-primary); color: var(--c-white); padding-block: clamp(2rem, 4.5vw, 2.75rem); }
.highlights__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-block-end: 1.25rem; }
.highlights__title { margin: 0; color: var(--c-white); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 800; }
.highlights__note { margin: 0; font-size: .9rem; color: #D4E4F3; }
.highlights__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 1000px) { .highlights__list { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }
.highlight {
	display: flex; flex-direction: column; gap: .1rem; height: 100%; padding: 1.15rem 1.25rem; border-radius: 18px;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: var(--c-white); text-decoration: none;
	transition: background-color .2s var(--ease), transform .2s var(--ease);
}
a.highlight:hover { background: rgba(255, 255, 255, .15); color: var(--c-white); transform: translateY(-2px); }
.highlight__number { font-size: clamp(2.2rem, 4vw, 2.8rem); line-height: 1.1; color: #FFD36B; font-weight: 800; }
.highlight__label { font-weight: 700; }
.highlight__source { font-size: .88rem; color: #D4E4F3; }

/* --- About --------------------------------------------------------------- */
.about__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: .95fr 1.05fr; } .about__grid--text { grid-template-columns: 1fr; max-width: var(--narrow); } }
.about__media { margin: 0; position: relative; }
.about__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 900px) { .about__media img { aspect-ratio: 4 / 4.2; } }
.about__media::after {
	content: ""; position: absolute; inset-block-end: -16px; inset-inline-start: -16px; z-index: -1;
	width: 55%; height: 55%; border-radius: var(--radius-lg); background: var(--c-gold); opacity: .35;
}
.about__text .lead { color: #3D4A57; }
.about__note {
	display: flex; gap: 1rem; align-items: flex-start; margin-block: 1.5rem;
	padding: 1.15rem 1.35rem; border-radius: var(--radius); background: var(--c-white); border: 1px solid var(--c-border);
}
.about__note .icon { width: 30px; height: 30px; color: var(--c-primary); flex: none; }
.about__note p { margin: 0; color: #3D4A57; font-size: .98rem; }

/* --- Area tiles (list fallback) ------------------------------------------- */
.area-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 1000px) { .area-tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.area-tile__link {
	display: flex; flex-direction: column; gap: 1rem; height: 100%; padding: 1.5rem 1.35rem;
	border-radius: 22px; background: var(--c-bg); color: var(--c-navy); text-decoration: none;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.area-tile__link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--c-navy); }
.area-tile__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--c-primary); color: var(--c-white); }
.area-tile__icon .icon { width: 28px; height: 28px; }
.area-tile--1 .area-tile__icon { background: var(--c-gold); color: var(--c-navy); }
.area-tile--2 .area-tile__icon { background: var(--c-accent-ink); }
.area-tile--3 .area-tile__icon { background: var(--c-navy); }
.area-tile--4 .area-tile__icon { background: #B4541F; }
.area-tile__title { font-size: 1.15rem; font-weight: 800; }

/* --- Grids & cards ------------------------------------------------------- */
.card-grid, .area-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.area-grid--page { margin-block-start: 2.5rem; }

.card, .area-card {
	display: flex; flex-direction: column; background: var(--c-white);
	border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden;
	transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover, .area-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card__media img, .area-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body, .area-card__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem 1.35rem 1.5rem; flex: 1; }
.card__title, .area-card__title { font-size: 1.15rem; margin: 0; }
.card__title a, .area-card__title a { color: var(--c-primary); text-decoration: none; }
.card__title a:hover, .area-card__title a:hover { color: var(--c-accent-ink); }
.card__excerpt { color: var(--c-muted); margin: 0; font-size: .97rem; }
.card .link-arrow, .area-card .link-arrow { margin-block-start: auto; }
.area-card p { color: var(--c-muted); margin: 0; font-size: .97rem; }
.area-card__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
	border-radius: 16px; background: #e0f0ee; background: color-mix(in srgb, var(--c-accent) 14%, #fff); color: var(--c-accent-ink);
}
.area-card__icon .icon { width: 28px; height: 28px; }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .88rem; color: var(--c-muted); }
.entry-date { display: inline-flex; align-items: center; gap: .35rem; }
.entry-cats { display: inline-flex; flex-wrap: wrap; gap: .35rem; }

.project-meta { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .35rem; font-size: .92rem; }
.project-meta li { display: flex; align-items: flex-start; gap: .4rem; }
.project-meta .icon { color: var(--c-accent-ink); margin-block-start: .2em; }
.project-meta .meta-label { font-weight: 700; color: var(--c-primary); }

/* --- News (feature + list) ---------------------------------------------- */
.news-layout { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .news-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.news-feature {
	position: relative; display: flex; align-items: flex-end; min-height: clamp(360px, 46vw, 540px);
	border-radius: var(--radius-lg); overflow: hidden; background: var(--c-navy); color: var(--c-white); isolation: isolate;
}
.news-feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s var(--ease); }
.news-feature:hover .news-feature__img { transform: scale(1.03); }
.news-feature__body {
	width: 100%; padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .6rem;
	background: linear-gradient(to top, rgba(11, 42, 69, .96), rgba(11, 42, 69, .6) 70%, rgba(11, 42, 69, 0));
}
.news-feature--text { min-height: 300px; }
.news-feature__date { align-self: flex-start; padding: .15rem .8rem; border-radius: 999px; background: var(--c-gold); color: var(--c-navy); font-weight: 800; font-size: .82rem; }
.news-feature__title { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.45; font-weight: 800; }
.news-feature__title a { color: var(--c-white); text-decoration: none; }
.news-feature__title a::after { content: ""; position: absolute; inset: 0; }
.news-feature__title a:focus-visible { outline: none; }
.news-feature:focus-within { outline: 3px solid var(--c-gold); outline-offset: 3px; }
.news-feature__excerpt { margin: 0; color: #DCE6F0; }
.news-list { display: grid; gap: 1rem; align-content: start; }
.news-item {
	position: relative; display: flex; gap: 1rem; align-items: center; padding: .75rem;
	border-radius: var(--radius); background: var(--c-white); border: 1px solid var(--c-border);
	transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.section--white .news-item { background: var(--c-bg); border-color: transparent; }
.news-item__img { width: 120px; height: 100px; flex: none; border-radius: 14px; object-fit: cover; }
.news-item__body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.news-item__date { font-size: .82rem; font-weight: 700; color: var(--c-accent-ink); }
.news-item__title { margin: 0; font-size: 1.02rem; line-height: 1.55; font-weight: 700; }
.news-item__title a { color: var(--c-navy); text-decoration: none; }
.news-item__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-item:focus-within { outline: 3px solid var(--c-gold); outline-offset: 2px; }
.news-item__title a:focus-visible { outline: none; }

/* --- Governance & transparency -------------------------------------------- */
.impact { background: var(--c-navy); color: var(--c-white); }
.impact__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1000px) { .impact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 3.5rem; } }
.impact__title { color: var(--c-white); margin: 0 0 .75rem; font-weight: 800; }
.impact__text { margin: 0; color: #C9D6E3; }
.impact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.impact-link {
	display: flex; align-items: center; gap: .9rem; min-height: 72px; padding: 1rem 1.25rem; border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, .2); color: var(--c-white); text-decoration: none; font-weight: 700; font-size: 1.08rem;
	transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.impact-link:hover { background: rgba(255, 255, 255, .08); border-color: var(--c-gold); color: var(--c-white); }
.impact-link__icon { display: inline-flex; color: var(--c-gold); }
.impact-link__icon .icon { width: 26px; height: 26px; }
.impact-link__title { flex: 1; }
.impact-link__arrow { color: var(--c-gold); }

/* --- Gallery ------------------------------------------------------------- */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item a { display: block; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item a:hover img { transform: scale(1.05); }

/* --- Partners ------------------------------------------------------------ */
.partner-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: center; }
.partner-item { display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: var(--c-white); border-radius: var(--radius-sm); border: 1px solid var(--c-border); min-height: 110px; text-align: center; }
.partner-item img { max-height: 70px; width: auto; filter: grayscale(1); opacity: .85; transition: filter .25s, opacity .25s; }
.partner-item:hover img { filter: none; opacity: 1; }

/* --- Volunteer / support / assistant cards ------------------------------- */
.cta-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cta-card { display: flex; flex-direction: column; gap: .8rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg); }
.cta-card[hidden] { display: none; }
.cta-card p { margin: 0; }
.cta-card .btn { align-self: flex-start; margin-block-start: auto; }
.cta-card__title { margin: 0; font-size: 1.6rem; font-weight: 800; }
.cta-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; }
.cta-card__icon .icon { width: 26px; height: 26px; }
.cta-card--gold { background: var(--c-gold); color: var(--c-navy); }
.cta-card--gold .cta-card__title { color: var(--c-navy); }
.cta-card--gold .cta-card__icon { background: var(--c-navy); color: var(--c-gold); }
.cta-card--white { background: var(--c-white); border: 1px solid var(--c-border); color: #3D4A57; }
.cta-card--white .cta-card__icon { background: var(--c-soft); color: var(--c-primary); }
.cta-card--blue { background: var(--c-soft); color: #3D4A57; }
.cta-card--blue .cta-card__icon { background: var(--c-primary); color: var(--c-white); }
.cta-card--blue .btn--outline-dark { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-white); }
.cta-card--blue .btn--outline-dark:hover { background: var(--c-primary); color: var(--c-white); }

/* --- Entry content ------------------------------------------------------- */
.entry-thumbnail { margin: 0 0 2rem; }
.entry-thumbnail img { width: 100%; border-radius: var(--radius); }
.entry-content > * { margin-block: 0 1.25rem; }
.entry-content h2, .entry-content h3 { margin-block-start: 2rem; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote {
	margin-inline: 0; padding: 1rem 1.25rem; border-inline-start: 4px solid var(--c-gold);
	background: var(--c-bg); border-radius: var(--radius-sm);
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--c-border); padding: .55rem .75rem; text-align: start; }
.entry-content .alignwide { max-width: var(--container); margin-inline: auto; }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.entry-content .wp-block-button__link { border-radius: 999px; }
.entry-content .wp-block-image figcaption, .wp-caption-text { font-size: .9rem; color: var(--c-muted); text-align: center; }
.entry--full .entry-content > * { margin-block: 0; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-block-start: 2rem; }
.entry-tags a { display: inline-block; padding: .15rem .7rem; border-radius: 999px; background: var(--c-bg); text-decoration: none; font-size: .88rem; }
.page-links { margin-block: 1.5rem; font-weight: 700; }
.elobied-credits-block { padding: 1.25rem; border-radius: var(--radius-sm); background: var(--c-bg); }

.layout-sidebar { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .layout-sidebar { grid-template-columns: minmax(0, 1fr) 320px; } }
.widget-area .widget { margin-block-end: 2rem; padding: 1.25rem; border: 1px solid var(--c-border); border-radius: var(--radius); }
.widget-title { font-size: 1.1rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding-block: .35rem; border-block-end: 1px solid var(--c-border); }
.widget li:last-child { border: 0; }

/* Post navigation & pagination */
.post-navigation { margin-block: 3rem 0; }
.post-navigation .nav-links { display: grid; gap: 1rem; }
@media (min-width: 700px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: flex; flex-direction: column; padding: 1rem 1.25rem; border: 1px solid var(--c-border); border-radius: var(--radius); text-decoration: none; height: 100%; }
.post-navigation a:hover { border-color: var(--c-accent); }
.post-navigation .nav-next { text-align: end; }
.nav-label { font-size: .85rem; color: var(--c-muted); }
.nav-title { font-weight: 700; color: var(--c-primary); }
.pagination { margin-block-start: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
	padding-inline: .6rem; border-radius: 10px; border: 1px solid var(--c-border);
	text-decoration: none; font-weight: 700; color: var(--c-primary);
}
.pagination .page-numbers.current { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); }
.pagination a.page-numbers:hover { border-color: var(--c-accent); }

/* --- Forms --------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"],
input[type="number"], input[type="password"], input[type="date"], select, textarea {
	width: 100%; min-height: 48px; padding: .6rem .9rem; border: 1px solid #c6d2db;
	border-radius: var(--radius-sm); background: var(--c-white);
}
textarea { min-height: 140px; }
input:focus, select:focus, textarea:focus { border-color: var(--c-accent-ink); outline: 3px solid rgba(43, 155, 145, .3); outline: 3px solid color-mix(in srgb, var(--c-accent) 30%, transparent); outline-offset: 0; }
label { font-weight: 600; color: var(--c-primary); }
.search-form { display: flex; gap: .5rem; max-width: 560px; }
.search-form .search-field { flex: 1; }
.search-form .btn { min-width: 48px; padding-inline: .9rem; }
.search-again { margin-block-end: 2rem; }
.empty-state { padding: 2.5rem; text-align: center; background: var(--c-bg); border-radius: var(--radius); color: var(--c-muted); }

.comments-area { margin-block-start: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 1rem 0; border-block-end: 1px solid var(--c-border); }
.comment-list .children { list-style: none; padding-inline-start: 1.5rem; }
.comment-form p { margin-block-end: 1rem; }
.comment-form input[type="submit"] { background: var(--c-primary); color: var(--c-white); border: 0; border-radius: 999px; padding: .7rem 1.5rem; font-weight: 700; cursor: pointer; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--c-navy-deep); color: #c3d1dc; font-size: .96rem; }
.site-footer a { color: #e7eef3; text-decoration: none; }
.site-footer a:hover { color: var(--c-gold); }
.site-footer__grid { display: grid; gap: 2.25rem; padding-block: clamp(3rem, 7vw, 4.5rem); }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-footer__grid { display: flex; flex-wrap: wrap; gap: 2.5rem; } .site-footer__grid > * { flex: 1 1 200px; } .site-footer__grid > .footer-col--brand { flex: 1.6 1 320px; } }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-block-end: 1rem; }
.footer-brand .custom-logo { max-height: 60px; background: var(--c-white); border-radius: 12px; padding: 4px; }
.footer-brand__name { margin: 0; color: var(--c-white); font-weight: 700; line-height: 1.4; }
.footer-about { max-width: 42ch; }
.footer-title { color: var(--c-white); font-size: 1.05rem; margin-block-end: 1rem; }
.footer-title::after { content: ""; display: block; width: 32px; height: 3px; margin-block-start: .5rem; border-radius: 3px; background: var(--c-gold); }
.footer-col ul, .footer-menu, .footer-news, .contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-news li { display: grid; gap: .1rem; }
.footer-news time { font-size: .82rem; color: #9fb3c3; }
.contact-list li { display: flex; gap: .6rem; align-items: flex-start; }
.contact-list .icon { color: var(--c-gold); margin-block-start: .25em; }
.contact-list + .link-arrow { margin-block-start: 1rem; }
.site-footer .link-arrow { color: var(--c-gold); }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--c-white); }
.social-links a:hover { background: var(--c-gold); color: var(--c-primary); }
.site-footer__bottom { border-block-start: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1.25rem; font-size: .9rem; }
.copyright { margin: 0; }
.legal-links ul { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }

/* Designer credit – discreet, below the organisation footer */
.credits { background: rgba(0, 0, 0, .18); font-size: .85rem; }
.credits__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1rem; padding-block: .9rem; text-align: center; }
.credits__logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; }
.credits__text { margin: 0; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; }
.credits__name { color: var(--c-white); font-weight: 700; }
.credits__sep { opacity: .5; }
.credits__wa { display: inline-flex; align-items: center; gap: .3rem; }
.credits__wa .icon { width: 1em; height: 1em; }
.credits__tagline { margin: 0; flex-basis: 100%; font-size: .78rem; color: #8ea4b5; }

/* --- Lightbox ------------------------------------------------------------ */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 15, 25, .92); }
.lightbox__inner { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 3.5rem 3.5rem 2rem; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; max-height: 100%; }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 80vh; width: auto; border-radius: 8px; }
.lightbox__caption { color: #e7eef3; text-align: center; max-width: 70ch; }
.lightbox__btn {
	position: absolute; display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .14); color: #fff;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { inset-block-start: 1rem; inset-inline-end: 1rem; }
.lightbox__prev { inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { inset-inline-end: 1rem; top: 50%; transform: translateY(-50%); }
[dir="rtl"] .lightbox__prev .icon { transform: none; }
[dir="rtl"] .lightbox__next .icon { transform: scaleX(-1); }

/* --- Elementor / full width ---------------------------------------------- */
.site-main--full .entry-content { max-width: none; }
.elementor-page .site-main--full { padding: 0; }

/* --- Motion & print ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.btn:hover, .card:hover, .area-card:hover, .impact-card:hover { transform: none; }
}
@media print {
	.site-header, .site-footer, .hero__actions, .cta, .lightbox, .post-navigation, .comments-area { display: none !important; }
	.page-hero { background: none; color: #000; padding: 0 0 1rem; }
	.page-hero__title { color: #000; }
	a { color: #000; }
}
