/*
Theme Name: Evidence of Innocence — أدلة البراءة
Theme URI: https://example.com/
Author: Evidence of Innocence Project
Description: قالب مخصص ثنائي اللغة (عربي/إنجليزي) لمشروع أدلة البراءة. عند التفعيل يُنشئ جميع الصفحات والقوائم ويرفع ملفات الدورات والسيرة الذاتية إلى مكتبة الوسائط تلقائيًا. Bilingual custom theme for the Evidence of Innocence Project.
Version: 2.6.2
Requires at least: 6.0
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: eoi
Tags: rtl-language-support, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--navy: #0d2340;
	--navy-2: #163a63;
	--navy-3: #22517f;
	--gold: #c4962f;
	--gold-2: #e3c06e;
	--gold-soft: #f6ecd4;
	--sky: #eaf2fb;
	--paper: #fbfaf6;
	--white: #ffffff;
	--ink: #17212f;
	--muted: #5a6677;
	--line: #e2e7ee;
	--ok: #1f7a4d;
	--err: #b42318;
	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(13, 35, 64, .06), 0 8px 28px rgba(13, 35, 64, .08);
	--shadow-lg: 0 20px 50px rgba(13, 35, 64, .16);
	--container: 1180px;
	--header-h: 84px;
	--font-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
	--font-head: "Amiri", "Tajawal", serif;
}
.lang-en {
	--font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
	--font-head: "Playfair Display", Georgia, serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.lang-en body, body.lang-en { line-height: 1.7; font-size: 17.5px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.35; margin: 0 0 .6em; }
.lang-ar h1, .lang-ar h2, .lang-ar h3 { font-weight: 700; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.eoi-icon { width: 1.25em; height: 1.25em; flex: none; }

.eoi-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.eoi-skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 1000; background: var(--gold); color: var(--navy); padding: 8px 16px; border-radius: 8px; transform: translateY(-200%); }
.eoi-skip:focus { transform: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.eoi-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .6em 1.5em;
	border-radius: 999px; border: 2px solid transparent;
	font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.3;
	text-decoration: none; cursor: pointer;
	transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.eoi-btn:hover { transform: translateY(-2px); }
.eoi-btn-primary { background: var(--navy); color: var(--white); }
.eoi-btn-primary:hover { background: var(--navy-2); color: var(--white); box-shadow: var(--shadow); }
.eoi-btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 6px 18px rgba(196, 150, 47, .35); }
.eoi-btn-gold:hover { color: var(--navy); box-shadow: 0 10px 26px rgba(196, 150, 47, .45); }
.eoi-btn-outline-light { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.eoi-btn-outline-light:hover { background: var(--white); color: var(--navy); }
.eoi-btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.eoi-btn-ghost:hover { background: var(--navy); color: var(--white); }
.eoi-btn-sm { min-height: 40px; padding: .4em 1.2em; font-size: .95rem; }
.eoi-btn-download { background: var(--navy); color: var(--white); }
.eoi-btn-download::before {
	content: ""; width: 1.2em; height: 1.2em; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-4-4m4 4 4-4M4 17v3h16v-3'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-4-4m4 4 4-4M4 17v3h16v-3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.eoi-btn-download:hover { background: var(--gold); color: var(--navy); }
.eoi-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.eoi-link { font-weight: 700; color: var(--navy-3); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	        backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(13, 35, 64, .08); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-logo { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold-2), 0 4px 12px rgba(13, 35, 64, .18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.brand-tag { font-size: .72rem; color: var(--muted); }

.main-nav { margin-inline-start: auto; }
.eoi-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.eoi-menu a {
	display: block; padding: 8px 11px; border-radius: 999px;
	color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; white-space: nowrap;
	transition: background .2s ease, color .2s ease;
}
.lang-en .eoi-menu a { font-size: .9rem; font-weight: 600; }
.eoi-menu a:hover { background: var(--sky); color: var(--navy); }
.eoi-menu .current-menu-item > a, .eoi-menu .current_page_item > a { background: var(--navy); color: var(--white); }
.eoi-menu .sub-menu { display: none; }

.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--gold);
	color: var(--navy); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap;
	font-family: "Tajawal", "Source Sans 3", sans-serif;
}
.lang-switch:hover { background: var(--gold); color: var(--navy); }
.nav-toggle {
	display: none; width: 46px; height: 46px; border-radius: 12px;
	border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer;
	align-items: center; justify-content: center;
}
.nav-toggle .eoi-icon { width: 24px; height: 24px; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline-flex; }

.header-inner { min-width: 0; }
.main-nav { min-width: 0; }
@media (max-width: 1440px) {
	.brand-tag { display: none; }
	.eoi-menu a { padding: 8px 9px; font-size: .9rem; }
}
@media (max-width: 1240px) {
	.eoi-menu a { padding: 7px 7px; font-size: .85rem; }
	.brand-name { font-size: 1.15rem; }
	.header-inner { gap: 12px; }
}
@media (max-width: 1040px) {
	/* backdrop-filter would make the header the containing block of the fixed menu panel */
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); }
	.nav-toggle { display: inline-flex; }
	.main-nav {
		position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0;
		background: var(--white); padding: 16px 24px 40px; overflow-y: auto;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
		border-top: 1px solid var(--line);
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 32px); }
	.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.eoi-menu { flex-direction: column; align-items: stretch; gap: 4px; }
	.eoi-menu a { font-size: 1.1rem; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); }
	.header-tools { margin-inline-start: auto; }
}
@media (max-width: 520px) {
	:root { --header-h: 72px; }
	.brand-logo { width: 46px; height: 46px; }
	.brand-name { font-size: 1.05rem; }
	.lang-en .brand-name { font-size: .95rem; }
	.brand { flex: 1 1 auto; min-width: 0; }
	.header-inner { gap: 10px; padding-inline: 16px; }
	.lang-switch span { display: none; }
	.lang-switch { padding: 10px; }
}

