/**
 * Al-Adasa Educational — main stylesheet.
 * Design tokens, layout, components. No framework, self-hosted font.
 */

/* ==========================================================================
   0. Self-hosted typeface — IBM Plex Sans Arabic (Arabic + Latin, 4 weights)
   ========================================================================== */
/* arabic */
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-arabic-400-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-arabic-500-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-arabic-600-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-arabic-700-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-arabic-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-arabic-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-arabic-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-arabic-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--st-bg: #f5f7fb;
	--st-surface: #ffffff;
	--st-surface-2: #eef1f8;
	--st-ink: #0a1020;
	--st-ink-soft: #2a3550;
	--st-muted: #5d6b86;
	--st-primary: #4f46e5;
	--st-primary-solid: #4f46e5;
	--st-primary-solid-2: #3f38c9;
	--st-primary-600: #4338ca;
	--st-primary-soft: rgba(79, 70, 229, 0.1);
	--st-accent: #0d9488;
	--st-accent-soft: rgba(13, 148, 136, 0.12);
	--st-deep: #0d1424;
	--st-line: #e4e8f1;
	--st-line-strong: #cbd4e4;
	--st-shadow-sm: 0 1px 2px rgba(10, 16, 32, 0.06);
	--st-shadow: 0 1px 2px rgba(10, 16, 32, 0.04), 0 14px 34px rgba(10, 16, 32, 0.08);
	--st-shadow-lg: 0 28px 64px rgba(10, 16, 32, 0.14);
	--st-radius-sm: 10px;
	--st-radius: 18px;
	--st-radius-lg: 26px;
	--st-container: 1200px;
	--st-narrow: 820px;
	--st-header-h: 72px;
	--st-hero-ink: #f8fafc;
	--st-hero-muted: #a9b7cf;
	--st-font: "IBM Plex Sans Arabic", "Segoe UI", system-ui, -apple-system, Tahoma, sans-serif;
	--st-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--st-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.sabagh-dark {
	--st-bg: #070b14;
	--st-surface: #0d1424;
	--st-surface-2: #131d30;
	--st-ink: #f7f9fc;
	--st-ink-soft: #d3ddec;
	--st-muted: #93a2bb;
	--st-primary: #8b96ff;
	--st-primary-solid: #5457e8;
	--st-primary-solid-2: #4346d4;
	--st-primary-600: #a5b4fc;
	--st-primary-soft: rgba(139, 150, 255, 0.16);
	--st-accent: #2dd4bf;
	--st-accent-soft: rgba(45, 212, 191, 0.14);
	--st-deep: #0a1120;
	--st-line: #1b2437;
	--st-line-strong: #2a3550;
	--st-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--st-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px rgba(0, 0, 0, 0.4);
	--st-shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
	color-scheme: dark;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--st-bg);
	color: var(--st-ink);
	font-family: var(--st-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
svg.st-icon { width: 1.25em; height: 1.25em; flex: none; }

a { color: var(--st-primary); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.015em;
}

/* Arabic reads better with open tracking and taller lines. */
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 { letter-spacing: 0; line-height: 1.38; }
html[lang="ar"] .st-hero__title { line-height: 1.3; }

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

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

:focus-visible {
	outline: 2px solid var(--st-primary);
	outline-offset: 2px;
	border-radius: 6px;
}

::selection { background: var(--st-primary); color: #fff; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.st-skip {
	position: absolute;
	top: -100px;
	inset-inline-start: 16px;
	z-index: 999;
	background: var(--st-primary);
	color: #fff;
	padding: 10px 18px;
	border-radius: 0 0 10px 10px;
}
.st-skip:focus { top: 0; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.st-container {
	width: 100%;
	max-width: var(--st-container);
	margin-inline: auto;
	padding-inline: 24px;
}
.st-container--narrow { max-width: var(--st-narrow); }

.st-main { display: block; min-height: 50vh; }

.st-section { padding: 72px 0; }
.st-section--tight { padding: 40px 0; }

.st-section__head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.st-section__head--row {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	text-align: start;
}
.st-section__title { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin: 0 0 10px; }
.st-section__sub { color: var(--st-muted); margin: 0; font-size: 1.02rem; }

.st-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--st-primary-soft);
	color: var(--st-primary);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	margin: 0 0 18px;
	border: 1px solid color-mix(in srgb, var(--st-primary) 22%, transparent);
}

.st-section__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 13px;
	border-radius: 999px;
	background: var(--st-primary-soft);
	color: var(--st-primary);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	margin: 0 0 14px;
}

/* ==========================================================================
   4. Header
   ========================================================================== */
.st-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: color-mix(in srgb, var(--st-surface) 86%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--st-line);
}
.st-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08); }
.st-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: var(--st-header-h);
}

.st-brand { display: flex; align-items: center; }
.st-brand__link {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--st-ink);
	font-weight: 800;
	font-size: 1.06rem;
	letter-spacing: -0.015em;
}
.st-brand__link:hover { text-decoration: none; }
.st-brand__mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 13px;
	color: #fff;
	background: linear-gradient(140deg, #6366f1, #4338ca 55%, #0f9b8e);
	box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.6);
}
.st-brand__mark svg { width: 22px; height: 22px; }
.custom-logo { max-height: 44px; width: auto; }

.st-nav { flex: 1; }
.st-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.st-menu li { position: relative; }
.st-menu a {
	display: inline-block;
	padding: 9px 13px;
	border-radius: 10px;
	color: var(--st-ink-soft);
	font-weight: 550;
	font-size: 0.95rem;
}
.st-menu a:hover,
.st-menu .current-menu-item > a,
.st-menu .current_page_item > a {
	background: var(--st-surface-2);
	color: var(--st-ink);
	text-decoration: none;
}
.st-menu .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-start: 0;
	min-width: 220px;
	background: var(--st-surface);
	border: 1px solid var(--st-line);
	border-radius: 14px;
	box-shadow: var(--st-shadow);
	padding: 8px;
	list-style: none;
	margin: 0;
	display: none;
	z-index: 20;
}
.st-menu li:hover > .sub-menu,
.st-menu li:focus-within > .sub-menu { display: block; }
.st-menu .sub-menu a { display: block; font-size: 0.9rem; }

.st-actions { display: flex; align-items: center; gap: 10px; }

.st-lang {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid var(--st-line);
	border-radius: 999px;
	background: var(--st-surface);
	font-size: 0.82rem;
	font-weight: 650;
	color: var(--st-muted);
	transition: border-color 0.2s var(--st-ease), color 0.2s var(--st-ease);
}
.st-lang:hover { border-color: var(--st-primary); color: var(--st-primary); }
.st-lang__opt { padding: 1px 3px; border-radius: 6px; transition: color 0.2s; }
.st-lang__opt.is-active { color: var(--st-primary); background: var(--st-primary-soft); }
.st-lang__sep { opacity: 0.4; }

.st-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--st-line);
	border-radius: 50%;
	background: var(--st-surface);
	color: var(--st-ink-soft);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.st-icon-btn:hover { background: var(--st-surface-2); color: var(--st-ink); }
