/* ═══════════════════════════════════════════════════════
 *  حدائق الصحة — التنسيقات الأساسية
 *  ملاحظة: متغيرات الألوان تُحقن من لوحة التحكم في <head>
 * ═══════════════════════════════════════════════════════ */

:root {
	/* ألوان احتياطية — يعاد تعريفها من لوحة التحكم */
	--hg-primary: #1AB69D;
	--hg-primary-rgb: 26, 182, 157;
	--hg-secondary: #EE4A62;
	--hg-accent: #F8B81F;
	--hg-dark: #231F40;
	--hg-heading: #181818;
	--hg-body: #6B7280;

	/* مشتقّات */
	--hg-primary-dark: color-mix(in srgb, var(--hg-primary) 82%, #000);
	--hg-primary-soft: rgba(var(--hg-primary-rgb), 0.08);
	--hg-primary-ring: rgba(var(--hg-primary-rgb), 0.28);

	/* محايدة */
	--hg-white: #fff;
	--hg-shade: #F7F9FA;
	--hg-shade-2: #EEF2F4;
	--hg-border: #E5E9EC;

	/* مقاسات */
	--hg-container: 1240px;
	--hg-gutter: 24px;
	--hg-radius: 12px;
	--hg-radius-lg: 18px;
	--hg-radius-pill: 999px;

	/* ظلال */
	--hg-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
	--hg-shadow: 0 4px 16px rgba(16, 24, 40, .07);
	--hg-shadow-lg: 0 12px 32px rgba(16, 24, 40, .10);

	/* حركة */
	--hg-ease: cubic-bezier(.4, 0, .2, 1);
	--hg-t: .22s var(--hg-ease);

	/* خطوط */
	--hg-font: 'Almarai', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--hg-font-en: 'Poppins', 'Segoe UI', system-ui, sans-serif;

	/* الهيدر */
	--hg-header-h: 64px;
	--hg-topbar-h: 36px;
}

/* ─── إعادة ضبط ─── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* يمنع اختفاء العناوين خلف الهيدر الثابت عند التنقل بالروابط الداخلية */
	scroll-padding-top: calc(var(--hg-header-h) + 20px);
	/* clip بدل hidden: يمنع التمرير الأفقي دون تعطيل position:sticky للهيدر */
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: var(--hg-font);
	font-size: 16px;
	line-height: 1.75;
	color: var(--hg-body);
	background: var(--hg-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	color: var(--hg-heading);
	font-weight: 800;
	line-height: 1.3;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--hg-primary);
	text-decoration: none;
	transition: color var(--hg-t);
}
a:hover { color: var(--hg-primary-dark); }

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

ul, ol { margin: 0 0 1.1em; padding-inline-start: 1.4em; }

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

/* ─── الوصولية: مؤشر التركيز واضح دائماً ─── */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--hg-primary-ring);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ─── تخطّي إلى المحتوى (قارئات الشاشة) ─── */
/* يُخفى بالقصّ لا بالإزاحة — الإزاحة بـ -9999px تُنتج تمريراً أفقياً في RTL */
.hg-skip {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	z-index: 999;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	background: var(--hg-primary);
	color: #fff;
	border-radius: 0 0 var(--hg-radius) 0;
}
.hg-skip:focus {
	width: auto;
	height: auto;
	padding: 12px 20px;
	overflow: visible;
	clip-path: none;
	color: #fff;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ═══════════════════════════════════════════════════════
 *  التخطيط
 * ═══════════════════════════════════════════════════════ */
.hg-container {
	width: 100%;
	max-width: var(--hg-container);
	margin-inline: auto;
	padding-inline: var(--hg-gutter);
}

.hg-section {
	padding-block: clamp(48px, 6vw, 88px);
}
.hg-section--alt { background: var(--hg-shade); }
.hg-section--dark {
	background: var(--hg-dark);
	color: rgba(255, 255, 255, .78);
}
.hg-section--dark h1,
.hg-section--dark h2,
.hg-section--dark h3 { color: #fff; }

.hg-grid { display: grid; gap: 28px; }
.hg-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hg-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ─── ترويسة القسم ─── */
.hg-head {
	max-width: 660px;
	margin: 0 auto clamp(30px, 4vw, 52px);
	text-align: center;
}
.hg-head__tag {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 16px;
	border-radius: var(--hg-radius-pill);
	background: var(--hg-primary-soft);
	color: var(--hg-primary);
	font-size: .8rem;
	font-weight: 700;
}
.hg-head__title { margin-bottom: .35em; }
.hg-head__text { margin: 0; font-size: 1.02rem; }
.hg-head--start { text-align: start; margin-inline: 0; }

/* ═══════════════════════════════════════════════════════
 *  الأزرار
 * ═══════════════════════════════════════════════════════ */
.hg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 28px;
	border: 2px solid transparent;
	border-radius: var(--hg-radius-pill);
	background: var(--hg-primary);
	color: #fff;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background var(--hg-t), border-color var(--hg-t), color var(--hg-t), transform var(--hg-t), box-shadow var(--hg-t);
}
.hg-btn:hover {
	background: var(--hg-primary-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(var(--hg-primary-rgb), .3);
}
.hg-btn:active { transform: translateY(0); }

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

.hg-btn--light {
	background: #fff;
	color: var(--hg-heading);
}
.hg-btn--light:hover {
	background: #fff;
	color: var(--hg-primary);
}

.hg-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, .5);
	color: #fff;
}
.hg-btn--ghost:hover {
	background: rgba(255, 255, 255, .12);
	border-color: #fff;
	color: #fff;
}

.hg-btn--sm { padding: 9px 20px; font-size: .85rem; }
.hg-btn--lg { padding: 16px 36px; font-size: 1.02rem; }
.hg-btn--block { width: 100%; }

/* الأيقونة تنعكس مع اتجاه الصفحة */
.hg-btn .hg-icon { flex-shrink: 0; }
[dir="rtl"] .hg-btn .hg-icon--flip { transform: scaleX(-1); }

/* ═══════════════════════════════════════════════════════
 *  الهيدر
 * ═══════════════════════════════════════════════════════ */
.hg-topbar {
	background: var(--hg-dark);
	color: rgba(255, 255, 255, .82);
	font-size: .85rem;
}
.hg-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: var(--hg-topbar-h);
	padding-block: 4px;
}
.hg-topbar__contact {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.hg-topbar a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: inherit;
}
.hg-topbar a:hover { color: #fff; }

.hg-header {
	position: relative;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--hg-border);
}
.hg-header-sticky .hg-header {
	position: sticky;
	top: 0;
}
.hg-header.is-stuck {
	box-shadow: var(--hg-shadow);
	border-bottom-color: transparent;
}

.hg-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--hg-header-h);
}

.hg-logo {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--hg-heading);
}
.hg-logo img {
	height: var(--hg-logo-h, 40px);
	max-height: calc(var(--hg-header-h) - 18px);
	width: auto;
	object-fit: contain;
}
/* الشعار داخل ودجت ووردبريس الافتراضي */
.hg-logo .custom-logo-link { display: flex; }
.hg-logo .custom-logo {
	height: var(--hg-logo-h, 40px);
	max-height: calc(var(--hg-header-h) - 18px);
	width: auto;
	object-fit: contain;
}
.hg-logo:hover { color: var(--hg-primary); }

/* ─── القائمة ─── */
.hg-nav { margin-inline-end: auto; }
.hg-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hg-nav__list a {
	display: block;
	padding: 10px 14px;
	border-radius: 8px;
	color: var(--hg-heading);
	font-size: .95rem;
	font-weight: 700;
	/* بند القائمة يبقى على سطر واحد — اللف يضاعف ارتفاع الهيدر */
	white-space: nowrap;
	transition: color var(--hg-t), background var(--hg-t);
}
.hg-nav__list > li { flex-shrink: 0; }
.hg-nav__list a:hover,
.hg-nav__list .current-menu-item > a,
.hg-nav__list .current_page_item > a {
	color: var(--hg-primary);
	background: var(--hg-primary-soft);
}

