@charset "UTF-8";
/* ==========================================================================
   Qtoof Blog — Design System
   نظام تصميم مدونة أكاديمية قطوف. القيم مستخرجة من qtoof.academy الفعلي:
   البنفسجي #7a4aa3، خط Cairo، سلّم Slate، حاوية 1280px، هيدر 80px.
   مكتوب بخصائص منطقية (logical properties) ليعمل RTL و LTR معاً.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. الرموز — Design Tokens
   -------------------------------------------------------------------------- */
:root {
	/* هوية قطوف */
	--qt-brand: #7a4aa3;
	--qt-brand-600: #6b3f92;
	--qt-brand-700: #5d3580;
	--qt-brand-tint: #f5f0fa;
	--qt-brand-tint-2: #ede4f5;

	/* ألوان الشعار — مستخرجة من logo.webp */
	--qt-magenta: #d6005a;
	--qt-orange: #f59320;
	--qt-violet: #6b2a91;

	/* سلّم رمادي محايد (Slate) — نفس ما يستخدمه الموقع الرئيسي */
	--qt-ink: #0f172a;
	--qt-ink-800: #1e293b;
	--qt-body: #334155;      /* 10.35:1 على أبيض */
	--qt-muted: #64748b;     /* 4.76:1 — يمر AA */
	--qt-faint: #64748b;     /* نصوص التعريف: نفرّقها بالحجم والوزن لا بلون يسقط تحت 4.5:1 */
	--qt-on-dark: #94a3b8;        /* 6.96:1 على #0f172a */
	--qt-on-dark-strong: #cbd5e1; /* 12.02:1 على #0f172a */
	--qt-line: #e2e8f0;
	--qt-line-soft: #eef2f6;
	--qt-surface: #f8fafc;
	--qt-surface-2: #f1f5f9;
	--qt-white: #fff;

	/* حالات */
	--qt-emerald: #047857;
	--qt-emerald-tint: #ecfdf5;

	/* خطوط */
	--qt-font: Cairo, "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
	--qt-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;

	/* مقاسات */
	--qt-container: 1200px;
	--qt-reading: 780px;
	--qt-header-h: 72px;
	--qt-gutter: 1rem;

	/* زوايا */
	--qt-r-sm: 8px;
	--qt-r: 12px;
	--qt-r-lg: 16px;
	--qt-r-xl: 22px;
	--qt-r-full: 999px;

	/* ظلال — خفيفة ومتدرجة، بروح الموقع الرئيسي */
	--qt-shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
	--qt-shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
	--qt-shadow-md: 0 8px 20px -8px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .04);
	--qt-shadow-lg: 0 18px 40px -18px rgba(15, 23, 42, .22), 0 4px 12px rgba(15, 23, 42, .05);

	/* حركة */
	--qt-ease: cubic-bezier(.4, 0, .2, 1);
	--qt-fast: .16s;
	--qt-slow: .28s;
}

@media (min-width: 640px) {
	:root { --qt-gutter: 1.5rem; }
}
@media (min-width: 1024px) {
	:root { --qt-gutter: 2rem; --qt-header-h: 80px; }
}

/* --------------------------------------------------------------------------
   2. الأساس — Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--qt-header-h) + 1.5rem);
}

body {
	margin: 0;
	background: var(--qt-white);
	color: var(--qt-body);
	font-family: var(--qt-font);
	font-size: 1rem;
	line-height: 1.9;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--qt-ink);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: 0;
}

p, ul, ol, figure, blockquote, pre, table { margin: 0; }

a {
	color: var(--qt-brand-700);
	text-decoration: none;
	transition: color var(--qt-fast) var(--qt-ease);
}
a:hover { color: var(--qt-brand); }

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

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

hr {
	border: 0;
	border-top: 1px solid var(--qt-line);
	margin: 2rem 0;
}

/* حالة التركيز — واضحة في كل مكان، شرط أساسي للوصولية */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid rgba(122, 74, 163, .45);
	outline-offset: 2px;
	border-radius: var(--qt-r-sm);
}