.st-icon-btn--solid { background: var(--st-primary); border-color: var(--st-primary); color: #fff; }
.st-icon-btn--solid:hover { background: var(--st-primary-600); color: #fff; }

.st-theme .st-theme__sun { display: none; }
.sabagh-dark .st-theme .st-theme__sun { display: inline-flex; }
.sabagh-dark .st-theme .st-theme__moon { display: none; }

.st-burger {
	display: none;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 1px solid var(--st-line);
	border-radius: 12px;
	background: var(--st-surface);
}
.st-burger__close { display: none; }
.st-header.is-open .st-burger__open { display: none; }
.st-header.is-open .st-burger__close { display: inline-flex; }

/* ==========================================================================
   5. Buttons & chips
   ========================================================================== */
.st-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 11px 20px;
	border-radius: 12px;
	border: 1px solid var(--st-line);
	background: var(--st-surface);
	color: var(--st-ink);
	font-weight: 650;
	font-size: 0.94rem;
	line-height: 1.2;
	transition: transform 0.15s var(--st-ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
	text-decoration: none;
}
.st-btn:hover { text-decoration: none; transform: translateY(-1px); }
.st-btn--primary {
	background: linear-gradient(180deg, var(--st-primary-solid), var(--st-primary-solid-2));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 10px 24px -8px rgba(79, 70, 229, 0.55);
}
.st-btn--primary:hover { box-shadow: 0 14px 30px -8px rgba(79, 70, 229, 0.65); }
.st-btn--glass {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.16);
	color: #fff;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.st-btn--glass:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.3); }
.st-btn--ghost { background: transparent; border-color: var(--st-line); }
.st-btn--ghost:hover { background: var(--st-surface-2); }
.st-btn--invert { background: #fff; color: var(--st-deep); border-color: #fff; }
.st-btn--invert:hover { background: #f1f5f9; }
.st-btn--lg { padding: 14px 26px; font-size: 1rem; }
.st-btn--sm { padding: 7px 12px; font-size: 0.8rem; border-radius: 9px; }
.sabagh-rtl .st-btn svg,
.sabagh-rtl .st-tool-card__arrow { transform: scaleX(-1); }
.sabagh-rtl .st-post-nav__item svg { transform: scaleX(-1); }

.st-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.st-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--st-accent-soft);
	color: #047857;
	font-size: 0.8rem;
	font-weight: 650;
}
.sabagh-dark .st-chip { color: #6ee7b7; }
.st-chip--muted { background: var(--st-surface-2); color: var(--st-muted); }
.st-chip a { color: inherit; }

/* ==========================================================================
   6. Hero
   ========================================================================== */
/* ---------- Hero shell ---------- */
.st-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 78px 0 84px;
	background:
		radial-gradient(780px 400px at 88% -12%, rgba(99, 102, 241, 0.4), transparent 62%),
		radial-gradient(660px 380px at 2% 2%, rgba(13, 148, 136, 0.24), transparent 58%),
		linear-gradient(172deg, #0b1220 0%, #080d19 46%, #060a12 100%);
	color: var(--st-hero-ink);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
/* The live workspace is a light panel inside the dark hero, so it must reset
   the inherited hero ink colour (stat values were white-on-white). */
.st-hero__workspace { color: var(--st-ink); }

.st-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 58px 58px;
	-webkit-mask-image: radial-gradient(ellipse 80% 74% at 50% 14%, #000 18%, transparent 76%);
	mask-image: radial-gradient(ellipse 80% 74% at 50% 14%, #000 18%, transparent 76%);
}
.st-hero__glow {
	position: absolute;
	z-index: -1;
	bottom: -240px;
	inset-inline-start: 8%;
	width: 640px;
	height: 440px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(79, 70, 229, 0.42), transparent 66%);
	filter: blur(46px);
	pointer-events: none;
}
.st-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.04fr 0.96fr;
	gap: 56px;
	align-items: center;
}

/* ---------- Hero copy ---------- */
.st-hero__copy { max-width: 600px; }
.st-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	padding: 7px 16px 7px 13px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.055);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #c8d5ea;
	font-size: 0.82rem;
	font-weight: 500;
}
.st-hero__badge svg { width: 15px; height: 15px; color: #5eead4; }
.st-pulse {
	position: relative;
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22d3ee;
	animation: st-pulse 2.4s var(--st-ease) infinite;
}
@keyframes st-pulse {
	0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
	70% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.st-hero__title {
	font-size: clamp(2.15rem, 4.3vw, 3.55rem);
	line-height: 1.13;
	letter-spacing: -0.03em;
	margin: 0 0 20px;
	color: #ffffff;
	font-weight: 700;
}
.st-hero__title > span { display: block; }
.st-gradient-text {
	background: linear-gradient(96deg, #a5b4fc, #8b96ff 38%, #5eead4);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.st-hero__sub {
	font-size: 1.06rem;
	line-height: 1.8;
	color: var(--st-hero-muted);
	max-width: 54ch;
	margin: 0 0 28px;
}
.st-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

/* ---------- Hero search + tabs ---------- */
.st-hero__search { position: relative; margin-bottom: 18px; }
.st-hero__search svg {
	position: absolute;
	inset-inline-start: 17px;
	inset-block-start: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	width: 20px;
	height: 20px;
}
.st-hero__input {
	width: 100%;
	padding: 16px 18px;
	padding-inline-start: 50px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.055);
	color: #ffffff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	font-size: 0.98rem;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.st-hero__input::placeholder { color: #8b9ab3; }
.st-hero__input:focus {
	outline: none;
	border-color: rgba(165, 180, 252, 0.75);
	background: rgba(255, 255, 255, 0.09);
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.24);
}

.st-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.st-tab {
	padding: 8px 15px;
	border-radius: 999px;
	border: 1px solid var(--st-line);
	background: var(--st-surface);
	color: var(--st-muted);
	font-size: 0.85rem;
	font-weight: 600;
	transition: all 0.2s var(--st-ease);
}
.st-tab:hover { color: var(--st-ink); border-color: var(--st-line-strong); }
.st-tab.is-active {
	background: var(--st-ink);
	border-color: var(--st-ink);
	color: var(--st-bg);
}
.st-hero .st-tab {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.045);
	color: #b6c3d8;
}
.st-hero .st-tab:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.32);
	background: rgba(255, 255, 255, 0.09);
}
.st-hero .st-tab.is-active {
	background: #ffffff;
	border-color: #ffffff;
	color: #0b1220;
	box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.8);
}