/* قوائم فرعية */
.hg-nav__list li { position: relative; }
.hg-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-start: 0;
	z-index: 20;
	min-width: 230px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius);
	box-shadow: var(--hg-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--hg-t), transform var(--hg-t), visibility var(--hg-t);
}
.hg-nav__list li:hover > .sub-menu,
.hg-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.hg-nav__list .sub-menu a { font-weight: 400; }
.hg-nav__list .sub-menu .sub-menu {
	top: -8px;
	inset-inline-start: 100%;
}

/* ─── أدوات الهيدر ─── */
.hg-header__tools {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
.hg-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--hg-border);
	border-radius: 50%;
	background: #fff;
	color: var(--hg-heading);
	cursor: pointer;
	transition: color var(--hg-t), border-color var(--hg-t), background var(--hg-t);
}
.hg-iconbtn:hover {
	color: var(--hg-primary);
	border-color: var(--hg-primary);
	background: var(--hg-primary-soft);
}

/* ─── مبدّل اللغة ─── */
.hg-lang { position: relative; }
.hg-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-pill);
	background: #fff;
	font-size: .85rem;
	font-weight: 700;
	cursor: pointer;
	transition: border-color var(--hg-t), color var(--hg-t);
}
.hg-lang__toggle:hover {
	border-color: var(--hg-primary);
	color: var(--hg-primary);
}
.hg-lang__caret { transition: transform var(--hg-t); }
.hg-lang.is-open .hg-lang__caret { transform: rotate(180deg); }

.hg-lang__menu {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-end: 0;
	z-index: 30;
	min-width: 150px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius);
	box-shadow: var(--hg-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--hg-t), transform var(--hg-t), visibility var(--hg-t);
}
.hg-lang.is-open .hg-lang__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.hg-lang__item {
	display: block;
	padding: 9px 14px;
	border-radius: 8px;
	color: var(--hg-heading);
	font-size: .9rem;
}
.hg-lang__item:hover { background: var(--hg-shade); }
.hg-lang__item.is-active {
	background: var(--hg-primary-soft);
	color: var(--hg-primary);
	font-weight: 700;
}

/* ─── زر قائمة الموبايل ─── */
.hg-burger { display: none; }

/* ═══════════════════════════════════════════════════════
 *  البحث المنسدل
 * ═══════════════════════════════════════════════════════ */
.hg-search {
	position: absolute;
	inset-inline: 0;
	top: 100%;
	z-index: 90;
	padding: 22px 0;
	background: #fff;
	border-bottom: 1px solid var(--hg-border);
	box-shadow: var(--hg-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity var(--hg-t), transform var(--hg-t), visibility var(--hg-t);
}
.hg-search.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.hg-search__form {
	display: flex;
	gap: 10px;
	max-width: 680px;
	margin-inline: auto;
}
.hg-search__input {
	flex: 1;
	padding: 13px 20px;
	border: 2px solid var(--hg-border);
	border-radius: var(--hg-radius-pill);
	background: var(--hg-shade);
	transition: border-color var(--hg-t), background var(--hg-t);
}
.hg-search__input:focus {
	border-color: var(--hg-primary);
	background: #fff;
	outline: none;
}
.hg-search__results {
	max-width: 680px;
	margin: 16px auto 0;
}
.hg-search__result {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	border-radius: var(--hg-radius);
	color: var(--hg-heading);
	transition: background var(--hg-t);
}
.hg-search__result:hover { background: var(--hg-shade); }
.hg-search__result img {
	width: 52px;
	height: 52px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}
.hg-search__result-type {
	font-size: .75rem;
	color: var(--hg-primary);
	font-weight: 700;
}
.hg-search__empty {
	padding: 18px;
	text-align: center;
	color: var(--hg-body);
}

/* ═══════════════════════════════════════════════════════
 *  قائمة الموبايل
 * ═══════════════════════════════════════════════════════ */
.hg-mobile {
	position: fixed;
	inset-block: 0;
	inset-inline-end: 0;
	z-index: 200;
	width: min(340px, 86vw);
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -8px 0 32px rgba(16, 24, 40, .14);
	transform: translateX(100%);
	transition: transform .3s var(--hg-ease);
	overflow-y: auto;
	overscroll-behavior: contain;
}
[dir="rtl"] .hg-mobile { transform: translateX(-100%); }
.hg-mobile.is-open { transform: translateX(0) !important; }

.hg-mobile__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--hg-border);
}
.hg-mobile__body { padding: 14px 20px 28px; }

.hg-mobile__search {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
}
.hg-mobile__search input {
	flex: 1;
	min-width: 0;
	padding: 11px 16px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-pill);
	background: var(--hg-shade);
	font-size: .92rem;
}
.hg-mobile__search input:focus {
	border-color: var(--hg-primary);
	background: #fff;
	outline: none;
}
.hg-mobile__search button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hg-primary);
	color: #fff;
	cursor: pointer;
}

.hg-mobile__list {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.hg-mobile__list a {
	display: block;
	padding: 13px 12px;
	border-radius: 8px;
	color: var(--hg-heading);
	font-weight: 700;
}
.hg-mobile__list a:hover {
	background: var(--hg-primary-soft);
	color: var(--hg-primary);
}
.hg-mobile__list .sub-menu {
	margin: 0;
	padding-inline-start: 16px;
	list-style: none;
}
.hg-mobile__list .sub-menu a { font-weight: 400; font-size: .92rem; }

.hg-overlay {
	position: fixed;
	inset: 0;
	z-index: 199;
	background: rgba(16, 24, 40, .5);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--hg-t), visibility var(--hg-t);
}
.hg-overlay.is-open { opacity: 1; visibility: visible; }

body.hg-locked { overflow: hidden; }

/* ═══════════════════════════════════════════════════════
 *  القسم الرئيسي (Hero)
 * ═══════════════════════════════════════════════════════ */
.hg-hero {
	position: relative;
	padding-block: clamp(50px, 7vw, 96px);
	background: linear-gradient(135deg, var(--hg-shade) 0%, rgba(var(--hg-primary-rgb), .06) 100%);
	overflow: hidden;
	isolation: isolate;
}

/* ─── الطبقة الزخرفية ───
 * أشكال شفافة تملأ الفراغ أعلى العمود النصي.
 * مبنية بالـ CSS وحده — بلا أي طلب صورة إضافي.
 * pointer-events:none حتى لا تعترض النقر على الأزرار. */
.hg-hero__decor {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
}

.hg-hero__decor span {
	position: absolute;
	display: block;
	border-radius: 50%;
}

/* دائرة كبيرة ناعمة أعلى جهة البداية (يمين في العربية) */
.hg-hero__decor span:nth-child(1) {
	inset-block-start: -90px;
	inset-inline-start: 4%;
	width: 340px;
	height: 340px;
	background: radial-gradient(circle at 35% 35%,
		rgba(var(--hg-primary-rgb), .16) 0%,
		rgba(var(--hg-primary-rgb), .05) 45%,
		transparent 70%);
}

/* حلقة مفرّغة رفيعة */
.hg-hero__decor span:nth-child(2) {
	inset-block-start: 26px;
	inset-inline-start: 20%;
	width: 132px;
	height: 132px;
	border: 1.5px solid rgba(var(--hg-primary-rgb), .22);
	background: transparent;
}

/* نقاط منقّطة خفيفة */
.hg-hero__decor span:nth-child(3) {
	inset-block-start: 54px;
	inset-inline-start: 9%;
	width: 108px;
	height: 108px;
	border-radius: 0;
	background-image: radial-gradient(rgba(var(--hg-primary-rgb), .3) 1.5px, transparent 1.6px);
	background-size: 15px 15px;
	opacity: .55;
}

