/* ==========================================================================
   Jiser Alamal Foundation — Main stylesheet
   Teal + orange design system, bilingual (LTR + RTL)
   ========================================================================== */

/* ----- DESIGN TOKENS ----- */
:root {
	/* Brand palette: deep navy + warm gold + cream + burgundy accent.
	   Variable names kept for backwards-compatibility; values are the new tokens. */
	--color-teal:        #1B3A57;   /* navy (primary) */
	--color-teal-light:  #24476B;   /* navy light */
	--color-teal-dark:   #0F2A44;   /* navy dark */
	--color-orange:      #C78A2E;   /* warm gold (accent) */
	--color-orange-light:#E0A848;   /* gold light */
	--color-orange-dark: #A06F1A;   /* gold dark */
	--color-burgundy:    #B23A48;   /* burgundy highlight */

	--color-ink:         #15243A;
	--color-text:        #2C3A4D;
	--color-text-muted:  #5E6B7E;
	--color-border:      #E8DDC4;   /* warm parchment border */
	--color-mist:        #FAF4E8;   /* cream */
	--color-white:       #FFFFFF;

	--font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-arabic: 'Tajawal', 'Noto Sans Arabic', 'Segoe UI', system-ui, sans-serif;
	--font-arabic-display: 'Tajawal', system-ui, sans-serif;

	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;
	--radius-pill: 999px;

	--shadow-sm: 0 2px 6px rgba(27, 58, 87, 0.08);
	--shadow-md: 0 8px 24px rgba(27, 58, 87, 0.12);
	--shadow-lg: 0 24px 56px rgba(27, 58, 87, 0.18);

	--container: 1340px;
	--gutter: clamp(1rem, 3vw, 2rem);

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- RESET + BASE ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body.rtl, body.is-rtl {
	font-family: var(--font-arabic);
	line-height: 1.75;
	font-size: 17px;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-teal); text-decoration: none; transition: color .2s var(--ease-out); }
a:hover, a:focus { color: var(--color-orange); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--color-ink);
	line-height: 1.2;
	margin: 0 0 .6em;
}
body.is-rtl h1, body.is-rtl h2, body.is-rtl h3, body.is-rtl h4, body.is-rtl h5, body.is-rtl h6 {
	font-family: var(--font-arabic-display);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0;
}
body.is-rtl .eyebrow { font-family: var(--font-arabic); font-weight: 700; }
body.is-rtl .btn { font-family: var(--font-arabic); font-weight: 700; }
body.is-rtl .story-quote { font-style: normal; font-weight: 500; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.005em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.25em; }