::selection {
	background: var(--qt-brand-tint-2);
	color: var(--qt-ink);
}

/* مزج العربية بالإنجليزية: نمنع انكسار اتجاه المصطلحات اللاتينية */
:root:lang(ar) code,
.qt-ltr {
	unicode-bidi: isolate;
	direction: ltr;
	display: inline-block;
}

/* --------------------------------------------------------------------------
   3. المرافق — Utilities
   -------------------------------------------------------------------------- */
.qt-container {
	width: 100%;
	max-width: var(--qt-container);
	margin-inline: auto;
	padding-inline: var(--qt-gutter);
}

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

/*
 * رابط التخطي: نثبّته على حافة البداية بدل توسيطه بـ transform،
 * لأن translateX ليس واعياً بالاتجاه ويُحدث تجاوزاً أفقياً في RTL.
 */
.qt-skip {
	position: absolute;
	inset-inline-start: 1rem;
	top: -100px;
	z-index: 200;
	background: var(--qt-brand);
	color: #fff;
	padding: .75rem 1.25rem;
	border-radius: 0 0 var(--qt-r) var(--qt-r);
	font-weight: 700;
	white-space: nowrap;
	transition: top var(--qt-fast) var(--qt-ease);
}
.qt-skip:focus { top: 0; color: #fff; }

.qt-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.qt-main { flex: 1 0 auto; }

/* --------------------------------------------------------------------------
   4. الأزرار — Buttons
   -------------------------------------------------------------------------- */
.qt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 44px;
	padding: .625rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--qt-r);
	background: var(--qt-brand);
	color: #fff;
	font-weight: 700;
	font-size: .9375rem;
	line-height: 1.4;
	cursor: pointer;
	transition: background var(--qt-fast) var(--qt-ease), transform var(--qt-fast) var(--qt-ease), box-shadow var(--qt-fast) var(--qt-ease), color var(--qt-fast) var(--qt-ease), border-color var(--qt-fast) var(--qt-ease);
}
.qt-btn:hover {
	background: var(--qt-brand-700);
	color: #fff;
	box-shadow: var(--qt-shadow-md);
}
.qt-btn:active { transform: translateY(1px); }

.qt-btn--ghost {
	background: transparent;
	color: var(--qt-ink);
	border-color: var(--qt-line);
}
.qt-btn--ghost:hover {
	background: var(--qt-brand-tint);
	border-color: var(--qt-brand);
	color: var(--qt-brand-700);
	box-shadow: none;
}

.qt-btn--soft {
	background: var(--qt-surface-2);
	color: var(--qt-ink);
}
.qt-btn--soft:hover { background: var(--qt-line); color: var(--qt-ink); box-shadow: none; }

.qt-btn--sm { min-height: 38px; padding: .375rem .875rem; font-size: .875rem; }

/*
 * كل أيقونات الأسهم مرسومة باتجاه LTR؛ نقلبها مرة واحدة في السياق العربي
 * بدل تكرار مسارات SVG لكل اتجاه.
 */
[dir="rtl"] .qt-btn > svg,
[dir="rtl"] .qt-postnav__dir svg,
[dir="rtl"] .qt-cta__actions svg { transform: scaleX(-1); }

/* رابط سهم — يقلب اتجاهه تلقائياً مع اتجاه الصفحة */
.qt-arrow {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	font-weight: 700;
	font-size: .9375rem;
	color: var(--qt-brand-700);
}
.qt-arrow svg { width: 16px; height: 16px; transition: transform var(--qt-fast) var(--qt-ease); }
[dir="rtl"] .qt-arrow svg { transform: scaleX(-1); }
.qt-arrow:hover svg { transform: translateX(-3px); }
[dir="rtl"] .qt-arrow:hover svg { transform: scaleX(-1) translateX(-3px); }