/* ---------- Hero stats ---------- */
.st-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 0;
	margin-top: 34px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.st-mini-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-inline: 26px;
	border-inline-start: 1px solid rgba(255, 255, 255, 0.09);
}
.st-mini-stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
.st-mini-stat strong {
	font-size: 1.32rem;
	font-weight: 700;
	letter-spacing: 0;
	color: #ffffff;
	line-height: 1.2;
	display: flex;
	align-items: center;
	gap: 6px;
}
.st-mini-stat strong svg { width: 18px; height: 18px; color: #5eead4; }
.st-mini-stat span { font-size: 0.78rem; color: #93a3bd; }

/* ---------- Hero workspace ---------- */
.st-workspace__dots { display: inline-flex; gap: 6px; }
.st-workspace__dots i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(148, 163, 184, 0.45);
}
.st-workspace__dots i:nth-child(1) { background: #f87171; }
.st-workspace__dots i:nth-child(2) { background: #fbbf24; }
.st-workspace__dots i:nth-child(3) { background: #34d399; }
.st-workspace {
	position: relative;
	background: var(--st-surface);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: var(--st-radius-lg);
	box-shadow: 0 44px 90px -30px rgba(2, 6, 23, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04);
	overflow: hidden;
}
.sabagh-dark .st-workspace { background: #101a2e; }
.st-workspace__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 18px;
	border-bottom: 1px solid var(--st-line);
	background: var(--st-surface-2);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--st-muted);
}
.st-workspace__label { flex: 1; }
.st-workspace__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--st-accent-soft);
	color: #047857;
	font-size: 0.72rem;
}
.sabagh-dark .st-workspace__badge { color: #6ee7b7; }
.st-workspace__badge svg { width: 12px; height: 12px; }
.st-workspace .st-tool { padding: 18px; }
.st-workspace .st-tool__hint { display: none; }
.st-workspace__hint {
	margin: 0;
	padding: 0 18px 18px;
	font-size: 0.82rem;
	color: var(--st-muted);
}

/* ==========================================================================
   7. Tools grid & cards
   ========================================================================== */
.st-tools { padding-top: 84px; }
.st-tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 22px;
}
.st-tool-card {
	position: relative;
	overflow: hidden;
	background: var(--st-surface);
	border: 1px solid var(--st-line);
	border-radius: 20px;
	box-shadow: var(--st-shadow-sm);
	transition: transform 0.25s var(--st-ease), box-shadow 0.25s var(--st-ease), border-color 0.25s;
}
.st-tool-card::after {
	content: "";
	position: absolute;
	inset-block-start: -60px;
	inset-inline-end: -60px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--st-primary-soft), transparent 70%);
	opacity: 0;
	transition: opacity 0.3s var(--st-ease);
	pointer-events: none;
}
.st-tool-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 26px 50px -22px rgba(10, 16, 32, 0.4);
	border-color: color-mix(in srgb, var(--st-primary) 38%, var(--st-line));
}
.st-tool-card:hover::after { opacity: 1; }
.st-tool-card.is-featured {
	border-color: color-mix(in srgb, var(--st-primary) 42%, var(--st-line));
	background: linear-gradient(180deg, color-mix(in srgb, var(--st-primary) 6%, var(--st-surface)), var(--st-surface) 55%);
}
.st-tool-card.is-featured::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 3px;
	background: linear-gradient(90deg, #6366f1, #0d9488);
}
.st-tool-card__link {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 26px 24px 22px;
	height: 100%;
	color: var(--st-ink);
	text-decoration: none;
}
.st-tool-card__link:hover { text-decoration: none; }
.st-tool-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.st-tool-card__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(99, 102, 241, 0.16), rgba(13, 148, 136, 0.14));
	color: var(--st-primary);
	box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.16);
	transition: transform 0.25s var(--st-ease);
}
.st-tool-card:hover .st-tool-card__icon { transform: scale(1.05) rotate(-2deg); }
.st-tool-card__icon svg { width: 26px; height: 26px; }
/* Category accents keep the toolbox lively without losing the calm surface. */
.st-tool-card[data-cat~="seo-tools"] .st-tool-card__icon {
	color: #4f46e5;
	background: linear-gradient(145deg, rgba(99, 102, 241, 0.22), rgba(99, 102, 241, 0.06));
	box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.22);
}
.st-tool-card[data-cat~="text-content"] .st-tool-card__icon {
	color: #0d9488;
	background: linear-gradient(145deg, rgba(13, 148, 136, 0.22), rgba(13, 148, 136, 0.06));
	box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.22);
}
.st-tool-card[data-cat~="calculators"] .st-tool-card__icon {
	color: #b45309;
	background: linear-gradient(145deg, rgba(217, 119, 6, 0.24), rgba(217, 119, 6, 0.06));
	box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.24);
}
.st-tool-card[data-cat~="image-web"] .st-tool-card__icon {
	color: #be185d;
	background: linear-gradient(145deg, rgba(219, 39, 119, 0.22), rgba(219, 39, 119, 0.06));
	box-shadow: inset 0 0 0 1px rgba(219, 39, 119, 0.22);
}
.sabagh-dark .st-tool-card[data-cat~="seo-tools"] .st-tool-card__icon { color: #a5b4fc; }
.sabagh-dark .st-tool-card[data-cat~="text-content"] .st-tool-card__icon { color: #5eead4; }
.sabagh-dark .st-tool-card[data-cat~="calculators"] .st-tool-card__icon { color: #fbbf24; }
.sabagh-dark .st-tool-card[data-cat~="image-web"] .st-tool-card__icon { color: #f9a8d4; }
.st-tool-card__cat {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--st-surface-2);
	border: 1px solid var(--st-line);
	color: var(--st-muted);
	font-size: 0.72rem;
	font-weight: 600;
	white-space: nowrap;
}
.st-tool-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.st-tool-card__title { font-size: 1.06rem; margin: 0; font-weight: 700; line-height: 1.45; }
.st-tool-card__text { color: var(--st-muted); font-size: 0.9rem; line-height: 1.7; margin: 0; }
.st-tool-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--st-primary);
	font-size: 0.87rem;
	font-weight: 600;
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--st-line);
}
.st-tool-card__arrow { transition: transform 0.2s var(--st-ease); }
.st-tool-card:hover .st-tool-card__arrow { transform: translateX(4px); }
.sabagh-rtl .st-tool-card:hover .st-tool-card__arrow { transform: scaleX(-1) translateX(4px); }

.st-no-results {
	text-align: center;
	color: var(--st-muted);
	padding: 40px 0;
	font-weight: 600;
}

.st-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
	padding: 60px 24px;
	background: var(--st-surface);
	border: 1px dashed var(--st-line-strong);
	border-radius: var(--st-radius);
	color: var(--st-muted);
}
.st-empty-state svg { width: 40px; height: 40px; color: var(--st-primary); }

/* ==========================================================================
   8. Features / intro / blog
   ========================================================================== */
.st-features__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}
.st-feature {
	padding: 26px 24px;
	border-radius: var(--st-radius);
	border: 1px solid var(--st-line);
	background: var(--st-surface);
	box-shadow: var(--st-shadow-sm);
}
.st-feature__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--st-accent-soft);
	color: #059669;
	margin-bottom: 14px;
}
.sabagh-dark .st-feature__icon { color: #34d399; }
.st-feature__title { font-size: 1rem; margin: 0 0 6px; }
.st-feature__text { color: var(--st-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Top bar above the header ---------- */
.st-topbar {
	background: #070c16;
	color: #c7d2e5;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	font-size: 0.82rem;
}
.st-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}
.st-topbar__links { display: flex; align-items: center; flex-wrap: wrap; }
.st-topbar__links a {
	position: relative;
	color: #c7d2e5;
	text-decoration: none;
	padding: 10px 15px;
	border-radius: 8px;
	transition: color 0.18s, background 0.18s;
}
.st-topbar__links a + a::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	width: 1px;
	height: 11px;
	margin-top: -5px;
	background: rgba(255, 255, 255, 0.13);
}
.st-topbar__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.st-topbar__social { display: flex; align-items: center; gap: 7px; }
.st-topbar__social-link {
	display: grid;
	place-items: center;
	width: 29px;
	height: 29px;
	border-radius: 50%;
	color: #b9c6da;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.09);
	transition: background 0.18s, color 0.18s, transform 0.18s;
}
.st-topbar__social-link svg { width: 15px; height: 15px; }
.st-topbar__social-link:hover {
	background: var(--st-primary);
	border-color: var(--st-primary);
	color: #fff;
	transform: translateY(-1px);
}

/* Pages repeated inside the mobile menu only. */
.st-nav__extra { display: none; }

/* ---------- Homepage intro (why these tools) ---------- */
.st-intro {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, color-mix(in srgb, var(--st-surface-2) 85%, transparent) 0%, transparent 75%);
}
.st-intro::before {
	content: "";
	position: absolute;
	inset-block-start: -170px;
	inset-inline-end: -140px;
	width: 440px;
	height: 440px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(79, 70, 229, 0.16), transparent 70%);
	pointer-events: none;
}
.st-intro__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.85fr);
	gap: 54px;
	align-items: start;
}
.st-intro__body { max-width: 720px; }
.st-intro__body > h2:first-of-type {
	font-size: clamp(1.7rem, 2.9vw, 2.35rem);
	line-height: 1.22;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
}
.st-intro__body > h2:first-of-type::after {
	content: "";
	display: block;
	width: 66px;
	height: 4px;
	border-radius: 999px;
	margin-top: 16px;
	background: linear-gradient(90deg, var(--st-primary), var(--st-accent, #0d9488));
}
.st-intro__body > p:first-of-type {
	font-size: 1.08rem;
	line-height: 1.95;
	color: var(--st-ink);
	font-weight: 500;
	margin-top: 22px;
}
.st-intro__body h2 { margin-top: 36px; font-size: 1.35rem; }
.st-intro__body p { line-height: 1.95; }
.st-intro__aside { position: sticky; inset-block-start: calc(var(--st-header-h, 72px) + 26px); }
.st-intro__panel {
	position: relative;
	overflow: hidden;
	padding: 26px;
	border-radius: 22px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(160deg, #0b1220 0%, #111d33 55%, #0b1a26 100%);
	color: #e6edf8;
	box-shadow: 0 34px 70px -34px rgba(2, 6, 23, 0.65);
}
.st-intro__panel::after {
	content: "";
	position: absolute;
	inset-block-start: -70px;
	inset-inline-end: -70px;
	width: 190px;
	height: 190px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(79, 70, 229, 0.55), transparent 70%);
	filter: blur(6px);
	pointer-events: none;
}
.st-intro__panel-label {
	position: relative;
	margin: 0 0 16px;
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #93a3bd;
}
.st-intro__stats {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 20px;
}
.st-intro__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 8px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid rgba(255, 255, 255, 0.075);
	text-align: center;
}
.st-intro__stat strong { font-size: 1.42rem; line-height: 1.15; color: #fff; }
.st-intro__stat span { font-size: 0.72rem; line-height: 1.4; color: #9fb0c8; }
.st-intro__points {
	position: relative;
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: grid;
	gap: 11px;
}
.st-intro__points li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.9rem;
	line-height: 1.72;
	color: #c9d6e8;
}
.st-intro__points svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #5eead4; }
.st-intro__cta { position: relative; width: 100%; justify-content: center; }

@media (max-width: 1024px) {
	.st-intro__grid { grid-template-columns: 1fr; gap: 32px; }
	.st-intro__aside { position: static; max-width: 560px; }
}

@media (max-width: 900px) {
	.st-topbar { display: none; }
	.st-nav__extra {
		display: block;
		margin-top: 14px;
		padding-top: 14px;
		border-top: 1px solid var(--st-line);
	}
	.st-nav__pages { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
	.st-nav__pages a {
		display: block;
		padding: 10px 12px;
		border-radius: 10px;
		font-size: 0.92rem;
		color: var(--st-muted);
		text-decoration: none;
	}
	.st-nav__pages a:hover { background: var(--st-surface-2); color: var(--st-ink); }
}

@media (max-width: 560px) {
	.st-intro__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.st-intro__stat strong { font-size: 1.2rem; }
	.st-intro__panel { padding: 20px; }
}

.st-blog { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--st-surface-2) 55%, transparent)); }
.st-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 24px;
}
.st-post-card {
	display: flex;
	flex-direction: column;
	background: var(--st-surface);
	border: 1px solid var(--st-line);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--st-shadow-sm);
	transition: transform 0.25s var(--st-ease), box-shadow 0.25s, border-color 0.25s;
}
.st-post-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 26px 54px -24px rgba(10, 16, 32, 0.45);
	border-color: color-mix(in srgb, var(--st-primary) 30%, var(--st-line));
}
.st-post-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--st-surface-2);
	overflow: hidden;
}
.st-post-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(4, 8, 16, 0.45));
	pointer-events: none;
}
.st-post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--st-ease); }
.st-post-card:hover .st-post-card__img { transform: scale(1.05); }
.st-post-card__tag {
	position: absolute;
	z-index: 1;
	inset-block-start: 14px;
	inset-inline-start: 14px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(8, 13, 25, 0.62);
	border: 1px solid rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 0.74rem;
	font-weight: 600;
}
.st-post-card__fake {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0b1220, #4f46e5);
}
.st-post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.st-post-card__meta {
	font-size: 0.78rem;
	color: var(--st-muted);
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}
.st-post-card__meta svg { width: 14px; height: 14px; }
.st-post-card__title { font-size: 1.08rem; margin: 0; line-height: 1.5; }
.st-post-card__title a { color: var(--st-ink); }
.st-post-card__title a:hover { color: var(--st-primary); text-decoration: none; }
.st-post-card__text { color: var(--st-muted); font-size: 0.9rem; line-height: 1.72; margin: 0; flex: 1; }
.st-post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--st-primary);
	margin-top: 4px;
}
.st-post-card__more:hover { text-decoration: none; }
.st-post-card__more svg { transition: transform 0.2s var(--st-ease); }
.st-post-card:hover .st-post-card__more svg { transform: translateX(4px); }
.sabagh-rtl .st-post-card:hover .st-post-card__more svg { transform: scaleX(-1) translateX(4px); }