button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.eyebrow {
	display: inline-block;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--color-orange);
	margin-bottom: 1rem;
}
.eyebrow-light { color: rgba(255,255,255,.85); }
body.is-rtl .eyebrow { letter-spacing: 0; text-transform: none; font-weight: 700; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 10px; background: var(--color-ink); color: #fff; padding: .75rem 1rem; z-index: 9999;
}
.skip-link:focus { left: 10px; color: #fff; }

/* ----- BUTTONS ----- */
.btn {
	display: inline-flex; align-items: center; gap: .6em;
	padding: .8em 1.5em;
	font-weight: 600;
	font-size: .95rem;
	border-radius: var(--radius-pill);
	border: 2px solid transparent;
	transition: all .25s var(--ease-out);
	white-space: nowrap;
	line-height: 1;
}
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
body.is-rtl .btn:hover .arrow { transform: translateX(-4px); }
.btn-lg { padding: 1em 1.9em; font-size: 1rem; }

.btn-primary { background: var(--color-orange); color: #fff; border-color: var(--color-orange); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--color-orange-dark); border-color: var(--color-orange-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-secondary { background: var(--color-teal); color: #fff; border-color: var(--color-teal); }
.btn-secondary:hover { background: var(--color-teal-dark); border-color: var(--color-teal-dark); color: #fff; transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--color-teal); border-color: var(--color-teal); }
.btn-outline:hover { background: var(--color-teal); color: #fff; }

.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.25); color: #fff; border-color: #fff; }

/* ----- TOPBAR ----- */
.topbar {
	background: var(--color-teal-dark);
	color: #fff;
	font-size: .85rem;
	position: sticky;
	top: 0;
	z-index: 1001;
}
.topbar-inner {
	display: flex; align-items: center; justify-content: space-between;
	padding: .55rem 0;
	gap: 1rem;
	flex-wrap: wrap;
}
.topbar-contact { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-link { color: rgba(255,255,255,.9); }
.topbar-link:hover { color: var(--color-orange-light); }
.topbar-right { display: flex; align-items: center; gap: 1.5rem; }

.language-switcher { display: inline-flex; gap: .4rem; align-items: center; }
.lang-link {
	color: rgba(255,255,255,.8);
	font-weight: 600;
	font-size: .78rem;
	letter-spacing: .08em;
	padding: .3rem .6rem;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(255,255,255,.3);
}
.lang-link.is-active { background: #fff; color: var(--color-teal-dark); border-color: #fff; }
.lang-link:hover { color: #fff; border-color: #fff; }
.lang-link.is-active:hover { color: var(--color-teal-dark); }

/* ----- SITE HEADER ----- */
.site-header {
	background: #fff;
	position: sticky;
	top: 2.4rem;
	z-index: 100;
	box-shadow: 0 2px 10px rgba(27,58,87,0.08);
}
.site-header-inner {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1rem 0;
	gap: 1.5rem;
}
.site-logo { display: inline-flex; }
.site-logo img, .custom-logo { height: 96px; width: auto; }
.custom-logo-link { display: inline-flex; }
@media (max-width: 760px) {
	.site-logo img, .custom-logo { height: 70px; }
}

.main-navigation { flex: 1; display: flex; justify-content: center; }
.main-navigation ul.menu, .main-navigation #primary-menu {
	display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0;
}
.main-navigation li { position: relative; }
.main-navigation a {
	color: var(--color-ink);
	font-weight: 600;
	font-size: .95rem;
	padding: .5rem 0;
	display: inline-block;
	position: relative;
}
.main-navigation a::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
	background: var(--color-orange); border-radius: 2px;
	transform: scaleX(0); transform-origin: center; transition: transform .25s var(--ease-out);
}
.main-navigation a:hover::after, .main-navigation .current-menu-item > a::after { transform: scaleX(1); }
.main-navigation a:hover { color: var(--color-orange); }

/* Sub-menu */
.main-navigation .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
	padding: .5rem; list-style: none; margin: .5rem 0 0;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease-out);
}
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.main-navigation .sub-menu a { padding: .5rem .8rem; border-radius: var(--radius-sm); display: block; font-weight: 500; }
.main-navigation .sub-menu a::after { display: none; }

body.is-rtl .main-navigation .sub-menu { left: auto; right: 0; }

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	background: none; border: 0;
	padding: .5rem; margin: 0;
}
.menu-toggle-bars { display: inline-flex; flex-direction: column; gap: 5px; }
.menu-toggle-bars span {
	display: block; width: 26px; height: 3px; background: var(--color-ink); border-radius: 2px;
	transition: all .25s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.btn-donate { flex-shrink: 0; }

/* ----- BREADCRUMBS ----- */
.breadcrumbs {
	background: var(--color-mist);
	padding: .9rem 0;
	font-size: .85rem;
	color: var(--color-text-muted);
}
.breadcrumbs .sep { margin: 0 .4rem; color: var(--color-border); }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-teal); }
.breadcrumbs .current { color: var(--color-ink); font-weight: 600; }

