/*
Theme Name: Hussaini School
Theme URI: https://school.hussainicalgary.com/
Author: Hussaini Association of Calgary
Description: Block theme for Hussaini School Calgary, the Sunday school of the Hussaini Association of Calgary. Page patterns for every page (home, about, registration, become a teacher, school calendar, results, contact), student registration and teacher application forms that save to the Lightweight Site Essentials enquiries inbox, and dark mode. Pages, menu and logo are created on activation.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hussainischool
Tags: block-patterns, full-site-editing, block-styles, wide-blocks, translation-ready
*/

/* ==========================================================================
   Base
   ========================================================================== */

:root {
	--hsc-card: #ffffff;
	--hsc-input: #fcfbf8;
	--hsc-header-bg: rgba(255, 255, 255, .97);
	--hsc-radius-s: 8px;
	--hsc-radius-m: 14px;
	--hsc-radius-l: 22px;
	--hsc-ring: 0 0 0 3px rgba(196, 154, 60, .35);
	--hsc-ease: cubic-bezier(.2, .7, .2, 1);
	--lse-cf-scroll-offset: 110px;
	scroll-padding-top: 110px;
}
html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { height: auto; }
::selection { background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--primary-dark); }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > main { flex: 1 0 auto; }
.wp-site-blocks > * + * { margin-block-start: 0; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }
.skip-link:focus { z-index: 100000; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.has-arabic-font-family { direction: rtl; line-height: 1.6; }

/* Eyebrow / kicker text */
.hsc-eyebrow {
	display: inline-flex; align-items: center; gap: .55rem;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin-bottom: .25rem !important;
}
.hsc-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.has-text-align-center.hsc-eyebrow, .hsc-eyebrow.has-text-align-center { justify-content: center; }
.hsc-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); line-height: 1.6; }

/* ==========================================================================
   Icons (CSS masks: hsc-badge | hsc-ib | hsc-ii  +  hsc-i-NAME)
   ========================================================================== */
.hsc-ii { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; background: currentColor;
	-webkit-mask: var(--hsc-icon) center / contain no-repeat; mask: var(--hsc-icon) center / contain no-repeat; }
.hsc-ib::before { content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-right: .55em; vertical-align: -.18em; background: currentColor; flex: none;
	-webkit-mask: var(--hsc-icon) center / contain no-repeat; mask: var(--hsc-icon) center / contain no-repeat; }
/* Badge icon: a soft tile with the glyph, placed above the content of the element */
.hsc-badge { position: relative; --hsc-badge-bg: var(--wp--preset--color--primary-soft); --hsc-badge-fg: var(--wp--preset--color--primary); }
.hsc-badge::before { content: ""; display: block; width: 54px; height: 54px; margin-bottom: 1.1rem; border-radius: 16px; background: var(--hsc-badge-bg); }
.hsc-badge::after { content: ""; position: absolute; top: 14px; left: 14px; width: 26px; height: 26px; background: var(--hsc-badge-fg);
	-webkit-mask: var(--hsc-icon) center / contain no-repeat; mask: var(--hsc-icon) center / contain no-repeat; }