/* --------------------------------------------------------------------------
   5. الشارات والرقائق — Badges & Chips
   -------------------------------------------------------------------------- */
.qt-badge {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	padding: .25rem .625rem;
	border-radius: var(--qt-r-full);
	background: var(--qt-brand-tint);
	color: var(--qt-brand-700);
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.7;
	white-space: nowrap;
	transition: background var(--qt-fast) var(--qt-ease), color var(--qt-fast) var(--qt-ease);
}
a.qt-badge:hover { background: var(--qt-brand); color: #fff; }

.qt-badge--sticky {
	background: #fff5e8;
	color: #b4610b;
}

.qt-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.qt-chip {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	min-height: 40px;
	padding: .375rem .875rem;
	border: 1px solid var(--qt-line);
	border-radius: var(--qt-r-full);
	background: var(--qt-white);
	color: var(--qt-ink-800);
	font-size: .875rem;
	font-weight: 700;
	transition: all var(--qt-fast) var(--qt-ease);
}
.qt-chip:hover,
.qt-chip:focus-visible {
	border-color: var(--qt-brand);
	background: var(--qt-brand-tint);
	color: var(--qt-brand-700);
}
.qt-chip__count {
	color: var(--qt-faint);
	font-size: .75rem;
	font-weight: 600;
}
.qt-chip:hover .qt-chip__count { color: var(--qt-brand); }

.qt-chip[aria-current="page"],
.qt-chip--active {
	background: var(--qt-brand);
	border-color: var(--qt-brand);
	color: #fff;
}
.qt-chip--active .qt-chip__count { color: rgba(255, 255, 255, .75); }

/* --------------------------------------------------------------------------
   6. الترويسة — Site Header
   -------------------------------------------------------------------------- */
.qt-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--qt-line);
}
@supports not (backdrop-filter: blur(1px)) {
	.qt-header { background: #fff; }
}

.qt-header__bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	height: var(--qt-header-h);
}

.qt-logo {
	display: inline-flex;
	align-items: center;
	gap: .625rem;
	flex-shrink: 0;
}
/* الارتفاع مشتقّ من ارتفاع الترويسة لا مكتوب اعتباطاً: 72px ناقص 16px
   تنفّساً فوق وتحت. يطابق شعار الموقع الرئيسي (64px داخل ترويسة 81px)
   فتقرأ كلمة ACADEMY أسفل الشعار بدل أن تنطمس. */
.qt-logo__img {
	height: 48px;
	width: auto;
	max-width: 190px;
	object-fit: contain;
}
/* الوسم كان بخلفية باهتة فيقرأ كبقعة وردية تنافس الشعار. لوناً صلباً
   يصير علامة واضحة تفصل المدونة عن الأكاديمية. */
.qt-logo__tag {
	display: none;
	padding: .1875rem .5625rem;
	border-radius: var(--qt-r-full);
	background: var(--qt-brand);
	color: #fff;
	font-size: .6875rem;
	font-weight: 800;
	letter-spacing: .01em;
	line-height: 1.5;
}
.qt-logo--footer .qt-logo__img { height: 34px; }
.qt-logo--footer .qt-logo__tag { display: none; }