/* ----- HERO ----- */
.hero {
	position: relative;
	padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
	background: linear-gradient(135deg, #EEF2F8 0%, #FDF5E6 100%);
	overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
	position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
}
.hero-blob-1 { width: 500px; height: 500px; background: var(--color-teal-light); top: -150px; right: -100px; }
.hero-blob-2 { width: 400px; height: 400px; background: var(--color-orange-light); bottom: -150px; left: -100px; }
body.is-rtl .hero-blob-1 { right: auto; left: -100px; }
body.is-rtl .hero-blob-2 { left: auto; right: -100px; }

.hero-inner {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 1.3fr 1fr;
	gap: 3rem; align-items: center;
}
.hero-title { margin-bottom: 1.25rem; color: var(--color-ink); }
.hero-subtitle { font-size: 1.15rem; color: var(--color-text); max-width: 560px; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-ctas .btn-ghost { background: rgba(27,58,87,.08); color: var(--color-teal-dark); border-color: var(--color-teal); }
.hero-ctas .btn-ghost:hover { background: var(--color-teal); color: #fff; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 360px; }
.hero-photo {
	width: 100%; max-width: 520px;
	aspect-ratio: 4/5;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	transform: rotate(-1.5deg);
	position: relative;
}
.hero-photo::after {
	content: ''; position: absolute; inset: 0;
	border-radius: var(--radius-lg);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.is-rtl .hero-photo { transform: rotate(1.5deg); }

.hero-visual-card {
	position: relative;
	width: 320px; height: 320px;
	background: #fff; border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-lg);
	animation: morph 12s ease-in-out infinite;
}
.hero-visual-card img { position: relative; z-index: 2; }
.hero-visual-ring {
	position: absolute; inset: -40px;
	border: 2px dashed rgba(27,58,87,.3); border-radius: 50%;
	animation: spin 30s linear infinite;
}
.hero-visual-ring-2 { inset: -80px; border-color: rgba(199,138,46,.35); animation-duration: 45s; animation-direction: reverse; }

@keyframes morph {
	0%,100% { border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; }
	50%     { border-radius: 55% 45% 45% 55% / 40% 55% 45% 60%; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- IMPACT ----- */
.impact { padding: 3rem 0; margin-top: -3rem; position: relative; z-index: 2; }
.impact-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.25rem;
	background: #fff;
	padding: 2rem clamp(1rem, 3vw, 2rem);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}
.impact-card { text-align: center; padding: 1rem; }
.impact-value {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 800;
	color: var(--color-teal);
	line-height: 1;
	margin-bottom: .35rem;
}
.impact-label { color: var(--color-text-muted); font-weight: 500; font-size: .95rem; }

/* ----- INTRO ----- */
.intro { padding: clamp(1.8rem, 4vw, 2.8rem) 0; }
.intro-inner {
	display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 4rem); align-items: center;
}
.intro-values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.intro-values li {
	background: var(--color-mist);
	padding: 1.25rem 1.5rem;
	border-radius: var(--radius-md);
	border-inline-start: 4px solid var(--color-orange);
	list-style: none;
}
.intro-values strong { display: block; color: var(--color-ink); margin-bottom: .2rem; font-weight: 700; }
.intro-values span { font-size: .95rem; color: var(--color-text-muted); }
.intro-values { list-style: none; padding: 0; }

/* ----- SECTION HEADER ----- */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header h2 { margin-bottom: .6rem; }
.section-header p { color: var(--color-text-muted); font-size: 1.1rem; }
.section-header-center { text-align: center; }
.section-footer { text-align: center; margin-top: 2.5rem; }

/* ----- PROGRAMS ----- */
.programs {
	padding: clamp(1.8rem, 4vw, 2.8rem) 0;
	background: var(--color-mist);
}
.programs-grid {
	display: grid; gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.program-card {
	background: #fff; border-radius: var(--radius-lg); padding: 2rem;
	box-shadow: var(--shadow-sm);
	transition: all .3s var(--ease-out);
	position: relative; overflow: hidden;
}
.program-card::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
	background: linear-gradient(90deg, var(--color-teal), var(--color-orange));
	transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
body.is-rtl .program-card::before { transform-origin: right; }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card:hover::before { transform: scaleX(1); }

.program-icon {
	width: 64px; height: 64px; border-radius: var(--radius-md);
	background: linear-gradient(135deg, rgba(27,58,87,.12), rgba(199,138,46,.18));
	display: flex; align-items: center; justify-content: center;
	font-size: 2rem; margin-bottom: 1.25rem;
}
.program-thumb { display: block; margin: -2rem -2rem 1.5rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; position: relative; }
.program-thumb img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform .5s var(--ease-out); }
.program-card:hover .program-thumb img { transform: scale(1.04); }
.program-thumb-badge {
	position: absolute; top: 1rem; inset-inline-start: 1rem;
	width: 46px; height: 46px; border-radius: 50%;
	background: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 1.3rem;
	box-shadow: var(--shadow-sm);
}
.program-title { margin-bottom: .6rem; }
.program-title a { color: var(--color-ink); }
.program-title a:hover { color: var(--color-teal); }
.program-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.meta-chip {
	display: inline-flex; align-items: center; gap: .3rem;
	background: var(--color-mist); padding: .25rem .7rem; border-radius: var(--radius-pill);
	font-size: .8rem; color: var(--color-text-muted); font-weight: 500;
}
.program-desc { color: var(--color-text-muted); margin-bottom: 1.25rem; }
.program-link { color: var(--color-teal); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.program-link:hover { color: var(--color-orange); }
.program-link:hover .arrow { transform: translateX(4px); }
body.is-rtl .program-link:hover .arrow { transform: translateX(-4px); }
.program-link .arrow { transition: transform .25s var(--ease-out); }

/* ----- TESTIMONIALS ----- */
.testimonials { padding: clamp(1.8rem, 4vw, 2.8rem) 0; background: var(--color-mist); }
.testimonials-grid {
	display: grid; gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.testimonial-card {
	background: #fff;
	padding: 2.2rem 2rem 1.75rem;
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	position: relative;
}
.testimonial-card::before {
	content: '';
	position: absolute; top: 0; left: 0; bottom: 0;
	width: 4px;
	background: var(--color-orange);
	border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
body.is-rtl .testimonial-card::before { left: auto; right: 0; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.testimonial-card blockquote {
	margin: 0 0 1.25rem;
	padding: 0;
	border: 0;
	color: var(--color-ink);
	font-size: 1.02rem;
	line-height: 1.65;
}
.testimonial-card footer {
	display: flex; flex-direction: column; gap: .2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-border);
}
.testimonial-card footer strong { color: var(--color-ink); font-weight: 700; display: block; }
.testimonial-card footer span { color: var(--color-text-muted); font-size: .9rem; display: block; }

/* ----- STORIES ----- */
.stories { padding: clamp(1.8rem, 4vw, 2.8rem) 0; }
.stories-grid {
	display: grid; gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.story-card {
	background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
	padding: 2.5rem 2rem 2rem; position: relative;
	transition: all .3s var(--ease-out);
	overflow: hidden;
}
.story-card:hover { border-color: var(--color-teal-light); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.story-card--photo { padding: 0; display: flex; flex-direction: column; }
.story-photo { display: block; aspect-ratio: 4/3; overflow: hidden; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.story-card--photo:hover .story-photo img { transform: scale(1.04); }
.story-card--photo .story-body { padding: 2.5rem 2rem 2rem; position: relative; flex: 1; }
.story-quote-mark {
	position: absolute; top: -10px; inset-inline-start: 1.5rem;
	font-family: Georgia, serif; font-size: 6rem; line-height: 1; color: var(--color-orange); opacity: .35;
}
.story-card--photo .story-quote-mark { top: -5px; }
.story-quote {
	font-style: italic;
	font-size: 1.05rem;
	color: var(--color-text);
	margin: 0 0 1.5rem;
	position: relative; z-index: 1;
	border: 0; padding: 0;
}
body.is-rtl .story-quote { font-style: normal; font-weight: 500; }
.story-person strong { display: block; color: var(--color-ink); font-weight: 700; margin-bottom: .1rem; }
.story-person span { color: var(--color-text-muted); font-size: .9rem; }
.story-link { margin-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--color-teal); font-weight: 600; font-size: .9rem; }
.story-link:hover { color: var(--color-orange); }

/* ----- DONATE CTA ----- */
.donate-cta {
	background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
	color: #fff;
	padding: clamp(2rem, 5vw, 3.2rem) 0;
	position: relative;
	overflow: hidden;
}
.donate-cta::before {
	content: ''; position: absolute; top: -200px; inset-inline-end: -150px;
	width: 500px; height: 500px; border-radius: 50%;
	background: radial-gradient(circle, rgba(199,138,46,.35), transparent 70%);
}
.donate-cta-inner {
	display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center;
	position: relative; z-index: 1;
}
.donate-cta h2 { color: #fff; }
.donate-cta p { color: rgba(255,255,255,.9); font-size: 1.1rem; }
.donate-cta-amounts { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.donate-amount {
	background: rgba(255,255,255,.1);
	color: #fff;
	padding: 1rem 1.6rem;
	border-radius: var(--radius-md);
	font-weight: 700;
	font-size: 1.2rem;
	border: 2px solid rgba(255,255,255,.2);
	transition: all .25s var(--ease-out);
}
.donate-amount:hover { background: var(--color-orange); border-color: var(--color-orange); color: #fff; transform: translateY(-3px); }
.donate-cta-btn { background: #fff !important; color: var(--color-teal) !important; border-color: #fff !important; }
.donate-cta-btn:hover { background: var(--color-orange) !important; color: #fff !important; border-color: var(--color-orange) !important; }

/* ----- NEWS ----- */
.news { padding: clamp(3rem, 8vw, 5rem) 0; background: var(--color-mist); }
.news-grid {
	display: grid; gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.news-card {
	background: #fff; border-radius: var(--radius-lg); overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: all .3s var(--ease-out);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-thumb-placeholder {
	background: linear-gradient(135deg, var(--color-teal-light) 0%, var(--color-orange-light) 100%);
}
.news-body { padding: 1.5rem 1.75rem 1.75rem; }
.news-meta { color: var(--color-text-muted); font-size: .85rem; margin-bottom: .5rem; }
.news-title { font-size: 1.25rem; margin-bottom: .6rem; }
.news-title a { color: var(--color-ink); }
.news-title a:hover { color: var(--color-teal); }
.news-excerpt { color: var(--color-text-muted); margin-bottom: 1rem; }
.news-link { color: var(--color-teal); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.news-link:hover { color: var(--color-orange); }

/* ----- PARTNERS ----- */
.partners { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.partners-strip {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1.25rem; align-items: center;
}
.partner-placeholder {
	background: var(--color-mist); border: 1px dashed var(--color-border);
	padding: 1.6rem 1rem; border-radius: var(--radius-md);
	text-align: center; color: var(--color-text-muted);
	font-size: .9rem; font-weight: 600;
	transition: all .25s var(--ease-out);
}
.partner-placeholder:hover { border-color: var(--color-teal); background: #fff; }

/* ----- CTA STRIP (newsletter) ----- */
.cta-strip {
	background: var(--color-ink);
	color: #fff;
	padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.cta-strip-inner {
	display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.cta-strip h3 { color: #fff; margin: 0 0 .3rem; }
.cta-strip p { color: rgba(255,255,255,.7); margin: 0; }
.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form input {
	padding: .9rem 1.2rem; border: 0; border-radius: var(--radius-pill);
	background: rgba(255,255,255,.1); color: #fff;
	min-width: 280px; font-size: .95rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { outline: 2px solid var(--color-orange); outline-offset: 2px; background: rgba(255,255,255,.15); }

/* ----- SITE FOOTER ----- */
.site-footer {
	background: linear-gradient(180deg, #132A44 0%, #0A1F33 100%);
	color: rgba(255,255,255,.75);
	padding: 4rem 0 0;
}
.site-footer-top {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
	gap: 3rem; padding-bottom: 3rem;
}
.footer-about .site-logo img { height: 140px; }
.footer-tagline { margin: 1.5rem 0; font-size: .95rem; line-height: 1.75; }
.footer-social { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.footer-social-link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	background: rgba(255,255,255,.1);
	color: rgba(255,255,255,.9);
	border-radius: 50%;
	transition: background .2s, color .2s, transform .2s;
	font-size: .82rem;
	letter-spacing: .04em;
	transition: all .25s var(--ease-out);
}
.footer-social-link:hover { background: var(--color-orange); color: #fff; transform: translateY(-2px); }

/* Topbar social icons */
.topbar-social { display: inline-flex; align-items: center; gap: .35rem; }
.topbar-social-link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px;
	color: rgba(255,255,255,.75);
	border-radius: 50%;
	transition: color .2s, background .2s;
}
.topbar-social-link:hover { color: var(--color-orange-light); background: rgba(255,255,255,.08); }

/* WhatsApp link in topbar */
.topbar-whatsapp { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-whatsapp .wa-icon { display: inline-flex; color: #25D366; }

/* Language switcher: slightly bigger pill, always visible */
.lang-link {
	padding: .25rem .6rem;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(255,255,255,.2);
	font-size: .78rem;
	transition: background .15s, color .15s, border-color .15s;
}
.lang-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.lang-link.is-active { background: #fff; color: var(--color-teal-dark); border-color: #fff; }

/* Page fade transition when switching language */
body.is-switching-lang .site-main { opacity: 0; transition: opacity .25s ease-out; }

/* Floating WhatsApp button */
.wa-float {
	position: fixed;
	bottom: 24px;
	inset-inline-end: 24px;
	width: 60px; height: 60px;
	background: #25D366;
	border-radius: 50%;
	display: inline-flex;
	align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,.45);
	z-index: 9000;
	transition: transform .2s var(--ease-out), box-shadow .2s;
	animation: waPulse 2.2s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.wa-float svg { pointer-events: none; }
@keyframes waPulse {
	0%   { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,.45); }
	70%  { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 18px rgba(37,211,102,0); }
	100% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 480px) {
	.wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
	.wa-float svg { width: 26px; height: 26px; }
}

/* Hero compactness — tighten the visual card so the hero fits in one viewport */
.hero-visual-card { width: 240px !important; height: 240px !important; }
.hero-photo img { max-height: 420px; object-fit: cover; }

/* === HOME: Where we work country strip === */
.where-we-work { padding: 2.2rem 0; background: var(--color-mist); }
.country-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.1rem;
	margin: 2rem 0 1.5rem;
}
.country-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.3rem 1.3rem 1.4rem;
	position: relative;
	transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.country-card::before {
	content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
	background: var(--color-orange); border-radius: var(--radius-md) var(--radius-md) 0 0;
	transform: scaleX(.35); transform-origin: left; transition: transform .35s var(--ease-out);
}
.country-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.country-card:hover::before { transform: scaleX(1); }
.country-card h3 { font-family: var(--font-display); color: var(--color-ink); margin: 0 0 .4rem; font-size: 1.25rem; }
.country-card p { font-size: .92rem; color: var(--color-text); margin: 0 0 .9rem; line-height: 1.55; }
.country-meta { font-size: .8rem; font-weight: 600; color: var(--color-orange-dark); letter-spacing: .01em; }
body.is-rtl .country-card::before { transform-origin: right; }

/* === HOME: Transparency strip === */
.transparency { padding: 2.4rem 0; background: linear-gradient(180deg, #FFF 0%, var(--color-mist) 100%); }
.transparency-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.4rem; margin: 2rem 0 1.5rem;
}
.transparency-card {
	background: #fff;
	border-radius: var(--radius-lg);
	padding: 2rem 1.6rem;
	text-align: center;
	border-top: 4px solid var(--color-orange);
	box-shadow: var(--shadow-sm);
}
.transparency-value {
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 5vw, 3.6rem);
	font-weight: 800;
	line-height: 1;
	color: var(--color-teal);
	margin-bottom: .6rem;
}
.transparency-value .unit { font-size: .55em; color: var(--color-orange); margin-inline-start: .1em; font-weight: 700; }
.transparency-label { font-size: .95rem; color: var(--color-text); line-height: 1.55; }
.transparency-note {
	text-align: center; color: var(--color-text-muted);
	font-size: .88rem; max-width: 740px; margin: 1.5rem auto 0;
}

/* Job cards (Jobs page) */
.job-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.8rem 2rem;
	margin: 0 0 1.4rem;
	box-shadow: var(--shadow-sm);
}
.job-card--highlight {
	border: 2px solid var(--color-orange);
	border-inline-start: 6px solid var(--color-orange);
	background: linear-gradient(180deg, #FFF 0%, #FFFCF5 100%);
}
.job-card h3 { margin: .3rem 0 .4rem; color: var(--color-ink); font-family: var(--font-display); }
.job-meta { color: var(--color-text-muted); font-size: .9rem; margin: 0 0 1rem; }
.job-meta strong { color: var(--color-text); }
.job-card p { margin-bottom: .8rem; }
.job-card ul { padding-inline-start: 1.2em; margin: .5rem 0 1rem; }
.job-card ul li { margin-bottom: .4rem; }
.job-badge {
	display: inline-block;
	background: var(--color-burgundy); color: #fff;
	padding: .2rem .7rem;
	border-radius: var(--radius-pill);
	font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* Hiring popup */
.hiring-popup {
	position: fixed; inset: 0;
	background: rgba(15, 42, 68, .55);
	display: none;
	align-items: center; justify-content: center;
	padding: 1rem;
	z-index: 9999;
	opacity: 0;
	transition: opacity .25s ease-out;
}
.hiring-popup.is-open { display: flex; opacity: 1; }
.hiring-popup-panel {
	background: var(--color-white);
	max-width: 560px; width: 100%;
	border-radius: var(--radius-lg);
	padding: 2.2rem 2rem;
	position: relative;
	box-shadow: 0 32px 80px rgba(0,0,0,.35);
	border-top: 6px solid var(--color-orange);
}
.hiring-popup-close {
	position: absolute; top: .6rem; inset-inline-end: .9rem;
	width: 36px; height: 36px; border: 0; background: transparent;
	font-size: 1.8rem; line-height: 1; color: var(--color-text-muted);
	cursor: pointer; border-radius: 50%;
}
.hiring-popup-close:hover { background: var(--color-mist); color: var(--color-ink); }
.hiring-popup-badge {
	display: inline-block; background: var(--color-burgundy); color: #fff;
	padding: .3rem .8rem; border-radius: var(--radius-pill);
	font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	margin-bottom: 1rem;
}
.hiring-popup h3 { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.3; margin: 0 0 .9rem; color: var(--color-ink); }
.hiring-popup-lead { color: var(--color-text); margin-bottom: 1.2rem; }
.hiring-popup-roles { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .7rem; }
.hiring-popup-roles li { background: var(--color-mist); padding: .8rem 1rem; border-radius: var(--radius-sm); border-inline-start: 3px solid var(--color-orange); }
.hiring-popup-roles strong { display: block; color: var(--color-ink); margin-bottom: .2rem; font-size: .95rem; }
.hiring-popup-roles span { font-size: .85rem; color: var(--color-text-muted); }
.hiring-popup-ctas { display: flex; gap: .7rem; flex-wrap: wrap; }
body.is-rtl .hiring-popup h3,
body.is-rtl .hiring-popup-lead,
body.is-rtl .hiring-popup-roles strong,
body.is-rtl .hiring-popup-roles span { font-family: var(--font-arabic); }

.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; font-family: var(--font-display); }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: .6rem; }
.footer-menu a { color: rgba(255,255,255,.75); font-size: .95rem; }
.footer-menu a:hover { color: var(--color-orange-light); padding-inline-start: .3rem; }

.footer-contact p { margin: 0 0 .5rem; font-size: .95rem; }
.footer-contact a { color: rgba(255,255,255,.75); }
.footer-contact a:hover { color: var(--color-orange-light); }

.site-footer-bottom {
	border-top: 1px solid rgba(255,255,255,.1);
	padding: 1.5rem 0;
	font-size: .85rem;
}
.site-footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.copyright { margin: 0; color: rgba(255,255,255,.55); }
.credits { margin: 0; color: rgba(255,255,255,.55); }
.credits a { color: rgba(255,255,255,.75); }
.credits a:hover { color: var(--color-orange-light); }

/* ----- PAGE HERO (interior pages) ----- */
.page-hero {
	background: linear-gradient(135deg, var(--color-mist) 0%, #FDF5E6 100%);
	padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.page-hero-title { margin-bottom: .6rem; }
.page-hero-sub { font-size: 1.15rem; color: var(--color-text-muted); max-width: 720px; margin: 0; }
.page-hero-meta { color: var(--color-text-muted); display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }

/* ----- PAGE / SINGLE ----- */
.page-grid { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; padding: clamp(2.5rem,5vw,4rem) 0; }
.page-grid > .page-main { min-width: 0; }
.page-main > .page-featured { margin-bottom: 2rem; border-radius: var(--radius-lg); overflow: hidden; }

.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.3rem; font-size: 1.05rem; }
.entry-content img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.entry-content blockquote {
	border-inline-start: 4px solid var(--color-orange);
	background: var(--color-mist);
	padding: 1.25rem 1.75rem; margin: 2rem 0;
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	font-style: italic; color: var(--color-ink);
}
body.is-rtl .entry-content blockquote { border-radius: var(--radius-md) 0 0 var(--radius-md); font-style: normal; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(27,58,87,.3); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--color-orange); }

.entry-cta {
	margin-top: 3rem; padding: 2.5rem; background: var(--color-mist); border-radius: var(--radius-lg); text-align: center;
	border: 1px solid var(--color-border);
}
.entry-cta h3 { margin-bottom: .5rem; }
.entry-cta p { color: var(--color-text-muted); margin-bottom: 1.5rem; }

.posts-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.post-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: all .3s var(--ease-out); }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 1.5rem; }
.post-meta { color: var(--color-text-muted); font-size: .85rem; margin-bottom: .5rem; }
.post-type { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--color-orange); font-size: .75rem; }
.post-title { font-size: 1.2rem; margin-bottom: .6rem; }
.post-title a { color: var(--color-ink); }
.post-title a:hover { color: var(--color-teal); }
.post-excerpt { color: var(--color-text-muted); margin-bottom: 1rem; }

/* ----- WIDGETS ----- */
.widget { background: var(--color-mist); padding: 1.5rem; border-radius: var(--radius-md); margin-bottom: 1.25rem; }
.widget-title { font-size: 1rem; margin-bottom: 1rem; color: var(--color-ink); text-transform: uppercase; letter-spacing: .08em; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: .4rem 0; border-bottom: 1px dashed var(--color-border); }
.widget ul li:last-child { border-bottom: 0; }

/* ----- PAGINATION ----- */
.pagination, .navigation.pagination { margin-top: 3rem; display: flex; justify-content: center; }
.pagination .nav-links, .navigation .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
	color: var(--color-ink); font-weight: 600; padding: 0 .9rem;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--color-teal); color: #fff; border-color: var(--color-teal); }

/* ----- SEARCH FORM ----- */
.search-form { display: inline-flex; max-width: 540px; width: 100%; gap: .5rem; }
.search-field {
	flex: 1;
	padding: .85rem 1.2rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill);
	font-size: 1rem; background: #fff;
}
.search-field:focus { outline: 2px solid var(--color-teal); outline-offset: 2px; border-color: transparent; }

/* ----- COMMENTS ----- */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 1.25rem 0; border-bottom: 1px solid var(--color-border); }

/* ----- RESPONSIVE ----- */
@media (max-width: 960px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-visual { order: -1; min-height: 240px; }
	.hero-visual-card { width: 240px; height: 240px; }
	.intro-inner { grid-template-columns: 1fr; }
	.donate-cta-inner { grid-template-columns: 1fr; }
	.site-footer-top { grid-template-columns: repeat(2, 1fr); }
	.cta-strip-inner { grid-template-columns: 1fr; }
	.newsletter-form input { min-width: 0; flex: 1; }
	.page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	.menu-toggle { display: inline-flex; order: 2; }
	.btn-donate { order: 3; padding: .55rem 1rem; font-size: .85rem; }
	.main-navigation {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; box-shadow: var(--shadow-md);
		order: 4; flex: 1 0 100%;
	}
	.main-navigation.is-open { display: block; }
	.main-navigation ul.menu, .main-navigation #primary-menu {
		flex-direction: column; gap: 0; padding: 1rem 0;
	}
	.main-navigation li { width: 100%; }
	.main-navigation a { padding: .85rem var(--gutter); display: block; border-bottom: 1px solid var(--color-border); }
	.main-navigation a::after { display: none; }
	.main-navigation .sub-menu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: var(--color-mist); margin: 0; padding: 0; border-radius: 0; }

	/* Topbar on mobile — keep WhatsApp + lang switcher visible, drop email */
	.topbar { font-size: .78rem; }
	.topbar-inner { flex-wrap: wrap; gap: .5rem; padding: .4rem 0; }
	.topbar-contact { gap: .6rem; flex: 1; min-width: 0; }
	.topbar-contact a:first-child:not(.topbar-whatsapp) { display: none; } /* hide email label */
	.topbar-whatsapp span:last-child { font-size: .8rem; }
	.topbar-right { gap: .5rem; }
	.topbar-social { gap: .15rem; }
	.topbar-social-link { width: 24px; height: 24px; }
	.topbar-social-link svg { width: 14px; height: 14px; }
	.lang-link { padding: .18rem .5rem; font-size: .7rem; }

	.site-footer-top { grid-template-columns: 1fr; gap: 2rem; }
	.hero-visual-card { width: 200px; height: 200px; }
	.hero-ctas { flex-direction: column; align-items: stretch; }
	.hero-ctas .btn { justify-content: center; }
	.donate-cta-amounts { justify-content: center; }
	.donate-amount { padding: .75rem 1.1rem; font-size: 1rem; flex: 1 0 calc(50% - .4rem); text-align: center; }
	.site-footer-bottom-inner { flex-direction: column; text-align: center; }

	.programs-grid, .stories-grid, .testimonials-grid { grid-template-columns: 1fr !important; }
	.hero { padding: 2rem 0 3rem; }
	.hero-title { font-size: clamp(1.6rem, 6vw, 2rem); }
	.hero-subtitle { font-size: 1rem; }

	/* Hiring popup mobile fit */
	.hiring-popup-panel { padding: 1.6rem 1.2rem; max-height: 90vh; overflow-y: auto; }
	.hiring-popup h3 { font-size: 1.15rem; }
	.hiring-popup-roles li { padding: .7rem .8rem; }
	.hiring-popup-ctas .btn { width: 100%; }

	/* Job cards padding */
	.job-card { padding: 1.3rem 1.2rem; }
	.job-card h3 { font-size: 1.1rem; }
	.job-meta { font-size: .8rem; }

	/* Site header sticky offset — topbar grew a bit on mobile */
	.site-header { top: 2.2rem; }
}

@media (max-width: 480px) {
	.topbar-inner { padding: .35rem 0; }
	.site-logo img, .custom-logo { height: 46px; }
	.impact-grid { grid-template-columns: repeat(2, 1fr); }
	.hero-title { font-size: 1.6rem; line-height: 1.2; }
	.btn-donate { padding: .5rem .8rem; font-size: .8rem; }
}

/* ----- PRINT ----- */
@media print {
	.topbar, .site-header, .site-footer, .cta-strip, .donate-cta, .hero-visual, .menu-toggle, .btn-donate { display: none !important; }
	body { color: #000; background: #fff; }
}

/* ----- RTL FINE-TUNING ----- */
body.is-rtl .arrow { display: inline-block; transform: scaleX(-1); }
body.is-rtl .btn .arrow { transform: scaleX(-1); }
body.is-rtl .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
body.is-rtl .program-link .arrow, body.is-rtl .program-link:hover .arrow { transform: scaleX(-1); }
body.is-rtl .program-link:hover .arrow { transform: scaleX(-1) translateX(4px); }
body.is-rtl .main-navigation a::after { transform-origin: center; }