/* لمسة دافئة صغيرة بلون التمييز */
.hg-hero__decor span:nth-child(4) {
	inset-block-start: 120px;
	inset-inline-start: 33%;
	width: 15px;
	height: 15px;
	background: var(--hg-accent);
	opacity: .5;
}

/* هالة سفلية تربط القسم بما تحته */
.hg-hero__decor span:nth-child(5) {
	inset-block-end: -120px;
	inset-inline-end: -60px;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle,
		rgba(var(--hg-primary-rgb), .1) 0%,
		transparent 68%);
}

/* حركة طفيفة تمنح القسم عمقاً دون تشتيت */
@media (prefers-reduced-motion: no-preference) {
	.hg-hero__decor span:nth-child(2) { animation: hg-drift 14s ease-in-out infinite; }
	.hg-hero__decor span:nth-child(4) { animation: hg-drift 10s ease-in-out infinite reverse; }
}
@keyframes hg-drift {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50%      { transform: translate3d(0, -14px, 0); }
}

.hg-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(30px, 5vw, 60px);
	align-items: center;
}
.hg-hero__tagline {
	display: inline-block;
	margin-bottom: 16px;
	padding: 7px 18px;
	border-radius: var(--hg-radius-pill);
	background: #fff;
	color: var(--hg-primary);
	font-size: .85rem;
	font-weight: 700;
	box-shadow: var(--hg-shadow-sm);
}
.hg-hero__title {
	margin-bottom: .45em;
	font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem);
	line-height: 1.22;
}
.hg-hero__title span { color: var(--hg-primary); }
.hg-hero__text {
	max-width: 52ch;
	margin-bottom: 30px;
	font-size: 1.06rem;
}
.hg-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.hg-hero__media { position: relative; }
.hg-hero__media img {
	width: 100%;
	border-radius: var(--hg-radius-lg);
	box-shadow: var(--hg-shadow-lg);
}

/* ═══════════════════════════════════════════════════════
 *  السلايدر
 * ═══════════════════════════════════════════════════════ */
.hg-slider {
	position: relative;
	border-radius: var(--hg-radius-lg);
	overflow: hidden;
	box-shadow: var(--hg-shadow-lg);
	background: var(--hg-shade-2);
}

.hg-slider__track {
	position: relative;
	/* نسبة ثابتة تمنع قفز التخطيط أثناء تحميل الصور */
	aspect-ratio: 16 / 11;
}

.hg-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .55s var(--hg-ease), visibility .55s var(--hg-ease);
}
.hg-slide.is-active {
	opacity: 1;
	visibility: visible;
}
.hg-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hg-slide__caption {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	padding: 46px 30px 26px;
	background: linear-gradient(to top, rgba(16, 20, 34, .88) 0%, rgba(16, 20, 34, .55) 55%, transparent 100%);
	color: #fff;
}
.hg-slide__title {
	margin: 0 0 6px;
	color: #fff;
	font-size: clamp(1.1rem, .9rem + .8vw, 1.5rem);
	line-height: 1.35;
}
.hg-slide__text {
	margin: 0 0 14px;
	font-size: .92rem;
	color: rgba(255, 255, 255, .88);
	/* سطران كحد أقصى حتى لا يطغى النص على الصورة */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ─── أزرار التنقل ─── */
.hg-slider__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	transform: translateY(-50%);
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--hg-heading);
	cursor: pointer;
	opacity: 0;
	transition: opacity var(--hg-t), background var(--hg-t), color var(--hg-t);
	box-shadow: var(--hg-shadow);
}
.hg-slider:hover .hg-slider__nav,
.hg-slider__nav:focus-visible { opacity: 1; }
.hg-slider__nav:hover {
	background: var(--hg-primary);
	color: #fff;
}
.hg-slider__nav--prev { inset-inline-start: 14px; }
.hg-slider__nav--next { inset-inline-end: 14px; }

/* السهم يشير للاتجاه الصحيح في كلا اللغتين */
.hg-slider__nav--prev .hg-icon { transform: rotate(180deg); }
[dir="rtl"] .hg-slider__nav--prev .hg-icon { transform: rotate(0deg); }
[dir="rtl"] .hg-slider__nav--next .hg-icon { transform: rotate(180deg); }

/* ─── النقاط ─── */
.hg-slider__dots {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 14px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.hg-slider__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
	transition: background var(--hg-t), width var(--hg-t);
}
.hg-slider__dot.is-active {
	width: 26px;
	border-radius: var(--hg-radius-pill);
	background: #fff;
}

/* الشرائح بلا تعليق: النقاط تحتاج خلفية لتبقى مرئية */
.hg-slider__dots::before {
	content: '';
	position: absolute;
	inset-inline: 0;
	inset-block: -20px -14px;
	background: linear-gradient(to top, rgba(16, 20, 34, .4), transparent);
	pointer-events: none;
	z-index: -1;
}

/* ═══════════════════════════════════════════════════════
 *  شريط المميزات
 * ═══════════════════════════════════════════════════════ */
.hg-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 20px;
}
.hg-feature {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius);
	background: #fff;
	transition: border-color var(--hg-t), box-shadow var(--hg-t), transform var(--hg-t);
}
.hg-feature:hover {
	border-color: transparent;
	box-shadow: var(--hg-shadow);
	transform: translateY(-3px);
}
.hg-feature__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--hg-primary-soft);
	color: var(--hg-primary);
}
.hg-feature__title {
	margin: 0 0 2px;
	font-size: 1rem;
	font-weight: 800;
}
.hg-feature__desc {
	margin: 0;
	font-size: .88rem;
}

/* ═══════════════════════════════════════════════════════
 *  بطاقة الكورس
 * ═══════════════════════════════════════════════════════ */
.hg-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-lg);
	overflow: hidden;
	transition: border-color var(--hg-t), box-shadow var(--hg-t), transform var(--hg-t);
}
.hg-card:hover {
	border-color: transparent;
	box-shadow: var(--hg-shadow-lg);
	transform: translateY(-5px);
}

.hg-card__media {
	position: relative;
	display: block;
	/* نسبة ثابتة تمنع قفز التخطيط أثناء تحميل الصورة */
	aspect-ratio: 16 / 10;
	background: var(--hg-shade-2);
	overflow: hidden;
}

/* ─── غلاف SVG موضوعي حين لا توجد صورة بارزة ─── */
.hg-thumb--cover {
	display: block;
	width: 100%;
	height: 100%;
}
.hg-cover {
	display: block;
	width: 100%;
	height: 100%;
	/* currentColor يقود لون الرسم والنقاط معاً */
	color: var(--hg-primary);
	--hg-cover-a: rgba(var(--hg-primary-rgb), .10);
	--hg-cover-b: rgba(var(--hg-primary-rgb), .02);
	transition: transform .5s var(--hg-ease);
}
.hg-card:hover .hg-cover,
.hg-post:hover .hg-cover { transform: scale(1.05); }