.st-cta { padding: 0 0 80px; }
.st-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
	padding: 44px;
	border-radius: var(--st-radius-lg);
	background:
		radial-gradient(circle at 84% 16%, rgba(99, 102, 241, 0.5), transparent 52%),
		radial-gradient(circle at 8% 96%, rgba(13, 148, 136, 0.2), transparent 46%),
		linear-gradient(135deg, #111a2e, #080d19);
	color: #f8fafc;
	box-shadow: var(--st-shadow-lg);
}
.st-cta__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 8px; color: #fff; }
.st-cta__sub { margin: 0; color: #cbd5e1; }

/* ==========================================================================
   9. Ads
   ========================================================================== */
.st-ad {
	width: 100%;
	max-width: var(--st-container);
	margin: 36px auto;
	padding-inline: 24px;
}
.st-ad__box {
	min-height: var(--st-ad-h, 280px);
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	overflow: hidden;
	padding: 0;
}
.st-ad ins { max-width: 100%; }

/* ==========================================================================
   10. Page heads, breadcrumbs, prose
   ========================================================================== */
.st-page-head { padding: 36px 0 10px; }
.st-page-head--center { text-align: center; max-width: 780px; margin-inline: auto; }
.st-page-head__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 16px;
	background: var(--st-primary-soft);
	color: var(--st-primary);
	margin-bottom: 18px;
}
.st-page-head--center .st-page-head__icon { margin-inline: auto; }
.st-page-head__icon svg { width: 30px; height: 30px; }
.st-page-head__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 12px; }
.st-page-head__lead { color: var(--st-muted); font-size: 1.04rem; max-width: 65ch; margin: 0 0 8px; }
.st-page-head--center .st-page-head__lead { margin-inline: auto; }

.st-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.82rem;
	color: var(--st-muted);
	padding: 22px 0 0;
}
.st-breadcrumbs a { color: var(--st-muted); }
.st-breadcrumbs a:hover { color: var(--st-primary); }
.st-breadcrumbs__sep { opacity: 0.5; }
.st-breadcrumbs [aria-current] { color: var(--st-ink-soft); font-weight: 600; }

.st-prose { font-size: 1.02rem; line-height: 1.8; color: var(--st-ink-soft); }
.st-prose > * + * { margin-top: 1.1em; }
.st-prose h2 {
	font-size: clamp(1.35rem, 2.2vw, 1.65rem);
	margin-top: 1.8em;
	color: var(--st-ink);
	scroll-margin-top: calc(var(--st-header-h) + 20px);
}
.st-prose h3 { font-size: 1.2rem; margin-top: 1.6em; color: var(--st-ink); }
.st-prose h4 { font-size: 1.05rem; margin-top: 1.4em; color: var(--st-ink); }
.st-prose p { margin: 0 0 1.1em; }
.st-prose ul, .st-prose ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.st-prose li { margin-bottom: 0.45em; }
.st-prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--st-primary) 40%, transparent); }
.st-prose img { border-radius: var(--st-radius); height: auto; }
.st-prose blockquote {
	margin: 1.6em 0;
	padding: 18px 22px;
	border-inline-start: 4px solid var(--st-primary);
	background: var(--st-surface-2);
	border-radius: 0 var(--st-radius-sm) var(--st-radius-sm) 0;
	color: var(--st-ink-soft);
}
.sabagh-rtl .st-prose blockquote { border-radius: var(--st-radius-sm) 0 0 var(--st-radius-sm); }
.st-prose code {
	font-family: var(--st-mono);
	font-size: 0.88em;
	background: var(--st-surface-2);
	padding: 2px 6px;
	border-radius: 6px;
	border: 1px solid var(--st-line);
}
.st-prose pre {
	background: #0b1220;
	color: #e2e8f0;
	padding: 18px;
	border-radius: var(--st-radius-sm);
	overflow-x: auto;
	font-family: var(--st-mono);
	font-size: 0.86rem;
}
.st-prose pre code { background: transparent; border: 0; padding: 0; color: inherit; }
.st-prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.st-prose th, .st-prose td { border: 1px solid var(--st-line); padding: 10px 12px; text-align: start; }
.st-prose th { background: var(--st-surface-2); font-weight: 700; }
.st-prose hr { border: 0; border-top: 1px solid var(--st-line); margin: 2em 0; }
.st-prose details {
	background: var(--st-surface);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius-sm);
	padding: 4px 18px;
	margin-bottom: 10px;
}
.st-prose details[open] { border-color: var(--st-line-strong); }
.st-prose summary {
	cursor: pointer;
	padding: 12px 0;
	font-weight: 650;
	color: var(--st-ink);
}
.st-prose summary::marker { color: var(--st-primary); }

.st-tool-guide { max-width: 820px; margin-inline: auto; }
.st-guide { max-width: 820px; margin: 48px auto 0; }
.st-prose--wide { max-width: 900px; }

/* ==========================================================================
   11. Tool shell & UI components
   ========================================================================== */