.hsc-badge.has-global-padding::after, .hsc-card.hsc-badge::after { top: calc(var(--hsc-pad, 2rem) + 14px); left: calc(var(--hsc-pad, 2rem) + 14px); }
.hsc-badge.is-gold { --hsc-badge-bg: var(--wp--preset--color--accent-soft); --hsc-badge-fg: #8a6a1f; }
.hsc-badge.is-blue { --hsc-badge-bg: #e3eef4; --hsc-badge-fg: var(--wp--preset--color--secondary); }
.hsc-badge.is-solid { --hsc-badge-bg: var(--wp--preset--color--primary); --hsc-badge-fg: #fff; }
.hsc-badge.is-glass { --hsc-badge-bg: rgba(255,255,255,.12); --hsc-badge-fg: var(--wp--preset--color--accent); }

/* ICONS:START */
.hsc-i-calendar{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224%22 width=%2218%22 height=%2218%22 rx=%222%22/%3E%3Cpath d=%22M16 2v4M8 2v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01%22/%3E%3C/svg%3E")}
.hsc-i-clock{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22/%3E%3Cpath d=%22M12 6v6l4 2%22/%3E%3C/svg%3E")}
.hsc-i-moon{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z%22/%3E%3C/svg%3E")}
.hsc-i-mosque{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3c-3 2-5 4-5 7h10c0-3-2-5-5-7Z%22/%3E%3Cpath d=%22M5 21V12h14v9M3 21h18M10 21v-4a2 2 0 0 1 4 0v4M2 21V9l1-2 1 2v12M20 21V9l1-2 1 2v12%22/%3E%3C/svg%3E")}
.hsc-i-book{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20%22/%3E%3Cpath d=%22M9 7h7M9 11h5%22/%3E%3C/svg%3E")}
.hsc-i-users{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2%22/%3E%3Ccircle cx=%229%22 cy=%227%22 r=%224%22/%3E%3Cpath d=%22M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75%22/%3E%3C/svg%3E")}
.hsc-i-heart{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z%22/%3E%3C/svg%3E")}
.hsc-i-gift{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%228%22 width=%2218%22 height=%224%22 rx=%221%22/%3E%3Cpath d=%22M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C11 3 12 8 12 8s1-5 4.5-5a2.5 2.5 0 0 1 0 5%22/%3E%3C/svg%3E")}
.hsc-i-mail{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222%22 y=%224%22 width=%2220%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22m22 7-10 6L2 7%22/%3E%3C/svg%3E")}
.hsc-i-phone{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92Z%22/%3E%3C/svg%3E")}
.hsc-i-map{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%223%22/%3E%3C/svg%3E")}
.hsc-i-school{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M22 10 12 5 2 10l10 5 10-5Z%22/%3E%3Cpath d=%22M6 12v5c3 3 9 3 12 0v-5%22/%3E%3C/svg%3E")}
.hsc-i-form{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z%22/%3E%3Cpath d=%22M14 2v6h6M8 13h8M8 17h5%22/%3E%3C/svg%3E")}
.hsc-i-rings{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%2214%22 r=%226%22/%3E%3Ccircle cx=%2215%22 cy=%2214%22 r=%226%22/%3E%3Cpath d=%22m10 4 2-2 2 2%22/%3E%3C/svg%3E")}
.hsc-i-chat{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Z%22/%3E%3Cpath d=%22M8 9h8M8 13h5%22/%3E%3C/svg%3E")}
.hsc-i-hands{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M11 14h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16%22/%3E%3Cpath d=%22m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9%22/%3E%3Cpath d=%22m2 15 6 6%22/%3E%3C/svg%3E")}
.hsc-i-plane{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2Z%22/%3E%3C/svg%3E")}
.hsc-i-award{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%228%22 r=%226%22/%3E%3Cpath d=%22M15.48 12.89 17 22l-5-3-5 3 1.52-9.11%22/%3E%3C/svg%3E")}
.hsc-i-tent{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3.5 21 14 3M20.5 21 10 3M15.5 21 12 15l-3.5 6M2 21h20%22/%3E%3C/svg%3E")}
.hsc-i-search{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%228%22/%3E%3Cpath d=%22m21 21-4.3-4.3%22/%3E%3C/svg%3E")}
.hsc-i-arrow{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14M12 5l7 7-7 7%22/%3E%3C/svg%3E")}
.hsc-i-building{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z%22/%3E%3Cpath d=%22M6 12H4a2 2 0 0 0-2 2v8h4M18 9h2a2 2 0 0 1 2 2v11h-4M10 6h4M10 10h4M10 14h4M10 18h4%22/%3E%3C/svg%3E")}
.hsc-i-video{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m22 8-6 4 6 4V8Z%22/%3E%3Crect x=%222%22 y=%226%22 width=%2214%22 height=%2212%22 rx=%222%22/%3E%3C/svg%3E")}
.hsc-i-globe{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22/%3E%3Cpath d=%22M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10Z%22/%3E%3C/svg%3E")}
.hsc-i-sun{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224%22/%3E%3Cpath d=%22M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41%22/%3E%3C/svg%3E")}
.hsc-i-check{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 6 9 17l-5-5%22/%3E%3C/svg%3E")}
.hsc-i-star{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2Z%22/%3E%3C/svg%3E")}
.hsc-i-clipboard{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%228%22 y=%222%22 width=%228%22 height=%224%22 rx=%221%22/%3E%3Cpath d=%22M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2M9 12h6M9 16h6%22/%3E%3C/svg%3E")}
.hsc-i-shield{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z%22/%3E%3C/svg%3E")}

:root{--hsc-arrow:var(--hsc-arrow-i);--hsc-check:var(--hsc-check-i);--hsc-doc:var(--hsc-doc-i)}
:root{--hsc-arrow-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14M12 5l7 7-7 7%22/%3E%3C/svg%3E");--hsc-check-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 6 9 17l-5-5%22/%3E%3C/svg%3E");--hsc-doc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z%22/%3E%3Cpath d=%22M14 2v6h6M8 13h8M8 17h5%22/%3E%3C/svg%3E");}
.hsc-donate-btn{--hsc-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M22 10 12 5 2 10l10 5 10-5Z%22/%3E%3Cpath d=%22M6 12v5c3 3 9 3 12 0v-5%22/%3E%3C/svg%3E")}
:root{--hsc-heart-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z%22/%3E%3C/svg%3E")}
/* ICONS:END */

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.hsc-topbar { font-size: var(--wp--preset--font-size--x-small); }
.hsc-topbar a { color: inherit; text-decoration: none; }
.hsc-topbar a:hover { color: #fff; text-decoration: underline; }
.hsc-topbar .hsc-today { display: inline-flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.hsc-topbar .hsc-today__hijri { color: var(--wp--preset--color--accent); font-weight: 600; }
.hsc-topbar .hsc-today__sep { opacity: .45; }
.hsc-topbar .wp-block-social-links { --wp--style--block-gap: .35rem; }
.hsc-topbar .wp-block-social-links .wp-social-link { background: transparent !important; color: rgba(255,255,255,.85) !important; }
.hsc-topbar .wp-block-social-links .wp-social-link:hover { color: #fff !important; transform: none; }
@media (max-width: 781px) { .hsc-topbar .hsc-hide-mobile { display: none !important; } }

.hsc-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .hsc-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .hsc-header-wrap { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hsc-header-wrap { top: 0; } }
.hsc-header {
	background: var(--hsc-header-bg);
	border-bottom: 1px solid rgba(47, 90, 83, .1);
	transition: box-shadow .25s var(--hsc-ease);
}
@media (min-width: 861px) { .hsc-header { backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); background: var(--hsc-header-bg); } }
.hsc-is-scrolled .hsc-header { box-shadow: 0 6px 24px rgba(29, 61, 55, .09); }
.hsc-brand { gap: .8rem !important; text-decoration: none; }
.hsc-brand .wp-block-site-logo img, .hsc-brand .hsc-logo-img img { width: auto; max-height: 34px; }
.hsc-brand .wp-block-site-title { margin: 0; }
.hsc-brand .hsc-brand__text { line-height: 1.1; }
.hsc-brand .hsc-brand__tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: .2rem 0 0; font-weight: 600; }
@media (max-width: 700px) { .hsc-brand .hsc-brand__tag { display: none; } }
@media (max-width: 480px) { .hsc-brand .wp-block-site-title { font-size: 1rem; } .hsc-brand .wp-block-site-logo img, .hsc-brand .hsc-logo-img img { max-height: 26px; } }

.hsc-header .wp-block-navigation { --hsc-nav-pad: .55rem .8rem; }
.hsc-header .wp-block-navigation .wp-block-navigation-item__content { padding: var(--hsc-nav-pad); border-radius: 999px; transition: background .2s, color .2s; color: var(--wp--preset--color--contrast); }
.hsc-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.hsc-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.hsc-header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content { background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary-dark); }
.hsc-header .wp-block-navigation__container { gap: .15rem; }
.hsc-header .wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--border) !important; border-radius: 14px; padding: .45rem; min-width: 240px !important;
	box-shadow: var(--wp--preset--shadow--lifted); background: var(--hsc-card);
}
.hsc-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border-radius: 9px; padding: .55rem .8rem; font-weight: 500; }
.hsc-header .wp-block-navigation .wp-block-navigation-submenu__toggle { margin-left: -.55rem; }
.hsc-header .wp-block-navigation .has-child > .wp-block-navigation-item__content { padding-right: 1.2rem; }
.hsc-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; background: var(--hsc-card); }
.hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: .25rem; padding-top: 3rem; }
.hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: .5rem .25rem; font-size: 1.05rem; }
.hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; border: 0 !important; padding: 0 0 .5rem 1rem; }
.hsc-header .wp-block-navigation__responsive-container-open { padding: .5rem; border-radius: 10px; background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary-dark); }
.hsc-header .hsc-donate-btn .wp-block-button__link { padding: .7rem 1.25rem; }
.hsc-header .hsc-donate-btn .wp-block-button__link::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .45em; vertical-align: -.14em; background: currentColor; -webkit-mask: var(--hsc-icon) center/contain no-repeat; mask: var(--hsc-icon) center/contain no-repeat; }
@media (max-width: 600px) { .hsc-header .hsc-donate-btn { display: none; } }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.hsc-page-header {
	position: relative; overflow: hidden; isolation: isolate;
	background: linear-gradient(120deg, var(--wp--preset--color--primary-dark) 0%, var(--wp--preset--color--primary) 55%, #2d6b70 100%);
	color: #fff;
}
.hsc-page-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09;
	background-image: url("assets/images/pattern.svg"); background-size: 120px;
}
.hsc-page-header::after {
	content: ""; position: absolute; z-index: -1; right: -6%; bottom: -1px; width: min(520px, 60vw); aspect-ratio: 4.68; opacity: .08;
	background: url("assets/images/logo-mark-white.png") right bottom / contain no-repeat;
}
.hsc-page-header h1 { color: #fff; margin: 0; max-width: 22ch; }
.hsc-page-header .wp-block-post-excerpt, .hsc-page-header .hsc-page-header__lead { color: rgba(255,255,255,.86); font-size: var(--wp--preset--font-size--large); max-width: 60ch; margin: 0; }
.hsc-page-header .wp-block-post-excerpt__more-text { display: none; }
.hsc-page-header .wp-block-post-excerpt__excerpt { margin: 0; }
.hsc-breadcrumbs { font-size: var(--wp--preset--font-size--x-small); letter-spacing: .02em; color: rgba(255,255,255,.75); margin: 0 0 .9rem; }
.hsc-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.hsc-breadcrumbs li + li::before { content: "›"; margin-right: .35rem; opacity: .6; }
.hsc-breadcrumbs a { color: inherit; text-decoration: none; }
.hsc-breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.hsc-breadcrumbs [aria-current] { color: #fff; font-weight: 600; }
.hsc-surface .hsc-breadcrumbs, .hsc-breadcrumbs.is-dark { color: var(--wp--preset--color--muted); }
.hsc-breadcrumbs.is-dark [aria-current] { color: var(--wp--preset--color--contrast); }
.hsc-breadcrumbs.is-dark a:hover { color: var(--wp--preset--color--primary); }

/* ==========================================================================
   Home hero
   ========================================================================== */
.hsc-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.hsc-hero.wp-block-cover { min-height: auto !important; }
.hsc-hero .wp-block-cover__image-background { opacity: .32 !important; mix-blend-mode: luminosity; }
.hsc-hero::after {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: radial-gradient(ellipse at 15% 20%, rgba(196,154,60,.18), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(13,75,107,.45), transparent 60%);
}
.hsc-hero .wp-block-cover__inner-container { position: relative; z-index: 1; }
.hsc-hero h1 { color: #fff; }
.hsc-hero h1 em { font-style: normal; color: var(--wp--preset--color--accent); }
.hsc-hero .hsc-bismillah { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--wp--preset--color--accent); margin: 0; opacity: .95; }
.hsc-hero .hsc-lead { color: rgba(255,255,255,.85); }
.hsc-hero-meta { gap: 1.5rem !important; font-size: var(--wp--preset--font-size--small); color: rgba(255,255,255,.8); }
.hsc-hero-meta p { margin: 0; }

/* Glass container for the salat card in the hero */
.hsc-glass {
	background: rgba(255,255,255,.97); color: var(--wp--preset--color--contrast);
	border-radius: var(--hsc-radius-l); box-shadow: 0 30px 60px rgba(0,0,0,.25);
	padding: 1.4rem !important; border: 1px solid rgba(255,255,255,.4);
}
.hsc-glass .xst-daily { box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
.hsc-glass .hsc-glass__foot { margin-top: .9rem; font-size: var(--wp--preset--font-size--small); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hsc-glass .hsc-glass__foot a { font-weight: 700; text-decoration: none; }
.hsc-glass .hsc-glass__foot a::after { content: " →"; }
.hsc-glass .xst-daily-list th, .hsc-glass .xst-daily-list td { padding-block: .5rem !important; }

/* ==========================================================================
   Sections, cards, tiles
   ========================================================================== */
.hsc-section-head { margin-bottom: var(--wp--preset--spacing--50) !important; }
.hsc-section-head h2 { margin-top: .2rem; }
.hsc-section-head p:last-child { color: var(--wp--preset--color--muted); }

.hsc-card {
	--hsc-pad: clamp(1.4rem, 2.4vw, 2rem);
	padding: var(--hsc-pad);
	background: var(--hsc-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hsc-radius-m);
	box-shadow: 0 1px 2px rgba(29,61,55,.04);
	transition: transform .25s var(--hsc-ease), box-shadow .25s var(--hsc-ease), border-color .25s;
}
.is-layout-grid > .hsc-card, .hsc-columns-stretch .hsc-card { height: 100%; box-sizing: border-box; }
.hsc-card > :first-child { margin-top: 0; }
.hsc-card h3, .hsc-card h4 { margin-top: 0; margin-bottom: .45rem; }
.hsc-card p { color: var(--wp--preset--color--muted); }
.hsc-card .hsc-card__more, .hsc-card .hsc-more { margin-top: auto; }
.hsc-card.is-link:hover, .hsc-card:has(a.hsc-stretched):hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lifted); border-color: rgba(47,90,83,.25); }
.hsc-card.is-flex { display: flex; flex-direction: column; }
.hsc-card.is-flex > .wp-block-buttons:last-child, .hsc-card.is-flex > p.hsc-more:last-child { margin-top: auto; padding-top: .5rem; }
.hsc-card.is-tinted { background: var(--wp--preset--color--surface); }
.hsc-card.is-dark { background: var(--wp--preset--color--primary-dark); border-color: transparent; color: #fff; }
.hsc-card.is-dark h3, .hsc-card.is-dark h4 { color: #fff; }
.hsc-card.is-dark p { color: rgba(255,255,255,.8); }
.hsc-columns-stretch > .wp-block-column { display: flex; flex-direction: column; }
.hsc-columns-stretch > .wp-block-column > .hsc-card { flex: 1; }

/* Stretched link: any link with class hsc-stretched makes the whole card clickable */
.hsc-card { position: relative; }
a.hsc-stretched::after, .hsc-stretched a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hsc-more { font-weight: 700; font-size: var(--wp--preset--font-size--small); }
.hsc-more a { text-decoration: none; }
.hsc-more a::after, a.hsc-more::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: .35em; vertical-align: -.15em; background: currentColor; transition: transform .2s;
	-webkit-mask: var(--hsc-arrow) center/contain no-repeat; mask: var(--hsc-arrow) center/contain no-repeat; }
.hsc-card:hover .hsc-more a::after { transform: translateX(3px); }

/* Quick link tiles */
.hsc-tiles { gap: 1rem !important; }
.hsc-tile {
	position: relative; display: flex; flex-direction: column; gap: .2rem;
	background: var(--hsc-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hsc-radius-m);
	padding: 1.2rem 1.2rem 1.1rem !important; transition: transform .2s var(--hsc-ease), box-shadow .2s, border-color .2s;
	box-shadow: var(--wp--preset--shadow--soft);
}
.hsc-tile:hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--lifted); border-color: rgba(47,90,83,.3); }
.hsc-tile.hsc-badge::before { width: 44px; height: 44px; border-radius: 12px; margin-bottom: .6rem; }
.hsc-tile.hsc-badge::after { top: calc(1.2rem + 10px); left: calc(1.2rem + 10px); width: 24px; height: 24px; }
.hsc-tile h3 { font-family: var(--wp--preset--font-family--body); font-size: 1rem !important; font-weight: 700; margin: 0; color: var(--wp--preset--color--contrast); }
.hsc-tile h3 a { text-decoration: none; color: inherit; }
.hsc-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hsc-tile p { margin: 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted); line-height: 1.45; }
.hsc-pull-up { margin-top: calc(-1 * var(--wp--preset--spacing--60)) !important; position: relative; z-index: 2; }

/* Stats */
.hsc-stat { border-left: 2px solid var(--wp--preset--color--accent); padding-left: 1rem !important; }
.hsc-stat .hsc-stat__num { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; margin: 0 0 .3rem; color: var(--wp--preset--color--primary-dark); font-weight: 600; }
.hsc-stat .hsc-stat__label { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.has-primary-dark-background-color .hsc-stat .hsc-stat__num, .is-style-hsc-dark .hsc-stat .hsc-stat__num { color: #fff; }
.has-primary-dark-background-color .hsc-stat .hsc-stat__label { color: rgba(255,255,255,.75); }

/* Quote band */
.hsc-quote-band { position: relative; overflow: hidden; isolation: isolate; }
.hsc-quote-band::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
	background-image: url("assets/images/pattern.svg"); background-size: 140px;
}
.hsc-quote-band blockquote, .hsc-quote-band .wp-block-quote { border: 0 !important; padding: 0 !important; margin-inline: auto; }
.hsc-quote-band .wp-block-quote p { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.35; color: #fff; }
.hsc-quote-band .wp-block-quote cite { color: var(--wp--preset--color--accent); font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.hsc-quote-band .hsc-quote-mark { font-family: var(--wp--preset--font-family--heading); font-size: 5rem; line-height: .6; color: var(--wp--preset--color--accent); margin: 0 0 .5rem; }

/* Image treatments */
.hsc-rounded img, .hsc-rounded.wp-block-image img { border-radius: var(--hsc-radius-l); }
.hsc-img-frame { position: relative; }
.hsc-img-frame img { border-radius: var(--hsc-radius-l); box-shadow: var(--wp--preset--shadow--lifted); }
.hsc-img-frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--wp--preset--color--accent); border-radius: var(--hsc-radius-l); z-index: -1; }
.hsc-img-frame { isolation: isolate; }
.hsc-gallery img { border-radius: var(--hsc-radius-m); aspect-ratio: 3/2; object-fit: cover; }

/* Check list */
.hsc-checklist { list-style: none; padding-left: 0 !important; }
:is(.hsc-checklist, .is-style-hsc-checklist) li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
:is(.hsc-checklist, .is-style-hsc-checklist) li::before { content: ""; position: absolute; left: 0; top: .25em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--wp--preset--color--primary-soft); }
:is(.hsc-checklist, .is-style-hsc-checklist) li::after { content: ""; position: absolute; left: .3rem; top: calc(.25em + .3rem); width: .7rem; height: .7rem; background: var(--wp--preset--color--primary);
	-webkit-mask: var(--hsc-check) center/contain no-repeat; mask: var(--hsc-check) center/contain no-repeat; }
.is-dark-section :is(.hsc-checklist, .is-style-hsc-checklist) li::before { background: rgba(255,255,255,.14); }
.is-dark-section :is(.hsc-checklist, .is-style-hsc-checklist) li::after { background: var(--wp--preset--color--accent); }

/* Price list (summer camp, hall) */
.hsc-price-list { list-style: none; padding: 0 !important; margin: 0; }
.hsc-price-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--wp--preset--color--border); }
.hsc-price-list li:last-child { border-bottom: 0; }
.hsc-price-list strong { color: var(--wp--preset--color--primary-dark); white-space: nowrap; }
.hsc-price { font-family: var(--wp--preset--font-family--heading); font-size: 2.6rem; line-height: 1; color: var(--wp--preset--color--primary-dark); margin: .2rem 0 .4rem; font-weight: 600; }
.hsc-price small { font-family: var(--wp--preset--font-family--body); font-size: .9rem; color: var(--wp--preset--color--muted); font-weight: 500; }

/* Notice / callout */
.hsc-callout { border-radius: var(--hsc-radius-m); border: 1px solid rgba(196,154,60,.4); background: var(--wp--preset--color--accent-soft); }
.hsc-callout p { margin: 0; }
.hsc-callout.is-info { background: var(--wp--preset--color--primary-soft); border-color: rgba(47,90,83,.2); }

/* Steps */
.hsc-steps { counter-reset: hacstep; }
.hsc-step { counter-increment: hacstep; position: relative; padding-left: 3.6rem !important; }
.hsc-step::before { content: counter(hacstep); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--wp--preset--color--primary); color: #fff; font-weight: 700; font-family: var(--wp--preset--font-family--heading); }
.hsc-step h3, .hsc-step h4 { margin: .2rem 0 .35rem; font-size: var(--wp--preset--font-size--large); }
.hsc-step p { margin: 0; color: var(--wp--preset--color--muted); }

/* Tables */
.wp-block-table.is-style-hsc-clean table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--wp--preset--color--border); border-radius: var(--hsc-radius-m); overflow: hidden; background: var(--hsc-card); }
.wp-block-table.is-style-hsc-clean th, .wp-block-table.is-style-hsc-clean td { border: 0; border-bottom: 1px solid var(--wp--preset--color--border); padding: .85rem 1rem; text-align: left; }
.wp-block-table.is-style-hsc-clean thead th { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--primary-dark); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--wp--preset--color--border); }
.wp-block-table.is-style-hsc-clean tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-hsc-clean tbody tr:hover td { background: #fbfaf6; }
.wp-block-table.is-style-hsc-clean thead { border-bottom: 0; }
@media (max-width: 640px) { .wp-block-table.is-style-hsc-clean { overflow-x: auto; } }

/* Details (FAQ / terms) */
.wp-block-details summary { cursor: pointer; font-weight: 700; color: var(--wp--preset--color--primary-dark); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--wp--preset--color--accent); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); }

/* Block styles */
.is-style-hsc-card { background: var(--hsc-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hsc-radius-m); box-shadow: var(--wp--preset--shadow--soft); }
.is-style-hsc-pill .wp-block-button__link, .wp-block-button.is-style-hsc-pill .wp-block-button__link { border-radius: 999px; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; color: var(--wp--preset--color--primary); padding: calc(.8rem - 1.5px) calc(1.5rem - 1.5px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--primary); color: #fff; border-color: var(--wp--preset--color--primary); }
.wp-block-button.is-style-hsc-gold .wp-block-button__link { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--primary-dark); }
.wp-block-button.is-style-hsc-gold .wp-block-button__link:hover { background: #d6ad52; color: var(--wp--preset--color--primary-dark); }
.wp-block-button.is-style-hsc-light .wp-block-button__link { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.wp-block-button.is-style-hsc-light .wp-block-button__link:hover { background: var(--hsc-card); color: var(--wp--preset--color--primary-dark); }
.wp-block-button__link { transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-hsc-underline-link a { text-decoration: none; border-bottom: 1px solid rgba(47,90,83,.3); }
.wp-block-separator.is-style-hsc-ornament { border: 0 !important; height: 18px; width: 120px; margin-inline: auto; opacity: 1;
	background: center / contain no-repeat url("assets/images/ornament.svg"); }

/* Dark sections: readable text */
.is-dark-section, .has-primary-dark-background-color, .has-primary-background-color, .has-secondary-background-color { color: rgba(255,255,255,.88); }
.is-dark-section :is(h1,h2,h3,h4,h5), .has-primary-dark-background-color :is(h1,h2,h3,h4,h5), .has-primary-background-color :is(h1,h2,h3,h4,h5), .has-secondary-background-color :is(h1,h2,h3,h4,h5) { color: #fff; }
.is-dark-section a:not(.wp-block-button__link), .has-primary-dark-background-color a:not(.wp-block-button__link):not(.wp-block-navigation-item__content) { color: #fff; }
.hsc-card.is-link .has-primary-dark-background-color { color: #fff; }

/* ==========================================================================
   Posts / news
   ========================================================================== */
.hsc-post-card { background: var(--hsc-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hsc-radius-m); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .25s var(--hsc-ease), box-shadow .25s; position: relative; }
.hsc-post-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lifted); }
.hsc-post-card .wp-block-post-featured-image { margin: 0; aspect-ratio: 16/10; overflow: hidden; background: var(--wp--preset--color--primary-soft); }
.hsc-post-card .wp-block-post-featured-image img { height: 100%; object-fit: cover; }
.hsc-post-card .wp-block-post-title { font-size: var(--wp--preset--font-size--large); margin: .3rem 0 .4rem; }
.hsc-post-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.hsc-post-card .wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.hsc-post-card .wp-block-post-excerpt__more-text { display: none; }
.wp-block-post-template.is-layout-grid { gap: 1.5rem; }
.wp-block-query-pagination { margin-top: var(--wp--preset--spacing--50); gap: .5rem; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; border-radius: 999px; text-decoration: none; }
.wp-block-query-pagination-numbers .page-numbers.current { background: var(--wp--preset--color--primary); color: #fff; }
.hsc-empty { border: 1px dashed var(--wp--preset--color--border); border-radius: var(--hsc-radius-m); padding: 2rem; text-align: center; color: var(--wp--preset--color--muted); background: var(--hsc-card); }
.hsc-entry-content > * { max-width: var(--wp--style--global--content-size); }
.wp-block-post-content :where(h2, h3) { margin-top: 2.2rem; }
.wp-block-post-content :where(p, li) { text-wrap: pretty; }

/* ==========================================================================
   Plugins: XllenTech calendar / salat timings — light theming only
   ========================================================================== */
.hsc-panel { background: var(--hsc-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hsc-radius-l); box-shadow: var(--wp--preset--shadow--soft); }
.hsc-panel .xc-upcoming-heading, .hsc-panel .xc-programs-heading { display: none; }
.hsc-panel .xc-upcoming-list, .hsc-panel .xc-programs { margin: 0; }
.hsc-panel .xst-monthly { margin: 0; }
.hsc-calendar-wrap { overflow-x: auto; }
.hsc-calendar-wrap table { min-width: 640px; }
.xc-programs-empty, .xc-upcoming-empty { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.hsc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem !important; }
.hsc-panel-head h2, .hsc-panel-head h3 { margin: 0; }
.hsc-panel-head .hsc-more { margin: 0; }

/* Today block */
.hsc-today-card { text-align: center; }
.hsc-today-card .hsc-today__day { font-family: var(--wp--preset--font-family--heading); font-size: 3.4rem; line-height: 1; color: var(--wp--preset--color--primary-dark); margin: .2rem 0; font-weight: 600; }
.hsc-today-card .hsc-today__line { margin: 0; color: var(--wp--preset--color--muted); }
.hsc-today-card .hsc-today__hijri { color: var(--wp--preset--color--accent); font-weight: 700; margin-top: .4rem; }

/* ==========================================================================
   Forms (theme forms → Site Essentials enquiries)
   ========================================================================== */
.hsc-form {
	--f-border: #d9d4c7; --f-radius: 10px;
	background: var(--hsc-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hsc-radius-l);
	padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--wp--preset--shadow--soft);
}
.hsc-form__intro { margin: 0 0 1.25rem; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.hsc-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.hsc-form__grid > .is-full, .hsc-form__section, .hsc-form__note { grid-column: 1 / -1; }
@media (max-width: 640px) { .hsc-form__grid { grid-template-columns: 1fr; } }
.hsc-form__section { margin: .9rem 0 -.2rem; padding-top: 1rem; border-top: 1px solid var(--wp--preset--color--border); }
.hsc-form__section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.hsc-form__section h3 { font-family: var(--wp--preset--font-family--body); font-size: .8rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--accent); margin: 0; font-weight: 700; }
.hsc-form__section p { margin: .25rem 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.hsc-form__note { font-size: var(--wp--preset--font-size--small); background: var(--wp--preset--color--surface); border-radius: var(--f-radius); padding: .9rem 1rem; color: var(--wp--preset--color--muted); }
.hsc-field { display: flex; flex-direction: column; gap: .4rem; margin: 0; min-width: 0; }
.hsc-field > label, .hsc-field > .hsc-field__label { font-weight: 600; font-size: .9rem; color: var(--wp--preset--color--contrast); }
.hsc-field .hsc-req { color: #b42318; margin-left: .15rem; }
.hsc-field__help { font-size: .8rem; color: var(--wp--preset--color--muted); margin: 0; }
.hsc-form input[type=text], .hsc-form input[type=email], .hsc-form input[type=tel], .hsc-form input[type=number],
.hsc-form input[type=date], .hsc-form input[type=time], .hsc-form input[type=url], .hsc-form select, .hsc-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--wp--preset--color--contrast);
	background: var(--hsc-input); border: 1.5px solid var(--f-border); border-radius: var(--f-radius); padding: .72rem .9rem; min-height: 48px;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.hsc-form textarea { min-height: 140px; resize: vertical; }
.hsc-form select { appearance: none; padding-right: 2.4rem;
	background: var(--hsc-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b66' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 18px no-repeat; }
.hsc-form :is(input, select, textarea):hover { border-color: #bdb6a5; }
.hsc-form :is(input, select, textarea):focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 4px rgba(47,90,83,.14); background: var(--hsc-card); }
.hsc-form .xc-datepicker-field { display: block; }
.hsc-choices { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.hsc-choices legend { font-weight: 600; font-size: .9rem; margin-bottom: .5rem; padding: 0; }
.hsc-choice { position: relative; }
.hsc-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.hsc-choice span { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border: 1.5px solid var(--f-border); border-radius: 999px; font-size: .9rem; background: var(--hsc-input); transition: all .15s; cursor: pointer; }
.hsc-choice input:checked + span { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.hsc-choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(47,90,83,.2); }
.hsc-choice input[type=checkbox]:checked + span::before { content: "✓"; font-weight: 700; }
.hsc-choices.is-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hsc-choices.is-cards .hsc-choice span { border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; height: 100%; box-sizing: border-box; }
.hsc-choices.is-cards .hsc-choice span small { opacity: .8; font-size: .8rem; }
.hsc-consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; background: var(--wp--preset--color--surface); padding: .9rem 1rem; border-radius: var(--f-radius); }
.hsc-consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--wp--preset--color--primary); flex: none; }
.hsc-form__actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hsc-form__actions button {
	font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; border: 0; border-radius: 999px;
	background: var(--wp--preset--color--primary); color: #fff; padding: .95rem 1.8rem; transition: background .2s, transform .2s;
}
.hsc-form__actions button:hover { background: var(--wp--preset--color--primary-dark); transform: translateY(-1px); }
.hsc-form__actions small { color: var(--wp--preset--color--muted); }
.hsc-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hsc-notice { border-radius: 12px; padding: 1rem 1.15rem; margin: 0 0 1.25rem; font-weight: 600; display: flex; gap: .7rem; align-items: flex-start; }
.hsc-notice.is-success { background: #e7f4ee; color: #135c3c; border: 1px solid #b5dcc8; }
.hsc-notice.is-error { background: #fdecea; color: #8a1c13; border: 1px solid #f3c3bd; }
.hsc-repeat { display: grid; gap: .6rem; grid-column: 1 / -1; }
.hsc-repeat__row { display: grid; grid-template-columns: var(--hsc-repeat-tpl, 2fr 1fr 1fr); gap: .6rem; }
.hsc-repeat__head { font-size: .8rem; font-weight: 700; color: var(--wp--preset--color--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) { .hsc-repeat__row { grid-template-columns: 1fr 1fr; padding: .75rem; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; } .hsc-repeat__row > :first-child { grid-column: 1 / -1; } .hsc-repeat__headrow { display: none; } }
[data-hsc-show-if][hidden] { display: none !important; }

/* Site Essentials contact form: match the theme */
.lse-cf { --lse-cf-accent: var(--wp--preset--color--primary); --lse-cf-radius: 10px; }

/* ==========================================================================
   Knowledge base
   ========================================================================== */
.hsc-kb-search .wp-block-search__inside-wrapper { background: var(--hsc-card); border-radius: 999px !important; padding: .35rem !important; border: 0 !important; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.hsc-kb-search .wp-block-search__input { border: 0 !important; padding: .7rem 1.2rem !important; font-size: 1.05rem; background: transparent; min-height: 50px; }
.hsc-kb-search .wp-block-search__input:focus { outline: none; }
.hsc-kb-search .wp-block-search__button { border-radius: 999px !important; margin: 0; padding: .7rem 1.4rem; background: var(--wp--preset--color--primary); color: #fff; font-weight: 700; }
.hsc-kb-search.is-light .wp-block-search__inside-wrapper { box-shadow: none; border: 1.5px solid var(--wp--preset--color--border) !important; }
.hsc-kb-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.hsc-kb-topic { background: var(--hsc-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hsc-radius-m); padding: 1.4rem; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.hsc-kb-topic:hover { box-shadow: var(--wp--preset--shadow--lifted); transform: translateY(-3px); }
.hsc-kb-topic__head { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.hsc-kb-topic__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--wp--preset--color--primary-soft); display: grid; place-items: center; flex: none; color: var(--wp--preset--color--primary); }
.hsc-kb-topic__icon .hsc-ii { width: 24px; height: 24px; }
.hsc-kb-topic h3 { font-size: 1.15rem !important; margin: 0; }
.hsc-kb-topic h3 a { color: inherit; text-decoration: none; }
.hsc-kb-topic__count { font-size: .78rem; color: var(--wp--preset--color--muted); margin: .1rem 0 0; }
.hsc-kb-topic ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.hsc-kb-topic li { border-top: 1px solid #efebe2; }
.hsc-kb-topic li a { display: block; padding: .55rem 0; text-decoration: none; color: var(--wp--preset--color--contrast); font-size: .92rem; line-height: 1.4; }
.hsc-kb-topic li a:hover { color: var(--wp--preset--color--primary); }
.hsc-kb-topic__all { margin-top: auto; font-weight: 700; font-size: .88rem; text-decoration: none; }
.hsc-kb-topic__empty { color: var(--wp--preset--color--muted); font-size: .9rem; }
.hsc-kb-topic.is-sub { background: var(--wp--preset--color--surface); }
.hsc-kb-list { list-style: none; margin: 0; padding: 0; }
.hsc-kb-list li { border-bottom: 1px solid var(--wp--preset--color--border); }
.hsc-kb-list li a { display: flex; gap: .7rem; align-items: center; padding: .8rem 0; text-decoration: none; color: var(--wp--preset--color--contrast); font-weight: 500; }
.hsc-kb-list li a::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--wp--preset--color--primary); -webkit-mask: var(--hsc-doc) center/contain no-repeat; mask: var(--hsc-doc) center/contain no-repeat; }
.hsc-kb-list li a:hover { color: var(--wp--preset--color--primary); }
.hsc-kb-article { font-size: 1.075rem; }
.hsc-kb-article p[style*="justify"] { text-align: left !important; }
.hsc-kb-article iframe { max-width: 100%; border-radius: var(--hsc-radius-m); }
.hsc-kb-article img { max-width: 100%; height: auto; border-radius: var(--hsc-radius-s); }
.hsc-doc-link a { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; background: var(--wp--preset--color--surface); text-decoration: none; font-weight: 600; }
.hsc-doc-link a::before { content: ""; width: 20px; height: 20px; background: var(--wp--preset--color--primary); -webkit-mask: var(--hsc-doc) center/contain no-repeat; mask: var(--hsc-doc) center/contain no-repeat; }
.hsc-kb-sidebar { position: sticky; top: 120px; }
.hsc-kb-terms a { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary-dark); text-decoration: none; font-size: .8rem; font-weight: 600; margin: 0 .3rem .3rem 0; }
.hsc-kb-terms a:hover { background: var(--wp--preset--color--primary); color: #fff; }
.hsc-kb-terms .wp-block-post-terms__separator { display: none; }
.hsc-surface .hsc-kb-terms a { background: var(--hsc-card); }

/* ==========================================================================
   Footer
   ========================================================================== */
.hsc-footer { position: relative; overflow: hidden; isolation: isolate; }
.hsc-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .05; background-image: url("assets/images/pattern.svg"); background-size: 130px; }
.hsc-footer h2, .hsc-footer h3, .hsc-footer h4 { color: #fff; font-family: var(--wp--preset--font-family--body); font-size: .8rem !important; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 1rem; }
.hsc-footer p, .hsc-footer li { color: rgba(255,255,255,.75); font-size: var(--wp--preset--font-size--small); }
.hsc-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.hsc-footer a:hover { color: #fff; text-decoration: underline; }
.hsc-footer .hsc-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.hsc-footer .hsc-footer__brand img { max-height: 40px; width: auto; }
.hsc-footer .wp-block-social-links .wp-social-link { background: rgba(255,255,255,.1) !important; color: #fff !important; }
.hsc-footer .wp-block-social-links .wp-social-link:hover { background: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--primary-dark) !important; }
.hsc-footer .hsc-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.hsc-footer .hsc-footer__bottom p { font-size: var(--wp--preset--font-size--x-small); margin: 0; }
.hsc-footer .hsc-footer__contact p { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 .7rem; }
.hsc-footer .hsc-footer__contact p.hsc-ib::before { margin-top: .25em; color: var(--wp--preset--color--accent); }
.hsc-footer .hsc-footer-salat .xst-daily { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.12) !important; color: #fff !important; box-shadow: none !important; }
.hsc-footer .hsc-footer-salat .xst-daily * { color: inherit !important; }
.hsc-footer .hsc-footer-salat .xst-daily-head { display: none; }
.hsc-footer .hsc-footer-salat table { margin: 0 !important; }
.hsc-footer .hsc-footer-salat th, .hsc-footer .hsc-footer-salat td { border-color: rgba(255,255,255,.1) !important; background: transparent !important; font-size: .85rem; padding: .35rem .7rem !important; }

.hsc-footer .hsc-footer__disclaimer { border: 1px solid rgba(232, 120, 104, .45); background: rgba(180, 35, 24, .14); border-radius: 12px; align-items: center; }
.hsc-footer .hsc-footer__disclaimer p { margin: 0; font-size: var(--wp--preset--font-size--x-small); color: #ffd9d3; }
.hsc-footer .hsc-footer__tos a { display: inline-block; white-space: nowrap; border: 1.5px solid rgba(255,140,120,.7); border-radius: 999px; padding: .3rem .85rem; font-weight: 700; color: #fff; }
.hsc-footer .hsc-footer__tos a:hover { background: #b42318; border-color: #b42318; text-decoration: none; }
.hsc-footer .hsc-footer__credits { font-size: var(--wp--preset--font-size--x-small); margin: .9rem 0 0; color: rgba(255,255,255,.6); }
.hsc-footer .hsc-copyright p, .hsc-footer .hsc-year { margin: 0; font-size: var(--wp--preset--font-size--x-small); }

/* CTA band */
.hsc-cta { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--hsc-radius-l); }
.hsc-cta::after { content: ""; position: absolute; z-index: -1; right: -40px; bottom: -30px; width: 360px; aspect-ratio: 4.68; opacity: .1; background: url("assets/images/logo-mark-white.png") center / contain no-repeat; }

/* Map */
.hsc-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--hsc-radius-l); display: block; filter: saturate(.85); }

/* Motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .hsc-header-wrap, .hsc-topbar, .hsc-footer, .hsc-page-header::before, .hsc-page-header::after { display: none !important; } .hsc-page-header { background: none; color: #000; } .hsc-page-header h1 { color: #000; } }


/* ==========================================================================
   Layout additions
   ========================================================================== */
/* Sticky header: the whole header template part sticks, scrolled up by the top bar's height. */
:root { --hsc-topbar-h: 38px; }
header.wp-block-template-part:has(.hsc-header) { position: sticky; top: calc(-1 * var(--hsc-topbar-h)); z-index: 60; }
.admin-bar header.wp-block-template-part:has(.hsc-header) { top: calc(32px - var(--hsc-topbar-h)); }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part:has(.hsc-header) { top: calc(46px - var(--hsc-topbar-h)); } }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part:has(.hsc-header) { top: calc(-1 * var(--hsc-topbar-h)); } }
.hsc-topbar { height: var(--hsc-topbar-h); display: flex; flex-direction: column; justify-content: center; overflow: hidden; white-space: nowrap; }
.hsc-topbar p { margin: 0; }
.hsc-topbar__inner { width: 100%; }
@media (max-width: 480px) { .hsc-topbar .hsc-today__en { display: none; } .hsc-topbar .hsc-today__sep { display: none; } }

/* Collapse the menu to the overlay below 1000px (the school menu is short), so the full site title fits on one line next to it (core switches only at 600px). */
@media (min-width: 600px) and (max-width: 999px) {
	.hsc-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.hsc-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.hsc-header .wp-block-navigation__responsive-container.is-menu-open { display: flex; position: fixed; inset: 0; }
	.hsc-header .wp-block-navigation__responsive-container-close:not(.always-shown) { display: flex; }
	.hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { flex-direction: column; align-items: flex-start; }
	.hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: flex-start; }
	.hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { position: static; opacity: 1; visibility: visible; height: auto; width: auto; min-width: 0 !important; }
	.hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle { display: none; }
}
.hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: .95rem; color: var(--wp--preset--color--muted); }

/* Home hero */
.hsc-hero {
	background:
		linear-gradient(110deg, rgba(29,61,55,.97) 0%, rgba(47,90,83,.93) 48%, rgba(13,75,107,.86) 100%),
		url("assets/images/hero-banner.jpg") center / cover no-repeat;
}
[data-theme="dark"] .hsc-hero { background: linear-gradient(110deg, rgba(8,16,14,.97) 0%, rgba(22,46,41,.95) 50%, rgba(10,45,64,.9) 100%), url("assets/images/hero-banner.jpg") center / cover no-repeat; }
.hsc-hero .hsc-eyebrow { color: var(--wp--preset--color--accent); }
.hsc-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); margin-top: .4rem; }
.hsc-hero-meta .hsc-ii { color: var(--wp--preset--color--accent); margin-right: .3rem; }
.hsc-glass .xst-daily-title { font-family: var(--wp--preset--font-family--heading); }

/* Page content spacing (default page template) */
.hsc-entry > :first-child:not(.alignfull) { margin-top: var(--wp--preset--spacing--60); }
.hsc-entry > :last-child:not(.alignfull) { margin-bottom: var(--wp--preset--spacing--70); }
.hsc-entry > .alignfull:first-child { margin-top: 0; }
.wp-block-post-content > .alignfull + .alignfull { margin-top: 0; }
.hsc-entry.is-full > .alignfull:last-child { margin-bottom: 0; }
main > .wp-block-post-content { margin-top: 0; }
.wp-block-post-content > .alignfull { margin-block: 0; }

/* Form page sidebar */
@media (min-width: 782px) { .hsc-aside > :first-child { position: sticky; top: 110px; } }
.hsc-aside .hsc-card + .hsc-card { margin-top: var(--wp--preset--spacing--40); }

/* PayPal + misc buttons */
.hsc-paypal { margin-top: auto; padding-top: .75rem; }
.hsc-paypal button, .hsc-link-btn {
	font: inherit; font-weight: 700; font-size: var(--wp--preset--font-size--small); cursor: pointer; border: 0; border-radius: 999px;
	background: var(--wp--preset--color--primary); color: #fff; padding: .8rem 1.5rem; transition: background .2s, transform .2s;
}
.hsc-paypal button::after { content: " · PayPal"; font-weight: 500; opacity: .8; }
.hsc-paypal button:hover { background: var(--wp--preset--color--primary-dark); transform: translateY(-1px); }
[data-theme="dark"] .hsc-paypal button { background: #2f5a53; }
.hsc-link-btn { background: transparent; color: var(--wp--preset--color--primary); padding: .3rem 0; }
.hsc-link-btn:hover { text-decoration: underline; }

/* WooCommerce donation products: hidden until products exist (admins always see it) */
.hsc-woo-donations:not(:has(li.product)) { display: none; }
.logged-in .hsc-woo-donations:not(:has(li.product)), .block-editor-block-list__block.hsc-woo-donations { display: block; }
.logged-in .hsc-woo-donations:not(:has(li.product))::after, .block-editor-block-list__block.hsc-woo-donations::after { content: "Admin note: add WooCommerce products to the “Donations” category to show them here. Visitors don’t see this section until then."; display: block; max-width: 1240px; margin: 0 auto; padding: 1rem 1.25rem; border: 1px dashed var(--wp--preset--color--border); border-radius: 12px; color: var(--wp--preset--color--muted); font-size: .9rem; }
.hsc-woo-donations ul.products li.product { background: var(--hsc-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hsc-radius-m); padding: 1rem 1rem 1.25rem !important; text-align: left; }
.hsc-woo-donations ul.products li.product img { border-radius: 10px; }
.woocommerce a.button, .woocommerce button.button, .wc-block-components-button:not(.is-link) { border-radius: 999px !important; background: var(--wp--preset--color--primary) !important; color: #fff !important; font-weight: 700 !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--wp--preset--color--primary-dark) !important; }

/* Membership slot (replace with the membership plugin form) */
.hsc-membership-slot { border: 2px dashed rgba(47,90,83,.35); }
.hsc-admin-note { display: none; }
.logged-in .hsc-admin-note { display: block; }

/* Misc */
.is-style-hsc-checklist { list-style: none; padding-left: 0 !important; }
.hsc-narrow-grid { max-width: 820px; margin-inline: auto !important; }
.hsc-card .wp-block-details:last-child { border-bottom: 0; }
.hsc-card .wp-block-details summary { font-size: .98rem; }
.hsc-card .wp-block-quote, .hsc-card.is-dark .wp-block-quote { border-left: 0; padding-left: 0; }
.hsc-card.is-dark .wp-block-quote p { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.hsc-card.is-dark .hsc-quote-mark { font-size: 4rem; }
.hsc-hero .xst-daily, .hsc-panel .xst-daily { font-family: inherit; }
.has-text-align-center .wp-block-quote, .has-text-align-center.wp-block-group .wp-block-quote { text-align: center; }
.hsc-section-head { margin-bottom: var(--wp--preset--spacing--50); }
.hsc-badge.hsc-card::after { top: calc(var(--hsc-pad) + 14px); left: calc(var(--hsc-pad) + 14px); }
.hsc-cta .wp-block-image img { box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hsc-cta .hsc-eyebrow { color: var(--wp--preset--color--accent); }
.hsc-cta h2 { color: #fff; }
.hsc-today-card { padding: 1.5rem; }
.hsc-tile.hsc-badge::after { top: calc(1.2rem + 10px); left: calc(1.2rem + 10px); }

/* ==========================================================================
   Theme toggle + dark mode
   html[data-theme="dark"] is set by a tiny inline script before paint
   (saved choice, else the system setting).
   ========================================================================== */
.hsc-theme-toggle {
	display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
	border-radius: 999px; border: 1px solid var(--wp--preset--color--border); background: var(--hsc-card);
	color: var(--wp--preset--color--primary-dark); cursor: pointer; padding: 0; transition: background .2s, color .2s, transform .2s;
}
.hsc-theme-toggle:hover { background: var(--wp--preset--color--primary-soft); transform: rotate(-12deg); }
.hsc-theme-toggle svg { width: 20px; height: 20px; }
.hsc-theme-toggle .hsc-sun { display: none; }
[data-theme="dark"] .hsc-theme-toggle .hsc-sun { display: block; }
[data-theme="dark"] .hsc-theme-toggle .hsc-moon { display: none; }

html[data-theme="dark"] {
	color-scheme: dark;
	--wp--preset--color--base: #0f1715;
	--wp--preset--color--surface: #141f1c;
	--wp--preset--color--border: #2a3834;
	--wp--preset--color--muted: #a3b2ad;
	--wp--preset--color--contrast: #e9eeec;
	--wp--preset--color--primary: #5fa898;
	--wp--preset--color--primary-dark: #0b1412;
	--wp--preset--color--primary-soft: #1b2c28;
	--wp--preset--color--accent-soft: #2a2416;
	--wp--preset--color--secondary: #1b5f82;
	--hsc-card: #17221f;
	--hsc-input: #111a18;
	--hsc-header-bg: rgba(15, 23, 21, .94);
	--hsc-heading: #f1f4f2;
}
[data-theme="dark"] body { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
[data-theme="dark"] :is(h1, h2, h3, h4, h5, h6),
[data-theme="dark"] .wp-block-site-title a,
[data-theme="dark"] .wp-block-post-title a,
[data-theme="dark"] .hsc-stat .hsc-stat__num,
[data-theme="dark"] .hsc-price,
[data-theme="dark"] .hsc-today-card .hsc-today__day,
[data-theme="dark"] .hsc-price-list strong { color: var(--hsc-heading); }
[data-theme="dark"] a { color: #8fd0c1; }
[data-theme="dark"] a:hover { color: #b7e5da; }
[data-theme="dark"] .wp-element-button, [data-theme="dark"] .wp-block-button__link { background-color: #2f5a53; color: #fff; }
[data-theme="dark"] .wp-element-button:hover, [data-theme="dark"] .wp-block-button__link:hover { background-color: #3d7268; color: #fff; }
[data-theme="dark"] .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #8fd0c1; }
[data-theme="dark"] .wp-block-button.is-style-hsc-gold .wp-block-button__link { background: var(--wp--preset--color--accent); color: #1a1407; }
[data-theme="dark"] .has-base-background-color { background-color: var(--wp--preset--color--base) !important; }
[data-theme="dark"] .has-surface-background-color { background-color: var(--wp--preset--color--surface) !important; }
[data-theme="dark"] .has-primary-soft-background-color { background-color: #16241f !important; }
[data-theme="dark"] .has-accent-soft-background-color { background-color: #231e12 !important; }
[data-theme="dark"] .has-primary-background-color { background-color: #24463f !important; }
[data-theme="dark"] .has-contrast-color { color: var(--wp--preset--color--contrast) !important; }
[data-theme="dark"] .has-primary-dark-color { color: var(--hsc-heading) !important; }
[data-theme="dark"] .has-muted-color { color: var(--wp--preset--color--muted) !important; }
[data-theme="dark"] .hsc-header { border-bottom-color: rgba(255,255,255,.07); }
[data-theme="dark"] .hsc-header .wp-block-navigation .wp-block-navigation-item__content { color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .hsc-header .wp-block-navigation .wp-block-navigation-item__content:hover,
[data-theme="dark"] .hsc-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content { color: #fff; }
[data-theme="dark"] .hsc-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .hsc-header .wp-block-navigation__responsive-container-open,
[data-theme="dark"] .hsc-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .hsc-brand .wp-block-site-logo img, [data-theme="dark"] .hsc-brand .hsc-logo-img img { filter: brightness(0) invert(1) opacity(.92); }
[data-theme="dark"] .hsc-theme-toggle { color: var(--wp--preset--color--accent); }
[data-theme="dark"] .hsc-page-header { background: linear-gradient(120deg, #0b1412 0%, #1d3d37 60%, #1d4a50 100%); }
[data-theme="dark"] .hsc-glass { background: rgba(23, 34, 31, .97); border-color: rgba(255,255,255,.08); color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .hsc-card.is-link:hover, [data-theme="dark"] .hsc-tile:hover { border-color: rgba(143,208,193,.35); }
[data-theme="dark"] .hsc-card, [data-theme="dark"] .hsc-tile, [data-theme="dark"] .hsc-panel, [data-theme="dark"] .hsc-form,
[data-theme="dark"] .hsc-kb-topic, [data-theme="dark"] .hsc-post-card { box-shadow: none; }
[data-theme="dark"] .hsc-badge.is-blue { --hsc-badge-bg: #14303f; --hsc-badge-fg: #7cc0e2; }
[data-theme="dark"] .hsc-badge.is-gold { --hsc-badge-fg: #e0be6c; }
[data-theme="dark"] .hsc-badge { --hsc-badge-fg: #8fd0c1; }
[data-theme="dark"] .hsc-badge.is-solid { --hsc-badge-bg: #2f5a53; --hsc-badge-fg: #fff; }
[data-theme="dark"] .hsc-callout { border-color: rgba(196,154,60,.35); }
[data-theme="dark"] .hsc-notice.is-success { background: #12301f; color: #9fe0bb; border-color: #1f5236; }
[data-theme="dark"] .hsc-notice.is-error { background: #3a1512; color: #f5b5ad; border-color: #5c211b; }
[data-theme="dark"] .hsc-form { --f-border: #34443f; }
[data-theme="dark"] .hsc-form :is(input, select, textarea):hover { border-color: #4a5c56; }
[data-theme="dark"] .hsc-form :is(input, select, textarea):focus { background: #0f1715; }
[data-theme="dark"] .hsc-form select { background-color: var(--hsc-input); }
[data-theme="dark"] .hsc-form__actions button { background: #2f5a53; }
[data-theme="dark"] .hsc-form__actions button:hover { background: #3d7268; }
[data-theme="dark"] .hsc-choice input:checked + span { background: #2f5a53; border-color: #5fa898; }
[data-theme="dark"] .wp-block-table.is-style-hsc-clean tbody tr:hover td { background: #1b2824; }
[data-theme="dark"] .hsc-kb-topic li { border-top-color: #22302c; }
[data-theme="dark"] .hsc-kb-search .wp-block-search__inside-wrapper { background: var(--hsc-card); }
[data-theme="dark"] .hsc-kb-search .wp-block-search__input { color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .hsc-kb-terms a { color: #b7e5da; }
[data-theme="dark"] .hsc-img-frame img, [data-theme="dark"] .hsc-rounded img { filter: brightness(.92); }
[data-theme="dark"] .hsc-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
[data-theme="dark"] ::selection { background: #3b3220; color: #fff; }
[data-theme="dark"] .wp-block-separator { border-color: var(--wp--preset--color--border); }
[data-theme="dark"] .hsc-footer { background-color: #0a1210 !important; }
[data-theme="dark"] .hsc-topbar { background-color: #070d0c !important; }

/* Plugin output in dark mode (salat timings, calendar, Site Essentials form) */
[data-theme="dark"] .xst { --xst-text: var(--wp--preset--color--contrast); color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .xst :is(table, th, td, caption, p, span, label) { color: inherit; border-color: var(--wp--preset--color--border) !important; }
[data-theme="dark"] .xst :is(.xst-daily, .xst-monthly-table, table) { background-color: transparent !important; }
[data-theme="dark"] .xst tr:nth-child(even) :is(td, th) { background-color: rgba(255,255,255,.03) !important; }
[data-theme="dark"] .xst :is(input, select, button:not([class*="accent"])) { background: var(--hsc-input); color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--border); }
[data-theme="dark"] :is(.xllentech_calendar, .xc-calendar, .xllentech-calendar-pro, .xc_calendar_table, .xc-upcoming-islamic, .xc-programs) { color: var(--wp--preset--color--contrast); }
[data-theme="dark"] :is(.xllentech_calendar, .xc-calendar, .xllentech-calendar-pro) :is(table, th, td) { background-color: transparent; border-color: var(--wp--preset--color--border) !important; color: inherit; }
[data-theme="dark"] .xc-upcoming-meta, [data-theme="dark"] .xc-programs :is(small, .xc-program-meta, .xc-programs-where) { color: var(--wp--preset--color--muted) !important; }
[data-theme="dark"] .xc-upcoming-title, [data-theme="dark"] .xc-programs a { color: #b7e5da !important; }
[data-theme="dark"] .lse-cf :is(input, select, textarea) { background: var(--hsc-input); color: var(--wp--preset--color--contrast); border-color: #34443f; }
[data-theme="dark"] .lse-cf label { color: var(--wp--preset--color--contrast); }

/* Fixes after first review */
.hsc-card h3 a, .hsc-card h2 a { text-decoration: none; color: inherit; }
.hsc-card h3 a:hover { color: var(--wp--preset--color--primary); }
.hsc-header .wp-block-navigation-item__content { white-space: nowrap; }
.hsc-header .wp-block-navigation__container { flex-wrap: nowrap; }
.hsc-header .hsc-donate-btn .wp-block-button__link { white-space: nowrap; display: inline-flex; align-items: center; }
.hsc-brand { min-width: 0; flex-shrink: 1; }
.hsc-brand .wp-block-site-logo { flex: none; }
.hsc-glass__foot span { color: var(--wp--preset--color--muted); }
.hsc-hero .hsc-bismillah { text-align: left; direction: rtl; display: inline-block; }
.hsc-price { font-size: 2.3rem; }
.hsc-price small { display: block; margin-top: .35rem; font-size: .85rem; }
.hsc-choices > .hsc-field__help, .hsc-choices > legend { grid-column: 1 / -1; flex-basis: 100%; }
.hsc-aside .hsc-card { height: auto; }

/* Upcoming programs: stack date above events whenever the list sits in a narrow box (sidebar). */
.xc-programs { container-type: inline-size; }
@container (max-width: 520px) {
	.xc-programs-day { grid-template-columns: 1fr; padding: 12px 0; }
	.xc-programs-event { flex-direction: column; gap: 0; }
	.xc-programs-time { flex: none; font-size: 12.5px; }
	.xc-programs-badge { width: 42px; height: 42px; }
}
.xc-programs a.xc-programs-title { color: var(--wp--preset--color--contrast); }

/* Quick-link tiles on phones: compact rows, icon on the left. */
@media (max-width: 600px) {
	.hsc-tile { padding: .9rem 1rem .9rem 4.4rem !important; min-height: 4.5rem; justify-content: center; }
	.hsc-tile.hsc-badge::before { position: absolute; left: 1rem; top: 50%; margin: -22px 0 0; }
	.hsc-tile.hsc-badge::after { left: calc(1rem + 10px); top: calc(50% - 12px); }
}

/* Mobile menu overlay: left-aligned list with clear groups (core inherits the header's right justification). */
.hsc-header .wp-block-navigation__responsive-container.is-menu-open { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; overflow-y: auto; }
.hsc-header .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container, .wp-block-navigation-item, .wp-block-navigation__submenu-container) { align-items: flex-start !important; text-align: left; width: 100%; }
.hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { border-bottom: 1px solid var(--wp--preset--color--border); padding-bottom: .4rem; }
.hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { font-weight: 700; }
.hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { padding: 0 0 .25rem 1rem !important; }
.hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .35rem .25rem; }

/* Dark mode: XllenTech calendar surfaces (the plugin mixes its tints with white). */
[data-theme="dark"] :is(.xllentech-calendar-pro, .xllentech-calendar-widget, .xllentech-islamic-today, .xcp_upcoming_cpt_events, .xllentech-calendar-pro-annual, .xllentech-calendar-pro-annual-RTL, .xc-event-details, .xc-programs) {
	--xc-text: var(--wp--preset--color--contrast);
	--xc-muted: var(--wp--preset--color--muted);
	--xc-faint: #6f7f7a;
	--xc-border: var(--wp--preset--color--border);
	--xc-surface: var(--hsc-card);
	--xc-surface-alt: #121b19;
	--xc-shadow: none;
}
[data-theme="dark"] .xc-upcoming-item:hover { border-color: #3a4d48; }
[data-theme="dark"] :is(a.xc-event, span.xc-event) { background: color-mix(in srgb, var(--xc-event-color) 30%, #17221f); }
[data-theme="dark"] a.xc-event:is(:hover, :focus) { background: color-mix(in srgb, var(--xc-event-color) 45%, #17221f); }
[data-theme="dark"] .xc-upcoming-date,
[data-theme="dark"] .xc-programs-badge { background: color-mix(in srgb, var(--xc-event-color) 28%, #17221f); color: color-mix(in srgb, var(--xc-event-color) 45%, #fff); }
[data-theme="dark"] .xc-programs-today .xc-programs-badge { background: var(--xc-event-color); color: #fff; }
[data-theme="dark"] .xc-legend-item i { background: color-mix(in srgb, var(--xc-event-color, #334155) 40%, #17221f); }
[data-theme="dark"] :is(.xc-programs-english, .xc-programs-location) { color: var(--wp--preset--color--muted); }
[data-theme="dark"] .xc-programs-islamic { color: #7fd09a; }

/* Dark mode: "base" (white) is remapped to the dark page colour, but text set in base sits on
   dark bands (topbar, footer, post hero), so keep it light. Today's cell in the calendar too. */
[data-theme="dark"] .has-base-color,
[data-theme="dark"] .has-base-color.has-link-color a:not(.wp-element-button):not(.wp-block-button__link) { color: #eef3f1 !important; }
[data-theme="dark"] :is(.xllentech-calendar-pro, .xllentech-calendar-widget) tbody td.xllentech-today { background: #1f312c !important; }
[data-theme="dark"] .xc-programs-time { color: #a9b8b3; }

/* Aside: only a lone card sticks; with several cards the later ones would slide over the first. */
.hsc-aside:has(> :nth-child(2)) > :first-child { position: static; }
[data-theme="dark"] .wp-block-details summary { color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .wp-block-table.is-style-hsc-clean thead th { color: var(--hsc-heading); background: #1a2724; }
[data-theme="dark"] .hsc-header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content { color: #fff; }

/* Site Essentials contact form: brand colours via its CSS variables (replaces the maroon default). */
.lse-cf {
	--lse-cf-field-bg: var(--wp--preset--color--surface);
	--lse-cf-focus-bg: var(--hsc-card);
	--lse-cf-border: var(--wp--preset--color--border);
	--lse-cf-hover: rgba(47,90,83,.35);
	--lse-cf-accent: var(--wp--preset--color--primary);
	--lse-cf-label: var(--wp--preset--color--contrast);
	--lse-cf-button: linear-gradient(135deg, #2f5a53 0%, #1d3d37 100%);
	--lse-cf-shadow: rgba(29,61,55,.55);
}
[data-theme="dark"] .lse-cf {
	--lse-cf-field-bg: #121b19;
	--lse-cf-hover: rgba(143,208,193,.4);
	--lse-cf-accent: #8fd0c1;
	--lse-cf-button: linear-gradient(135deg, #3d7168 0%, #2f5a53 100%);
	--lse-cf-shadow: rgba(0,0,0,.6);
}

/* News page: Facebook Page Plugin (max 500px wide by Facebook's design). */
.hsc-fb-embed { max-width: 500px; background: var(--hsc-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hsc-radius-l); box-shadow: var(--wp--preset--shadow--soft); padding: .6rem; overflow: hidden; }
.hsc-fb-embed iframe { display: block; width: 100%; max-width: 500px; height: 900px; border-radius: calc(var(--hsc-radius-l) - .4rem); background: #fff; }
.hsc-fb-embed .fb-page, .hsc-fb-embed .fb-page > span, .hsc-fb-embed .fb-page iframe { width: 100% !important; }
@media (max-width: 600px) { .hsc-fb-embed iframe { height: 720px; } }
.hsc-news-band { padding: clamp(1.5rem, 3vw, 2.25rem) !important; }
.hsc-news-band h2 { margin-top: .3rem; }
@media (max-width: 781px) { .hsc-news-btns { justify-content: flex-start !important; } }
.hsc-news-band > .wp-block-columns { align-items: center !important; margin: 0; }
.hsc-news-band > .wp-block-columns > .wp-block-column { align-self: center; }

/* Site title on one line (full menu shows from 1000px, see the collapse rule above). */
.hsc-brand .wp-block-site-title { white-space: nowrap; font-size: 1.05rem !important; }
.hsc-brand .wp-block-site-logo img, .hsc-brand .hsc-logo-img img { max-height: 28px; }
.hsc-brand { gap: .65rem !important; }
@media (max-width: 600px) {
	.hsc-brand .wp-block-site-title { font-size: clamp(.8rem, 3.6vw, .95rem) !important; }
	.hsc-brand .wp-block-site-logo img, .hsc-brand .hsc-logo-img img { max-height: 22px; }
	.hsc-brand { gap: .5rem !important; }
}
@media (max-width: 479px) {
	.hsc-brand .wp-block-site-logo, .hsc-brand .hsc-logo-img { display: none; }
	.hsc-brand .wp-block-site-title { font-size: clamp(.72rem, 3.7vw, 1rem) !important; }
}

/* ==========================================================================
   Business directory
   ========================================================================== */
.hsc-biz-dir { display: grid; gap: 1.5rem; }
.hsc-biz-search { display: flex; gap: .4rem; max-width: 640px; padding: .35rem; background: var(--hsc-card); border: 1.5px solid var(--wp--preset--color--border); border-radius: 999px; }
.hsc-biz-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .6rem 1.1rem; font: inherit; font-size: 1.02rem; color: var(--wp--preset--color--contrast); }
.hsc-biz-search input:focus { outline: none; }
.hsc-biz-search:focus-within { border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 3px rgba(47,90,83,.15); }
.hsc-biz-search button { border-radius: 999px; padding: .65rem 1.4rem; }
.hsc-biz-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hsc-biz-chips a { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--border); background: var(--hsc-card); color: var(--wp--preset--color--contrast); font-size: var(--wp--preset--font-size--small); font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.hsc-biz-chips a span { font-size: .78em; font-weight: 700; color: var(--wp--preset--color--muted); }
.hsc-biz-chips a:hover { border-color: var(--wp--preset--color--primary); }
.hsc-biz-chips a[aria-current] { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.hsc-biz-chips a[aria-current] span { color: rgba(255,255,255,.75); }
.hsc-biz-status { margin: 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.hsc-biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 1.25rem; }
.hsc-biz-card { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: var(--hsc-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hsc-radius-m); box-shadow: var(--wp--preset--shadow--soft); transition: transform .2s var(--hsc-ease), box-shadow .2s, border-color .2s; }
.hsc-biz-card:hover { transform: translateY(-2px); box-shadow: var(--wp--preset--shadow--lifted); border-color: rgba(47,90,83,.3); }
.hsc-biz-logo { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--wp--preset--color--border); }
.hsc-biz-logo img { width: 100%; height: 100%; object-fit: contain; }
.hsc-biz-logo.is-initials { background: var(--wp--preset--color--primary-soft); border-color: transparent; color: var(--wp--preset--color--primary); font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.35rem; }
.hsc-biz-card__body { min-width: 0; display: grid; gap: .3rem; }
.hsc-biz-cat { position: relative; z-index: 2; justify-self: start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--accent); text-decoration: none; }
.hsc-biz-cat:hover { text-decoration: underline; }
.hsc-biz-card__title { margin: 0; font-family: var(--wp--preset--font-family--body); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.hsc-biz-card__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.hsc-biz-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hsc-biz-card__text { margin: 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted); line-height: 1.5; }
.hsc-biz-card__links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .35rem 0 0; font-size: var(--wp--preset--font-size--x-small); font-weight: 600; }
.hsc-biz-card__links a { color: var(--wp--preset--color--primary); text-decoration: none; overflow-wrap: anywhere; }
.hsc-biz-card__links a:hover { text-decoration: underline; }
.hsc-biz-pages { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.hsc-biz-pages a, .hsc-biz-pages span { display: grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--border); text-decoration: none; font-weight: 700; color: var(--wp--preset--color--contrast); }
.hsc-biz-pages span { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
/* Listing page */
.hsc-biz-details .hsc-biz-logo { width: 100%; height: auto; max-height: 220px; aspect-ratio: 16 / 9; margin-bottom: 1.25rem; padding: .75rem; }
.hsc-biz-details .hsc-biz-logo.is-initials { font-size: 3rem; padding: 0; }
.hsc-biz-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.hsc-biz-contact li { display: grid; grid-template-columns: auto 1fr; column-gap: .1rem; overflow-wrap: anywhere; }
.hsc-biz-contact li::before { grid-row: span 2; margin-top: .2em; color: var(--wp--preset--color--primary); }
.hsc-biz-contact li span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.hsc-biz-contact li > :not(span) { grid-column: 2; }
.hsc-biz-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.25rem 0 0; }
.hsc-biz-tags a { padding: .25rem .7rem; border-radius: 999px; background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary-dark); font-size: var(--wp--preset--font-size--x-small); font-weight: 600; text-decoration: none; }
.hsc-biz-disclaimer { margin-top: var(--wp--preset--spacing--60) !important; color: var(--wp--preset--color--muted); }
[data-theme="dark"] .hsc-biz-logo { background: #f4f1ea; border-color: transparent; }
[data-theme="dark"] .hsc-biz-logo.is-initials { background: #1f312c; color: #8fd0c1; }
[data-theme="dark"] .hsc-biz-card__links a { color: #8fd0c1; }
[data-theme="dark"] .hsc-biz-tags a { background: #1f312c; color: #b7e5da; }
[data-theme="dark"] .hsc-biz-search input { color: var(--wp--preset--color--contrast); }
@media (max-width: 600px) { .hsc-biz-search button { padding: .6rem 1rem; } .hsc-biz-logo { width: 52px; height: 52px; } }
.hsc-biz-details .hsc-biz-logo { height: 220px; max-height: none; aspect-ratio: auto; }
.hsc-biz-details .hsc-biz-logo img { width: 100%; height: 100%; object-fit: contain; }
.hsc-biz-details .hsc-biz-logo img { width: auto; height: auto; max-width: 100%; max-height: calc(220px - 1.5rem); }
.hsc-biz-card .hsc-biz-logo img { max-height: 100%; }

/* Flow-Flow social stream inside the news embed box: let it use the column width. */
.hsc-fb-embed:has(.ff-stream) { max-width: none; padding: .75rem; }
.hsc-fb-embed .ff-stream { max-width: 100%; min-height: 0; }

/* Classic WooCommerce product lists ([products] shortcode, e.g. Donate page causes): a responsive
   grid instead of Woo's float columns, which break when cards have padding and borders. */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 1.5rem; margin: 0 !important; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product { float: none !important; clear: none !important; width: auto !important; margin: 0 !important; display: flex; flex-direction: column; }
.woocommerce ul.products li.product > a:first-child { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.woocommerce ul.products li.product img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin: 0 0 .9rem !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.1rem !important; padding: 0 !important; margin: 0 0 .35rem; }
.woocommerce ul.products li.product .price { display: block; margin: 0 0 .9rem; color: var(--wp--preset--color--muted); }
.woocommerce ul.products li.product .button { margin-top: auto !important; align-self: flex-start; }
@media (min-width: 600px) { .hsc-woo-donations ul.products { grid-template-columns: repeat(auto-fit, minmax(14rem, 17rem)); } }
[data-theme=dark] .woocommerce ul.products li.product .woocommerce-loop-product__title { color: #eef3f1; }

/* Mobile menu overlay in dark mode: core's ".wp-block-navigation:not(.has-background) … .is-menu-open"
   white panel has equal specificity and loads later, so force the dark surface here. */
[data-theme="dark"] .hsc-header .wp-block-navigation__responsive-container.is-menu-open { background-color: #12201c !important; color: #e9eeec !important; }
[data-theme="dark"] .hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background-color: transparent !important; }
[data-theme="dark"] .hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: #e9eeec; }
[data-theme="dark"] .hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: #a9bab4; }
[data-theme="dark"] .hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--gold, #c9a14a); }
[data-theme="dark"] .hsc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { border-bottom-color: rgba(255,255,255,.12); }
[data-theme="dark"] .hsc-header .wp-block-navigation__responsive-container-close { color: #e9eeec; }

/* ==========================================================================
   Hussaini School
   ========================================================================== */

/* Hero: school photo behind the green gradient. */
.hsc-hero {
	background:
		linear-gradient(110deg, rgba(29,61,55,.96) 0%, rgba(47,90,83,.9) 50%, rgba(13,75,107,.82) 100%),
		url("assets/images/school-0050.jpg") center 30% / cover no-repeat;
}
[data-theme="dark"] .hsc-hero { background: linear-gradient(110deg, rgba(8,16,14,.97) 0%, rgba(22,46,41,.94) 50%, rgba(10,45,64,.9) 100%), url("assets/images/school-0050.jpg") center 30% / cover no-repeat; }
.hsc-hero h1 em { font-style: normal; color: var(--wp--preset--color--accent); }

/* "School at a glance" card in the hero. */
.hsc-glance__title { font-size: 1.25rem !important; margin: 0 0 .75rem; }
.hsc-glance > p { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: start; margin: 0 !important; padding: .8rem 0; border-top: 1px solid var(--wp--preset--color--border); }
.hsc-glance > p::before { grid-row: span 2; margin: .15em 0 0 !important; color: var(--wp--preset--color--primary); }
.hsc-glance > p strong { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--accent); }
.hsc-glance > p span { grid-column: 2; font-weight: 600; line-height: 1.45; }
[data-theme="dark"] .hsc-glass { background: rgba(21,34,30,.96); color: #e9eeec; border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .hsc-glance > p { border-top-color: rgba(255,255,255,.1); }
[data-theme="dark"] .hsc-glance > p::before { color: var(--wp--preset--color--accent); }

/* Numbers band. */
.hsc-stats { gap: 2rem !important; }

/* Photo grid. */
.hsc-photo-grid .wp-block-image { margin: 0; }
.hsc-photo-grid .wp-block-image:nth-child(2) { transform: translateY(1.5rem); }
.hsc-photo-grid .wp-block-image:nth-child(4) { transform: translateY(1.5rem); }
@media (max-width: 600px) { .hsc-photo-grid .wp-block-image { transform: none !important; } }

/* Admin team list: two columns. */
.hsc-team-list { columns: 2 12rem; column-gap: 2rem; }
.hsc-team-list li { break-inside: avoid; }

/* Quote in an aside. */
.hsc-aside-quote { margin: 0; padding: 1.25rem 1.5rem !important; border-left: 3px solid var(--wp--preset--color--accent) !important; background: var(--wp--preset--color--accent-soft); border-radius: 0 var(--hsc-radius-m) var(--hsc-radius-m) 0; }
.hsc-aside-quote p { font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; line-height: 1.45; margin: 0 0 .5rem; }
.hsc-aside-quote cite { font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a6a1f; }
[data-theme="dark"] .hsc-aside-quote { background: rgba(196,154,60,.12); }
[data-theme="dark"] .hsc-aside-quote cite { color: var(--wp--preset--color--accent); }

/* Repeating rows (students, experience, references) inside forms. */
.hsc-repeat-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.hsc-repeat-field > legend { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; padding: 0; }
.hsc-repeat-field > .hsc-field__help { margin: 0 0 .6rem; }
.hsc-repeat input, .hsc-repeat select { width: 100%; min-width: 0; box-sizing: border-box; }
.hsc-repeat__row[hidden] { display: none !important; }

/* Liability waiver: scrollable box above the consent checkbox. */
.hsc-form__note:has(.hsc-waiver) { padding: 0; background: none; }
.hsc-waiver { max-height: 300px; overflow-y: auto; padding: 1rem 1.25rem; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; background: var(--wp--preset--color--surface); font-size: .875rem; line-height: 1.6; color: var(--wp--preset--color--contrast); }
.hsc-waiver h4 { font-family: var(--wp--preset--font-family--body); font-size: .9rem; margin: 1rem 0 .35rem; }
.hsc-waiver p, .hsc-waiver ul { margin: 0 0 .6rem; }
.hsc-waiver:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
[data-theme="dark"] .hsc-waiver { background: #16241f; border-color: rgba(255,255,255,.1); color: #dbe4e0; }

/* Calendar PDF. */
.hsc-pdf { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.hsc-pdf .wp-block-file__embed { flex: 1 0 100%; border: 1px solid var(--wp--preset--color--border); border-radius: var(--hsc-radius-l); background: #fff; }
.hsc-pdf > a:not(.wp-block-file__button) { font-weight: 600; }
@media (max-width: 700px) { .hsc-pdf .wp-block-file__embed { display: none; } }

/* Results (Educare) inside a card: let its table and form use the card width. */
.hsc-results table { width: 100%; }
.hsc-results input, .hsc-results select { max-width: 100%; }
.hsc-cta > .wp-block-columns { align-items: center !important; }
.hsc-footer__contact a[href^="mailto:"] { overflow-wrap: normal; word-break: normal; white-space: nowrap; }

/* Rows with many columns (students, experience, references): one card per row, labels as placeholders. */
.hsc-repeat-field.is-stacked .hsc-repeat__headrow { display: none; }
.hsc-repeat-field.is-stacked .hsc-repeat__row { grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr)); padding: .8rem; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; background: var(--wp--preset--color--surface); }
.hsc-repeat-field.is-stacked .hsc-repeat__row > :first-child { grid-column: span 2; }
@media (max-width: 420px) { .hsc-repeat-field.is-stacked .hsc-repeat__row > :first-child { grid-column: 1 / -1; } }
[data-theme="dark"] .hsc-repeat-field.is-stacked .hsc-repeat__row { background: #16241f; border-color: rgba(255,255,255,.1); }

/* Choice pills sit in a row (the base .hsc-field rule stacks children in a column). */
.hsc-field.hsc-choices:not(.is-cards) { flex-direction: row; align-items: flex-start; }
.hsc-choices > .hsc-field__help { order: 99; }