/* تدرّج لوني خفيف حسب الموضوع — يمنع تشابه البطاقات المتجاورة */
.hg-cover--heart,
.hg-cover--blood     { --hg-cover-a: rgba(238, 74, 98, .12); --hg-cover-b: rgba(238, 74, 98, .02); color: var(--hg-secondary); }
.hg-cover--nutrition { --hg-cover-a: rgba(248, 184, 31, .16); --hg-cover-b: rgba(248, 184, 31, .03); color: #C8901A; }
.hg-cover--mind,
.hg-cover--family    { --hg-cover-a: rgba(99, 102, 241, .12); --hg-cover-b: rgba(99, 102, 241, .02); color: #6366F1; }
.hg-cover--virus     { --hg-cover-a: rgba(139, 92, 246, .12); --hg-cover-b: rgba(139, 92, 246, .02); color: #8B5CF6; }

/* بديل أنيق حين لا توجد صورة بارزة — أفضل من مربع رمادي فارغ */
.hg-thumb--empty {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% 25%, rgba(var(--hg-primary-rgb), .22), transparent 55%),
		radial-gradient(circle at 75% 80%, rgba(var(--hg-primary-rgb), .14), transparent 50%),
		linear-gradient(135deg, var(--hg-shade) 0%, var(--hg-shade-2) 100%);
	position: relative;
}
.hg-thumb--empty::after {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 54px;
	height: 54px;
	opacity: .32;
	background: currentColor;
	color: var(--hg-primary);
	/* أيقونة كتاب مضمّنة كقناع — بلا طلب شبكة إضافي */
	-webkit-mask: var(--hg-book-mask) center / contain no-repeat;
	mask: var(--hg-book-mask) center / contain no-repeat;
}
:root {
	--hg-book-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}
.hg-card__media img,
.hg-card__media .hg-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--hg-ease);
}
.hg-card:hover .hg-card__media img { transform: scale(1.06); }

.hg-card__badge {
	position: absolute;
	top: 14px;
	inset-inline-start: 14px;
	padding: 5px 14px;
	border-radius: var(--hg-radius-pill);
	background: rgba(255, 255, 255, .95);
	color: var(--hg-heading);
	font-size: .75rem;
	font-weight: 700;
	backdrop-filter: blur(6px);
}
.hg-card__badge--free {
	background: var(--hg-primary);
	color: #fff;
}

.hg-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px;
}

.hg-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-bottom: 12px;
	font-size: .82rem;
	color: var(--hg-body);
}
.hg-card__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.hg-card__meta .hg-icon { color: var(--hg-primary); }

.hg-card__title {
	margin: 0 0 12px;
	font-size: 1.08rem;
	line-height: 1.45;
}
.hg-card__title a { color: var(--hg-heading); }
.hg-card__title a:hover { color: var(--hg-primary); }

.hg-card__excerpt {
	margin: 0 0 16px;
	font-size: .9rem;
	line-height: 1.7;
}

.hg-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--hg-border);
}
.hg-card__price {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--hg-primary);
}
.hg-card__author {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .85rem;
	font-weight: 700;
	color: var(--hg-heading);
}
.hg-card__author img {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
}

/* ─── التقييم ─── */
.hg-rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .82rem;
	font-weight: 700;
	color: var(--hg-heading);
}
.hg-rating .hg-icon {
	fill: var(--hg-accent);
	stroke: var(--hg-accent);
}
.hg-rating__count {
	font-weight: 400;
	color: var(--hg-body);
}

/* ═══════════════════════════════════════════════════════
 *  بطاقة التصنيف
 * ═══════════════════════════════════════════════════════ */
.hg-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 32px 22px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-lg);
	background: #fff;
	text-align: center;
	transition: border-color var(--hg-t), box-shadow var(--hg-t), transform var(--hg-t);
}
.hg-cat:hover {
	border-color: transparent;
	box-shadow: var(--hg-shadow-lg);
	transform: translateY(-5px);
}
.hg-cat__icon {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	border-radius: 20px;
	background: var(--hg-primary-soft);
	color: var(--hg-primary);
	transition: background var(--hg-t), color var(--hg-t);
}
.hg-cat:hover .hg-cat__icon {
	background: var(--hg-primary);
	color: #fff;
}
.hg-cat__title {
	margin: 0;
	font-size: 1.05rem;
	color: var(--hg-heading);
}
.hg-cat__count {
	margin: 0;
	font-size: .85rem;
}

/* ═══════════════════════════════════════════════════════
 *  الإحصائيات
 * ═══════════════════════════════════════════════════════ */
.hg-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 24px;
}
.hg-stat { text-align: center; }
.hg-stat__num {
	display: block;
	font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--hg-primary);
}
.hg-stat__label {
	display: block;
	margin-top: 6px;
	font-size: .93rem;
}

/* ═══════════════════════════════════════════════════════
 *  قسم الدعوة
 * ═══════════════════════════════════════════════════════ */
.hg-cta {
	position: relative;
	padding-block: clamp(56px, 7vw, 96px);
	background: var(--hg-dark);
	color: rgba(255, 255, 255, .8);
	text-align: center;
	overflow: hidden;
}
.hg-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(var(--hg-primary-rgb), .92), rgba(35, 31, 64, .92));
}
.hg-cta__inner {
	position: relative;
	max-width: 700px;
	margin-inline: auto;
}
.hg-cta__title {
	color: #fff;
	margin-bottom: .4em;
}
.hg-cta__text {
	margin-bottom: 28px;
	font-size: 1.05rem;
	color: rgba(255, 255, 255, .88);
}

/* ═══════════════════════════════════════════════════════
 *  المقالات
 * ═══════════════════════════════════════════════════════ */
.hg-post {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-lg);
	overflow: hidden;
	transition: border-color var(--hg-t), box-shadow var(--hg-t), transform var(--hg-t);
}
.hg-post:hover {
	border-color: transparent;
	box-shadow: var(--hg-shadow-lg);
	transform: translateY(-5px);
}
.hg-post__media {
	aspect-ratio: 16 / 10;
	background: var(--hg-shade-2);
	overflow: hidden;
}
.hg-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--hg-ease);
}
.hg-post:hover .hg-post__media img { transform: scale(1.06); }

.hg-post__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px;
}
.hg-post__cat {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 12px;
	padding: 4px 13px;
	border-radius: var(--hg-radius-pill);
	background: var(--hg-primary-soft);
	color: var(--hg-primary);
	font-size: .75rem;
	font-weight: 700;
}
.hg-post__title {
	margin: 0 0 12px;
	font-size: 1.12rem;
	line-height: 1.45;
}
.hg-post__title a { color: var(--hg-heading); }
.hg-post__title a:hover { color: var(--hg-primary); }
.hg-post__excerpt {
	margin: 0 0 16px;
	font-size: .92rem;
}
.hg-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--hg-border);
	font-size: .82rem;
}
.hg-post__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.hg-post__meta .hg-icon { color: var(--hg-primary); }

/* ═══════════════════════════════════════════════════════
 *  المقال المفرد
 * ═══════════════════════════════════════════════════════ */
.hg-single { padding-block: clamp(36px, 5vw, 64px); }
.hg-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 44px;
	align-items: start;
}
.hg-single__layout--full { grid-template-columns: minmax(0, 1fr); }

.hg-single__header { margin-bottom: 28px; }
.hg-single__title { margin-bottom: .35em; }
.hg-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	font-size: .88rem;
}
.hg-single__meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.hg-single__meta .hg-icon { color: var(--hg-primary); }

.hg-single__thumb {
	margin-bottom: 32px;
	border-radius: var(--hg-radius-lg);
	overflow: hidden;
}
.hg-single__thumb img { width: 100%; }

/* ─── محتوى المقال ─── */
.hg-content { font-size: 1.03rem; line-height: 1.9; }
.hg-content > * + * { margin-top: 1.15em; }
.hg-content h2 { margin-top: 1.8em; font-size: 1.55rem; }
.hg-content h3 { margin-top: 1.5em; font-size: 1.28rem; }
.hg-content img { border-radius: var(--hg-radius); }
.hg-content ul,
.hg-content ol { padding-inline-start: 1.5em; }
.hg-content li + li { margin-top: .4em; }
.hg-content blockquote {
	margin: 1.6em 0;
	padding: 20px 26px;
	border-inline-start: 4px solid var(--hg-primary);
	border-radius: 0 var(--hg-radius) var(--hg-radius) 0;
	background: var(--hg-shade);
	font-size: 1.06rem;
}
[dir="rtl"] .hg-content blockquote {
	border-radius: var(--hg-radius) 0 0 var(--hg-radius);
}
.hg-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .93rem;
}
.hg-content th,
.hg-content td {
	padding: 11px 14px;
	border: 1px solid var(--hg-border);
	text-align: start;
}
.hg-content th { background: var(--hg-shade); font-weight: 700; }
.hg-content pre {
	padding: 18px;
	border-radius: var(--hg-radius);
	background: var(--hg-dark);
	color: #e6edf3;
	overflow-x: auto;
	direction: ltr;
	text-align: left;
}
/* الجداول والأكواد العريضة تُمرَّر داخلياً بدل كسر الصفحة */
.hg-content .hg-scroll { overflow-x: auto; }