.qt-nav {
	display: none;
	align-items: center;
	gap: .25rem;
	margin-inline-start: .5rem;
	flex: 1 1 auto;
	min-width: 0;
}
.qt-nav ul {
	display: flex;
	align-items: center;
	gap: .125rem;
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.qt-nav a {
	display: inline-flex;
	align-items: center;
	padding: .5rem .75rem;
	border-radius: var(--qt-r-sm);
	color: var(--qt-body);
	font-size: .9375rem;
	font-weight: 700;
	white-space: nowrap;
	transition: color var(--qt-fast) var(--qt-ease), background var(--qt-fast) var(--qt-ease);
}
.qt-nav a:hover { color: var(--qt-brand-700); background: var(--qt-brand-tint); }
.qt-nav .current-menu-item > a,
.qt-nav .current-menu-parent > a,
.qt-nav .qt-nav__current > a,
.qt-nav a[aria-current="page"] {
	color: var(--qt-ink);
	background: var(--qt-surface-2);
}

.qt-header__actions {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-inline-start: auto;
}

.qt-header__academy {
	display: none;
	align-items: center;
	gap: .375rem;
	padding: .5rem .875rem;
	border: 1px solid var(--qt-line);
	border-radius: var(--qt-r);
	color: var(--qt-ink);
	font-size: .875rem;
	font-weight: 700;
	transition: all var(--qt-fast) var(--qt-ease);
}
.qt-header__academy:hover {
	border-color: var(--qt-brand);
	background: var(--qt-brand-tint);
	color: var(--qt-brand-700);
}
.qt-header__academy svg { width: 15px; height: 15px; }
[dir="rtl"] .qt-header__academy svg { transform: scaleX(-1); }

.qt-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid transparent;
	border-radius: var(--qt-r);
	background: transparent;
	color: var(--qt-body);
	cursor: pointer;
	transition: background var(--qt-fast) var(--qt-ease), color var(--qt-fast) var(--qt-ease);
}
.qt-icon-btn:hover { background: var(--qt-surface-2); color: var(--qt-ink); }
.qt-icon-btn svg { width: 21px; height: 21px; }
.qt-icon-btn[aria-expanded="true"] { background: var(--qt-brand-tint); color: var(--qt-brand-700); }

.qt-icon-btn__close { display: none; }
.qt-icon-btn[aria-expanded="true"] .qt-icon-btn__open { display: none; }
.qt-icon-btn[aria-expanded="true"] .qt-icon-btn__close { display: block; }

/* لوحة البحث المنسدلة */
.qt-searchbar {
	display: none;
	border-top: 1px solid var(--qt-line-soft);
	background: var(--qt-white);
	padding-block: .875rem;
}
.qt-searchbar.is-open { display: block; }

/* قائمة الجوال */
.qt-mobilenav {
	display: none;
	position: fixed;
	inset: var(--qt-header-h) 0 0;
	z-index: 99;
	background: var(--qt-white);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1.25rem 0 3rem;
	animation: qt-fade .18s var(--qt-ease);
}
.qt-mobilenav.is-open { display: block; }
body.qt-nav-open { overflow: hidden; }

.qt-mobilenav__group + .qt-mobilenav__group {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--qt-line-soft);
}
.qt-mobilenav__label {
	margin: 0 0 .75rem;
	color: var(--qt-faint);
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .04em;
}
.qt-mobilenav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .125rem;
}
.qt-mobilenav ul a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	padding: .625rem .75rem;
	border-radius: var(--qt-r);
	color: var(--qt-ink);
	font-size: 1rem;
	font-weight: 700;
}
.qt-mobilenav ul a:hover,
.qt-mobilenav ul a:focus-visible { background: var(--qt-brand-tint); color: var(--qt-brand-700); }
.qt-mobilenav__count { color: var(--qt-faint); font-size: .8125rem; font-weight: 600; }
.qt-mobilenav .qt-btn { width: 100%; margin-top: .5rem; }

@keyframes qt-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
	.qt-nav { display: flex; }
	.qt-logo__tag { display: inline-flex; }
	.qt-header__academy { display: inline-flex; }
	.qt-burger { display: none; }
	.qt-logo__img { height: 56px; max-width: 210px; }
}

/* --------------------------------------------------------------------------
   7. نموذج البحث — Search Form
   -------------------------------------------------------------------------- */
