*, *::before, *::after { box-sizing: border-box; }
/* Tiseer theme, Direction D "Tiseer Clear". Ported from the design board (twt.css .th-d / .d-*).
   Logical properties only, so dir="rtl" mirrors every section. Mobile breakpoint: 781px (same as core columns). */

:root {
	--bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F3EFFA;
	--primary: #533590; --on-primary: #FFFFFF; --secondary: #12224F;
	--text: #1E1A33; --muted: #5E5873; --line: #E6E1F0; --field-line: #8E86A3;
	--success: #533590; --track: #E6E1F0; --focus: #07317E; --link: #533590;
	--hero-bg: #F1EDF9; --hero-h: #12224F; --hero-muted: #4E4866; --band-bg: #F1EDF9; --notice-bg: #F1EDF9;
	--footer-bg: #12224F; --footer-fg: #FFFFFF; --footer-muted: #C9CFE3; --footer-line: rgba(255,255,255,.16);
	--r-card: 14px; --r-btn: 10px; --r-field: 10px;
	--shadow: 0 1px 2px rgba(18,34,79,.05), 0 8px 24px rgba(18,34,79,.08);
	--card-border: 1px solid #E6E1F0;
	--ph-bg: #ECE6F6;
	--sand: #F7E1C8; --sand-2: #EFC79C; --script: #6B5A8E; --script-line: #E68D3B;
	--tiseer-font: var(--wp--preset--font-family--jakarta);
	--ic-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--ic-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.5-7 10-4-1.5-7-5.5-7-10V6l7-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
	--ic-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
	--ic-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3'/%3E%3C/svg%3E");
	--ic-bank: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 20h18'/%3E%3C/svg%3E");
	--ic-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-8M22 20H2'/%3E%3C/svg%3E");
	--ic-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E");
	--ic-flag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4h11l-2 4 2 4H5'/%3E%3C/svg%3E");
	--ic-share: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E");
	--ic-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9s-1.3 6.3-3.8 9c-2.5-2.7-3.8-5.7-3.8-9S9.5 5.7 12 3z'/%3E%3C/svg%3E");
	--ic-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
	--ic-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	--ic-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E");
}
html[lang^="ar"] { --tiseer-font: var(--wp--preset--font-family--plex); }
body { -webkit-font-smoothing: antialiased; }
html[lang^="ar"] body { font-size: 18px; line-height: 1.8; }
html[lang^="ar"] body, html[lang^="ar"] body * { letter-spacing: 0 !important; }
html[lang^="ar"] :where(h1, h2, h3, h4) { line-height: 1.5; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(p, li) { max-width: 70ch; }
img { height: auto; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.skip-link.screen-reader-text:focus { background: #fff; color: var(--text); padding: .75rem 1rem; z-index: 100000; }

/* Icons drawn with CSS masks (colour = currentColor). Direction-sensitive ones mirror in RTL. */
.d-ic::before, .d-link-arrow a::after, .d-links a::after, .d-trust-in li::before {
	content: ""; display: inline-block; inline-size: 20px; block-size: 20px; flex: none; background: currentColor;
	-webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
[dir="rtl"] .d-link-arrow a::after, [dir="rtl"] .d-links a::after { transform: scaleX(-1); }

/* Buttons */
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 48px; }
.wp-block-button.d-lg .wp-block-button__link { min-block-size: 56px; padding-inline: 30px; font-size: 18px; }
.wp-block-button.is-style-outline .wp-block-button__link { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--surface-2); }
.wp-block-button.d-white .wp-block-button__link { background: #fff; color: var(--primary); border-color: #fff; }
.d-link-arrow a { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; font-weight: 700; color: var(--link); text-decoration: none; --ic: var(--ic-arrow); }
.d-link-arrow a:hover { text-decoration: underline; }
.d-eyebrow { font-size: 14px; font-weight: 700; color: var(--primary); margin-block-end: 10px !important; }
html[lang^="en"] .d-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }

/* ---------- Header ---------- */
.hdr { background: var(--surface); border-block-end: 1px solid var(--line); }
.hdr-in { min-block-size: 80px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-block-size: 44px; color: var(--text); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark { display: block; block-size: 48px; inline-size: auto; flex: none; }
.logo-word { display: flex; flex-direction: column; line-height: 1.15; }
.logo-word b { font-size: 20px; font-weight: 700; color: #07317E; }
.logo-word small { font-size: 12px; color: var(--muted); }
.hdr .wp-block-navigation { margin-inline-start: auto; }
.hdr .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 14px !important; border-radius: var(--r-btn); color: var(--text); text-decoration: none; font-weight: 500; font-size: 16px; }
.hdr .wp-block-navigation-item__content:hover { background: var(--surface-2); text-decoration: none; }
.hdr .current-menu-item > .wp-block-navigation-item__content, .hdr .wp-block-navigation-item__content[aria-current="page"] { color: var(--primary); background: var(--surface-2); font-weight: 700; }
.hdr .wp-block-navigation__container { gap: 2px !important; }
.hdr-actions { gap: 12px; }
.switch { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 44px; padding-inline: 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; --ic: var(--ic-globe); }
.switch::before { content: ""; inline-size: 20px; block-size: 20px; flex: none; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.switch:hover { border-color: var(--field-line); text-decoration: none; }
.switch .short { display: none; }
.switch[lang="ar"] { font-family: var(--wp--preset--font-family--plex); }
.switch[lang="en"] { font-family: var(--wp--preset--font-family--jakarta); }

/* ---------- Home: hero ---------- */
.d-hero { background-color: var(--hero-bg); background-image: radial-gradient(ellipse 55% 85% at 100% 0, rgba(255,255,255,.65) 0 58%, transparent 58.5%); }
[dir="rtl"] .d-hero { background-image: radial-gradient(ellipse 55% 85% at 0 0, rgba(255,255,255,.65) 0 58%, transparent 58.5%); }
.d-hero-in { gap: 40px !important; }
.d-hero h1 { color: var(--hero-h); max-width: 12em; }
html[lang^="en"] .d-hero h1 { letter-spacing: -.02em; }
html[lang^="ar"] .d-hero h1 { font-size: clamp(2rem, 4.6vw, 3.375rem); line-height: 1.35; }
.d-lead { margin-block-start: 16px !important; font-size: 20px; color: var(--hero-muted); max-width: 34em; }
.d-script { font-family: var(--wp--preset--font-family--caveat); font-size: 38px; font-weight: 600; line-height: 1.1; color: var(--script); text-align: center; transform: rotate(-6deg); margin-block-start: 16px; }
html[lang^="ar"] .d-script { font-family: var(--wp--preset--font-family--aref); font-size: 36px; font-weight: 400; line-height: 1.6; transform: rotate(4deg); }
.d-script::after { content: ""; display: block; inline-size: 150px; block-size: 16px; margin: 8px auto 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 16' fill='none' stroke='%23E68D3B' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M3 11c22-7 48-9 72-6s46 4 72-3'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Photo band with floating card */
.d-photo { position: relative; }
.d-photo > .wp-block-image { margin: 0; }
.d-photo > .wp-block-image img { display: block; inline-size: 100%; block-size: 360px; object-fit: cover; }
.d-photo-over { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding-block-end: 28px; pointer-events: none; }
.d-float { inline-size: 330px; padding: 22px 24px !important; background: var(--surface); border-radius: var(--r-card); box-shadow: 0 12px 32px rgba(18,34,79,.16); pointer-events: auto; }
.d-float h2 { font-size: 22px; }
.d-checks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.d-checks li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.d-checks li::before { content: ""; inline-size: 24px; block-size: 24px; flex: none; border-radius: 999px; background: var(--primary) center / 24px 24px no-repeat
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 12.5l3 3L16.5 9'/%3E%3C/svg%3E"); }

/* Trust strip */
.d-trust { border-block-end: 1px solid var(--line); }
.d-trust-in { list-style: none; margin: 0 auto; padding-block: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1200px; }
.d-trust-in li { display: flex; align-items: center; justify-content: center; gap: 12px; min-block-size: 48px; font-size: 15px; font-weight: 500; max-width: none; }
.d-trust-in li + li { border-inline-start: 1px solid var(--line); }
.d-trust-in li::before { inline-size: 24px; block-size: 24px; color: var(--primary); }
.d-trust-in li:nth-child(1) { --ic: var(--ic-shield); }
.d-trust-in li:nth-child(2) { --ic: var(--ic-mail); }
.d-trust-in li:nth-child(3) { --ic: var(--ic-doc); }

/* Section heads */
.d-sec-head { display: flex !important; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.d-sec-head > * { margin: 0 !important; }
.d-sub { color: var(--muted); max-width: 40em; }

/* Campaign cards (rendered by the tiseer/campaign-cards block) */
.d-cause { display: grid !important; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.d-cause > * { margin: 0 !important; max-width: none !important; }
.d-give-wrap { position: sticky; top: 24px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 18px; }
.pill { min-block-size: 44px; padding-inline: 18px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.d-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block-start: 24px; }
.d-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; block-size: 100%; background: var(--surface); border: var(--card-border); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.card[hidden] { display: none; }
.card .ph { display: block; block-size: 200px; background: var(--ph-bg); }
.card .ph img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.card-cat { font-size: 13px; font-weight: 700; color: var(--primary); margin: 0; }
html[lang^="en"] .card-cat { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.card h3 { font-size: 22px; margin: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card-line { font-size: 15px; color: var(--muted); margin: 0; }
.card-foot { display: flex; flex-direction: column; gap: 12px; margin-block-start: auto; padding-block-start: 8px; }
.bar { block-size: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar > span { display: block; block-size: 100%; border-radius: inherit; background: var(--success); }
.bar-lg { block-size: 14px; }
.meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--text); font-size: 16px; font-weight: 700; }
.meta .pct { font-weight: 700; color: var(--success); white-space: nowrap; }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 0; padding: 0; list-style: none; }
.stages li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; line-height: 1.3; color: var(--muted); text-align: center; }
.stages li::before { content: ""; position: absolute; top: 7px; inset-inline-start: 50%; inline-size: 100%; block-size: 2px; background: var(--track); }
.stages li:last-child::before { display: none; }
.stages li.line::before { background: var(--primary); }
.stages i { position: relative; z-index: 1; inline-size: 16px; block-size: 16px; border-radius: 999px; border: 2px solid var(--surface); background: var(--track); }
.stages li.done i { background: var(--primary); }
.stages li.done { color: var(--text); font-weight: 700; }
.d-card-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 48px; padding-inline: 22px; border-radius: var(--r-btn); border: 2px solid var(--primary); background: var(--primary); color: #fff; font: inherit; font-weight: 700; font-size: 16px; line-height: 1.25; text-decoration: none; cursor: pointer; }
.d-btn:hover { filter: brightness(.95); color: #fff; text-decoration: none; }
.d-btn.lg { min-block-size: 56px; padding-inline: 30px; font-size: 18px; }
.d-btn.block { display: flex; inline-size: 100%; }
.d-btn.ghost { background: transparent; color: var(--primary); }
.d-btn.ghost:hover { background: var(--surface-2); color: var(--primary); }
.d-empty { padding: 24px; border: 1.5px dashed var(--field-line); border-radius: var(--r-card); color: var(--muted); }

/* Give box */
.d-give-box { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.d-give-box h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 0; --ic: var(--ic-heart); }
.d-give-box h2::before { content: ""; inline-size: 26px; block-size: 26px; flex: none; background: var(--primary); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.d-give-box .amounts { gap: 8px; }
.amt { min-block-size: 56px; border: 1.5px solid var(--field-line); border-radius: var(--r-field); background: var(--surface); color: var(--text); font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; padding: 0 4px; }
.d-give-box .amt { min-block-size: 52px; font-size: 17px; }
.amt:hover { border-color: var(--primary); }
.amt[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .lbl, .give-label { font-weight: 700; font-size: 15px; }
.input, .sel select { inline-size: 100%; min-block-size: 52px; padding-inline: 14px; border: 1.5px solid var(--field-line); border-radius: var(--r-field); background: var(--surface); color: var(--text); font: inherit; font-size: 17px; }
.sel { position: relative; }
.sel select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; font-size: 16px; }
.sel::after { content: ""; position: absolute; top: 50%; inset-inline-end: 14px; margin-top: -10px; inline-size: 20px; block-size: 20px; background: currentColor; -webkit-mask: var(--ic-chev) center / contain no-repeat; mask: var(--ic-chev) center / contain no-repeat; pointer-events: none; }
.affix { display: flex; align-items: stretch; border: 1.5px solid var(--field-line); border-radius: var(--r-field); background: var(--surface); overflow: hidden; }
.affix > span { display: flex; align-items: center; padding-inline: 16px; background: var(--surface-2); border-inline-end: 1.5px solid var(--field-line); font-weight: 700; }
.affix .input { border: 0; border-radius: 0; }
.d-note-sm { font-size: 14px; color: var(--muted); margin: 0; }
.give-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0; --ic: var(--ic-bank); }
.give-note::before { content: ""; inline-size: 16px; block-size: 16px; flex: none; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.give-note.lock { --ic: var(--ic-lock); }
.give-note.shield { --ic: var(--ic-shield); }

/* About */
.d-about { gap: 56px !important; }
.d-about-img img { block-size: 400px; inline-size: 100%; object-fit: cover; border-radius: var(--r-card); }
.d-about-text { font-size: 18px; color: var(--muted); max-width: 34em; }
.d-facts { gap: 12px !important; margin-block: 24px 8px !important; }
.d-facts > .wp-block-column { padding: 14px 16px; border-radius: var(--r-field); background: var(--surface-2); }
.d-facts p { margin: 0; }
.d-facts .k { font-size: 13px; color: var(--muted); }
.d-facts .v { margin-block-start: 2px !important; font-size: 18px; font-weight: 700; color: var(--hero-h); }

/* How it works */
.d-steps { gap: 64px !important; margin-block-start: 32px !important; }
.d-step { display: flex !important; align-items: flex-start; gap: 16px; flex-wrap: nowrap !important; }
.d-step > * { margin: 0 !important; }
.d-step-ic { position: relative; display: flex !important; align-items: center; justify-content: center; inline-size: 72px; block-size: 72px; flex: none; border: 2px solid var(--primary); border-radius: 999px; background: var(--surface); color: var(--primary); }
.d-step-ic::before { content: ""; inline-size: 30px; block-size: 30px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.d-step-ic b { position: absolute; top: -6px; inset-inline-end: -6px; display: flex; align-items: center; justify-content: center; inline-size: 26px; block-size: 26px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }
.d-steps > .wp-block-column:nth-child(1) .d-step-ic { --ic: var(--ic-doc); }
.d-steps > .wp-block-column:nth-child(2) .d-step-ic { --ic: var(--ic-bank); }
.d-steps > .wp-block-column:nth-child(3) .d-step-ic { --ic: var(--ic-chart); }
.d-step h3 { font-size: 18px; }
.d-step p { margin-block-start: 4px !important; font-size: 15px; color: var(--muted); }
.d-steps > .wp-block-column { position: relative; }
.d-steps > .wp-block-column:not(:last-child)::after { content: ""; position: absolute; top: 24px; inset-inline-end: -44px; inline-size: 24px; block-size: 24px; background: var(--primary); -webkit-mask: var(--ic-arrow) center / contain no-repeat; mask: var(--ic-arrow) center / contain no-repeat; }
[dir="rtl"] .d-steps > .wp-block-column:not(:last-child)::after { transform: scaleX(-1); }

/* Clarity */
.d-clarity { gap: 48px !important; }
.d-clarity-sub { font-size: 19px; color: var(--muted); }
.d-note { display: inline-block; padding: 14px 18px; border-radius: var(--r-field); background: var(--sand); color: #5A3A12; font-weight: 600; }
.d-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.d-links li { max-width: none; }
.d-links a { display: flex; align-items: center; gap: 16px; min-block-size: 64px; padding-inline: 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; --ic: var(--ic-arrow); }
.d-links a::after { margin-inline-start: auto; color: var(--primary); }
.d-links a:hover { border-color: var(--primary); text-decoration: none; }

/* FAQ (core Details block styled as the design's question list) */
.d-faq { gap: 56px !important; }
.d-ask { margin-block-start: 24px !important; padding: 20px !important; border-radius: var(--r-card); background: var(--surface); }
.d-ask > * { margin-block: 0 4px !important; }
.d-ask h3 { font-size: 18px; }
.d-ask p { color: var(--muted); }
.d-faq-list { border-block-start: 1px solid var(--line); }
.d-faq-list > * { margin: 0 !important; }
.wp-block-details { border-block-end: 1px solid var(--line); padding: 0; }
.wp-block-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-block-size: 60px; padding-block: 12px; font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; inline-size: 20px; block-size: 20px; flex: none; background: currentColor; -webkit-mask: var(--ic-chev) center / contain no-repeat; mask: var(--ic-chev) center / contain no-repeat; transition: transform .15s; }
.wp-block-details[open] summary::after { transform: rotate(180deg); }
.wp-block-details > :not(summary) { margin-block: 0 !important; padding-block-end: 20px; color: var(--muted); }

/* Ways to help */
.d-ways { gap: 16px !important; margin-block-start: 28px !important; }
.d-way { display: flex !important; flex-direction: column; gap: 10px; padding: 22px !important; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); block-size: 100%; }
.d-way > * { margin: 0 !important; }
.d-way-ic { display: flex !important; align-items: center; justify-content: center; inline-size: 48px; block-size: 48px; border-radius: 999px; background: var(--surface-2); color: var(--primary); font-size: 0; }
.d-way-ic::before { content: ""; inline-size: 22px; block-size: 22px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.d-way h3 { font-size: 19px; }
.d-way p { font-size: 15px; color: var(--muted); }
.d-way .d-link-arrow, .d-way .wp-block-buttons { margin-block-start: auto !important; }
.d-way.feature { background: var(--primary); border-color: var(--primary); color: #fff; }
.d-way.feature h3 { color: #fff; }
.d-way.feature .d-way-ic { background: rgba(255,255,255,.16); color: #fff; }
.d-way.feature p { color: #E6E0F3; }
.d-ways > .wp-block-column:nth-child(1) .d-way-ic { --ic: var(--ic-bank); }
.d-ways > .wp-block-column:nth-child(2) .d-way-ic { --ic: var(--ic-share); }
.d-ways > .wp-block-column:nth-child(3) .d-way-ic { --ic: var(--ic-flag); }
.d-ways > .wp-block-column:nth-child(4) .d-way-ic { --ic: var(--ic-heart); }

/* Emergency appeal bar (pattern; editors add it only during an appeal) */
.d-appeal { background: var(--secondary); color: #fff; }
.d-appeal p { margin: 0; max-width: none; font-size: 15px; }
.d-appeal p::before { content: ""; display: inline-block; inline-size: 10px; block-size: 10px; border-radius: 999px; background: #E68D3B; margin-inline-end: 10px; }
.d-appeal a { color: #fff; font-weight: 700; }

/* ---------- Inner pages ---------- */
.d-page-hero { background: var(--hero-bg); }
.d-page-hero h1 { font-size: clamp(2rem, 4vw, 3.125rem); color: var(--hero-h); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-block-start: 12px; font-size: 14px; color: var(--muted); }
.crumb a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--muted); }
.crumb .sep { inline-size: 16px; block-size: 16px; 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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
[dir="rtl"] .crumb .sep { transform: scaleX(-1); }
.d-card-box { padding: clamp(20px, 3vw, 28px) !important; border: var(--card-border); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.d-img-round img { border-radius: var(--r-card); }

/* ---------- Campaign page (tiseer/campaign block) ---------- */
.camp { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "hero aside" "body aside"; gap: 56px 64px; align-items: start; padding-block: 12px 88px; }
.camp-hero { grid-area: hero; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--primary); font-size: 13px; font-weight: 700; }
.camp h1 { margin-block: 14px 0; font-size: clamp(2rem, 4vw, 3.125rem); }
html[lang^="ar"] .camp h1 { font-size: clamp(1.875rem, 3.8vw, 2.875rem); }
.summary { margin-block-start: 16px; font-size: 20px; color: var(--muted); max-width: 34em; }
.camp-hero .ph { display: block; block-size: 440px; margin-block-start: 28px; border-radius: var(--r-card); overflow: hidden; background: var(--ph-bg); }
.camp-hero .ph img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.aside { grid-area: aside; position: sticky; top: 24px; }
.give { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--surface); border: var(--card-border); border-radius: var(--r-card); box-shadow: var(--shadow); }
.give > * { margin: 0; }
.raised { font-size: 38px; font-weight: 700; line-height: 1.1; color: var(--text); }
.raised-sub { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.kpis div { padding: 12px 4px; text-align: center; }
.kpis div + div { border-inline-start: 1px solid var(--line); }
.kpis b { display: block; font-size: 20px; font-weight: 700; }
.kpis span { font-size: 13px; color: var(--muted); }
.camp-body { grid-area: body; }
.prose h2 { font-size: clamp(1.625rem, 2.6vw, 2rem); margin-block: 0 16px; }
.prose p, .prose li { font-size: 18px; max-width: 40em; }
.prose h3 { font-size: 20px; margin-block: 28px 8px; }
.prose img { border-radius: var(--r-card); max-inline-size: 100%; }
.block-sep { margin-block-start: 56px; padding-block-start: 56px; border-block-start: 1px solid var(--line); }
.sticky-cta { display: none; }

/* ---------- Donation form (Charitable) as the design's steps ---------- */
.d-donate { max-width: 560px; margin-inline: auto; padding-block: 24px 64px; }
.d-donate-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-block-size: 60px; border-block-end: 1px solid var(--line); margin-block-end: 16px; }
.d-donate-top a.back { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--primary); font-weight: 700; text-decoration: none; }
.d-secure { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; --ic: var(--ic-lock); }
.d-secure::before { content: ""; inline-size: 16px; block-size: 16px; background: var(--success); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.mini { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: var(--card-border); border-radius: var(--r-card); }
.mini .ph { inline-size: 56px; block-size: 56px; flex: none; border-radius: var(--r-field); overflow: hidden; background: var(--ph-bg); }
.mini .ph img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.mini-txt { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: 6px; }
.mini-txt b { font-size: 15px; line-height: 1.3; }
.mini-txt span { font-size: 13px; color: var(--muted); }
.mini .bar { block-size: 6px; }
.stepper { display: flex; gap: 6px; margin-block: 20px 6px; }
.stepper span { flex: 1; block-size: 4px; border-radius: 2px; background: var(--track); }
.stepper span.on { background: var(--primary); }
.p-step { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0; }
.d-step-title { font-size: 28px; margin-block: 4px 18px; }
html[lang^="ar"] .d-step-title { font-size: 26px; }

.charitable-donation-form { font: inherit; }
.charitable-donation-form .charitable-fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.charitable-donation-form .charitable-form-header, .charitable-donation-form legend { font-size: 15px; font-weight: 700; color: var(--text); padding: 0; margin-block-end: 10px; }
.charitable-donation-form .donation-amounts { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0 !important; margin: 0 0 12px !important; }
.charitable-donation-form .donation-amount { position: relative; margin: 0 !important; padding: 0 !important; border: 1.5px solid var(--field-line) !important; border-radius: var(--r-field) !important; background: var(--surface) !important; min-block-size: 64px; display: flex !important; flex-direction: column; justify-content: center; text-align: center; cursor: pointer; inline-size: auto !important; float: none !important; }
.charitable-donation-form .donation-amount label { display: flex; flex-direction: column; gap: 2px; padding: 10px; cursor: pointer; margin: 0; }
.charitable-donation-form .donation-amount .amount { font-size: 22px; font-weight: 700; color: var(--text); }
.charitable-donation-form .donation-amount .description { font-size: 13px; color: var(--muted); }
.charitable-donation-form .donation-amount input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.charitable-donation-form .donation-amount.selected { background: var(--primary) !important; border-color: var(--primary) !important; }
.charitable-donation-form .donation-amount.selected :is(.amount, .description, label) { color: #fff; }
.charitable-donation-form .donation-amount.custom-donation-amount { grid-column: 1 / -1; min-block-size: 0; text-align: start; padding: 12px !important; }
.charitable-donation-form :is(input[type=text], input[type=email], input[type=number], input[type=tel], select, textarea) { box-sizing: border-box; inline-size: 100%; min-block-size: 52px; padding-inline: 14px; border: 1.5px solid var(--field-line); border-radius: var(--r-field); background: var(--surface); color: var(--text); font: inherit; font-size: 17px; }
.charitable-donation-form textarea { min-block-size: 110px; padding-block: 12px; }
.charitable-donation-form .charitable-form-field { margin-block-end: 16px; float: none !important; inline-size: 100% !important; }
.charitable-donation-form .charitable-form-field label { display: block; font-weight: 700; font-size: 15px; margin-block-end: 6px; }
.charitable-donation-form input[type=email] { direction: ltr; }
html[lang^="ar"] .charitable-donation-form input[type=email] { text-align: right; }
.charitable-donation-form input[type=checkbox] { inline-size: 24px; block-size: 24px; accent-color: var(--primary); margin: 2px 0 0; flex: none; }
.charitable-donation-form .charitable-submit-field .button, .charitable-donation-form button[type=submit], .d-step-next {
	display: flex; inline-size: 100%; align-items: center; justify-content: center; min-block-size: 56px; border: 0; border-radius: var(--r-btn); background: var(--primary) !important; color: #fff !important; font: inherit; font-weight: 700; font-size: 18px; cursor: pointer; }
.charitable-donation-form .charitable-submit-field .button:hover, .d-step-next:hover { filter: brightness(.95); }
.d-step-back { background: none; border: 0; color: var(--primary); font: inherit; font-weight: 700; min-block-size: 44px; cursor: pointer; padding: 0; }
.d-bank-opt { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1.5px solid var(--primary); box-shadow: 0 0 0 1.5px var(--primary); border-radius: var(--r-field); background: var(--surface); margin-block-end: 18px; }
.d-bank-opt b { display: flex; align-items: center; gap: 8px; font-size: 16px; --ic: var(--ic-bank); }
.d-bank-opt b::before { content: ""; inline-size: 20px; block-size: 20px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.d-bank-opt small { display: block; color: var(--muted); font-size: 14px; }
.notice-d { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-field); background: var(--notice-bg); font-size: 15px; --ic: var(--ic-info); }
.notice-d::before { content: ""; inline-size: 20px; block-size: 20px; flex: none; margin-block-start: 3px; background: var(--primary); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.notice-d b { display: block; }
.sum { display: flex; flex-direction: column; border: var(--card-border); border-radius: var(--r-card); background: var(--surface); margin: 18px 0; padding: 0; }
.sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 15px; }
.sum > div + div { border-block-start: 1px solid var(--line); }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 700; text-align: end; }
.p-foot-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); text-align: center; margin-block-start: 10px; }
.d-donate .charitable-gateway-selector, .d-donate .charitable-gateway-fields, .d-donate #charitable-gateway-fieldset > .charitable-form-header { display: none !important; }
.d-steps-on .d-hide { display: none !important; }

/* Receipt page (after submitting) */
.d-receipt { max-width: 640px; }
.d-receipt :is(table, dl) { inline-size: 100%; border: var(--card-border); border-radius: var(--r-card); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.d-receipt :is(th, td) { padding: 12px 16px; text-align: start; border-block-end: 1px solid var(--line); }

/* ---------- Footer ---------- */
.ftr { background: var(--footer-bg); color: var(--footer-fg); }
.ftr :where(p, address) { color: var(--footer-muted); font-size: 15px; font-style: normal; }
.ftr h2 { font-size: 13px !important; font-weight: 700; color: var(--footer-fg); }
html[lang^="en"] .ftr h2 { text-transform: uppercase; letter-spacing: .08em; }
html[lang^="ar"] .ftr h2 { font-size: 15px !important; }
.ftr a { color: var(--footer-fg); }
.ftr ul { list-style: none; padding: 0; margin: 4px 0 0; }
.ftr li { margin: 0; }
.ftr li a, .ftr .reg a { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; font-size: 15px; }
.ftr li a { text-decoration: none; }
.ftr li a:hover { text-decoration: underline; }
.ftr .reg a { font-weight: 600; --ic: var(--ic-arrow); }
.ftr .reg a::after { content: ""; inline-size: 18px; block-size: 18px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
[dir="rtl"] .ftr .reg a::after { transform: scaleX(-1); }
.logo-tile { display: inline-flex; padding: 14px 16px; background: #fff; border-radius: var(--r-card); margin: 0; }
.logo-tile img { display: block; block-size: 120px; inline-size: auto; }
.ftr-bottom { border-block-start: 1px solid var(--footer-line); }
.ftr-bottom p { margin: 0; font-size: 14px; }
.ftr .switch { background: transparent; border-color: var(--footer-line); color: var(--footer-fg); }

/* Contact Form 7 */
.wpcf7 form p { margin-block: 0 1rem; max-width: none; }
.wpcf7 label { display: block; font-weight: 700; font-size: 15px; }
.wpcf7 :where(input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], select, textarea) { display: block; inline-size: 100%; margin-block-start: .35rem; min-block-size: 52px; border: 1.5px solid var(--field-line); border-radius: var(--r-field); padding: .7rem .85rem; font: inherit; background: #fff; color: var(--text); }
.wpcf7 textarea { min-block-size: 9rem; }
.wpcf7 input[type=submit] { background: var(--primary); color: #fff; border: 0; border-radius: var(--r-btn); min-block-size: 52px; padding-inline: 1.75rem; font: inherit; font-weight: 700; cursor: pointer; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpml-ls-statics-footer { display: none !important; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.hdr-in { min-block-size: 64px; gap: 8px; }
	.logo-mark { block-size: 40px; }
	.hdr .logo-word small { display: none; }
	.hdr-actions { gap: 8px; }
	.hdr .wp-block-button__link { min-block-size: 44px; padding-inline: 16px; }
	.switch { min-inline-size: 44px; padding-inline: 10px; }
	.switch .long { display: none; } .switch .short { display: inline; }
	.hdr .switch::before { display: none; }
	.d-script { display: none; }
	.d-lead { font-size: 17px; }
	.d-cta .wp-block-button { flex: 1 1 100%; } .d-cta .wp-block-button__link { inline-size: 100%; }
	.d-photo > .wp-block-image img { block-size: 220px; }
	.d-photo-over { position: relative; margin-top: -40px; padding-block-end: 0; }
	.d-float { inline-size: 100%; }
	.d-trust { margin-block-start: 24px; }
	.d-trust-in { grid-template-columns: minmax(0, 1fr); padding-block: 4px; }
	.d-trust-in li { justify-content: flex-start; }
	.d-trust-in li + li { border-inline-start: 0; border-block-start: 1px solid var(--line); }
	.d-cause { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.d-give-wrap { position: static; order: -1; }
	.d-cards, .d-cards.cols-3 { grid-template-columns: minmax(0, 1fr); }
	.d-about-img img { block-size: 220px; }
	.d-steps > .wp-block-column::after { display: none; }
	.d-steps { gap: 28px !important; }
	.d-facts { flex-wrap: wrap !important; } .d-facts > * { flex-basis: calc(50% - 6px) !important; }
	.camp { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "aside" "body"; gap: 28px; padding-block: 4px 48px; }
	.camp-hero .ph { block-size: 220px; margin-block-start: 20px; }
	.aside { position: static; }
	.give { padding: 20px; }
	.give .d-desktop { display: none; }
	.raised { font-size: 32px; }
	.summary { font-size: 17px; }
	.sticky-cta { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 16px 20px; background: var(--surface); border-block-start: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
	.mini-prog { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
	.mini-prog b { color: var(--text); font-size: 15px; }
	.sticky-cta .bar { block-size: 6px; }
	.sticky-cta .d-btn { min-block-size: 52px; padding-inline: 28px; }
	.block-sep { margin-block-start: 40px; padding-block-start: 40px; }
	.ftr .logo-tile img { block-size: 100px; }
}
@media (min-width: 782px) { .give .d-mobile { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.is-style-tiseer-card { padding: clamp(20px, 3vw, 28px) !important; border: var(--card-border); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }

/* Photo band overlay aligned to the 1200px content edge */
.d-photo-over { padding-inline: max(clamp(16px, 4vw, 40px), calc((100% - 1200px) / 2 + 40px)); }
.d-photo-over > .d-float { margin-inline: auto 0 !important; }
.d-way-ic { line-height: 0; }
.d-cause-main > * + * { margin-block-start: 0; }
.d-test-notice { font-size: 14px; padding: 10px 14px; border-radius: var(--r-field); background: #FFF4E5; margin-block-end: 12px; }

.notice-d[hidden] { display: none !important; }
html[lang^="ar"] .ftr address, html[lang^="ar"] .ftr .ltr-lines { unicode-bidi: plaintext; }
.charitable-donation-form textarea { box-sizing: border-box; inline-size: 100% !important; margin: 0 !important; }
.charitable-donation-form abbr.required { text-decoration: none; border: 0; color: var(--primary); margin-inline-start: 2px; }
.wpcf7 :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]), select, textarea) { inline-size: 100%; max-inline-size: 100%; }
.sticky-cta.is-off { visibility: hidden; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .sticky-cta { transition: opacity .2s; } }

/* ---------- Optional patterns: impact, updates, quotes ---------- */
.d-stats, .d-updates, .d-quotes { gap: 20px !important; margin-block-start: 28px !important; }
.stat { block-size: 100%; padding: 28px; background: var(--surface); border: var(--card-border); border-radius: var(--r-card); }
.stat p { margin: 0; }
.stat .stat-val { display: inline-block; padding: 6px 12px; border: 2px dashed var(--field-line); border-radius: var(--r-field); font-size: 20px; font-weight: 700; color: var(--muted); }
.stat p + p { margin-block-start: 14px; font-size: 17px; font-weight: 600; }
.d-update .ph { margin: 0; block-size: 180px; }
.d-update .ph img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.d-update h3 { font-size: 19px; margin: 0; }
.d-update-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.d-update .d-link-arrow { margin-block-start: auto; }
.d-quote { display: flex; flex-direction: column; gap: 18px; block-size: 100%; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.d-quote::before { content: ""; inline-size: 36px; block-size: 36px; background: var(--primary); -webkit-mask: var(--ic-quote) center / contain no-repeat; mask: var(--ic-quote) center / contain no-repeat; }
[dir="rtl"] .d-quote::before { transform: scaleX(-1); }
.d-quote-text { margin: 0; font-size: 17px; line-height: 1.6; }
.d-quote-by { margin: auto 0 0; padding-inline-start: 56px; position: relative; font-size: 13px; color: var(--muted); min-block-size: 44px; }
.d-quote-by b { font-size: 15px; color: var(--text); }
.d-quote-by::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0; inline-size: 44px; block-size: 44px; border-radius: 999px; background: var(--surface-2); }
:root { --ic-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h4v4c0 3-1.5 5-4 6l-1-1.5c1.5-.8 2.3-2 2.4-3.5H7V7zm8 0h4v4c0 3-1.5 5-4 6l-1-1.5c1.5-.8 2.3-2 2.4-3.5H15V7z'/%3E%3C/svg%3E"); }

/* =====================================================================
   Design pass (2026-10-16): matches Direction D section by section
   ===================================================================== */
.wrap-1200 { --gut: max(16px, var(--wp--style--root--padding-left, 24px)); max-width: calc(1200px + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }

/* Full-width sections sit flush: the design separates them by padding and background, not by gaps. */
.wp-block-post-content > .alignfull, .entry-content > .alignfull { margin-block: 0 !important; }

/* Bands: the design's lavender sections (How it works, FAQ, Other campaigns). */
.d-band { background: var(--band-bg); }
.d-band .d-ask { background: var(--surface); box-shadow: var(--shadow); }

/* Campaign cards: an odd count in two columns shows the first card across the row, image beside text. */
.d-cards > .card.is-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.d-cards > .card.is-wide .ph { block-size: 100%; min-block-size: 280px; }
.d-cards > .card.is-wide .card-body { padding: 28px; justify-content: center; }
.d-cards > .card.is-wide h3 { font-size: 26px; }

/* Clarity: note and a small rising bar chart side by side, as in the design. */
.d-clarity > .wp-block-column:first-child { display: grid; grid-template-columns: auto 200px; align-items: end; column-gap: 24px; }
.d-clarity > .wp-block-column:first-child > * { grid-column: 1 / -1; }
.d-clarity > .wp-block-column:first-child > .d-note { grid-column: 1; justify-self: start; margin-block-end: 6px; }
.d-clarity > .wp-block-column:first-child::after { content: ""; grid-column: 2; grid-row: 3; inline-size: 200px; block-size: 130px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 130'%3E%3Cg fill='%23EFC79C'%3E%3Crect x='10' y='96' width='30' height='30' rx='4'/%3E%3Crect x='56' y='76' width='30' height='50' rx='4'/%3E%3Crect x='102' y='52' width='30' height='74' rx='4'/%3E%3Crect x='148' y='24' width='30' height='102' rx='4'/%3E%3C/g%3E%3Cpath d='M14 80C60 66 110 48 190 6' fill='none' stroke='%23E68D3B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
[dir="rtl"] .d-clarity > .wp-block-column:first-child::after { transform: scaleX(-1); }

/* Sections rendered by blocks (Latest updates, Other campaigns). */
.d-updates-sec, .rel { padding-block: 88px; }
.d-updates-sec .d-cards, .rel .d-cards { margin-block-start: 28px; }
.d-update .card-body { gap: 12px; }
.d-update h3 a { color: inherit; text-decoration: none; }
.d-update h3 a:hover { text-decoration: underline; }
.d-update-meta .tag { padding: 2px 10px; font-size: 12px; }

/* ---------- Rich campaign content (classic editor: gallery, video, YouTube, files, tables, quotes) ---------- */
.prose > * + * { margin-block-start: 16px; }
.prose figure, .prose .wp-caption { margin: 28px 0; max-inline-size: 100%; inline-size: auto !important; }
.prose figure img, .prose .wp-caption img { display: block; inline-size: 100%; block-size: auto; }
.prose figcaption, .prose .wp-caption-text { margin-block-start: 8px; font-size: 14px; color: var(--muted); }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-block-start: 6px; }
.prose hr { border: 0; border-block-start: 1px solid var(--line); margin-block: 40px; }
.prose a:not(.t-file, .wp-block-button__link) { color: var(--link); font-weight: 600; }

.prose .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0; }
.prose .gallery.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .gallery.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prose .gallery-item { margin: 0 !important; inline-size: auto !important; }
.prose .gallery-item a { display: block; border-radius: var(--r-field); overflow: hidden; cursor: zoom-in; }
.prose .gallery-item img { display: block; inline-size: 100%; aspect-ratio: 4 / 3; block-size: auto; object-fit: cover; border-radius: 0; transition: transform .4s ease; }
.prose .gallery-item a:hover img { transform: scale(1.04); }
.prose .gallery-caption { margin-block-start: 6px; font-size: 13px; color: var(--muted); }
.prose .gallery br { display: none; }

.prose .wp-video, .prose video { inline-size: 100% !important; max-inline-size: 100%; }
.prose video { display: block; block-size: auto; border-radius: var(--r-card); background: #000; }
.t-embed { margin: 28px 0; }
.t-embed iframe { display: block; inline-size: 100%; aspect-ratio: 16 / 9; block-size: auto; border: 0; border-radius: var(--r-card); background: #000; }

.t-file { display: flex; align-items: center; gap: 16px; margin: 12px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.t-file:hover { border-color: var(--primary); box-shadow: var(--shadow); text-decoration: none; }
.t-file-ic { display: flex; align-items: center; justify-content: center; inline-size: 48px; block-size: 56px; flex: none; border-radius: 8px; background: var(--surface-2); color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.t-file-txt { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.t-file-txt b { font-size: 16px; }
.t-file-txt small { font-size: 13px; color: var(--muted); }
.t-file-dl { margin-inline-start: auto; padding: 8px 14px; border-radius: var(--r-btn); background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }

.prose table { inline-size: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.prose th, .prose td { padding: 12px 14px; border-block-end: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--hero-h); font-weight: 700; }
.prose tfoot td, .prose tr.total td { font-weight: 700; color: var(--hero-h); }
.prose td:last-child, .prose th:last-child { text-align: end; white-space: nowrap; }

.prose blockquote { position: relative; margin: 28px 0; padding: 24px 24px 24px 68px; border-radius: var(--r-card); background: var(--surface-2); }
[dir="rtl"] .prose blockquote { padding: 24px 68px 24px 24px; }
.prose blockquote::before { content: ""; position: absolute; top: 24px; inset-inline-start: 22px; inline-size: 30px; block-size: 30px; background: var(--primary); -webkit-mask: var(--ic-quote) center / contain no-repeat; mask: var(--ic-quote) center / contain no-repeat; }
[dir="rtl"] .prose blockquote::before { transform: scaleX(-1); }
.prose blockquote p { font-size: 19px; color: var(--hero-h); }
.prose blockquote cite { display: block; margin-block-start: 10px; font-size: 14px; font-style: normal; color: var(--muted); }

/* Where your money goes */
.split { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; max-width: 40em; }
.split li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; font-size: 16px; font-weight: 600; max-width: none; }
.split .val { padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--primary); font-size: 14px; font-weight: 700; }
.split .bar { grid-column: 1 / -1; block-size: 8px; }

/* Lightbox for gallery images */
.t-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 56px 72px; background: rgba(18, 34, 79, .92); }
.t-lightbox[hidden] { display: none; }
.t-lightbox img { max-inline-size: 100%; max-block-size: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.t-lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; inline-size: 48px; block-size: 48px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.t-lightbox button:hover, .t-lightbox button:focus-visible { background: rgba(255,255,255,.28); }
.t-lightbox .t-lb-close { top: 16px; inset-inline-end: 16px; }
.t-lightbox .t-lb-prev { inset-inline-start: 12px; top: 50%; margin-top: -24px; }
.t-lightbox .t-lb-next { inset-inline-end: 12px; top: 50%; margin-top: -24px; }
.t-lightbox figcaption { position: absolute; bottom: 14px; inset-inline: 72px; color: #fff; text-align: center; font-size: 15px; }

@media (max-width: 781px) {
	.d-cards > .card.is-wide { display: flex; }
	.d-cards > .card.is-wide .ph { block-size: 200px; min-block-size: 0; }
	.d-cards > .card.is-wide .card-body { padding: 20px 22px 22px; }
	.d-cards > .card.is-wide h3 { font-size: 22px; }
	.d-clarity > .wp-block-column:first-child { grid-template-columns: auto 120px; }
	.d-clarity > .wp-block-column:first-child::after { inline-size: 120px; block-size: 80px; }
	.d-updates-sec, .rel { padding-block: 56px; }
	.prose .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.prose table { font-size: 15px; overflow-wrap: anywhere; }
	.t-file { flex-wrap: wrap; }
	.t-file-dl { margin-inline-start: 64px; }
	.t-lightbox { padding: 56px 12px; }
}

/* ---------- Inner pages (About, Contact, Volunteer, Campaigns): full-width D sections (2026-10-16) ---------- */
.d-page-hero + .wp-block-post-content:has(> .alignfull) { padding-block: 0 !important; }
.d-ways.d-pillars > .wp-block-column:nth-child(1) .d-way-ic { --ic: var(--ic-doc); }
.d-ways.d-pillars > .wp-block-column:nth-child(2) .d-way-ic { --ic: var(--ic-heart); }
.d-ways.d-pillars > .wp-block-column:nth-child(3) .d-way-ic { --ic: var(--ic-globe); }
.d-ways.d-values > .wp-block-column:nth-child(1) .d-way-ic { --ic: var(--ic-shield); }
.d-ways.d-values > .wp-block-column:nth-child(2) .d-way-ic { --ic: var(--ic-share); }
.d-ways.d-values > .wp-block-column:nth-child(3) .d-way-ic { --ic: var(--ic-heart); }
.d-ways.d-values > .wp-block-column:nth-child(4) .d-way-ic { --ic: var(--ic-chart); }
.d-ways.d-vol-ways > .wp-block-column:nth-child(1) .d-way-ic { --ic: var(--ic-flag); }
.d-ways.d-vol-ways > .wp-block-column:nth-child(2) .d-way-ic { --ic: var(--ic-globe); }
.d-ways.d-vol-ways > .wp-block-column:nth-child(3) .d-way-ic { --ic: var(--ic-share); }
.d-cta-band { display: flex !important; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 48px) !important; border-radius: var(--r-card); background: var(--secondary); color: #fff; }
.d-cta-band > * { margin: 0 !important; }
.d-cta-band h2 { color: #fff; }
.d-cta-band p { color: var(--footer-muted); }
.d-cta-band .d-link-arrow a { color: #fff; }
.d-cta-txt { display: flex !important; flex-direction: column; gap: 10px; max-inline-size: 640px; }
.d-cta-txt > * { margin: 0 !important; }
.d-cta-btns { flex: none; gap: 12px; }
.wp-block-button.d-outline-white .wp-block-button__link { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.wp-block-button.d-outline-white .wp-block-button__link:hover { background: rgba(255,255,255,.1); }
.d-contact { gap: clamp(24px, 4vw, 56px) !important; }
.d-contact-cards { display: grid !important; gap: 12px; margin-block-start: 24px !important; }
.d-contact-card { display: flex !important; align-items: center; gap: 14px; padding: 16px 18px !important; border: var(--card-border); border-radius: var(--r-card); background: var(--surface); }
.d-contact-card > * { margin: 0 !important; }
.d-contact-card p { margin: 0 !important; }
.d-contact-card .k { font-size: 13px; color: var(--muted); }
.d-contact-card .v { font-weight: 700; color: var(--hero-h); }
.d-contact-card .v a { color: inherit; text-decoration: none; }
.d-contact-card .v a:hover { color: var(--primary); text-decoration: underline; }
.d-contact-card.c-mail .d-way-ic { --ic: var(--ic-mail); }
.d-contact-card.c-phone .d-way-ic { --ic: 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='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.d-contact-card.c-reg .d-way-ic { --ic: var(--ic-shield); }
.d-form-box > h2 { margin-block-end: 8px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.d-form-box.narrow { max-inline-size: 780px; margin-inline: auto !important; }
.d-form-box .wpcf7 { margin-block-start: 16px; }
@media (max-width: 781px) {
	.d-cta-band { flex-direction: column; align-items: stretch; }
	.d-cta-btns { flex-direction: column; } .d-cta-btns .wp-block-button__link { inline-size: 100%; }
}
.d-contact-card .d-way-ic { flex: none; }
/* Section text lines up with the heading at the 1200px column edge, but keeps a readable line length. */
.alignfull > .is-layout-constrained > :where(p, ul) { max-width: 1200px !important; padding-inline-end: max(0px, calc(min(100%, 1200px) - 70ch)); }
.d-updates-sec { padding-block-start: 0; margin-block: 0 !important; }
.d-form-box .wpcf7-form p { margin-block: 0 14px; }
.d-form-box .wpcf7-form label { display: block; font-weight: 600; font-size: 15px; }
.d-form-box .wpcf7-form label > br, .d-form-box .wpcf7-form p > br { display: none; }
.d-form-box .wpcf7-form-control-wrap { display: block; margin-block-start: 6px; }
/* Dated updates list and small notes inside a campaign story */
.prose .t-updates { list-style: none; margin: 16px 0 0; padding: 0; border-inline-start: 2px solid var(--script-line); }
.prose .t-updates li { position: relative; margin: 0 0 18px; padding-inline-start: 22px; }
.prose .t-updates li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 8px; inline-size: 12px; block-size: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--script-line); }
.prose .t-updates time { display: block; font-size: 14px; color: var(--muted); }
.prose .t-updates strong { display: block; color: var(--hero-h); }
.prose .t-note { margin-block-start: -12px; font-size: 13px; color: var(--muted); }
/* Single update post */
.d-post-cat { margin-block: 0 10px !important; font-size: 14px; font-weight: 600; }
.d-post-cat a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface); color: var(--primary); text-decoration: none; }
.d-post-date { margin-block-start: 8px !important; color: var(--hero-muted); }
.d-post-img { margin-block: 0 28px !important; }
.d-post-img img { inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); }
.d-post-body .prose > .wp-block-paragraph:last-child a, .d-post-body .prose > p:last-child a { font-weight: 600; }
/* News page and category archive */
.d-news-hero { padding-block: 48px 40px; }
.d-news-hero h1 { font-size: clamp(2rem, 4vw, 3.125rem); color: var(--hero-h); margin: 0; }
.d-news-hero .d-sub { margin-block-start: 10px; }
.d-news-list { padding-block: 48px 88px !important; }
.d-news-list .d-cards { margin-block-start: 0; }
.d-update-ex { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.d-news-empty { padding-block: 48px 88px; }
/* Newsletter band (design: .d-news) */
.d-news { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 36px 40px !important; border-radius: var(--r-card); background: var(--secondary); color: #fff; }
.d-news > * { margin: 0 !important; }
.d-news h2 { color: #fff; font-size: 28px; margin: 0; }
.d-news-txt p { margin-block-start: 6px; color: var(--footer-muted); }
.d-news .wpcf7-form p { margin: 0 0 10px; }
.d-news .wpcf7-form label { font-size: 14px; font-weight: 600; color: #fff; }
.d-news .d-news-row { display: flex; gap: 10px; }
.d-news .d-news-row .wpcf7-form-control-wrap { flex: 1; }
.d-news input[type="email"] { inline-size: 100%; min-block-size: 52px; border: 0; border-radius: var(--r-field); padding-inline: 14px; }
.d-news .wpcf7-submit { min-block-size: 52px; padding-inline: 26px; border: 0; border-radius: var(--r-btn); background: #fff; color: var(--primary); font-weight: 700; cursor: pointer; }
.d-news .wpcf7-acceptance, .d-news .wpcf7-acceptance a { color: var(--footer-muted); font-size: 14px; }
.d-news .wpcf7-acceptance a { color: #fff; }
.d-news .wpcf7-response-output { color: #fff; border-color: rgba(255,255,255,.4) !important; }
@media (max-width: 781px) { .d-news { grid-template-columns: 1fr; padding: 24px 20px !important; } .d-news .d-news-row { flex-direction: column; } }
.d-news .d-news-row > p { display: flex; gap: 10px; margin: 0; }
.d-news .d-news-row > p > .wpcf7-form-control-wrap { flex: 1; }
@media (max-width: 781px) { .d-news .d-news-row > p { flex-direction: column; } }
.stat .stat-val.is-real { padding: 0; border: 0; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; color: var(--primary); }
/* Articles: buttons keep their own colours inside text; more air above headings */
.prose .wp-block-button__link { color: var(--on-primary); text-decoration: none; }
.prose > * + h2, .prose > * + .wp-block-heading { margin-block-start: 36px; }
.prose > .wp-block-buttons { margin-block-start: 28px; }
.d-news .wpcf7-form .wpcf7-submit { background: #fff !important; color: var(--primary) !important; }

/* ---------- Zakat calculator (block tiseer/zakat) ---------- */
.zk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.zk-main, .zk-sum { padding: clamp(20px, 3vw, 28px); border: var(--card-border); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.zk-sum { position: sticky; top: 24px; }
.zk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 22px; }
.zk-tabs [role="tab"] { min-block-size: 44px; padding-inline: 18px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.zk-tabs [role="tab"][aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.zk-field { margin-block-end: 16px; }
.zk-field label { display: block; margin-block-end: 6px; font-weight: 600; font-size: 15px; color: var(--hero-h); }
.zk-field input, .zk-field select { inline-size: 100%; min-block-size: 52px; padding-inline: 14px; border: 1.5px solid var(--field-line); border-radius: var(--r-field); background: var(--surface); color: var(--text); font: inherit; font-size: 17px; }
[dir="rtl"] .zk-field input { text-align: right; }
.zk-field input:focus, .zk-field select:focus { border-color: var(--primary); outline: 3px solid var(--focus); outline-offset: 1px; }
.zk-hint { margin: -8px 0 16px; font-size: 14px; color: var(--muted); }
.zk-sub { margin: 4px 0 0; padding-block-start: 14px; border-block-start: 1px solid var(--line); color: var(--muted); }
.zk-sub b { color: var(--hero-h); font-size: 18px; }
.zk-sum-h { margin: 0 0 12px; font-size: 22px; }
.zk-table { inline-size: 100%; border-collapse: collapse; margin-block-end: 18px; font-size: 15px; }
.zk-table th, .zk-table td { padding: 9px 0; border-block-end: 1px solid var(--line); text-align: start; font-weight: 400; }
.zk-table td { text-align: end; white-space: nowrap; padding-inline-start: 12px; }
.zk-table thead th { color: var(--muted); font-size: 13px; }
.zk-table thead th:not(:first-child) { text-align: end; }
.zk-table tfoot th, .zk-table tfoot td { font-weight: 700; color: var(--hero-h); border: 0; }
.zk-nisab .zk-hint { margin: 6px 0 0; }
.zk-result { margin-block: 6px 16px; padding: 16px 18px; border-radius: var(--r-field); background: var(--surface-2); }
.zk-result p { margin: 0; }
.zk-result.is-due { background: var(--notice-bg); }
.zk-due-l { font-size: 14px; color: var(--muted); }
.zk-due { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; color: var(--primary); }
.zk-pay { margin-block-end: 10px; }
.zk-reset { display: block; margin-inline: auto; padding: 8px 12px; border: 0; background: none; color: var(--link); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.zk-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 781px) { .zk { grid-template-columns: 1fr; } .zk-sum { position: static; } }
.zk-pay[hidden] { display: none; }
.zk-contact { margin: 0 0 10px; text-align: center; font-weight: 600; } .zk-contact[hidden] { display: none; }