/* ─── فهرس المحتويات ─── */
.hg-toc {
	margin-bottom: 30px;
	padding: 20px 24px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius);
	background: var(--hg-shade);
}
.hg-toc__title {
	margin: 0 0 12px;
	font-size: 1rem;
}
.hg-toc ol {
	margin: 0;
	padding-inline-start: 1.3em;
	font-size: .93rem;
}
.hg-toc li + li { margin-top: .45em; }
.hg-toc a { color: var(--hg-body); }
.hg-toc a:hover { color: var(--hg-primary); }

/* ─── المشاركة ─── */
.hg-share {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--hg-border);
}
.hg-share__label { font-weight: 700; color: var(--hg-heading); }
.hg-share a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--hg-border);
	border-radius: 50%;
	color: var(--hg-body);
	transition: color var(--hg-t), border-color var(--hg-t), background var(--hg-t);
}
.hg-share a:hover {
	color: #fff;
	background: var(--hg-primary);
	border-color: var(--hg-primary);
}

/* ═══════════════════════════════════════════════════════
 *  التعليقات
 * ═══════════════════════════════════════════════════════ */
.hg-comments {
	margin-top: 56px;
	padding-top: 36px;
	border-top: 1px solid var(--hg-border);
}
.hg-comments__title {
	margin-bottom: 26px;
	font-size: 1.35rem;
}

.hg-comments__list {
	margin: 0 0 36px;
	padding: 0;
	list-style: none;
}
.hg-comments__list .children {
	margin: 20px 0 0;
	padding-inline-start: clamp(16px, 4vw, 46px);
	list-style: none;
	border-inline-start: 2px solid var(--hg-border);
}

.hg-comment { margin-bottom: 20px; }
.hg-comment:last-child { margin-bottom: 0; }

.hg-comment__body {
	display: flex;
	gap: 16px;
	padding: 22px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-lg);
	background: #fff;
	transition: border-color var(--hg-t), box-shadow var(--hg-t);
}
.hg-comment__body:hover {
	border-color: transparent;
	box-shadow: var(--hg-shadow);
}

.hg-comment__avatar { flex-shrink: 0; }
.hg-comment__avatar img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.hg-comment__content { flex: 1; min-width: 0; }

.hg-comment__head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-bottom: 8px;
}
.hg-comment__author {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
}
.hg-comment__date {
	font-size: .82rem;
	color: var(--hg-body);
}

.hg-comment__pending {
	margin: 0 0 10px;
	padding: 8px 14px;
	border-radius: 8px;
	background: rgba(var(--hg-primary-rgb), .1);
	color: var(--hg-primary);
	font-size: .85rem;
}

.hg-comment__text {
	font-size: .96rem;
	line-height: 1.75;
}
.hg-comment__text p:last-child { margin-bottom: 0; }

.hg-comment__actions {
	display: flex;
	gap: 16px;
	margin-top: 12px;
	font-size: .85rem;
	font-weight: 700;
}
.hg-comment__actions a { color: var(--hg-primary); }
.hg-comment__actions a:hover { text-decoration: underline; }

.hg-comments__closed {
	padding: 16px 20px;
	border-radius: var(--hg-radius);
	background: var(--hg-shade);
	text-align: center;
}

/* ─── نموذج التعليق ─── */
.hg-comment-form {
	padding: 28px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-lg);
	background: var(--hg-shade);
}
.hg-comment-form__note {
	margin-bottom: 20px;
	font-size: .86rem;
}
.hg-comment-form__row {
	margin-bottom: 18px;
}
.hg-comment-form__row label {
	display: block;
	margin-bottom: 7px;
	font-size: .9rem;
	font-weight: 700;
	color: var(--hg-heading);
}
.hg-comment-form__row .required { color: var(--hg-secondary); }

.hg-comment-form input[type="text"],
.hg-comment-form input[type="email"],
.hg-comment-form input[type="url"],
.hg-comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius);
	background: #fff;
	font-size: .95rem;
	transition: border-color var(--hg-t), box-shadow var(--hg-t);
}
.hg-comment-form input:focus,
.hg-comment-form textarea:focus {
	border-color: var(--hg-primary);
	box-shadow: 0 0 0 3px var(--hg-primary-ring);
	outline: none;
}
.hg-comment-form textarea {
	resize: vertical;
	min-height: 130px;
}

/* حقلا الاسم والبريد جنباً إلى جنب على الشاشات الواسعة */
.hg-comment-form__row--half { display: inline-block; width: 100%; }
@media (min-width: 600px) {
	.hg-comment-form__row--half {
		width: calc(50% - 9px);
		vertical-align: top;
	}
	.hg-comment-form__row--half + .hg-comment-form__row--half {
		margin-inline-start: 18px;
	}
}

.hg-comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: .87rem;
}
.hg-comment-form .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}
.hg-comment-form .comment-form-cookies-consent input { width: auto; margin-top: 4px; }

.hg-comment-form .form-submit { margin-bottom: 0; }

.comment-reply-title small { font-size: .8rem; margin-inline-start: 10px; }
.comment-reply-title small a { color: var(--hg-secondary); }

/* ─── الشريط الجانبي ─── */
.hg-sidebar { position: sticky; top: calc(var(--hg-header-h) + 24px); }
.widget {
	margin-bottom: 26px;
	padding: 24px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-lg);
	background: #fff;
}
.widget:last-child { margin-bottom: 0; }
.widget__title {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--hg-border);
	font-size: 1.05rem;
}
.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .93rem;
}
.widget li + li {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--hg-border);
}
.widget a { color: var(--hg-body); }
.widget a:hover { color: var(--hg-primary); }

/* ═══════════════════════════════════════════════════════
 *  مسار التنقل
 * ═══════════════════════════════════════════════════════ */
.hg-breadcrumb {
	padding-block: 16px;
	background: var(--hg-shade);
	border-bottom: 1px solid var(--hg-border);
	font-size: .86rem;
}
.hg-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	max-width: var(--hg-container);
	margin-inline: auto;
	padding: 0 var(--hg-gutter);
	list-style: none;
}
.hg-breadcrumb__item + .hg-breadcrumb__item::before {
	content: '/';
	margin-inline-end: 8px;
	color: var(--hg-border);
}
.hg-breadcrumb a { color: var(--hg-body); }
.hg-breadcrumb a:hover { color: var(--hg-primary); }
.hg-breadcrumb [aria-current] { color: var(--hg-heading); font-weight: 700; }

/* ─── فاصل بصري بين القائمة وأول محتوى ─── */
/* قوالب Tutor تبدأ ملتصقة بالقائمة تماماً. المسافة تُضاف على
   العنصر الأول داخل <main> فقط، فلا تتكرر مع مسار التنقل حين يظهر. */
.hg-tutor-single .hg-main > .tutor-wrap:first-child,
.hg-tutor-single .hg-main > .tutor-course-details-page:first-child,
.hg-tutor-single .hg-main > div:first-child:not(.hg-breadcrumb) {
	padding-top: clamp(24px, 3vw, 40px);
}