.qt-search {
	display: flex;
	align-items: center;
	gap: .5rem;
	width: 100%;
	padding: .375rem .375rem .375rem 0;
	padding-inline-start: .875rem;
	border: 1px solid var(--qt-line);
	border-radius: var(--qt-r-full);
	background: var(--qt-white);
	transition: border-color var(--qt-fast) var(--qt-ease), box-shadow var(--qt-fast) var(--qt-ease);
}
.qt-search:focus-within {
	border-color: var(--qt-brand);
	box-shadow: 0 0 0 4px rgba(122, 74, 163, .12);
}
.qt-search__icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--qt-faint); }
.qt-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: .5rem 0;
	font-size: 1rem;
	color: var(--qt-ink);
}
.qt-search__input::placeholder { color: var(--qt-faint); }
.qt-search__input:focus { outline: none; }
.qt-search__submit {
	flex-shrink: 0;
	min-height: 40px;
	padding-inline: 1.125rem;
	border: 0;
	border-radius: var(--qt-r-full);
	background: var(--qt-brand);
	color: #fff;
	font-size: .875rem;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--qt-fast) var(--qt-ease);
}
.qt-search__submit:hover { background: var(--qt-brand-700); }

.qt-search--lg { max-width: 560px; }

/* --------------------------------------------------------------------------
   8. أقسام الصفحة — Sections
   -------------------------------------------------------------------------- */
.qt-section { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.qt-section--tight { padding-block: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); }
.qt-section--surface { background: var(--qt-surface); }

.qt-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.75rem;
}
.qt-section__title {
	position: relative;
	font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.75rem);
	font-weight: 800;
	line-height: 1.4;
}
.qt-section__title::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin-top: .625rem;
	border-radius: var(--qt-r-full);
	background: linear-gradient(90deg, var(--qt-violet), var(--qt-magenta) 55%, var(--qt-orange));
}
.qt-section__sub {
	margin-top: .5rem;
	color: var(--qt-muted);
	font-size: .9375rem;
}

/* مقدّمة المدونة — هادئة، لا تلتهم الشاشة */
.qt-intro {
	padding-block: clamp(2rem, 1.25rem + 3vw, 3.25rem);
	border-bottom: 1px solid var(--qt-line-soft);
	background:
		radial-gradient(60rem 22rem at 85% -30%, rgba(122, 74, 163, .07), transparent 60%),
		radial-gradient(40rem 18rem at 10% -40%, rgba(214, 0, 90, .05), transparent 60%);
}
.qt-intro__inner { max-width: 46rem; }
.qt-intro__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: .875rem;
	padding: .3125rem .75rem;
	border-radius: var(--qt-r-full);
	background: var(--qt-white);
	border: 1px solid var(--qt-line);
	color: var(--qt-brand-700);
	font-size: .75rem;
	font-weight: 800;
}
.qt-intro__eyebrow::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--qt-magenta), var(--qt-orange));
}
.qt-intro__title {
	font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.625rem);
	font-weight: 800;
	line-height: 1.35;
}
.qt-intro__text {
	margin-top: .875rem;
	max-width: 40rem;
	color: var(--qt-muted);
	font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
	line-height: 1.95;
}
.qt-intro__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .625rem;
	margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   9. بطاقة المقال — Article Card
   -------------------------------------------------------------------------- */
.qt-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) {
	.qt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1024px) {
	.qt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
	.qt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.qt-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--qt-white);
	border: 1px solid var(--qt-line);
	border-radius: var(--qt-r-lg);
	overflow: hidden;
	transition: border-color var(--qt-slow) var(--qt-ease), box-shadow var(--qt-slow) var(--qt-ease), transform var(--qt-slow) var(--qt-ease);
}
.qt-card:hover,
.qt-card:focus-within {
	border-color: var(--qt-brand-tint-2);
	box-shadow: var(--qt-shadow-md);
	transform: translateY(-3px);
}

.qt-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--qt-surface-2);
	overflow: hidden;
}
.qt-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s var(--qt-ease);
}
.qt-card:hover .qt-card__img { transform: scale(1.035); }