/* ==========================================================================
   Home hero
   ========================================================================== */
.home-hero {
	position: relative; overflow: hidden;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M0 22L22 0' stroke='%23ffffff' stroke-opacity='.06'/%3E%3C/svg%3E"),
		radial-gradient(900px 500px at 85% 10%, rgba(227, 192, 110, .18), transparent 60%),
		radial-gradient(700px 500px at 10% 100%, rgba(34, 81, 127, .55), transparent 60%),
		linear-gradient(160deg, var(--navy) 0%, #0a1b33 100%);
	color: var(--white);
	padding: 72px 0 40px;
}
.home-hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.hero-kicker {
	display: inline-block; padding: 6px 16px; border-radius: 999px;
	background: rgba(227, 192, 110, .15); border: 1px solid rgba(227, 192, 110, .45);
	color: var(--gold-2); font-weight: 700; font-size: .9rem; margin-bottom: 18px;
}
.hero-title { color: var(--white); font-size: clamp(2.3rem, 5.2vw, 4rem); margin-bottom: .25em; line-height: 1.2; }
.hero-sub { font-family: var(--font-head); color: var(--gold-2); font-size: clamp(1.25rem, 2.4vw, 1.75rem); margin-bottom: .7em; line-height: 1.5; }
.hero-text { color: rgba(255, 255, 255, .82); font-size: 1.08rem; max-width: 40em; }
.home-hero-visual { display: flex; justify-content: center; }
.hero-seal {
	position: relative; width: min(400px, 80vw); aspect-ratio: 1;
	border-radius: 50%; padding: 10px;
	background: conic-gradient(from 210deg, var(--gold-2), var(--gold), #8a6a1f, var(--gold-2));
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 14px rgba(255, 255, 255, .04), 0 0 0 30px rgba(255, 255, 255, .03);
	animation: seal-float 7s ease-in-out infinite;
}
.hero-seal img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@keyframes seal-float { 50% { transform: translateY(-10px); } }


@media (max-width: 900px) {
	.home-hero { padding-top: 48px; }
	.home-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
	.home-hero-visual { order: -1; }
	.hero-seal { width: min(260px, 70vw); }
	.hero-text { margin-inline: auto; }
	.home-hero .eoi-actions { justify-content: center; }
}

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(600px 300px at 90% 0%, rgba(227, 192, 110, .2), transparent 60%),
		linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
	color: var(--white); padding: 64px 0 56px;
}
.page-hero::after {
	content: ""; position: absolute; inset-inline-end: -60px; top: 50%; width: 260px; height: 260px; transform: translateY(-50%);
	border-radius: 50%; border: 2px solid rgba(227, 192, 110, .25); box-shadow: 0 0 0 30px rgba(227, 192, 110, .05), 0 0 0 60px rgba(227, 192, 110, .03);
}
.page-hero-kicker { color: var(--gold-2); font-weight: 700; margin: 0 0 6px; font-size: .95rem; }
.page-hero-title { color: var(--white); font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 0; position: relative; z-index: 1; }

/* ==========================================================================
   Page content
   ========================================================================== */
.page-body { padding-block: 56px 72px; }
.page-narrow { max-width: 860px; }
.home-body { padding-block: 64px 32px; }
.entry-content > * + * { margin-top: 0; }
.entry-content > .wp-block-html + .wp-block-html { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.entry-content h3 { font-size: 1.3rem; }
.entry-content ul:not([class]), .entry-content ol:not([class]) { padding-inline-start: 1.3em; }

.eoi-section-title { position: relative; padding-bottom: .4em; margin-bottom: .9em; font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.eoi-section-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head .eoi-section-title::after { inset-inline-start: 50%; transform: translateX(-50%); }
.lang-ar .section-head .eoi-section-title::after { transform: translateX(50%); }
.section-head p { color: var(--muted); }

.eoi-lead { font-size: 1.15rem; color: #2a3646; }
.eoi-muted { color: var(--muted); }
.eoi-kicker { display: inline-block; color: var(--gold); font-weight: 800; letter-spacing: .02em; margin-bottom: 6px; }
.eoi-notice {
	position: relative; background: var(--gold-soft); border: 1px solid #ead6a6;
	border-inline-start: 5px solid var(--gold); border-radius: var(--radius-sm);
	padding: 16px 20px; color: #4d3b12; font-weight: 500;
}
.eoi-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); margin-top: 40px; }

.eoi-intro { max-width: 900px; margin-inline: auto; margin-bottom: 64px; }

/* Founder card */
.eoi-founder {
	display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center;
	background: var(--white); border: 1px solid var(--line); border-radius: 26px;
	padding: 36px; box-shadow: var(--shadow); margin-bottom: 48px;
}
.eoi-founder-photo { position: relative; }
.eoi-founder-photo::before {
	content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 22px;
	background: linear-gradient(135deg, var(--gold-2), var(--gold)); z-index: 0;
}
.lang-ar .eoi-founder-photo::before { inset: 18px 18px -14px -14px; }
.eoi-founder-photo img {
	position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top center;
	border-radius: 22px; background: linear-gradient(180deg, var(--sky), #fff);
}
.eoi-founder-text .eoi-section-title { margin-bottom: .6em; }
@media (max-width: 860px) {
	.eoi-founder { grid-template-columns: 1fr; padding: 24px; gap: 32px; }
	.eoi-founder-photo { max-width: 300px; margin-inline: auto; }
}

/* Check list */
.eoi-check-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 12px; }
.eoi-check-list li {
	position: relative; padding: 14px 20px; padding-inline-start: 54px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.eoi-check-list li::before {
	content: ""; position: absolute; inset-inline-start: 16px; top: 18px; width: 24px; height: 24px; border-radius: 50%;
	background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3c06e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Services grid (consultations) */
.eoi-service-grid { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; counter-reset: svc; }
.eoi-service-grid li {
	counter-increment: svc; position: relative;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 24px; padding-inline-start: 84px; min-height: 100px; box-shadow: var(--shadow);
	display: flex; align-items: center; font-weight: 500;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.eoi-service-grid li::before {
	content: counter(svc, decimal-leading-zero); position: absolute; inset-inline-start: 22px; top: 50%; transform: translateY(-50%);
	width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
	background: var(--navy); color: var(--gold-2); font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.05rem;
}
.eoi-service-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold-2); }
@media (max-width: 760px) { .eoi-service-grid { grid-template-columns: 1fr; } }

/* Courses */
.eoi-course {
	display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 0;
	background: var(--white); border: 1px solid var(--line); border-radius: 22px;
	box-shadow: var(--shadow); overflow: hidden; margin: 32px 0;
	transition: box-shadow .4s ease, transform .4s ease;
}
.eoi-course:hover { box-shadow: var(--shadow-lg); }
.eoi-course-media { position: relative; margin: 0; overflow: hidden; background: var(--navy); min-height: 100%; }
.eoi-course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.eoi-course:hover .eoi-course-media img { transform: scale(1.06); }
.eoi-course-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 35, 64, .35), transparent 45%); pointer-events: none; }
.eoi-course-num {
	position: absolute; z-index: 1; bottom: 16px; inset-inline-start: 16px;
	width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy);
	font-family: "Playfair Display", Georgia, serif; font-size: 1.9rem; font-weight: 700;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.eoi-course-body { padding: 30px 34px 34px; min-width: 0; }