/* حين يظهر مسار التنقل يكفي هامشه — والمحتوى بعده يأخذ مسافته */
.hg-breadcrumb + .tutor-wrap,
.hg-breadcrumb + div > .tutor-wrap {
	padding-top: clamp(20px, 2.5vw, 32px);
}

/* ─── مسافة قبل الفوتر ───
   قوالب Tutor تنتهي بلا حشو سفلي فتلتصق بالفوتر تماماً.
   نضيفها على آخر عنصر داخل <main> فقط حتى لا تتضاعف مع أقسام الثيم
   التي تملك حشوها الخاص أصلاً. */
.hg-main > .tutor-wrap:last-child,
.hg-main > .tutor-course-details-page:last-child,
.hg-tutor-single .hg-main > *:last-child {
	padding-bottom: clamp(40px, 5vw, 72px);
}

/* ═══════════════════════════════════════════════════════
 *  ترويسة الأرشيف
 * ═══════════════════════════════════════════════════════ */
.hg-archive-head {
	padding-block: clamp(38px, 5vw, 62px);
	background: linear-gradient(135deg, var(--hg-shade) 0%, rgba(var(--hg-primary-rgb), .07) 100%);
	text-align: center;
}
.hg-archive-head__title { margin-bottom: .3em; }
.hg-archive-head__text { max-width: 620px; margin-inline: auto; }

/* ═══════════════════════════════════════════════════════
 *  ترويسة الصفحات الداخلية
 * ═══════════════════════════════════════════════════════ */
.hg-pagehead {
	padding-block: clamp(40px, 5vw, 72px);
	background: linear-gradient(135deg, var(--hg-shade) 0%, rgba(var(--hg-primary-rgb), .07) 100%);
}
.hg-pagehead__inner {
	display: grid;
	gap: clamp(28px, 4vw, 52px);
	align-items: center;
}
.hg-pagehead--split .hg-pagehead__inner { grid-template-columns: 1.15fr 1fr; }

.hg-pagehead__title { margin-bottom: .35em; }
.hg-pagehead__text {
	max-width: 62ch;
	margin: 0;
	font-size: 1.05rem;
}
.hg-pagehead__media img {
	width: 100%;
	border-radius: var(--hg-radius-lg);
	box-shadow: var(--hg-shadow-lg);
}

/* عمود ضيّق للنصوص الطويلة — سطر أقصر يقرأ أسرع */
.hg-narrow { max-width: 820px; }

/* ═══════════════════════════════════════════════════════
 *  بطاقة رسالة / استفسار
 * ═══════════════════════════════════════════════════════ */
.hg-mission {
	padding: 30px 26px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-lg);
	background: #fff;
	height: 100%;
	transition: border-color var(--hg-t), box-shadow var(--hg-t), transform var(--hg-t);
}
.hg-mission:hover {
	border-color: transparent;
	box-shadow: var(--hg-shadow-lg);
	transform: translateY(-4px);
}
.hg-mission__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	border-radius: 16px;
	background: var(--hg-primary-soft);
	color: var(--hg-primary);
}
.hg-mission__title { margin: 0 0 10px; font-size: 1.12rem; }
.hg-mission__text  { margin: 0; font-size: .94rem; }

/* ═══════════════════════════════════════════════════════
 *  مجال عمل (مرقّم)
 * ═══════════════════════════════════════════════════════ */
.hg-field {
	position: relative;
	padding: 28px 26px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-lg);
	background: #fff;
	height: 100%;
	overflow: hidden;
	transition: border-color var(--hg-t), box-shadow var(--hg-t);
}
.hg-field:hover {
	border-color: transparent;
	box-shadow: var(--hg-shadow-lg);
}
.hg-field__num {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-end: 18px;
	font-size: 2.6rem;
	font-weight: 800;
	line-height: 1;
	color: var(--hg-primary);
	opacity: .13;
	pointer-events: none;
}
.hg-field__title {
	margin: 0 0 10px;
	font-size: 1.08rem;
	/* يترك مجالاً للرقم الكبير في الزاوية */
	padding-inline-end: 46px;
}
.hg-field__text { margin: 0; font-size: .93rem; }

/* ═══════════════════════════════════════════════════════
 *  ميزة بعلامة صح
 * ═══════════════════════════════════════════════════════ */
.hg-why {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 20px 22px;
	border-radius: var(--hg-radius);
	background: var(--hg-shade);
	height: 100%;
}
.hg-why__check {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--hg-primary);
	color: #fff;
}
.hg-why__title { margin: 0 0 5px; font-size: 1.02rem; }
.hg-why__text  { margin: 0; font-size: .92rem; }

/* ═══════════════════════════════════════════════════════
 *  بطاقات التواصل
 * ═══════════════════════════════════════════════════════ */
.hg-contact-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 22px;
}
.hg-ccard {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 32px 22px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-lg);
	background: #fff;
	text-align: center;
	color: var(--hg-heading);
	transition: border-color var(--hg-t), box-shadow var(--hg-t), transform var(--hg-t);
}
.hg-ccard:not(.hg-ccard--static):hover {
	border-color: transparent;
	box-shadow: var(--hg-shadow-lg);
	transform: translateY(-4px);
	color: var(--hg-heading);
}
.hg-ccard__icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-bottom: 10px;
	border-radius: 18px;
	background: var(--hg-primary-soft);
	color: var(--hg-primary);
	transition: background var(--hg-t), color var(--hg-t);
}
.hg-ccard:not(.hg-ccard--static):hover .hg-ccard__icon {
	background: var(--hg-primary);
	color: #fff;
}
.hg-ccard__label {
	margin: 0;
	font-size: .88rem;
	font-weight: 700;
	color: var(--hg-body);
}
.hg-ccard__value {
	font-size: 1.02rem;
	font-weight: 800;
	word-break: break-word;
}

.hg-contact-hours {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin: 26px 0 0;
	font-size: .93rem;
}
.hg-contact-hours .hg-icon { color: var(--hg-primary); }

/* ═══════════════════════════════════════════════════════
 *  صندوق النموذج
 * ═══════════════════════════════════════════════════════ */
.hg-formbox {
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-lg);
	background: var(--hg-shade);
}
.hg-formbox p { margin-bottom: 18px; }
.hg-formbox label {
	display: block;
	margin-bottom: 7px;
	font-size: .92rem;
	font-weight: 700;
	color: var(--hg-heading);
}
.hg-formbox input[type="text"],
.hg-formbox input[type="email"],
.hg-formbox input[type="tel"],
.hg-formbox input[type="url"],
.hg-formbox input[type="number"],
.hg-formbox select,
.hg-formbox textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius);
	background: #fff;
	font-size: .95rem;
	transition: border-color var(--hg-t), box-shadow var(--hg-t);
}
.hg-formbox input:focus,
.hg-formbox select:focus,
.hg-formbox textarea:focus {
	border-color: var(--hg-primary);
	box-shadow: 0 0 0 3px var(--hg-primary-ring);
	outline: none;
}
.hg-formbox textarea { min-height: 150px; resize: vertical; }

.hg-formbox input[type="submit"],
.hg-formbox button[type="submit"] {
	width: auto;
	padding: 14px 34px;
	border: 0;
	border-radius: var(--hg-radius-pill);
	background: var(--hg-primary);
	color: #fff;
	font-size: .96rem;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--hg-t), transform var(--hg-t), box-shadow var(--hg-t);
}
.hg-formbox input[type="submit"]:hover,
.hg-formbox button[type="submit"]:hover {
	background: var(--hg-primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(var(--hg-primary-rgb), .3);
}

/* رسائل Contact Form 7 */
.wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: .85rem;
	color: var(--hg-secondary);
}
.wpcf7-response-output {
	margin: 18px 0 0 !important;
	padding: 13px 18px !important;
	border-width: 1px !important;
	border-radius: var(--hg-radius) !important;
	font-size: .92rem;
}
.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--hg-primary) !important;
	background: rgba(var(--hg-primary-rgb), .08);
	color: var(--hg-primary);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: var(--hg-secondary) !important;
	background: rgba(238, 74, 98, .08);
	color: var(--hg-secondary);
}
.wpcf7-spinner { margin-inline-start: 10px; }