.qt-card__img--fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: linear-gradient(135deg, var(--qt-brand-tint) 0%, #fdeef4 50%, #fff6ea 100%);
	color: var(--qt-brand-700);
	font-weight: 800;
	font-size: 1.125rem;
	text-align: center;
}

.qt-card__badge {
	position: absolute;
	inset-block-start: .75rem;
	inset-inline-start: .75rem;
	z-index: 2;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: var(--qt-shadow-xs);
}

.qt-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: .625rem;
	padding: 1.125rem 1.25rem 1.25rem;
}

.qt-card__title {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.7;
	color: var(--qt-ink);
	/* ثلاثة أسطر كحد أقصى — يمنع اختلاف ارتفاع البطاقات */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.qt-card__title a { color: inherit; }
.qt-card:hover .qt-card__title a,
.qt-card__title a:hover { color: var(--qt-brand-700); }

/* الرابط الممتد: كل البطاقة قابلة للنقر مع بقاء الرابط الحقيقي دلالياً */
.qt-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.qt-card__excerpt {
	color: var(--qt-muted);
	font-size: .9375rem;
	line-height: 1.85;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.qt-card__foot {
	margin-top: auto;
	padding-top: .875rem;
	border-top: 1px solid var(--qt-line-soft);
}

.qt-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .75rem;
	color: var(--qt-faint);
	font-size: .8125rem;
	font-weight: 600;
}
.qt-meta__item { display: inline-flex; align-items: center; gap: .3125rem; }
.qt-meta__item + .qt-meta__item::before {
	content: "";
	width: 3px; height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: .6;
	margin-inline-end: .4375rem;
}
.qt-meta__item--muted { color: var(--qt-faint); }

/* بطاقة أفقية مصغّرة (مقالات ذات صلة / نتائج ثانوية) */
.qt-mini {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: .875rem;
	padding: .75rem;
	border: 1px solid transparent;
	border-radius: var(--qt-r);
	transition: background var(--qt-fast) var(--qt-ease), border-color var(--qt-fast) var(--qt-ease);
}
.qt-mini:hover { background: var(--qt-surface); border-color: var(--qt-line-soft); }
.qt-mini__media {
	flex: 0 0 88px;
	aspect-ratio: 4 / 3;
	border-radius: var(--qt-r-sm);
	overflow: hidden;
	background: var(--qt-surface-2);
}
.qt-mini__media img { width: 100%; height: 100%; object-fit: cover; }
.qt-mini__title {
	font-size: .9375rem;
	font-weight: 700;
	line-height: 1.7;
	color: var(--qt-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   10. المقال المميّز — Featured Article
   -------------------------------------------------------------------------- */
.qt-featured {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	background: var(--qt-white);
	border: 1px solid var(--qt-line);
	border-radius: var(--qt-r-xl);
	overflow: hidden;
	box-shadow: var(--qt-shadow-sm);
	transition: box-shadow var(--qt-slow) var(--qt-ease), border-color var(--qt-slow) var(--qt-ease);
}
.qt-featured:hover {
	box-shadow: var(--qt-shadow-lg);
	border-color: var(--qt-brand-tint-2);
}

.qt-featured__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--qt-surface-2);
	overflow: hidden;
}
.qt-featured__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--qt-ease);
}
.qt-featured:hover .qt-featured__media img { transform: scale(1.03); }

.qt-featured__body {
	display: flex;
	flex-direction: column;
	gap: .875rem;
	padding: 1.5rem 1.375rem 1.75rem;
}
.qt-featured__kicker {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
}
.qt-featured__title {
	font-size: clamp(1.375rem, 1.05rem + 1.5vw, 2rem);
	font-weight: 800;
	line-height: 1.5;
}
.qt-featured__title a { color: var(--qt-ink); }
.qt-featured__title a:hover { color: var(--qt-brand-700); }
.qt-featured__excerpt {
	color: var(--qt-muted);
	font-size: 1rem;
	line-height: 1.95;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.qt-featured__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: .25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--qt-line-soft);
}