.st-tool-shell {
	margin: 28px auto 0;
	max-width: 900px;
	background: var(--st-surface);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius-lg);
	box-shadow: var(--st-shadow-lg);
	overflow: hidden;
}
.st-tool-shell__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--st-line);
	background: var(--st-surface-2);
	font-size: 0.85rem;
	font-weight: 650;
}
.st-tool-shell__label { flex: 1; }
.st-tool-shell__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--st-muted);
	font-size: 0.76rem;
	font-weight: 600;
}
.st-tool-shell__badge svg { width: 14px; height: 14px; color: var(--st-accent); }

.st-tool { display: flex; flex-direction: column; gap: 18px; padding: 26px; }
.st-tool__hint { margin: 0; font-size: 0.82rem; color: var(--st-muted); }
.st-tool__status { margin: 0; font-size: 0.86rem; font-weight: 600; min-height: 1.3em; color: var(--st-muted); }
.st-tool__status.is-ok { color: #047857; }
.sabagh-dark .st-tool__status.is-ok { color: #34d399; }
.st-tool__status.is-error { color: #dc2626; }
.sabagh-dark .st-tool__status.is-error { color: #f87171; }
.st-tool__stats-line { margin: 0; font-size: 0.8rem; color: var(--st-muted); }

/* ---------- Data tools: tables, colours, results ---------- */
.st-input--code,
.st-textarea--code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.88rem;
	letter-spacing: 0;
}
.st-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--st-line);
	border-radius: 14px;
	background: var(--st-surface);
}
.st-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.st-table th,
.st-table td {
	padding: 11px 14px;
	text-align: start;
	border-bottom: 1px solid var(--st-line);
}
.st-table thead th {
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--st-muted);
	background: var(--st-surface-2);
}
.st-table tbody tr:last-child td { border-bottom: 0; }
.st-table th:nth-child(2),
.st-table th:nth-child(3),
.st-table td:nth-child(2),
.st-table td:nth-child(3) {
	text-align: end;
	font-variant-numeric: tabular-nums;
}
.st-color-input {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 8px;
	align-items: center;
}
.st-color-input input[type="color"] {
	width: 48px;
	height: 42px;
	padding: 3px;
	border-radius: 10px;
	border: 1px solid var(--st-line);
	background: var(--st-surface);
	cursor: pointer;
}
.st-contrast-preview {
	display: grid;
	place-items: center;
	min-height: 96px;
	padding: 16px;
	border-radius: 14px;
	border: 1px solid var(--st-line);
	font-size: 1.3rem;
	font-weight: 700;
	text-align: center;
}
.st-contrast-result {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
.st-contrast-result > div {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 12px 14px;
	border: 1px solid var(--st-line);
	border-radius: 12px;
	background: var(--st-surface);
}
.st-contrast-result span { font-size: 0.74rem; color: var(--st-muted); }
.st-contrast-result strong { font-size: 0.95rem; }
.st-contrast-result strong.is-ok { color: #047857; }
.sabagh-dark .st-contrast-result strong.is-ok { color: #34d399; }
.st-contrast-result strong.is-error { color: #dc2626; }
.sabagh-dark .st-contrast-result strong.is-error { color: #f87171; }
.st-color-outs { display: grid; gap: 8px; }
.st-color-out {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 14px;
	border-radius: 12px;
	border: 1px solid var(--st-line);
	background: var(--st-surface);
}
.st-color-out span { font-size: 0.76rem; color: var(--st-muted); letter-spacing: 0.04em; }
.st-color-out code { font-size: 0.9rem; font-weight: 600; }
.st-swatch { display: block; height: 42px; margin-top: 6px; border-radius: 10px; border: 1px solid var(--st-line); }
.st-tools__more { display: flex; justify-content: center; margin-top: 34px; }
.st-tools__more .st-btn { padding-inline: 26px; }

@media (max-width: 560px) {
	.st-contrast-result { grid-template-columns: 1fr; }
}
.st-tool__warn { color: #dc2626; font-size: 0.84rem; font-weight: 600; }

.st-field { display: flex; flex-direction: column; gap: 7px; }
.st-label { font-size: 0.86rem; font-weight: 650; color: var(--st-ink-soft); }
.st-input, .st-textarea, .st-select {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius-sm);
	background: var(--st-bg);
	color: var(--st-ink);
	font-size: 0.94rem;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.st-input:focus, .st-textarea:focus, .st-select:focus {
	outline: none;
	border-color: var(--st-primary);
	background: var(--st-surface);
	box-shadow: 0 0 0 3px var(--st-primary-soft);
}
.st-textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.st-textarea--lg { min-height: 150px; font-size: 1rem; }
.st-textarea--code, .st-input--mono, .st-textarea--code {
	font-family: var(--st-mono);
	font-size: 0.84rem;
	line-height: 1.65;
	direction: ltr;
	text-align: left;
}
.st-select { appearance: none; background-image: none; cursor: pointer; }
.st-color { width: 100%; height: 44px; padding: 4px; border: 1px solid var(--st-line); border-radius: var(--st-radius-sm); background: var(--st-bg); cursor: pointer; }

.st-input-group { display: flex; gap: 8px; align-items: stretch; }
.st-input-group .st-input { flex: 1; font-size: 1rem; letter-spacing: 0.02em; }

.st-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.st-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.st-grid-2--align-end { align-items: end; }

.st-range-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-range {
	width: 100%;
	height: 6px;
	margin: 8px 0;
	border-radius: 999px;
	background: var(--st-line);
	appearance: none;
	cursor: pointer;
}
.st-range::-webkit-slider-thumb {
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--st-primary);
	border: 3px solid var(--st-surface);
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.42);
}
.st-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--st-primary);
	border: 3px solid var(--st-surface);
}

.st-badge {
	font-size: 0.78rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--st-surface-2);
	color: var(--st-muted);
	font-variant-numeric: tabular-nums;
}
.st-badge.is-good { background: var(--st-accent-soft); color: #047857; }
.sabagh-dark .st-badge.is-good { color: #34d399; }
.st-badge.is-warn { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.sabagh-dark .st-badge.is-warn { color: #fbbf24; }
.st-badge.is-bad { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.sabagh-dark .st-badge.is-bad { color: #f87171; }

.st-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	border: 0;
	padding: 0;
	margin: 0;
}
.st-checks--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; }
.st-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88rem;
	color: var(--st-ink-soft);
	cursor: pointer;
}
.st-check input {
	width: 17px;
	height: 17px;
	accent-color: var(--st-primary);
	cursor: pointer;
}

.st-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	gap: 10px;
}
.st-stat {
	background: var(--st-surface-2);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius-sm);
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.st-stat__value {
	color: var(--st-ink);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}
.st-stat--accent .st-stat__value { color: var(--st-primary); }
.st-stat__label { font-size: 0.75rem; color: var(--st-muted); }

.st-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: 0.82rem;
	color: var(--st-muted);
}
.st-meta-row strong { color: var(--st-ink); }

.st-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.st-inline-field { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--st-muted); }
.st-select--sm { width: auto; padding: 6px 10px; font-size: 0.84rem; }

.st-strength { display: flex; flex-direction: column; gap: 6px; }
.st-strength__track {
	height: 8px;
	border-radius: 999px;
	background: var(--st-line);
	overflow: hidden;
}
.st-strength__fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: #ef4444;
	transition: width 0.35s var(--st-ease), background 0.35s;
}
.st-strength__text { font-size: 0.82rem; color: var(--st-muted); }
.st-strength__text strong { color: var(--st-ink); }

.st-density { display: flex; flex-direction: column; gap: 8px; }
.st-density__title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--st-muted); font-weight: 700; }
.st-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.st-keyword {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--st-surface-2);
	color: var(--st-ink-soft);
	font-size: 0.82rem;
	font-weight: 600;
}
.st-keyword b { color: var(--st-primary); }

.st-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 34px 20px;
	border: 2px dashed var(--st-line-strong);
	border-radius: var(--st-radius);
	background: var(--st-bg);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}
.st-dropzone:hover, .st-dropzone.is-drag { border-color: var(--st-primary); background: var(--st-primary-soft); }
.st-dropzone__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--st-surface);
	color: var(--st-primary);
	box-shadow: var(--st-shadow-sm);
	margin-bottom: 4px;
}
.st-dropzone__title { font-weight: 650; }
.st-dropzone__hint { font-size: 0.8rem; color: var(--st-muted); }