.eoi-course-title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: .5em; }
.eoi-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.eoi-chip { display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--sky); color: var(--navy-2); }
.eoi-chip-free { background: #e4f4ea; color: var(--ok); }
.eoi-course-sub { font-family: var(--font-body); font-size: 1rem; color: var(--gold); font-weight: 800; margin-bottom: 10px; }
.eoi-topics { list-style: none; counter-reset: t; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.eoi-topics li { counter-increment: t; position: relative; padding-inline-start: 38px; line-height: 1.6; }
.eoi-topics li::before {
	content: counter(t); position: absolute; inset-inline-start: 0; top: 0;
	width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
	background: var(--gold-soft); color: #7a5b16; font-weight: 800; font-size: .85rem;
}
@media (max-width: 1000px) {
	.eoi-course { grid-template-columns: 1fr; }
	.eoi-course-media { aspect-ratio: 16 / 10; }
	.eoi-topics { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.eoi-course-body { padding: 22px; }
	.eoi-course-num { width: 48px; height: 48px; font-size: 1.5rem; }
}

/* Books */
.eoi-books { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 24px; }
.eoi-books-single { grid-template-columns: minmax(0, 760px); }
.eoi-book-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.eoi-btn.is-pending { flex-direction: column; gap: 2px; cursor: default; opacity: .75; }
.eoi-btn.is-pending:hover { transform: none; background: transparent; color: var(--navy); }
.eoi-btn.is-pending small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.eoi-pub + .eoi-pub, .eoi-books + .eoi-pub { margin-top: 48px; }
#articles, #archive { margin-top: 48px; }
.eoi-pub-series { font-size: 1.3rem; margin: 0 0 4px; }
.eoi-lecture-points { margin-top: 32px; }
#qa { margin-top: 64px; }
#qa .eoi-lib-media { order: 2; }
@media (max-width: 860px) { #qa .eoi-lib-media { order: 0; } }
.eoi-list-title { margin-top: 48px; }
.eoi-book {
	position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px 28px 24px; padding-inline-start: 40px; box-shadow: var(--shadow); overflow: hidden;
}
.eoi-book::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 10px; background: linear-gradient(180deg, var(--navy-3), var(--navy)); }
.eoi-book.is-published::before { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.eoi-book h3 { font-size: 1.25rem; }
.eoi-book p { color: var(--muted); margin: 0; }
.eoi-book-status { display: inline-block; font-size: .82rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--sky); color: var(--navy-2); margin-bottom: 12px; }
.eoi-book.is-published .eoi-book-status { background: var(--gold-soft); color: #7a5b16; }
@media (max-width: 760px) { .eoi-books { grid-template-columns: 1fr; } }

/* Achievements timeline */
.eoi-timeline { position: relative; margin: 40px 0 0; padding-inline-start: 44px; }
.eoi-timeline::before { content: ""; position: absolute; inset-inline-start: 14px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--gold), var(--navy-3)); }
.eoi-milestone {
	position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 22px 26px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.eoi-milestone::before {
	content: ""; position: absolute; inset-inline-start: -38px; top: 26px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--gold-2); border: 4px solid var(--navy); box-shadow: 0 0 0 4px var(--paper);
}
.eoi-milestone h3 { margin-bottom: .3em; font-size: 1.25rem; }
.eoi-milestone p { margin: 0; color: var(--muted); }

/* Library */
.eoi-lib-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 48px; }
.eoi-lib-nav a {
	padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
	color: var(--navy); font-weight: 700; text-decoration: none; transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.eoi-lib-nav a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.eoi-lib {
	display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 40px; align-items: center;
	margin-top: 64px; scroll-margin-top: calc(var(--header-h) + 32px);
}
.eoi-lib-nav + .eoi-lib { margin-top: 0; }
/* alternate the image side from one sub-section to the next */
#lib-announcements, #lib-international, #lib-archive { grid-template-columns: 1fr minmax(0, 440px); }
#lib-announcements .eoi-lib-media, #lib-international .eoi-lib-media, #lib-archive .eoi-lib-media { order: 2; }
.eoi-lib-media { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); aspect-ratio: 8 / 5; }
.eoi-lib-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.eoi-lib:hover .eoi-lib-media img { transform: scale(1.05); }
.eoi-lib-text { min-width: 0; }
.eoi-lib-text .eoi-lead { margin: 0; }
.eoi-lib + .eoi-news-grid, .eoi-lib + .eoi-empty { margin-top: 28px; }
/* Questions & answers */
.eoi-faq { display: grid; gap: 12px; margin-top: 28px; }
.eoi-faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.eoi-faq-item summary {
	list-style: none; cursor: pointer; position: relative; padding: 18px 22px; padding-inline-end: 56px;
	font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.eoi-faq-item summary::-webkit-details-marker { display: none; }
.eoi-faq-item summary::after {
	content: "+"; position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	background: var(--gold-soft); color: #7a5b16; font-size: 1.2rem; line-height: 1;
}
.eoi-faq-item[open] summary::after { content: "−"; background: var(--navy); color: var(--gold-2); }
.eoi-faq-item[open] summary { border-bottom: 1px solid var(--line); }
.eoi-faq-answer { padding: 16px 22px 6px; color: #2a3646; }

/* Founder: CV summary as points inside the founder card */
.eoi-founder-page { grid-template-columns: 240px 1fr; gap: 36px; }
.eoi-founder-page .eoi-founder-text .eoi-section-title { margin-bottom: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
@media (max-width: 860px) { .eoi-founder-page { grid-template-columns: 1fr; text-align: center; } .eoi-founder-page .eoi-founder-photo { max-width: 220px; } .eoi-founder-page .eoi-section-title::after { inset-inline-start: 50%; transform: translateX(50%); } .eoi-founder-page .eoi-cv-list { text-align: start; } }
.eoi-founder-cv { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 28px; }
.eoi-founder-cv-title { font-size: 1.4rem; margin-bottom: 18px; }
.eoi-cv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.eoi-cv-list li { background: var(--paper); font-size: .98rem; line-height: 1.7; }
@media (max-width: 860px) { .eoi-cv-list { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
	.eoi-lib, #lib-announcements, #lib-international, #lib-archive { grid-template-columns: 1fr; gap: 24px; }
	#lib-announcements .eoi-lib-media, #lib-international .eoi-lib-media, #lib-archive .eoi-lib-media { order: 0; }
}
#contribute { scroll-margin-top: calc(var(--header-h) + 32px); }


/* Home: each site section shown in full */
.home-section { padding: 88px 0; background: var(--paper); border-top: 1px solid var(--line); }
.home-section-consultations, .home-section-publications { background: var(--white); }
.home-section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.home-section-icon {
	width: 64px; height: 64px; flex: none; border-radius: 18px; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--gold-2);
	box-shadow: 0 10px 24px rgba(13, 35, 64, .18);
	transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.home-section-icon .eoi-icon { width: 30px; height: 30px; }
.home-section:hover .home-section-icon { transform: rotate(-8deg) scale(1.06); }
.home-section-title { position: relative; margin: 0; padding-bottom: .35em; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.home-section-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 72px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.home-section .entry-content > .wp-block-html:first-child > .eoi-panel:first-child { margin-top: 0; }
.home-section-foot { margin-top: 40px; display: flex; justify-content: center; }
.home-section-foot .eoi-btn { min-height: 54px; padding-inline: 2em; font-size: 1.05rem; }
.home-section-foot .eoi-icon { width: 1.1em; height: 1.1em; transition: transform .3s ease; }
.home-section-foot .eoi-btn:hover .eoi-icon { transform: translateX(4px); }
.lang-ar .home-section-foot .eoi-icon { transform: scaleX(-1); }
.lang-ar .home-section-foot .eoi-btn:hover .eoi-icon { transform: scaleX(-1) translateX(4px); }
@media (max-width: 600px) {
	.home-section { padding: 60px 0; }
	.home-section-icon { width: 52px; height: 52px; border-radius: 14px; }
	.home-section-foot .eoi-btn { width: 100%; }
}
.home-hero { padding-bottom: 72px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); padding: 48px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset-inline-start: -80px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 192, 110, .22), transparent 70%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 .2em; font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .78); }

/* News */
.eoi-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.news-thumb { display: block; aspect-ratio: 16 / 9; background: var(--sky); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-ph { display: grid; place-items: center; height: 100%; color: var(--navy-3); }
.news-thumb-ph .eoi-icon { width: 48px; height: 48px; opacity: .5; }
.news-body { padding: 20px 22px 24px; }
.news-body time { color: var(--gold); font-weight: 700; font-size: .88rem; }
.news-body h3 { font-size: 1.2rem; margin: 4px 0 8px; }
.news-body h3 a { color: var(--navy); text-decoration: none; }
.news-body p { color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) { .eoi-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .eoi-news-grid { grid-template-columns: 1fr; } }
.eoi-empty { text-align: center; color: var(--muted); padding: 48px 24px; background: var(--white); border: 1px dashed #c9d3df; border-radius: var(--radius); margin-top: 32px; }
.eoi-empty .eoi-icon { width: 48px; height: 48px; color: var(--navy-3); margin: 0 auto 12px; opacity: .6; }
.eoi-pagination ul { list-style: none; display: flex; gap: 6px; justify-content: center; padding: 0; margin: 32px 0 0; }
.eoi-pagination a, .eoi-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.eoi-pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.entry-thumb { margin: 0 0 28px; }
.entry-thumb img { border-radius: var(--radius); }

/* Contact */
.eoi-contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; margin-top: 32px; }
#eoi-form, .eoi-course { scroll-margin-top: calc(var(--header-h) + 48px); }
.eoi-form { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.eoi-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eoi-field { display: block; margin-bottom: 16px; }
.eoi-field > span { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--navy); }
.eoi-field input, .eoi-field select, .eoi-field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	padding: 12px 14px; border: 1.5px solid #d3dbe5; border-radius: 12px; background: #fcfdfe;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.eoi-field input:focus, .eoi-field select:focus, .eoi-field textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(34, 81, 127, .12); }
.eoi-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 22px; font-size: .95rem; color: var(--muted); }
.eoi-consent input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--navy); flex: none; }
.eoi-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eoi-alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-weight: 600; }
.eoi-alert-ok { background: #e4f4ea; color: var(--ok); border: 1px solid #b9e0c8; }
.eoi-alert-err { background: #fdecea; color: var(--err); border: 1px solid #f5c2bd; }
.eoi-contact-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
@media (max-width: 900px) {
	.eoi-contact-layout { grid-template-columns: 1fr; }
	.eoi-contact-side { position: static; }
	.eoi-field-row { grid-template-columns: 1fr; gap: 0; }
	.eoi-form { padding: 22px; }
}

.eoi-channels { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 24px 0 0; }
.eoi-channel {
	display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-width: 0;
	background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
	text-decoration: none; color: var(--ink); transition: border-color .25s ease, transform .25s ease;
}
a.eoi-channel:hover { border-color: var(--gold-2); color: var(--ink); transform: translateY(-2px); }
.eoi-channel-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--navy); }
.eoi-channel-icon svg { width: 22px; height: 22px; }
.eoi-channel-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.eoi-channel strong { color: var(--navy); }
.eoi-channel bdi { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.eoi-channel em { color: var(--muted); font-style: normal; font-size: .88rem; }
.eoi-channel.is-pending { box-shadow: none; }
.eoi-channel-email .eoi-channel-icon, .is-email { --brand: #c4962f; }
.eoi-channel-whatsapp .eoi-channel-icon, .is-whatsapp { --brand: #25d366; }
.eoi-channel-instagram .eoi-channel-icon, .is-instagram { --brand: #d6286f; }
.eoi-channel-linkedin .eoi-channel-icon, .is-linkedin { --brand: #0a66c2; }
.eoi-channel-youtube .eoi-channel-icon, .is-youtube { --brand: #e62117; }
.eoi-channel-icon { background: var(--brand, var(--navy)); }
.eoi-channel-instagram .eoi-channel-icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.eoi-channels-pending { background: var(--white); border: 1px dashed #c9d3df; border-radius: 14px; padding: 14px 18px; margin-top: 12px; font-size: .92rem; }

/* Round icon rows (header top bar, footer) */
.eoi-social-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eoi-social-icon {
	width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
	color: #fff; background: var(--brand, var(--navy)); border: 1px solid rgba(255, 255, 255, .18);
	text-decoration: none; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s ease, filter .25s ease;
}
.eoi-social-icon.is-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.eoi-social-icon.is-email { background: #c4962f; }
.eoi-social-icon svg { width: 18px; height: 18px; }
a.eoi-social-icon:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); filter: brightness(1.1); }
.eoi-social-icon.is-pending { cursor: default; opacity: .55; }
.eoi-social-icons.is-footer { margin-bottom: 18px; }
.eoi-social-icons.is-footer .eoi-social-icon { width: 42px; height: 42px; }
.eoi-social-icons.is-footer .eoi-social-icon svg { width: 20px; height: 20px; }
.footer-pending { font-size: .88rem; color: rgba(255, 255, 255, .55); margin: 0 0 16px; }

/* Header top bar */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: .82rem; overflow: hidden; max-height: 48px; transition: max-height .35s ease, opacity .3s ease; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.topbar .eoi-social-icon { width: 30px; height: 30px; }
.topbar .eoi-social-icon svg { width: 15px; height: 15px; }
.site-header.is-scrolled .topbar { max-height: 0; opacity: 0; }
@media (max-width: 760px) {
	.topbar-tag { display: none; }
	.topbar-inner { justify-content: center; min-height: 40px; }
	.topbar .eoi-social-icons { gap: 6px; }
}
.eoi-contribute { max-width: 860px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #081629; color: rgba(255, 255, 255, .78); padding-top: 56px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 84px; height: 84px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--gold); }
.footer-name { font-family: var(--font-head); color: var(--white); font-size: 1.35rem; font-weight: 700; margin: 0 0 4px; }
.footer-tag { margin: 0; color: rgba(255, 255, 255, .6); }
.footer-title { color: var(--gold-2); font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.footer-links li { margin-bottom: 8px; break-inside: avoid; }
.footer-links a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-links a:hover { color: var(--gold-2); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .88rem; color: rgba(255, 255, 255, .55); }
.footer-bottom .eoi-container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Small fixed gold button on the left side, like the old WhatsApp bubble. */
.justice-float { position: fixed; z-index: 90; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.justice-float-btn {
	min-height: 40px; padding: .35em 1em; gap: .45em; font-size: .85rem; white-space: nowrap;
	background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy);
	border: 1px solid var(--gold); box-shadow: 0 6px 16px rgba(196, 150, 47, .4);
}
.justice-float-btn svg { width: 17px; height: 17px; flex: none; }
.justice-float-btn:hover { color: var(--navy); transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 22px rgba(196, 150, 47, .5); }
.justice-float-btn:active, .justice-float-btn.is-clicked, .justice-float-btn.is-clicked:hover {
	background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 6px 16px rgba(13, 35, 64, .3);
}
.justice-float-btn:active { transform: scale(.94); }
.justice-float-btn:focus-visible { outline: 3px solid var(--navy-3); outline-offset: 3px; }
@media (max-width: 600px) {
	.justice-float { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
	.justice-float-btn { min-height: 36px; padding: .3em .85em; font-size: .78rem; }
	.justice-float-btn svg { width: 15px; height: 15px; }
}

/* ==========================================================================
   Motion
   ========================================================================== */
/* Scroll progress */
.scroll-progress {
	position: absolute; inset-inline: 0; bottom: -1px; height: 3px; pointer-events: none;
	background: linear-gradient(90deg, var(--gold), var(--gold-2));
	transform: scaleX(var(--progress, 0)); transform-origin: left center;
}
.is-rtl .scroll-progress { transform-origin: right center; }
.header-inner { transition: min-height .3s ease; }
.site-header.is-scrolled .header-inner { min-height: calc(var(--header-h) - 14px); }
.brand-logo { transition: width .3s ease, height .3s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.site-header.is-scrolled .brand-logo { width: 46px; height: 46px; }
.brand:hover .brand-logo { transform: rotate(-12deg) scale(1.05); }

/* Hero entrance */
@keyframes eoi-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes eoi-seal-in { from { opacity: 0; transform: scale(.82) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes eoi-spin { to { transform: rotate(360deg); } }
@keyframes eoi-drift { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .6; } 100% { transform: translate(30px, -140px); opacity: 0; } }
@keyframes eoi-sheen { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes eoi-shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes eoi-fade { from { opacity: 0; } to { opacity: 1; } }

.home-hero-text > * { animation: eoi-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.home-hero-text > :nth-child(1) { animation-delay: .1s; }
.home-hero-text > :nth-child(2) { animation-delay: .22s; }
.home-hero-text > :nth-child(3) { animation-delay: .34s; }
.home-hero-text > :nth-child(4) { animation-delay: .46s; }
.home-hero-text > :nth-child(5) { animation-delay: .58s; }
.hero-seal { animation: eoi-seal-in 1.2s .2s cubic-bezier(.2, .7, .2, 1) both, seal-float 7s 1.4s ease-in-out infinite; }
.seal-ring { position: absolute; inset: -34px; width: calc(100% + 68px); height: calc(100% + 68px); color: var(--gold-2); opacity: .55; animation: eoi-spin 60s linear infinite; pointer-events: none; }
.hero-title {
	background: linear-gradient(100deg, #fff 0%, #fff 40%, var(--gold-2) 50%, #fff 60%, #fff 100%);
	background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
	animation: eoi-rise .9s .22s cubic-bezier(.2, .7, .2, 1) both, eoi-sheen 6s 1.5s ease-in-out infinite;
}
.hero-dust { position: absolute; inset: 0; pointer-events: none; overflow: hidden; contain: paint; }
.hero-dust span {
	position: absolute; width: 12px; height: 12px; border-radius: 50%;
	background: radial-gradient(circle, rgba(240, 214, 150, .95) 0, rgba(227, 192, 110, .35) 30%, rgba(227, 192, 110, 0) 70%);
	animation: eoi-drift 12s linear infinite; will-change: transform, opacity;
}
.hero-dust span:nth-child(3n) { width: 9px; height: 9px; animation-duration: 16s; }
.hero-dust span:nth-child(4n) { width: 15px; height: 15px; animation-duration: 10s; }

/* Inner page hero */
.page-hero-kicker { animation: eoi-rise .7s .05s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero-title { animation: eoi-rise .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero::after { animation: eoi-spin 40s linear infinite; }
.page-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(400px 200px at var(--mx, 80%) var(--my, 30%), rgba(227, 192, 110, .14), transparent 70%);
	transition: background-position .3s ease;
}

/* Buttons: light sweep */
.eoi-btn { position: relative; overflow: hidden; isolation: isolate; }
.eoi-btn::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: -1; pointer-events: none;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: translateX(-120%) skewX(-20deg);
}
.eoi-btn:hover::after { animation: eoi-shine .8s ease; }
.eoi-btn-gold, .eoi-btn-primary, .eoi-btn-download { z-index: 0; }

/* Cards: icon motion */
.eoi-founder-photo img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.eoi-founder:hover .eoi-founder-photo img { transform: translateY(-6px); }
.eoi-check-list li { transition: transform .3s ease, border-color .3s ease; }
.eoi-check-list li:hover { transform: translateX(-6px); border-color: var(--gold-2); }
.is-ltr .eoi-check-list li:hover { transform: translateX(6px); }

/* CTA band sheen */
.cta-band::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(110deg, transparent 30%, rgba(227, 192, 110, .12) 50%, transparent 70%);
	background-size: 250% 100%; animation: eoi-sheen 9s linear infinite;
}

/* Timeline draws as it scrolls into view */
.eoi-timeline::before { transform: scaleY(var(--line, 1)); transform-origin: top; transition: transform .2s linear; }

/* Scroll reveal (only applied by JS, so content is visible without it) */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.reveal-side { transform: translateX(var(--side, -40px)); }
.reveal.reveal-zoom { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }
.eoi-milestone.reveal.is-visible::before { animation: eoi-seal-in .6s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--d, 0s) + .2s); }


@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* WordPress core alignment helpers */
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.aligncenter { margin-inline: auto; }
.wp-block-image img { border-radius: var(--radius-sm); }

@media print {
	.site-header, .site-footer, .cta-band, .wa-float, .justice-float { display: none; }
	.page-hero { background: none; color: #000; padding: 0; }
	.page-hero-title { color: #000; }
}


/* ---------- Q&A chapters: numbered questions (blue) open to their answers (black) ---------- */
.eoi-qa-chapter { margin: 28px 0 8px; }
.eoi-qa-chapter-title {
	display: flex; align-items: center; gap: 12px;
	font-size: 1.35rem; color: var(--navy); margin: 0 0 18px; padding-bottom: 12px;
	border-bottom: 2px solid var(--gold);
}
.eoi-qa-chapter-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.eoi-qa-list { display: grid; gap: 12px; }
.eoi-qa-item {
	background: var(--white); border: 1px solid var(--line); border-radius: 14px;
	box-shadow: 0 2px 10px rgba(13, 35, 64, .05); overflow: hidden;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.eoi-qa-item:hover { border-color: #b9cde4; }
.eoi-qa-item[open] { border-color: var(--navy-3); box-shadow: 0 10px 28px rgba(13, 35, 64, .10); }
.eoi-qa-item summary {
	display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer;
	list-style: none; font-weight: 700; font-size: 1.06rem; line-height: 1.6; color: #1f5fa8;
}
.eoi-qa-item summary::-webkit-details-marker { display: none; }
.eoi-qa-item summary::after {
	content: ""; flex: none; margin-inline-start: auto; width: 11px; height: 11px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .3s ease; position: relative; top: -3px;
}
.eoi-qa-item[open] summary::after { transform: rotate(-135deg); top: 3px; }
.eoi-qa-item summary:hover, .eoi-qa-item[open] summary { color: var(--navy); }
.eoi-qa-item summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: 14px; }
.eoi-qa-num {
	flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	background: #e6eef8; color: #1f5fa8; font-size: .95rem; font-weight: 700; font-family: inherit;
	transition: background .25s ease, color .25s ease;
}
.eoi-qa-item[open] .eoi-qa-num { background: var(--navy); color: var(--white); }
.eoi-qa-q { flex: 1; }
.eoi-qa-answer { padding: 0 20px 18px; padding-inline-start: 70px; color: #000; animation: eoiQaOpen .35s ease; }
.eoi-qa-answer p { margin: 0 0 .7em; color: #000; line-height: 1.95; }
.eoi-qa-answer p:last-child { margin-bottom: 0; }
.eoi-qa-points { margin: 0; padding: 0; list-style: none; display: grid; gap: .55em; }
.eoi-qa-points li { position: relative; padding-inline-start: 22px; color: #000; line-height: 1.95; }
.eoi-qa-points li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.eoi-qa-pdf { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
@media (max-width: 480px) { .eoi-qa-pdf .eoi-qa-pdf-btn { flex: 1 1 100%; } }
/* PDF button: gold like the site's lines; presses on click, then navy with white text */
.eoi-qa-pdf-btn {
	z-index: 0; min-height: 58px; padding: .6em 2.2em;
	background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy);
	border-color: var(--gold); box-shadow: 0 6px 18px rgba(196, 150, 47, .35);
}
.eoi-qa-pdf-btn > span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.eoi-qa-pdf-btn small { font-size: .78rem; font-weight: 500; opacity: .8; }
.eoi-qa-pdf-btn svg { width: 22px; height: 22px; flex: none; }
.eoi-qa-pdf-btn:hover { color: var(--navy); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(196, 150, 47, .5); }
.eoi-qa-pdf-btn:active { transform: translateY(1px) scale(.96); box-shadow: 0 3px 10px rgba(13, 35, 64, .25); }
.eoi-qa-pdf-btn:active, .eoi-qa-pdf-btn.is-clicked, .eoi-qa-pdf-btn.is-clicked:hover {
	background: var(--navy); border-color: var(--navy); color: var(--white);
}
.eoi-qa-pdf-btn.is-clicked { box-shadow: 0 8px 22px rgba(13, 35, 64, .3); }
.eoi-qa-pdf-btn:focus-visible { outline: 3px solid var(--navy-3); outline-offset: 3px; }
@keyframes eoiQaOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
	.eoi-qa-item summary { padding: 14px 14px; gap: 10px; font-size: 1rem; }
	.eoi-qa-num { width: 30px; height: 30px; font-size: .85rem; }
	.eoi-qa-answer { padding: 0 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { .eoi-qa-answer { animation: none; } .eoi-qa-item summary::after { transition: none; } }