@media (min-width: 900px) {
	.qt-featured { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
	.qt-featured__media { aspect-ratio: auto; height: 100%; min-height: 340px; }
	.qt-featured__body { padding: 2.25rem 2.25rem 2rem; justify-content: center; }
}

/* --------------------------------------------------------------------------
   11. ترويسة الأرشيف — Archive Header
   -------------------------------------------------------------------------- */
.qt-archive-head {
	padding-block: clamp(1.75rem, 1.25rem + 2vw, 3rem);
	border-bottom: 1px solid var(--qt-line-soft);
	background: var(--qt-surface);
}
.qt-archive-head__inner { max-width: 46rem; }
.qt-archive-head__title {
	margin-top: .75rem;
	font-size: clamp(1.625rem, 1.2rem + 2vw, 2.5rem);
	font-weight: 800;
	line-height: 1.4;
}
.qt-archive-head__desc {
	margin-top: .75rem;
	color: var(--qt-muted);
	font-size: 1.0625rem;
	line-height: 1.95;
}
.qt-archive-head__count {
	display: inline-flex;
	margin-top: 1rem;
	color: var(--qt-faint);
	font-size: .875rem;
	font-weight: 700;
}
.qt-archive-head__search { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   12. مسار التنقل — Breadcrumbs
   -------------------------------------------------------------------------- */
.qt-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .375rem;
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--qt-faint);
	font-size: .8125rem;
	font-weight: 600;
}
.qt-crumbs li { display: inline-flex; align-items: center; gap: .375rem; }
.qt-crumbs li + li::before {
	content: "/";
	color: var(--qt-line);
	font-weight: 400;
}
.qt-crumbs a { color: var(--qt-muted); }
.qt-crumbs a:hover { color: var(--qt-brand-700); }
.qt-crumbs [aria-current="page"] { color: var(--qt-body); }

/* --------------------------------------------------------------------------
   13. ترقيم الصفحات — Pagination
   -------------------------------------------------------------------------- */
.qt-pagination {
	margin-top: 3rem;
	display: flex;
	justify-content: center;
}
.qt-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .375rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.qt-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .375rem;
	min-width: 44px;
	min-height: 44px;
	padding-inline: .75rem;
	border: 1px solid var(--qt-line);
	border-radius: var(--qt-r);
	background: var(--qt-white);
	color: var(--qt-body);
	font-size: .9375rem;
	font-weight: 700;
	transition: all var(--qt-fast) var(--qt-ease);
}
.qt-pagination .page-numbers:hover {
	border-color: var(--qt-brand);
	background: var(--qt-brand-tint);
	color: var(--qt-brand-700);
}
.qt-pagination .page-numbers.current {
	background: var(--qt-brand);
	border-color: var(--qt-brand);
	color: #fff;
}
.qt-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	min-width: 28px;
	padding-inline: 0;
	color: var(--qt-faint);
}
.qt-pagination .prev,
.qt-pagination .next { font-weight: 800; }
@media (max-width: 480px) {
	.qt-pagination .page-numbers { min-width: 42px; padding-inline: .5rem; font-size: .875rem; }
	.qt-pagination .prev span:not([aria-hidden]),
	.qt-pagination .next span:not([aria-hidden]) { display: none; }
}

/* --------------------------------------------------------------------------
   14. الحالات الفارغة — Empty States
   -------------------------------------------------------------------------- */