.st-im-result { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; }
.st-im-preview { margin: 0; border-radius: var(--st-radius-sm); overflow: hidden; border: 1px solid var(--st-line); background: var(--st-surface-2); }
.st-im-preview img { width: 100%; height: 150px; object-fit: cover; }
.st-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.st-kv div { display: flex; flex-direction: column; }
.st-kv dt { font-size: 0.76rem; color: var(--st-muted); }
.st-kv dd { margin: 0; font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.st-im-result .st-btn { grid-column: 1 / -1; justify-self: start; }

.st-qr-layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.st-qr-controls { display: flex; flex-direction: column; gap: 16px; }
.st-qr-stage {
	display: grid;
	place-items: center;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	aspect-ratio: 1 / 1;
}
.st-qr-stage canvas { width: 100%; height: auto; image-rendering: pixelated; }

/* ==========================================================================
   12. Article / post meta
   ========================================================================== */
.st-article__head { padding: 26px 0 18px; }
.st-article__cat {
	display: inline-block;
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--st-primary);
	background: var(--st-primary-soft);
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.st-article__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 14px; letter-spacing: -0.02em; }
.st-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: 0.85rem;
	color: var(--st-muted);
}
.st-article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.st-article__meta svg { width: 15px; height: 15px; }
.st-article__media { margin: 22px 0 28px; border-radius: var(--st-radius); overflow: hidden; box-shadow: var(--st-shadow); }
.st-article__media img { width: 100%; height: auto; }
.st-article__body { margin-bottom: 34px; }

/* Author / editorial transparency box */
.st-author {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 22px;
	margin: 0 0 34px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	background: var(--st-surface);
}
.st-author__initial {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 1.15rem;
	color: #fff;
	background: linear-gradient(135deg, var(--st-primary-solid), var(--st-accent));
}
.st-author__body { min-width: 0; }
.st-author__name {
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 0.98rem;
	color: var(--st-ink);
}
.st-author__name span {
	font-weight: 500;
	font-size: 0.78rem;
	color: var(--st-muted);
	margin-inline-start: 6px;
}
.st-author__bio {
	margin: 0 0 8px;
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--st-soft);
}
.st-author__link {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--st-primary);
	text-decoration: none;
}
.st-author__link:hover { text-decoration: underline; }
@media (max-width: 480px) {
	.st-author { padding: 16px; gap: 12px; }
	.st-author__initial { flex-basis: 40px; width: 40px; height: 40px; font-size: 1rem; }
}

.st-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 18px 0;
	margin: 26px 0;
	border-top: 1px solid var(--st-line);
	border-bottom: 1px solid var(--st-line);
}
.st-share__label { font-size: 0.85rem; font-weight: 650; color: var(--st-muted); margin-inline-end: 4px; }
.st-share__btn {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--st-line);
	background: var(--st-surface);
	color: var(--st-ink-soft);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.st-share__btn:hover { background: var(--st-primary); color: #fff; border-color: var(--st-primary); text-decoration: none; }

.st-post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 34px 0; }
.st-post-nav__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius-sm);
	background: var(--st-surface);
}
.st-post-nav__item:hover { border-color: var(--st-primary); text-decoration: none; }
.st-post-nav__item--next { text-align: end; }
.st-post-nav__label { font-size: 0.75rem; color: var(--st-muted); }
.st-post-nav__title { font-weight: 650; font-size: 0.92rem; color: var(--st-ink); }

.st-related { padding: 10px 0 40px; }

/* ==========================================================================
   13. Contact
   ========================================================================== */