/* ═══════════════════════════════════════════════════════
 *  الخريطة
 * ═══════════════════════════════════════════════════════ */
.hg-map { line-height: 0; }
.hg-map iframe {
	display: block;
	width: 100%;
	height: clamp(280px, 40vh, 420px);
	border: 0;
	filter: grayscale(.25);
}

/* أزرار قسم الدعوة جنباً إلى جنب */
.hg-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

/* ═══════════════════════════════════════════════════════
 *  الفلاتر
 * ═══════════════════════════════════════════════════════ */
.hg-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 36px;
}
.hg-filter {
	padding: 9px 20px;
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-pill);
	background: #fff;
	color: var(--hg-body);
	font-size: .88rem;
	font-weight: 700;
	cursor: pointer;
	transition: all var(--hg-t);
}
.hg-filter:hover,
.hg-filter.is-active {
	background: var(--hg-primary);
	border-color: var(--hg-primary);
	color: #fff;
}

/* ═══════════════════════════════════════════════════════
 *  ترقيم الصفحات
 * ═══════════════════════════════════════════════════════ */
/* ووردبريس يلفّ الأرقام داخل div.nav-links، لذا يجب أن يكون هو
   حاوية الـflex لا العنصر <nav> — وإلا تراصّت الأرقام عمودياً */
.hg-pagination {
	margin-top: 48px;
}
.hg-pagination .nav-links,
.hg-pagination.page-numbers,
.hg-pagination > .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
}
.hg-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--hg-border);
	border-radius: 10px;
	background: #fff;
	color: var(--hg-heading);
	font-weight: 700;
	transition: all var(--hg-t);
}
.hg-pagination .page-numbers:hover,
.hg-pagination .page-numbers.current {
	background: var(--hg-primary);
	border-color: var(--hg-primary);
	color: #fff;
}
.hg-pagination .dots { border: 0; background: transparent; }

/* ═══════════════════════════════════════════════════════
 *  الفوتر
 * ═══════════════════════════════════════════════════════ */
.hg-footer {
	position: relative;
	background: var(--hg-dark);
	color: rgba(255, 255, 255, .68);
	font-size: .93rem;
}
/* شريط رفيع بلون الهوية يفصل الفوتر عمّا فوقه */
.hg-footer::before {
	content: '';
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 3px;
	background: linear-gradient(
		to left,
		var(--hg-primary) 0%,
		var(--hg-accent) 50%,
		var(--hg-primary) 100%
	);
}
[dir="ltr"] .hg-footer::before { background-image: linear-gradient(to right, var(--hg-primary), var(--hg-accent) 50%, var(--hg-primary)); }
.hg-footer a { color: rgba(255, 255, 255, .68); }
.hg-footer a:hover { color: #fff; }

/* auto-fit بدل عدد ثابت — الأعمدة تُملأ حسب الموجود فعلاً
   فلا تبقى فجوة حين يُحذف عمود من لوحة التحكم */
/* auto-fit يولّد مساراً فارغاً زائداً حين يسبقه عمود ثابت،
   لذا نستخدم auto-fill على الحاوية ونترك العناصر تتمدد بـ1fr.
   النتيجة: الأعمدة تُملأ حسب الموجود فعلاً بلا فجوة. */
.hg-footer__main {
	display: grid;
	grid-template-columns: minmax(240px, 1.7fr) repeat(3, minmax(0, 1fr));
	gap: 40px clamp(24px, 3vw, 48px);
	padding-block: clamp(44px, 5vw, 68px);
}
/* عمودان فقط بجانب العلامة؟ نوزّع المساحة عليهما */
.hg-footer__main:has(> :nth-child(3)):not(:has(> :nth-child(4))) {
	grid-template-columns: minmax(240px, 1.7fr) repeat(2, minmax(0, 1fr));
}
.hg-footer__main:has(> :nth-child(2)):not(:has(> :nth-child(3))) {
	grid-template-columns: minmax(240px, 1.7fr) minmax(0, 1fr);
}
.hg-footer__brand img {
	height: 46px;
	width: auto;
	margin-bottom: 18px;
	/* الشعار مصمّم لخلفية فاتحة — نرفع سطوعه قليلاً على الداكن */
	filter: brightness(1.06);
}
.hg-footer__desc {
	margin-bottom: 22px;
	max-width: 42ch;
	line-height: 1.8;
}

.hg-footer__col-title {
	position: relative;
	margin: 0 0 20px;
	padding-bottom: 12px;
	color: #fff;
	font-size: 1.02rem;
}
/* خط قصير بلون الهوية تحت كل عنوان عمود */
.hg-footer__col-title::after {
	content: '';
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	width: 34px;
	height: 2px;
	border-radius: 2px;
	background: var(--hg-primary);
}
.hg-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}
.hg-footer__links li + li { margin-top: 11px; }

/* سهم صغير ينزلق عند التحويم — إشارة لطيفة أن العنصر رابط */
.hg-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 0;
	transition: color var(--hg-t), gap var(--hg-t);
}
.hg-footer__links a::before {
	content: '';
	width: 0;
	height: 1.5px;
	border-radius: 2px;
	background: var(--hg-primary);
	transition: width var(--hg-t);
}
.hg-footer__links a:hover {
	color: #fff;
	gap: 8px;
}
.hg-footer__links a:hover::before { width: 12px; }

.hg-footer__contact {
	margin: 0;
	padding: 0;
	list-style: none;
}
.hg-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
}
.hg-footer__contact li + li { margin-top: 13px; }
.hg-footer__contact .hg-icon {
	flex-shrink: 0;
	margin-top: 4px;
	color: var(--hg-primary);
}

/* ─── السوشيال ─── */
.hg-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.hg-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 50%;
	transition: all var(--hg-t);
}
.hg-social a:hover {
	background: var(--hg-primary);
	border-color: var(--hg-primary);
	color: #fff;
	transform: translateY(-3px);
}

/* ─── النشرة ─── */
.hg-newsletter {
	position: relative;
	padding-block: 36px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	/* لمسة لونية خفيفة تفصل الشريط عن باقي الفوتر */
	background:
		radial-gradient(60% 140% at 12% 0%, rgba(var(--hg-primary-rgb), .16), transparent 70%),
		radial-gradient(50% 120% at 92% 100%, rgba(var(--hg-primary-rgb), .10), transparent 70%);
}
.hg-newsletter__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.hg-newsletter__title { margin: 0 0 4px; color: #fff; font-size: 1.3rem; }
.hg-newsletter__text { margin: 0; }
.hg-newsletter__form {
	display: flex;
	gap: 10px;
	flex: 1;
	min-width: 300px;
	max-width: 480px;
}
.hg-newsletter__input {
	flex: 1;
	padding: 13px 20px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--hg-radius-pill);
	background: rgba(255, 255, 255, .06);
	color: #fff;
}
.hg-newsletter__input::placeholder { color: rgba(255, 255, 255, .45); }
.hg-newsletter__input:focus {
	border-color: var(--hg-primary);
	background: rgba(255, 255, 255, .1);
	outline: none;
}
.hg-newsletter__msg {
	flex-basis: 100%;
	margin: 10px 0 0;
	font-size: .88rem;
}
.hg-newsletter__msg.is-ok { color: var(--hg-primary); }
.hg-newsletter__msg.is-err { color: var(--hg-secondary); }