.qt-empty {
	max-width: 36rem;
	margin-inline: auto;
	padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 1.5rem;
	text-align: center;
}
.qt-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin-bottom: 1.25rem;
	border-radius: var(--qt-r-lg);
	background: linear-gradient(135deg, var(--qt-brand-tint), #fdeef4);
	color: var(--qt-brand);
}
.qt-empty__icon svg { width: 30px; height: 30px; }
.qt-empty__title {
	font-size: clamp(1.25rem, 1.1rem + .8vw, 1.625rem);
	font-weight: 800;
	line-height: 1.5;
}
.qt-empty__text {
	margin-top: .75rem;
	color: var(--qt-muted);
	font-size: 1rem;
	line-height: 1.95;
}
.qt-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .625rem;
	margin-top: 1.75rem;
}
.qt-empty__search { margin-top: 1.75rem; text-align: start; }
.qt-empty__suggest {
	margin-top: 2rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--qt-line-soft);
}
.qt-empty__suggest .qt-chips { justify-content: center; }

/* 404 */
.qt-404__code {
	font-size: clamp(4rem, 2rem + 12vw, 8rem);
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, var(--qt-violet), var(--qt-magenta) 55%, var(--qt-orange));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* --------------------------------------------------------------------------
   15. التذييل — Site Footer
   -------------------------------------------------------------------------- */
.qt-footer {
	margin-top: 4rem;
	background: var(--qt-ink);
	color: var(--qt-on-dark-strong);
	padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
}
.qt-footer a { color: var(--qt-on-dark-strong); }
.qt-footer a:hover { color: #fff; }

.qt-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.25rem;
	padding-bottom: 2.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}
@media (min-width: 640px) {
	.qt-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
}
@media (min-width: 1024px) {
	.qt-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
}

.qt-footer__brand-logo {
	display: inline-block;
	padding: .5rem .625rem;
	border-radius: var(--qt-r);
	background: #fff;
	margin-bottom: 1.25rem;
}
.qt-footer__about {
	color: var(--qt-on-dark);
	font-size: .9375rem;
	line-height: 1.95;
	max-width: 30rem;
}
.qt-footer__email { margin-top: 1rem; font-size: .9375rem; color: var(--qt-on-dark); }
.qt-footer__email a { color: #fff; font-weight: 700; }
.qt-footer__email a:hover { text-decoration: underline; }

.qt-footer__title {
	margin: 0 0 1.125rem;
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
}
.qt-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	font-size: .9375rem;
}
.qt-footer__list a {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	min-height: 28px;
	transition: color var(--qt-fast) var(--qt-ease), transform var(--qt-fast) var(--qt-ease);
}
.qt-footer__list a:hover { transform: translateX(-3px); }
[dir="ltr"] .qt-footer__list a:hover { transform: translateX(3px); }

.qt-social {
	display: flex;
	gap: .625rem;
	margin-top: 1.5rem;
}
.qt-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: var(--qt-r);
	background: rgba(255, 255, 255, .07);
	color: var(--qt-on-dark-strong);
	transition: background var(--qt-fast) var(--qt-ease), color var(--qt-fast) var(--qt-ease);
}
.qt-social a:hover { background: var(--qt-brand); color: #fff; }
.qt-social svg { width: 19px; height: 19px; }

.qt-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-top: 2rem;
	color: var(--qt-on-dark);
	font-size: .8125rem;
	line-height: 1.9;
}
.qt-footer__bottom p { margin: 0; }
.qt-footer__bottom a { color: #a78bc7; font-weight: 700; }
.qt-footer__bottom a:hover { color: #fff; text-decoration: underline; }
.qt-footer__legal-en { direction: ltr; text-align: start; unicode-bidi: isolate; }
@media (min-width: 768px) {
	.qt-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

.qt-footer-widget { margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   16. احترام تقليل الحركة
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.qt-card:hover { transform: none; }
	.qt-card:hover .qt-card__img,
	.qt-featured:hover .qt-featured__media img { transform: none; }
}

/* --------------------------------------------------------------------------
   17. الطباعة
   -------------------------------------------------------------------------- */
@media print {
	.qt-header, .qt-footer, .qt-mobilenav, .qt-share, .qt-toc, .qt-cta, .qt-progress { display: none !important; }
	body { font-size: 12pt; }
}