.st-contact {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 26px;
	margin: 30px 0 50px;
	align-items: start;
}
.st-contact__form-wrap {
	background: var(--st-surface);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius-lg);
	box-shadow: var(--st-shadow);
	padding: 28px;
}
.st-form { display: flex; flex-direction: column; gap: 16px; }
.st-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.st-form__hint { margin: 0; font-size: 0.78rem; color: var(--st-muted); }
.st-form__status { margin: 0; min-height: 1.4em; font-size: 0.9rem; font-weight: 600; }
.st-form__status.is-ok { color: #047857; }
.sabagh-dark .st-form__status.is-ok { color: #34d399; }
.st-form__status.is-error { color: #dc2626; }
/* Visually hidden without any negative offset: an off-canvas box in RTL would
   widen the document and create horizontal scrolling on phones. */
.st-honeypot {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.st-contact__info {
	background:
		radial-gradient(circle at 88% 8%, rgba(99, 102, 241, 0.35), transparent 55%),
		linear-gradient(160deg, #111a2e, #080d19);
	color: #e2e8f0;
	border-radius: var(--st-radius-lg);
	padding: 28px;
	box-shadow: var(--st-shadow);
}
.st-contact__title { color: #fff; font-size: 1.05rem; margin: 0 0 18px; }
.st-contact__list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 16px; }
.st-contact__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; }
.st-contact__list a { color: #cbd5e1; }
.st-contact__list a:hover { color: #fff; }
.st-contact__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.08);
	color: #93c5fd;
	flex: none;
}
.st-contact__label { display: block; font-size: 0.74rem; color: #94a3b8; }
.st-contact__reply { font-size: 0.84rem; color: #94a3b8; margin: 0 0 18px; }
.st-contact__info .st-social__link { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.12); color: #e2e8f0; }
.st-contact__info .st-social__link:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.st-contact__content { margin-top: 10px; }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.st-footer {
	position: relative;
	background:
		radial-gradient(680px 280px at 12% 0%, rgba(79, 70, 229, 0.22), transparent 62%),
		linear-gradient(180deg, #080d19, #0a1222 60%, #070c16);
	color: #c3cee0;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	padding: 64px 0 0;
	margin-top: 40px;
}
.st-footer__grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
	gap: 34px;
	padding-bottom: 44px;
}
.st-footer .st-brand__name { color: #fff; font-size: 1.12rem; }
.st-footer__text { font-size: 0.97rem; line-height: 1.9; margin: 16px 0 20px; max-width: 52ch; color: #94a3b8; }
.st-footer__note { font-size: 0.82rem; color: #94a3b8; }
.st-footer__title {
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	color: #8ea0bb;
	margin: 0 0 18px;
	font-weight: 700;
}
html[lang="ar"] .st-footer__title { letter-spacing: 0.02em; font-size: 0.84rem; }
.st-footer__menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.st-footer__menu a {
	display: inline-block;
	color: #c3cee0;
	font-size: 0.9rem;
	transition: color 0.18s, transform 0.18s;
}
.st-footer__menu a:hover { color: #fff; transform: translateX(-3px); text-decoration: none; }
html[lang="en"] .st-footer__menu a:hover { transform: translateX(3px); }
.st-footer__contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.st-footer__contact li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.st-footer__contact svg { width: 17px; height: 17px; color: #7d8ca6; flex: none; }
.st-footer__contact a { color: #c3cee0; }
.st-footer__contact a:hover { color: #fff; }
.st-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 20px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.82rem;
	color: #8ea0bb;
}
.st-footer__bottom {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 14px;
	text-align: center;
}
.st-footer__copy { margin: 0; justify-self: center; }
.st-footer__spacer { display: block; }

/* Floating scroll-to-top with a progress ring. */
.st-to-top-float {
	position: fixed;
	z-index: 85;
	inset-block-end: 26px;
	inset-inline-end: 26px;
	width: 54px;
	height: 54px;
	padding: 3px;
	border: 0;
	border-radius: 50%;
	background: conic-gradient(from -90deg, #6366f1 calc(var(--st-progress, 0) * 1%), rgba(255, 255, 255, 0.18) 0);
	box-shadow: 0 18px 40px -14px rgba(2, 6, 23, 0.85);
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(0.9);
	transition: opacity 0.25s var(--st-ease), transform 0.25s var(--st-ease), visibility 0.25s;
	cursor: pointer;
}
.st-to-top-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.st-to-top-float__inner {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #0b1220;
	color: #fff;
	transition: background 0.2s;
}
.st-to-top-float:hover .st-to-top-float__inner { background: #4f46e5; }
.st-to-top-float svg { width: 20px; height: 20px; }

.st-social { display: flex; gap: 8px; }
.st-social__link {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--st-line);
	background: var(--st-surface);
	color: var(--st-ink-soft);
}
.st-social__link:hover { color: var(--st-primary); border-color: var(--st-primary); }
.st-footer .st-social__link { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); color: #cbd5e1; }
.st-footer .st-social__link:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ==========================================================================
   15. Pagination, search form, 404
   ========================================================================== */
.st-pagination { margin: 40px 0; }
.st-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.st-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--st-line);
	background: var(--st-surface);
	color: var(--st-ink-soft);
	font-weight: 600;
	font-size: 0.88rem;
}
.st-pagination .page-numbers.current { background: var(--st-primary); border-color: var(--st-primary); color: #fff; }
.st-pagination .page-numbers:hover { border-color: var(--st-primary); text-decoration: none; }
.st-pagination svg { width: 17px; height: 17px; }

.search-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto 20px; }
.search-form .search-field {
	flex: 1;
	padding: 11px 14px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius-sm);
	background: var(--st-surface);
}
.search-form .search-submit {
	padding: 11px 18px;
	border: 0;
	border-radius: var(--st-radius-sm);
	background: var(--st-primary);
	color: #fff;
	font-weight: 650;
}

.st-404 { text-align: center; padding: 70px 0; }
.st-404__code {
	font-size: clamp(4rem, 14vw, 8rem);
	font-weight: 850;
	line-height: 1;
	margin: 0 0 8px;
	background: linear-gradient(100deg, var(--st-primary), var(--st-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.st-page { padding-bottom: 60px; }
.st-page__head { padding: 26px 0 10px; }
.st-page__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 8px; }
.st-page__updated { font-size: 0.8rem; color: var(--st-muted); margin: 0 0 20px; }

/* ==========================================================================
   15b. How it works & FAQ
   ========================================================================== */
.st-steps { background: linear-gradient(180deg, color-mix(in srgb, var(--st-surface-2) 70%, transparent), transparent 85%); }
.st-steps__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.st-step {
	position: relative;
	padding: 30px 26px;
	border-radius: 20px;
	border: 1px solid var(--st-line);
	background: var(--st-surface);
	box-shadow: var(--st-shadow-sm);
}
.st-step__num {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: var(--st-primary-soft);
	color: var(--st-primary);
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 16px;
}
.st-step__title { font-size: 1.05rem; margin: 0 0 8px; }
.st-step__text { margin: 0; color: var(--st-muted); font-size: 0.93rem; line-height: 1.78; }
.st-faq__item p:last-child { margin-bottom: 18px; }

.st-faq__inner { max-width: 880px; }
.st-faq__list { display: flex; flex-direction: column; gap: 12px; }
.st-faq__item {
	border: 1px solid var(--st-line);
	border-radius: 14px;
	background: var(--st-surface);
	padding: 0 20px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.st-faq__item[open] {
	border-color: color-mix(in srgb, var(--st-primary) 32%, var(--st-line));
	box-shadow: var(--st-shadow-sm);
}
.st-faq__item summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 0;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.st-faq__item summary::-webkit-details-marker { display: none; }
.st-faq__item summary::after {
	content: "+";
	font-size: 1.35rem;
	line-height: 1;
	color: var(--st-primary);
	flex: none;
}
.st-faq__item[open] summary::after { content: "–"; }
.st-faq__item p { margin: 0 0 18px; color: var(--st-muted); font-size: 0.95rem; line-height: 1.85; }

/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.st-hero__grid { gap: 34px; }
	.st-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
	.st-footer__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	.st-steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.st-header__inner { gap: 14px; }
	.st-burger { display: grid; }
	.st-nav {
		position: absolute;
		inset-block-start: 100%;
		inset-inline: 0;
		display: none;
		background: var(--st-surface);
		border-bottom: 1px solid var(--st-line);
		box-shadow: var(--st-shadow);
		padding: 14px 20px 20px;
		max-height: calc(100vh - var(--st-header-h));
		overflow-y: auto;
	}
	.st-header.is-open .st-nav { display: block; }
	.st-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.st-menu a { display: block; padding: 11px 12px; }
	.st-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding-inline-start: 14px; }
	.st-hero { padding: 52px 0 56px; }
	.st-hero__grid { grid-template-columns: 1fr; gap: 40px; }
	.st-hero__workspace { order: 2; width: 100%; }
	.st-hero__copy { max-width: none; }
	.st-hero__sub { max-width: none; }
	.st-hero__stats { gap: 16px 0; }
	.st-to-top-float { inset-block-end: 22px; inset-inline-end: 18px; }
	.st-contact { grid-template-columns: 1fr; }
	.st-qr-layout { grid-template-columns: 1fr; }
	.st-qr-stage { max-width: 320px; margin-inline: auto; width: 100%; }
	.st-section { padding: 52px 0; }
	.st-cta__inner { padding: 32px; }
	.st-container { padding-inline: 18px; }
	.st-ad { padding-inline: 18px; }
}

@media (max-width: 720px) {
	.st-grid-3 { grid-template-columns: 1fr; }
	.st-im-result { grid-template-columns: 1fr; }
	.st-footer__grid { grid-template-columns: 1fr 1fr; }
	.st-footer__brand { grid-column: 1 / -1; }
	.st-footer__col:last-child { grid-column: auto; }
	.st-section__head--row { flex-direction: column; align-items: flex-start; }
	.st-hero__stats { gap: 18px; }
	.st-page-head { padding-top: 24px; }
	.st-tool { padding: 20px; }
	.st-article__media { margin-inline: -18px; border-radius: 0; }
	.st-cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
	.st-steps__grid { grid-template-columns: 1fr; }
	.st-grid-2 { grid-template-columns: 1fr; }
	.st-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.st-lang__opt { font-size: 0.78rem; }
	.st-brand__name { font-size: 0.98rem; }
	.st-lang { padding: 6px 9px; }
	.st-breadcrumbs { font-size: 0.76rem; }
	.st-post-nav { grid-template-columns: 1fr; }
	.st-post-nav__item--next { text-align: start; }
	.st-footer__grid { grid-template-columns: 1fr; }
	.st-footer__bottom { grid-template-columns: 1fr; justify-items: center; }
	.st-footer__spacer { display: none; }
	.st-step { padding: 24px 20px; }
	.st-tool-shell__badge { display: none; }
	.st-workspace__head { padding: 10px 14px; }
	.st-hero__title { font-size: 1.95rem; }
	.st-hero__badge { font-size: 0.78rem; padding: 6px 13px 6px 10px; }
	.st-hero__cta { gap: 10px; }
	.st-hero__cta .st-btn { flex: 1 1 100%; }
	.st-hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 0; }
	.st-mini-stat { padding-inline: 18px; }
	.st-to-top-float { width: 48px; height: 48px; inset-block-end: 18px; inset-inline-end: 16px; }
	.st-kv { grid-template-columns: 1fr; }
	.st-ad__box { min-height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.st-header, .st-footer, .st-ad, .st-share, .st-post-nav { display: none !important; }
	body { background: #fff; color: #000; }
}

/* Al-Adasa Digital — educational tool components */
.st-edu-tool .st-stat{margin:18px 0;padding:18px;border-radius:14px;background:var(--st-surface,var(--st-bg-soft,#f5f7fb));text-align:center}.st-edu-tool .st-stat__value{display:block;font-size:clamp(1.6rem,4vw,2.4rem);margin:8px 0}.st-edu-tool .st-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.st-plan-list{padding-inline-start:22px}.st-plan-list li{padding:9px 0;border-bottom:1px solid var(--st-border,#e5e7eb)}.st-plan-list button{margin-inline-start:12px}.st-card-deck{min-height:110px;display:grid;place-items:center;text-align:center;padding:22px;margin:16px 0;border:1px dashed var(--st-border,#cbd5e1);border-radius:14px;font-size:1.25rem;font-weight:700}.st-edu-tool fieldset{border:1px solid var(--st-border,#e5e7eb);border-radius:12px;padding:14px;margin:12px 0}.st-edu-tool fieldset label{display:block;padding:7px 0}.st-edu-tool fieldset input{margin-inline-end:8px}

/* Educational math calculator */
.st-tool--math .st-math-expression{font-size:1.35rem;direction:ltr;text-align:left;font-variant-numeric:tabular-nums}.st-tool--math .st-math-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}.st-tool--math .st-math-key{min-height:44px;justify-content:center;font-size:1.05rem}.st-tool--math .st-math-result{display:flex;flex-direction:column;gap:8px;padding:16px;margin-top:14px;border:1px solid var(--st-border,#ddd);border-radius:12px;background:var(--st-surface,#f7f8fa)}.st-tool--math .st-math-result output{font-size:1.7rem;font-weight:700;direction:ltr;text-align:left;overflow-wrap:anywhere}@media(min-width:600px){.st-tool--math .st-math-keys{grid-template-columns:repeat(6,minmax(0,1fr))}}


/* Educational tool interfaces — v1.1.3 */
.st-tool--grade .st-math-result output,
.st-tool--timer .st-math-result output{display:block;font-size:clamp(2rem,7vw,3rem);font-weight:800;line-height:1.35;direction:ltr;text-align:center;font-variant-numeric:tabular-nums}
.st-tool--grade .st-math-result p,.st-tool--timer .st-math-result p{margin:8px 0 0;color:var(--st-muted,#667085);text-align:center}
.st-tool--planner [data-plan-list]{margin:0;padding-inline-start:1.25rem;display:grid;gap:10px}
.st-tool--planner [data-plan-list] li{padding:10px 12px;border:1px solid var(--st-border,#ddd);border-radius:10px;background:var(--st-surface,#f7f8fa)}
.st-tool--planner [data-plan-list] button{margin-inline-start:10px}
.st-tool--flashcards [data-card-deck]{min-height:110px;display:grid;place-items:center;text-align:center;font-size:1.2rem;font-weight:700;line-height:1.8;padding:16px}
.st-tool--quiz [data-quiz-area]{display:grid;gap:14px}
.st-tool--quiz [data-quiz-area] fieldset{border:1px solid var(--st-border,#ddd);border-radius:12px;padding:14px;display:grid;gap:9px}
.st-tool--quiz [data-quiz-area] legend{font-weight:700;padding-inline:6px}
.st-tool--quiz [data-quiz-area] label{display:flex;align-items:center;gap:8px;cursor:pointer}
.st-tool--quiz [data-quiz-area] input{accent-color:var(--st-primary,#3457d5)}


/* Educational identity refresh: calm classroom palette and clearer contrast. */
:root {
	--st-primary: #2563a6;
	--st-primary-solid: #2563a6;
	--st-primary-solid-2: #1d4f86;
	--st-primary-600: #1d4f86;
	--st-primary-soft: rgba(37, 99, 166, 0.10);
	--st-accent: #0f8b78;
	--st-accent-soft: rgba(15, 139, 120, 0.12);
	--st-deep: #13283f;
	--st-hero-ink: #f8fbff;
	--st-hero-muted: #d1deec;
}

/* ---------------------------------------------------------
   Curriculum & textbook library (v1.3.0)
--------------------------------------------------------- */
.edu-curriculum,.edu-single{padding-bottom:64px}
.edu-stage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:30px 0 48px}
.edu-stage-card,.edu-book-card,.edu-unit-item,.edu-lesson-card{background:var(--st-surface,var(--st-card,#fff));border:1px solid var(--st-border,#e5eaf0);border-radius:18px;overflow:hidden}
.edu-stage-card{padding:22px}
.edu-stage-card__head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.edu-stage-card__head h2{font-size:1.2rem;margin:0}
.edu-stage-card__icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:var(--st-primary-soft,#eaf3ff);color:var(--st-primary,#1769aa)}
.edu-stage-card__icon .dashicons{font-size:24px;width:24px;height:24px}
.edu-grade-list{display:grid;gap:8px}
.edu-grade-list--wide{grid-template-columns:repeat(2,minmax(0,1fr));margin:20px 0 28px}
.edu-grade-link{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:11px;background:var(--st-bg-soft,#f6f8fb);color:var(--st-text,#172b43);text-decoration:none;font-weight:600;transition:background .2s,color .2s}
.edu-grade-link:hover{background:var(--st-primary-soft,#eaf3ff);color:var(--st-primary,#1769aa)}
.edu-latest-books{margin-top:44px}
.edu-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.edu-section-heading h2,.edu-units>h2{font-size:1.45rem;margin:0}
.edu-section-heading>a,.edu-text-link{color:var(--st-primary,#1769aa);font-weight:700;text-decoration:none}
.edu-book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0}
.edu-book-card{display:flex;flex-direction:column;min-width:0}
.edu-book-card__image{height:190px;display:grid;place-items:center;overflow:hidden;background:var(--st-bg-soft,#f6f8fb);color:var(--st-primary,#1769aa);text-decoration:none}
.edu-book-card__image img{width:100%;height:100%;object-fit:contain}
.edu-book-card__image .dashicons{font-size:54px;width:54px;height:54px}
.edu-book-card__body{padding:16px}
.edu-book-card__body h3{font-size:1.05rem;line-height:1.5;margin:0 0 8px}
.edu-book-card__body h3 a{color:inherit;text-decoration:none}
.edu-book-card__body p,.edu-muted{font-size:.9rem;color:var(--st-muted,#66758a);line-height:1.7}
.edu-book-hero{display:grid;grid-template-columns:230px minmax(0,1fr);gap:30px;align-items:start;padding:26px 0 34px}
.edu-book-cover{min-height:280px;border:1px solid var(--st-border,#e5eaf0);border-radius:16px;background:var(--st-bg-soft,#f6f8fb);display:grid;place-items:center;overflow:hidden;color:var(--st-primary,#1769aa)}
.edu-book-cover img{width:100%;height:100%;max-height:360px;object-fit:contain}
.edu-book-cover .dashicons{font-size:76px;width:76px;height:76px}
.edu-book-info h1{font-size:clamp(1.8rem,4vw,2.6rem);margin:8px 0 12px}
.edu-book-meta,.edu-breadcrumb{color:var(--st-muted,#66758a);font-size:.92rem}
.edu-resource-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.edu-resource-link{display:inline-flex;align-items:center;gap:8px;padding:11px 15px;border-radius:11px;background:var(--st-primary,#1769aa);color:#fff;text-decoration:none;font-weight:700}
.edu-resource-link:hover{opacity:.9;color:#fff}
.edu-resource-link svg{width:17px;height:17px}
.edu-book-description{margin:12px 0 34px}
.edu-unit-list{display:grid;gap:14px;margin-top:18px}
.edu-unit-item{padding:20px}
.edu-unit-item h3{margin:0 0 10px;font-size:1.1rem}
.edu-unit-item h3 a,.edu-unit-item li a{color:var(--st-text,#172b43);text-decoration:none}
.edu-unit-item ul{margin:12px 0 0;padding-inline-start:22px;display:grid;gap:8px}
.edu-unit-item li::marker{color:var(--st-primary,#1769aa)}
.edu-lesson-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}
.edu-lesson-card{display:flex;align-items:center;gap:12px;padding:17px;text-decoration:none;color:var(--st-text,#172b43)}
.edu-lesson-card>.dashicons{color:var(--st-primary,#1769aa);font-size:24px;width:24px;height:24px}
.edu-lesson-card strong{flex:1}
.edu-lesson-card span:last-child{font-size:.82rem;color:var(--st-primary,#1769aa)}
.edu-breadcrumb{display:flex;flex-wrap:wrap;gap:9px;padding:22px 0 8px}
.edu-breadcrumb a{color:var(--st-primary,#1769aa);text-decoration:none}
.edu-intro{margin:20px 0}
@media(max-width:800px){.edu-book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.edu-book-hero{grid-template-columns:170px minmax(0,1fr)}.edu-stage-grid{gap:14px}}
@media(max-width:560px){.edu-stage-grid,.edu-book-grid,.edu-grade-list--wide,.edu-lesson-grid{grid-template-columns:1fr}.edu-book-hero{grid-template-columns:1fr}.edu-book-cover{min-height:220px}.edu-book-cover img{max-height:280px}.edu-stage-card{padding:17px}.edu-book-card__image{height:210px}}