.hg-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding-block: 22px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .87rem;
}
.hg-footer__bottom p { margin: 0; }

/* قائمة الفوتر السفلية: عناصر أفقية بفواصل رفيعة */
.hg-footer__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hg-footer__nav li { position: relative; }
.hg-footer__nav li + li::before {
	content: '';
	position: absolute;
	inset-inline-start: -10px;
	top: 50%;
	width: 1px;
	height: 12px;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, .2);
}

/* ─── زر العودة لأعلى ─── */
.hg-totop {
	position: fixed;
	inset-block-end: 26px;
	inset-inline-end: 26px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--hg-primary);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: opacity var(--hg-t), transform var(--hg-t), visibility var(--hg-t), background var(--hg-t);
	box-shadow: var(--hg-shadow-lg);
}
.hg-totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.hg-totop:hover { background: var(--hg-primary-dark); }
.hg-totop .hg-icon { transform: rotate(-90deg); }
[dir="rtl"] .hg-totop .hg-icon { transform: rotate(-90deg); }

/* ═══════════════════════════════════════════════════════
 *  صفحة 404 والحالات الفارغة
 * ═══════════════════════════════════════════════════════ */
.hg-empty {
	padding-block: clamp(60px, 8vw, 110px);
	text-align: center;
}
.hg-empty__code {
	font-size: clamp(4.5rem, 3rem + 8vw, 9rem);
	font-weight: 800;
	line-height: 1;
	color: var(--hg-primary);
	opacity: .18;
}
.hg-empty__title { margin: 12px 0 .4em; }
.hg-empty__text {
	max-width: 460px;
	margin: 0 auto 30px;
}

/* ═══════════════════════════════════════════════════════
 *  حركات الظهور عند التمرير
 *
 *  المبدأ: المحتوى ظاهر افتراضياً. الإخفاء لا يحدث إلا بعد أن
 *  يضيف السكربت الصنف hg-anim على <html> — فلو تعطّل الجافاسكريبت
 *  أو حجبه المتصفح يبقى كل شيء مرئياً. تحسين تدريجي لا اعتماد.
 * ═══════════════════════════════════════════════════════ */
/* الحالة المخفية تُضبط بأنماط سطرية من السكربت (أضمن من الاعتماد على
   صنف في <html>)، وهنا نعرّف الانتقال فقط. */
[data-hg-reveal] {
	transition:
		opacity .55s var(--hg-ease),
		transform .55s var(--hg-ease);
	transition-delay: var(--hg-delay, 0ms);
}

/* عند الكشف يزيل السكربت الأنماط السطرية فتعود القيم الطبيعية
   عبر هذا الانتقال — لا حاجة لقاعدة opacity هنا. */
[data-hg-reveal].is-visible {
	will-change: auto;
}

/* ─── تفاصيل دقيقة ─── */

/* الرابط في المحتوى: خط سفلي ينمو بدل ظهور مفاجئ */
.hg-content a:not(.hg-btn) {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1.5px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size .3s var(--hg-ease);
}
.hg-content a:not(.hg-btn):hover { background-size: 100% 1.5px; }

/* بند القائمة: خط يتمدد من المنتصف */
.hg-nav__list > li > a { position: relative; }
.hg-nav__list > li > a::after {
	content: '';
	position: absolute;
	inset-inline: 14px;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--hg-primary);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .28s var(--hg-ease);
}
.hg-nav__list > li > a:hover::after,
.hg-nav__list > .current-menu-item > a::after { transform: scaleX(1); }

/* أيقونة السهم تتقدّم قليلاً عند التحويم */
.hg-btn .hg-icon { transition: transform .25s var(--hg-ease); }
.hg-btn:hover .hg-icon--flip { transform: translateX(-4px) scaleX(-1); }
[dir="ltr"] .hg-btn:hover .hg-icon--flip { transform: translateX(4px); }

/* أيقونات السوشيال ترتفع بتتابع لطيف */
.hg-social a { transition: transform .25s var(--hg-ease), background var(--hg-t), border-color var(--hg-t), color var(--hg-t); }

/* البطاقة تضيء حدّها بلون الهوية قبل أن يظهر الظل */
.hg-card,
.hg-post,
.hg-cat,
.hg-mission,
.hg-field { will-change: auto; }

/* ═══════════════════════════════════════════════════════
 *  احترام تفضيل تقليل الحركة
 * ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}

	/* مهم: نلغي الإخفاء نفسه لا مدّة الحركة فقط.
	   الاكتفاء بتصفير المدة كان سيترك العناصر مخفية إن لم يصلها المراقب.
	   (السكربت أصلاً لا يخفي شيئاً عند تفعيل تقليل الحركة — هذه شبكة أمان.) */
	[data-hg-reveal] {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ═══════════════════════════════════════════════════════
 *  الطباعة
 * ═══════════════════════════════════════════════════════ */
@media print {
	.hg-header,
	.hg-topbar,
	.hg-footer,
	.hg-totop,
	.hg-share,
	.hg-sidebar,
	.hg-breadcrumb { display: none !important; }

	body { color: #000; font-size: 12pt; }
	.hg-single__layout { grid-template-columns: 1fr; }
	a::after { content: ' (' attr(href) ')'; font-size: .85em; }
}

/* ─── شريط إدارة ووردبريس ───
   الشريط ثابت أعلى الشاشة (32px فوق 782px و46px تحتها)،
   فالهيدر المثبّت يجب أن ينزل بمقداره وإلا اختفى تحته.
   تظهر للمسجّلين فقط لأن ووردبريس يضيف .admin-bar لهم. */
.admin-bar.hg-header-sticky .hg-header { top: 32px; }
.admin-bar .hg-mobile { top: 32px; }
.admin-bar { --hg-adminbar: 32px; }

@media screen and (max-width: 782px) {
  .admin-bar.hg-header-sticky .hg-header { top: 46px; }
  .admin-bar .hg-mobile { top: 46px; }
  .admin-bar { --hg-adminbar: 46px; }
}

/* دون 600px يصبح الشريط غير ثابت فيعود الهيدر إلى أعلى الصفحة */
@media screen and (max-width: 600px) {
  .admin-bar.hg-header-sticky .hg-header { top: 0; }
  .admin-bar .hg-mobile { top: 0; }
  .admin-bar { --hg-adminbar: 0px; }
}

.admin-bar {
  scroll-padding-top: calc(var(--hg-header-h) + var(--hg-adminbar, 0px) + 20px);
}

/* ─── الإحصائيات على الشاشات الضيقة ───
   auto-fit مع minmax(160px) يحتاج 344px لعمودين، فعند 360px
   ينهار إلى عمود واحد: أربعة أشرطة طويلة فوق بعضها.
   عمودان ثابتان أنسب بصرياً وأكفأ في استغلال العرض. */
@media (max-width: 600px) {
  .hg-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }
  .hg-stat__num { font-size: clamp(1.7rem, 1.2rem + 3vw, 2.2rem); }
  .hg-stat__label {
    font-size: .84rem;
    line-height: 1.45;
    /* يمنع "جائزة وتكريم" من الالتصاق بالرقم */
    margin-top: 4px;
  }
}

/* أضيق من 340px: عمود واحد مقبول لأن العمودين يضيقان جداً */
@media (max-width: 339px) {
  .hg-stats { grid-template-columns: 1fr; gap: 20px; }
}

/* ─── المميزات على الهاتف ───
   على الشاشة الضيقة تصبح البطاقة عمودية، ومحاذاة البداية تترك
   الأيقونة والنص غير متسقين بصرياً. التمركز أنظف هنا. */
@media (max-width: 600px) {
  .hg-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 18px;
    gap: 12px;
  }
  .hg-feature__icon { margin-bottom: 2px; }
  .hg-feature__title { margin-bottom: 4px; }
  .hg-feature__desc { margin: 0; }
}
