/*!
 * قالب علي الحسيني الإخباري — Al-Hussaini News
 * تصميم وتطوير: المهندس علي الحسيني — https://www.ali-hussaine.com
 *
 * مكتوب بالخصائص المنطقية (inline-start / inline-end) ليعمل بالعربية RTL والإنجليزية LTR.
 * متغيرات الألوان والخطوط تُولّد من لوحة التخصيص (inc/dynamic-css.php).
 */

/* ==========================================================================
   1. المتغيرات (Design Tokens)
   ========================================================================== */
:root {
	--ah-primary: #c8102e;
	--ah-primary-rgb: 200, 16, 46;
	--ah-primary-600: #a40d26;
	--ah-primary-300: #e07383;
	--ah-on-primary: #fff;
	--ah-dark: #0e1726;
	--ah-dark-2: #1b2432;
	--ah-accent: #f5a400;
	--ah-on-accent: #111;
	--ah-ticker-bg: var(--ah-dark);
	--ah-ticker-label: var(--ah-primary);
	--ah-on-ticker-lbl: #fff;

	--ah-bg: #ffffff;
	--ah-surface: #ffffff;
	--ah-surface-2: #f4f5f8;
	--ah-surface-3: #eceef3;
	--ah-text: #151922;
	--ah-text-2: #3d4452;
	--ah-muted: #6b7280;
	--ah-border: #e6e8ee;
	--ah-overlay: linear-gradient(to top, rgba(6, 10, 18, .92) 0%, rgba(6, 10, 18, .55) 42%, rgba(6, 10, 18, 0) 75%);
	--ah-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--ah-shadow: 0 10px 30px -12px rgba(16, 24, 40, .25);
	--ah-shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, .35);

	--ah-radius: 10px;
	--ah-radius-sm: calc(var(--ah-radius) * .6);
	--ah-container: 1280px;
	--ah-gutter: 20px;
	--ah-sidebar: 340px;
	--ah-gap: 24px;
	--ah-logo-h: 58px;
	--ah-nav-h: 52px;
	--ah-ticker-h: 46px;
	--ah-sticky-top: 0px;

	--ah-font-head: "Noto Kufi Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
	--ah-font-body: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
	--ah-fs: 16px;
	--ah-article-fs: 19px;
	--ah-ease: cubic-bezier(.2, .7, .2, 1);

	color-scheme: light;
}

[data-theme="dark"] {
	--ah-bg: #0b0f17;
	--ah-surface: #111826;
	--ah-surface-2: #151d2c;
	--ah-surface-3: #1c2638;
	--ah-text: #e9edf4;
	--ah-text-2: #c3cad6;
	--ah-muted: #8e98aa;
	--ah-border: #233049;
	--ah-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
	--ah-shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

/* ==========================================================================
   2. الأساسيات
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ah-nav-h) + 24px);
}

body {
	margin: 0;
	background: var(--ah-bg);
	color: var(--ah-text);
	font-family: var(--ah-font-body);
	font-size: var(--ah-fs);
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; }

a {
	color: inherit;
	text-decoration: none;
	transition: color .2s var(--ah-ease), background-color .2s var(--ah-ease), border-color .2s var(--ah-ease);
}
a:hover { color: var(--ah-primary); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ah-font-head);
	font-weight: 700;
	line-height: 1.5;
	margin: 0 0 .5em;
	color: var(--ah-text);
}

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

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

:focus-visible {
	outline: 3px solid rgba(var(--ah-primary-rgb), .55);
	outline-offset: 2px;
	border-radius: 4px;
}

::selection { background: var(--ah-primary); color: var(--ah-on-primary); }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.ah-skip-link {
	position: absolute;
	inset-inline-start: 12px;
	top: -100px;
	z-index: 1000;
	background: var(--ah-primary);
	color: var(--ah-on-primary);
	padding: 10px 18px;
	border-radius: var(--ah-radius-sm);
	font-weight: 700;
}
.ah-skip-link:focus { top: 12px; color: var(--ah-on-primary); }

.ah-icon {
	width: 1.15em;
	height: 1.15em;
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
}

/* الأيقونات الاتجاهية مرسومة للعربية وتنعكس في الإنجليزية */
html:not([dir="rtl"]) .ah-icon--chevron-start,
html:not([dir="rtl"]) .ah-icon--chevron-end { transform: scaleX(-1); }

.ah-container {
	width: 100%;
	max-width: calc(var(--ah-container) + var(--ah-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ah-gutter);
}

.ah-main { outline: none; }
.ah-site { position: relative; background: var(--ah-bg); }

/* التصميم الصندوقي */
.ah-layout-boxed { background: var(--ah-surface-3); }
.ah-layout-boxed .ah-site {
	max-width: calc(var(--ah-container) + var(--ah-gutter) * 2 + 32px);
	margin: 0 auto;
	box-shadow: var(--ah-shadow-lg);
}

/* الأزرار */
.ah-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 26px;
	border: 2px solid var(--ah-primary);
	border-radius: var(--ah-radius-sm);
	background: var(--ah-primary);
	color: var(--ah-on-primary);
	font-family: var(--ah-font-head);
	font-weight: 700;
	font-size: .95rem;
	line-height: 1.2;
	transition: all .25s var(--ah-ease);
}
.ah-btn:hover { background: var(--ah-primary-600); border-color: var(--ah-primary-600); color: var(--ah-on-primary); transform: translateY(-1px); }
.ah-btn--outline { background: transparent; color: var(--ah-primary); }
.ah-btn--outline:hover { background: var(--ah-primary); }

.ah-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 1.1rem;
	transition: background-color .2s var(--ah-ease), transform .2s var(--ah-ease);
}
.ah-icon-btn:hover { background: rgba(127, 127, 127, .14); }
.ah-icon-btn:active { transform: scale(.92); }

/* زر الوضع الليلي */
.ah-mode-toggle__sun { display: none; }
[data-theme="dark"] .ah-mode-toggle__sun { display: inline-block; }
[data-theme="dark"] .ah-mode-toggle__moon { display: none; }

/* الشارات */
.ah-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 10px;
	border-radius: 4px;
	background: var(--ah-cat, var(--ah-primary));
	color: #fff;
	font-family: var(--ah-font-head);
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.9;
	position: relative;
	z-index: 2;
	white-space: nowrap;
}
.ah-radius-round .ah-badge { border-radius: 99px; padding-inline: 12px; }
.ah-badge:hover { color: #fff; filter: brightness(1.1); }
.ah-badge--breaking { background: var(--ah-accent); color: var(--ah-on-accent); }

.ah-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
	animation: ah-live 1.4s ease-out infinite;
}

/* ==========================================================================
   3. الشريط العلوي
   ========================================================================== */
.ah-topbar {
	background: var(--ah-dark);
	color: rgba(255, 255, 255, .78);
	font-size: .8rem;
	line-height: 1.4;
}
.ah-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
}
.ah-topbar__start { display: flex; align-items: center; gap: 22px; min-width: 0; }
.ah-today { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ah-today .ah-icon { color: var(--ah-accent); }
.ah-today__hijri { opacity: .7; margin-inline-start: 4px; }
.ah-topbar__menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.ah-topbar__menu a:hover { color: #fff; }

/* ==========================================================================
   4. الشبكات الاجتماعية
   ========================================================================== */
.ah-social { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ah-social__link {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: .95rem;
	transition: transform .2s var(--ah-ease), background-color .2s, color .2s;
}
.ah-social--top .ah-social__link { color: rgba(255, 255, 255, .78); }
.ah-social--top .ah-social__link:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.ah-social--tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.ah-social--tiles .ah-social__link,
.ah-social--footer .ah-social__link,
.ah-social--drawer .ah-social__link {
	width: auto;
	height: 46px;
	border-radius: var(--ah-radius-sm);
	color: #fff;
	font-size: 1.15rem;
}
.ah-social--footer .ah-social__link,
.ah-social--drawer .ah-social__link { width: 42px; height: 42px; border-radius: 50%; }
.ah-social__link:hover { transform: translateY(-2px); color: #fff; }
.ah-social--facebook { background: #1877f2; }
.ah-social--x { background: #000; }
.ah-social--instagram { background: linear-gradient(45deg, #f9a825, #e1306c 45%, #833ab4); }
.ah-social--youtube { background: #ff0000; }
.ah-social--telegram { background: #229ed9; }
.ah-social--whatsapp { background: #25d366; }
.ah-social--tiktok { background: #111; }
.ah-social--linkedin { background: #0a66c2; }
.ah-social--rss { background: #f26522; }
.ah-social--top .ah-social__link { background: transparent; }
[data-theme="dark"] .ah-social--x,
[data-theme="dark"] .ah-social--tiktok { background: #2a3448; }
[data-theme="dark"] .ah-social--top .ah-social__link { background: transparent; }

/* ==========================================================================
   5. الترويسة والشعار
   ========================================================================== */
.ah-header { background: var(--ah-surface); position: relative; z-index: 40; }
.ah-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 18px;
}
.ah-header-compact .ah-header__inner { padding-block: 10px; }
.ah-header-compact { --ah-logo-h: 44px; }
.ah-header-centered .ah-header__inner { justify-content: center; padding-block: 22px; }

.ah-header__burger,
.ah-header__tools { display: none; }
.ah-header__tools { gap: 4px; align-items: center; }
.ah-header__ad { flex: 0 1 728px; min-width: 0; }
.ah-header__ad .ah-ad { margin: 0; }

.ah-brand { margin: 0; font-size: inherit; line-height: 1; }
.ah-brand__link { display: inline-flex; align-items: center; gap: 12px; color: var(--ah-text); }
.ah-brand__link:hover { color: var(--ah-text); }
.ah-brand__logo { height: var(--ah-logo-h); width: auto; max-width: min(320px, 60vw); object-fit: contain; }
.ah-brand__logo--dark { display: none; }
[data-theme="dark"] .ah-brand__logo--light { display: none; }
[data-theme="dark"] .ah-brand__logo--dark { display: block; }

.ah-brand__mark,
.ah-img__mark,
.ah-ticker__mark {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	background: linear-gradient(135deg, var(--ah-primary), var(--ah-primary-600));
	color: var(--ah-on-primary);
	font-family: var(--ah-font-head);
	font-weight: 800;
	line-height: 1;
}
.ah-brand__mark {
	width: var(--ah-logo-h);
	height: var(--ah-logo-h);
	border-radius: calc(var(--ah-radius) + 2px);
	font-size: calc(var(--ah-logo-h) * .5);
	box-shadow: 0 8px 20px -8px rgba(var(--ah-primary-rgb), .7);
}
.ah-brand__text { display: flex; flex-direction: column; gap: 6px; }
.ah-brand__name { font-family: var(--ah-font-head); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.2; }
.ah-brand__tagline { font-size: .8rem; color: var(--ah-muted); font-weight: 400; line-height: 1.3; }

/* ==========================================================================
   6. القائمة الرئيسية
   ========================================================================== */
.ah-nav {
	--nav-bg: var(--ah-primary);
	--nav-fg: var(--ah-on-primary);
	--nav-hover: rgba(0, 0, 0, .16);
	background: var(--nav-bg);
	color: var(--nav-fg);
	position: relative;
	z-index: 60;
	transition: box-shadow .3s var(--ah-ease);
}
.ah-nav-dark .ah-nav { --nav-bg: var(--ah-dark); --nav-fg: #fff; --nav-hover: rgba(255, 255, 255, .08); border-bottom: 3px solid var(--ah-primary); }
.ah-nav-light .ah-nav { --nav-bg: var(--ah-surface); --nav-fg: var(--ah-text); --nav-hover: var(--ah-surface-2); border-block: 1px solid var(--ah-border); }
[data-theme="dark"] .ah-nav-primary .ah-nav { --nav-bg: var(--ah-primary-600); }

.ah-sticky-nav .ah-nav { position: sticky; top: var(--ah-sticky-top); }
.admin-bar { --ah-sticky-top: 32px; }
.ah-nav.is-stuck { box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .45); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) and (background: color-mix(in srgb, red, blue)) {
	.ah-nav.is-stuck {
		background: color-mix(in srgb, var(--nav-bg) 86%, transparent);
		-webkit-backdrop-filter: saturate(1.6) blur(14px);
		backdrop-filter: saturate(1.6) blur(14px);
	}
}

.ah-nav__inner { display: flex; align-items: stretch; min-height: var(--ah-nav-h); gap: 2px; }

.ah-nav__mini {
	display: flex;
	align-items: center;
	width: 0;
	overflow: hidden;
	opacity: 0;
	transition: width .35s var(--ah-ease), opacity .35s var(--ah-ease), margin .35s var(--ah-ease);
}
.ah-nav.is-stuck .ah-nav__mini { width: 40px; opacity: 1; margin-inline-end: 8px; }
.ah-nav__mini-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; font-size: 1rem; }

.ah-nav__home {
	display: grid;
	place-items: center;
	padding-inline: 14px;
	color: var(--nav-fg);
	font-size: 1.15rem;
}
.ah-nav__home:hover,
.ah-nav__home.is-current { background: var(--nav-hover); color: var(--nav-fg); }

.ah-menu {
	display: flex;
	align-items: stretch;
	flex: 1;
	min-width: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ah-menu > li { position: relative; display: flex; }
.ah-menu > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding-inline: 15px;
	color: var(--nav-fg);
	font-family: var(--ah-font-head);
	font-weight: 700;
	font-size: .93rem;
	white-space: nowrap;
	position: relative;
}
.ah-menu > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 15px;
	bottom: 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--ah-accent);
	transform: scaleX(0);
	transition: transform .3s var(--ah-ease);
}
.ah-menu > li:hover > a,
.ah-menu > li:focus-within > a { background: var(--nav-hover); color: var(--nav-fg); }
.ah-menu > li.current-menu-item > a::after,
.ah-menu > li.current-menu-ancestor > a::after,
.ah-menu > li.current-category-ancestor > a::after,
.ah-menu > li:hover > a::after { transform: scaleX(1); }
.ah-menu-caret { width: .8em; height: .8em; opacity: .75; transition: transform .25s; }
.ah-menu > li:hover .ah-menu-caret { transform: rotate(180deg); }

/* القوائم المنسدلة */
.ah-menu .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 230px;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--ah-surface);
	color: var(--ah-text);
	border-radius: 0 0 var(--ah-radius) var(--ah-radius);
	border-top: 3px solid var(--ah-accent);
	box-shadow: var(--ah-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s var(--ah-ease), transform .2s var(--ah-ease), visibility .2s;
	z-index: 10;
}
.ah-menu li:hover > .sub-menu,
.ah-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ah-menu .sub-menu li { position: relative; }
.ah-menu .sub-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: var(--ah-radius-sm);
	font-size: .9rem;
	font-weight: 500;
	line-height: 1.5;
}
.ah-menu .sub-menu a:hover { background: var(--ah-surface-2); color: var(--ah-primary); padding-inline-start: 18px; }
.ah-menu .sub-menu .sub-menu { top: -8px; inset-inline-start: 100%; border-radius: var(--ah-radius); border-top: 0; }
.ah-menu .sub-menu .menu-item-has-children > a::after { content: "‹"; float: inline-end; opacity: .6; }
html:not([dir="rtl"]) .ah-menu .sub-menu .menu-item-has-children > a::after { content: "›"; }

.ah-nav__actions { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; padding-inline-start: 8px; }
.ah-nav__actions .ah-icon-btn { color: var(--nav-fg); }
.ah-nav__actions .ah-icon-btn:hover { background: var(--nav-hover); }

/* ==========================================================================
   7. الشريط الإخباري العاجل
   ========================================================================== */
.ah-tickers { position: relative; z-index: 30; }
.ah-ticker {
	background: var(--t-bg, var(--ah-ticker-bg));
	color: var(--t-fg, #fff);
	position: relative;
	z-index: 30;
	overflow: hidden;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06);
}
.ah-ticker__inner { display: flex; align-items: stretch; height: var(--ah-ticker-h); padding-inline: 0; }
@media (min-width: 1321px) {
	.ah-ticker__inner { padding-inline: var(--ah-gutter); }
}

.ah-ticker__label {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	padding-inline: 12px 18px;
	background: var(--t-lbl, var(--ah-ticker-label));
	color: var(--t-lbl-fg, var(--ah-on-ticker-lbl));
	font-family: var(--ah-font-head);
	font-weight: 800;
	font-size: .98rem;
	white-space: nowrap;
	overflow: hidden;
}
/* الحافة المائلة كما في شاشات القنوات */
.ah-ticker__label::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-end: -12px;
	width: 24px;
	background: var(--t-lbl, var(--ah-ticker-label));
	transform: skewX(-14deg);
	z-index: -1;
}
/* لمعة تمر على عنوان الشريط */
.ah-ticker__label::before {
	content: "";
	position: absolute;
	inset-block: 0;
	width: 40%;
	inset-inline-start: -60%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-20deg);
	animation: ah-shine 4.5s ease-in-out infinite;
}
.ah-ticker__logo-wrap {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 4px 10px rgba(0, 0, 0, .25);
	overflow: hidden;
}
.ah-ticker__logo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ah-ticker__mark { width: 100%; height: 100%; border-radius: 50%; font-size: 1rem; }
.ah-ticker__label-text { position: relative; }

.ah-ticker__viewport {
	position: relative;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}
.ah-ticker__track {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	display: flex;
	align-items: center;
	height: 100%;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
	will-change: transform;
}
.ah-ticker--marquee .ah-ticker__track.is-running {
	animation: ah-marquee var(--ah-ticker-duration, 60s) linear infinite;
}
.ah-ticker:hover .ah-ticker__track,
.ah-ticker:focus-within .ah-ticker__track,
.ah-ticker.is-paused .ah-ticker__track { animation-play-state: paused; }

.ah-ticker__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-inline: 14px 10px;
	white-space: nowrap;
	font-family: var(--ah-font-head);
	font-size: .93rem;
	font-weight: 600;
}
.ah-ticker__sep { display: grid; place-items: center; }
.ah-ticker__sep-logo {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
	font-size: .72rem;
}
.ah-ticker__time {
	color: var(--ah-accent);
	font-size: .8rem;
	font-weight: 700;
	direction: ltr;
	unicode-bidi: isolate;
	font-variant-numeric: tabular-nums;
}
.ah-ticker__link { color: inherit; }
.ah-ticker__link:hover { color: var(--ah-accent); }

.ah-ticker__toggle {
	display: grid;
	place-items: center;
	width: 46px;
	flex-shrink: 0;
	border: 0;
	background: rgba(127, 127, 127, .14);
	color: inherit;
	opacity: .85;
	z-index: 2;
}
.ah-ticker__toggle:hover { background: rgba(127, 127, 127, .26); opacity: 1; }
.ah-ticker__play { display: none; }
.ah-ticker.is-paused .ah-ticker__play { display: inline-block; }
.ah-ticker.is-paused .ah-ticker__pause { display: none; }

/* نمط: عنوان تلو الآخر */
.ah-ticker--slide .ah-ticker__track { position: relative; width: 100%; display: block; }
.ah-ticker--slide .ah-ticker__item {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: translateY(100%);
	transition: opacity .5s var(--ah-ease), transform .5s var(--ah-ease);
	overflow: hidden;
	text-overflow: ellipsis;
}
.ah-ticker--slide .ah-ticker__item.is-active { opacity: 1; transform: none; }
.ah-ticker--slide .ah-ticker__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.ah-ticker--slide .ah-ticker__link { overflow: hidden; text-overflow: ellipsis; }
.ah-ticker--slide .ah-ticker__viewport { -webkit-mask-image: none; mask-image: none; }

/* الشريط الثاني: ألوانه تتبع القالب والوضع الليلي ما لم تُخصص من لوحة التحكم */
.ah-ticker--2 {
	--ah-ticker2-h: 40px;
	background: var(--t-bg, var(--ah-surface-2));
	color: var(--t-fg, var(--ah-text));
	box-shadow: inset 0 -1px 0 var(--ah-border);
}
.ah-ticker--2 .ah-ticker__inner { height: var(--ah-ticker2-h); }
.ah-ticker--2 .ah-ticker__label { background: var(--t-lbl, var(--ah-accent)); color: var(--t-lbl-fg, var(--ah-on-accent)); font-size: .86rem; padding-inline: 12px 14px; }
.ah-ticker--2 .ah-ticker__label::after { background: var(--t-lbl, var(--ah-accent)); }
.ah-ticker--2 .ah-ticker__label::before { display: none; }
.ah-ticker--2 .ah-ticker__logo-wrap { width: 26px; height: 26px; }
.ah-ticker--2 .ah-ticker__item { font-size: .86rem; font-weight: 500; gap: 9px; padding-inline: 12px 8px; }
.ah-ticker--2 .ah-ticker__link:hover { color: var(--t-lbl, var(--ah-primary)); }
.ah-ticker--2 .ah-ticker__time { color: var(--t-lbl, var(--ah-primary)); }
.ah-ticker--2 .ah-ticker__sep-logo { width: 20px; height: 20px; }
.ah-ticker--size-small { --ah-ticker2-h: 34px; }
.ah-ticker--size-small .ah-ticker__item { font-size: .78rem; }
.ah-ticker--size-large { --ah-ticker2-h: 50px; }
.ah-ticker--size-large .ah-ticker__item { font-size: 1rem; }
.ah-ticker__glyph { display: block; flex-shrink: 0; }
.ah-ticker__glyph--dot { width: 7px; height: 7px; border-radius: 50%; background: var(--t-lbl, var(--ah-accent)); }
.ah-ticker__glyph--diamond { width: 8px; height: 8px; transform: rotate(45deg); background: var(--t-lbl, var(--ah-accent)); }
.ah-ticker__glyph--bar { width: 2px; height: 16px; background: currentColor; opacity: .3; }
.ah-ticker--1 + .ah-ticker--2 { box-shadow: inset 0 -1px 0 var(--ah-border), inset 0 1px 0 rgba(0, 0, 0, .06); }

/* الشريطان مثبتان أسفل الشاشة (أسلوب التلفاز) */
.ah-tickers--bottom-fixed {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 90;
	box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, .5);
	padding-bottom: env(safe-area-inset-bottom);
	background: var(--ah-ticker-bg);
}
.ah-ticker-bottom { padding-bottom: var(--ah-tickers-h, var(--ah-ticker-h)); }
.ah-ticker-bottom .ah-to-top { bottom: calc(var(--ah-tickers-h, var(--ah-ticker-h)) + 18px); }

/* حركات الشعار */
.ah-anim-spin { animation: ah-spin 4s cubic-bezier(.65, 0, .35, 1) infinite; }
.ah-anim-flip { animation: ah-flip 5s cubic-bezier(.65, 0, .35, 1) infinite; }
.ah-anim-pulse { animation: ah-pulse 2s ease-in-out infinite; }
.ah-ticker__sep-logo.ah-anim-spin { animation-duration: 6s; }

@keyframes ah-spin {
	0%, 62% { transform: perspective(240px) rotateY(0); }
	100% { transform: perspective(240px) rotateY(360deg); }
}
@keyframes ah-flip {
	0%, 70% { transform: perspective(240px) rotateX(0); }
	100% { transform: perspective(240px) rotateX(360deg); }
}
@keyframes ah-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6), 0 4px 10px rgba(0, 0, 0, .25); }
	50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0), 0 4px 10px rgba(0, 0, 0, .25); }
}
@keyframes ah-marquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(calc(var(--ah-ticker-distance, 0px) * var(--ah-ticker-dir, 1)), 0, 0); }
}
@keyframes ah-shine {
	0%, 55% { inset-inline-start: -60%; }
	100% { inset-inline-start: 130%; }
}
@keyframes ah-live {
	0% { box-shadow: 0 0 0 0 currentColor; }
	70% { box-shadow: 0 0 0 7px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}

/* ==========================================================================
   8. تنبيه الخبر العاجل
   ========================================================================== */
.ah-breaking {
	background: linear-gradient(90deg, var(--ah-primary-600), var(--ah-primary));
	color: var(--ah-on-primary);
	position: relative;
	overflow: hidden;
}
.ah-breaking::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .06) 0 12px, transparent 12px 24px);
	animation: ah-stripes 1.2s linear infinite;
}
.ah-breaking__inner { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding-block: 8px; }
.ah-breaking__tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 14px;
	border-radius: 4px;
	background: #fff;
	color: var(--ah-primary);
	font-family: var(--ah-font-head);
	font-weight: 800;
	font-size: .9rem;
	flex-shrink: 0;
}
.ah-breaking__link { flex: 1; min-width: 0; font-family: var(--ah-font-head); font-weight: 700; font-size: 1.05rem; color: inherit; line-height: 1.6; }
.ah-breaking__link:hover { color: inherit; text-decoration: underline; text-underline-offset: 6px; }
.ah-breaking .ah-time { font-size: .8rem; opacity: .85; white-space: nowrap; }
.ah-breaking__close { border: 0; background: rgba(0, 0, 0, .18); color: inherit; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.ah-breaking__close:hover { background: rgba(0, 0, 0, .32); }
.ah-breaking.is-hidden { display: none; }
@keyframes ah-stripes { to { background-position: 34px 0; } }

/* ==========================================================================
   9. الإعلانات
   ========================================================================== */
.ah-ad { margin-block: 24px; text-align: center; overflow: hidden; }
.ah-ad__label {
	display: block;
	margin-bottom: 6px;
	font-size: .68rem;
	letter-spacing: .05em;
	color: var(--ah-muted);
}
.ah-ad__inner { display: flex; justify-content: center; align-items: center; }
.ah-ad__inner img { border-radius: var(--ah-radius-sm); }
.ah-ad--grid { grid-column: 1 / -1; }
.ah-header__ad .ah-ad__label { display: none; }

/* ==========================================================================
   10. البطاقات
   ========================================================================== */
.ah-card { position: relative; min-width: 0; }
.ah-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--ah-radius);
	background: var(--ah-surface-3);
	isolation: isolate;
}
.ah-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--ah-ease), filter .3s;
}
.ah-card:hover .ah-img { transform: scale(1.05); }
/* الصورة المولّدة للأخبار بلا صورة: لون التصنيف + زخرفة + شعار الموقع + اسم التصنيف */
.ah-img--placeholder {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	container-type: inline-size;
	color: #fff;
	background:
		radial-gradient(120% 90% at 85% 8%, rgba(255, 255, 255, .2), transparent 50%),
		linear-gradient(135deg, var(--ah-cat, var(--ah-primary)) 0%, var(--ah-dark) 100%);
}
@supports (background: color-mix(in srgb, red, blue)) {
	.ah-img--placeholder {
		background:
			radial-gradient(120% 90% at 85% 8%, rgba(255, 255, 255, .2), transparent 50%),
			linear-gradient(135deg, var(--ah-cat, var(--ah-primary)) 0%, color-mix(in srgb, var(--ah-cat, var(--ah-primary)) 45%, var(--ah-dark)) 55%, var(--ah-dark) 100%);
	}
}
.ah-img__pattern {
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 15px),
		radial-gradient(circle at 15% 85%, rgba(255, 255, 255, .12) 0 18%, transparent 18.5%);
	-webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0, transparent 78%);
	mask-image: radial-gradient(circle at 50% 45%, #000 0, transparent 78%);
}
.ah-img__brand {
	position: relative;
	display: grid;
	place-items: center;
	width: clamp(46px, 24cqi, 128px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .35);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
	transition: transform .7s var(--ah-ease);
}
.ah-card:hover .ah-img__brand { transform: scale(1.06) rotate(-3deg); }
.ah-img__logo-img { width: 68%; height: 68%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.ah-img__brand .ah-img__mark { width: 70%; height: 70%; border-radius: 50%; font-size: clamp(1.1rem, 10cqi, 3rem); }
.ah-img__cat {
	position: relative;
	margin-top: 5cqi;
	padding: .25em 1em;
	border-radius: 99px;
	background: rgba(0, 0, 0, .2);
	font-family: var(--ah-font-head);
	font-weight: 800;
	font-size: clamp(.68rem, 4.2cqi, 1.25rem);
	line-height: 1.6;
	letter-spacing: .01em;
}
@container (max-width: 200px) {
	.ah-img__cat { display: none; }
}
.ah-card--overlay .ah-img--placeholder { justify-content: flex-start; padding-top: 12%; }
.ah-card--overlay .ah-img__cat { display: none; }
.ah-ph--dark { background: radial-gradient(120% 90% at 85% 8%, rgba(255, 255, 255, .12), transparent 50%), linear-gradient(135deg, var(--ah-dark-2), var(--ah-dark)); }
.ah-ph--dark .ah-img__brand { border-color: var(--ah-cat, var(--ah-primary)); box-shadow: 0 0 0 4px rgba(255, 255, 255, .06), 0 14px 34px -12px rgba(0, 0, 0, .6); }
.ah-ph--dark .ah-img__cat { background: var(--ah-cat, var(--ah-primary)); }
.ah-ph--light { color: var(--ah-text); background: linear-gradient(135deg, var(--ah-surface-2), var(--ah-surface-3)); }
.ah-ph--light .ah-img__pattern { background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .035) 0 2px, transparent 2px 15px); }
.ah-ph--light .ah-img__brand { background: var(--ah-surface); border-color: var(--ah-border); }
.ah-ph--light .ah-img__cat { background: var(--ah-cat, var(--ah-primary)); color: #fff; }

.ah-format {
	position: absolute;
	inset-inline-start: 12px;
	bottom: 12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(6px);
	color: #fff;
	border: 2px solid rgba(255, 255, 255, .85);
	font-size: 1rem;
}
.ah-card--overlay .ah-format { top: 14px; bottom: auto; inset-inline-end: 14px; inset-inline-start: auto; }

.ah-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.ah-card__title {
	margin: 0;
	font-size: 1.04rem;
	font-weight: 700;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ah-card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 100% 100%; transition: background-size .35s var(--ah-ease), color .2s; }
.ah-card__title a:hover { background-size: 100% 1px; }
.ah-card__excerpt {
	margin: 0;
	color: var(--ah-text-2);
	font-size: .92rem;
	line-height: 1.85;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ah-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--ah-muted); font-size: .76rem; line-height: 1.6; }
.ah-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.ah-meta .ah-icon { width: 1em; height: 1em; opacity: .8; }

/* شبكة */
.ah-card--grid .ah-card__body { padding-top: 14px; }
.ah-card--grid.ah-card--lead .ah-card__title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.55; -webkit-line-clamp: 4; }
.ah-card--grid.ah-card--lead .ah-card__excerpt { font-size: .98rem; }

/* أفقية */
.ah-card--row {
	display: grid;
	grid-template-columns: 124px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}
.ah-card--row .ah-card__media { aspect-ratio: 4 / 3; border-radius: var(--ah-radius-sm); }
.ah-card--row .ah-card__title { font-size: .95rem; line-height: 1.6; }
.ah-card--row .ah-card__body { gap: 6px; }
.ah-card--row-lg { grid-template-columns: minmax(180px, 38%) minmax(0, 1fr); gap: 22px; }
.ah-card--row-lg .ah-card__media { aspect-ratio: 16 / 10; border-radius: var(--ah-radius); }
.ah-card--row-lg .ah-card__title { font-size: 1.15rem; line-height: 1.6; }

/* فوق الصورة */
.ah-card--overlay {
	border-radius: var(--ah-radius);
	overflow: hidden;
	min-height: 220px;
	display: flex;
	color: #fff;
	background: var(--ah-dark);
	isolation: isolate;
}
.ah-card--overlay .ah-card__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -1; }
.ah-card--overlay .ah-card__media::after { content: ""; position: absolute; inset: 0; background: var(--ah-overlay); }
.ah-card--overlay .ah-card__body { margin-top: auto; width: 100%; padding: 22px; gap: 10px; }
.ah-card--overlay .ah-card__title { color: #fff; font-size: 1.05rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.ah-card--overlay .ah-card__title a:hover { color: #fff; }
.ah-card--overlay .ah-card__excerpt { color: rgba(255, 255, 255, .82); }
.ah-card--overlay .ah-meta { color: rgba(255, 255, 255, .78); }
.ah-card--overlay.ah-card--lead .ah-card__title { font-size: clamp(1.3rem, 2.6vw, 2.1rem); line-height: 1.5; -webkit-line-clamp: 4; }
.ah-card--overlay.ah-card--lead .ah-card__body { padding: clamp(20px, 3vw, 36px); }
.ah-stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* مرقمة */
.ah-card--numbered { display: flex; align-items: flex-start; gap: 14px; padding-block: 14px; border-bottom: 1px dashed var(--ah-border); }
.ah-card--numbered:last-child { border-bottom: 0; }
.ah-card__num {
	flex-shrink: 0;
	width: 40px;
	font-family: var(--ah-font-head);
	font-size: 2.1rem;
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--ah-primary);
	text-align: center;
	padding-top: 4px;
}
.ah-card--numbered:first-child .ah-card__num { color: var(--ah-primary); }
.ah-card--numbered .ah-card__title { font-size: .95rem; }

/* مختصرة */
.ah-card--compact { display: flex; gap: 14px; padding-bottom: 16px; position: relative; }
.ah-card--compact::before { content: ""; position: absolute; top: 14px; bottom: -2px; inset-inline-start: 5px; width: 2px; background: var(--ah-border); }
.ah-card--compact:last-child::before { display: none; }
.ah-card__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ah-surface); border: 3px solid var(--ah-primary); flex-shrink: 0; margin-top: 8px; position: relative; z-index: 1; }
.ah-card--compact .ah-time { color: var(--ah-primary); font-size: .76rem; font-weight: 700; }
.ah-card--compact .ah-card__body { gap: 2px; }
.ah-card--compact .ah-card__title { font-size: .93rem; font-weight: 600; -webkit-line-clamp: 2; }

/* ==========================================================================
   11. أقسام الأخبار
   ========================================================================== */
.ah-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.ah-sections + .ah-sections { margin-top: 48px; }
.ah-w-full { grid-column: 1 / -1; }
.ah-sections > .ah-widget { grid-column: 1 / -1; margin: 0; }
.ah-sections > .ah-widget:has(.ah-w-half) { grid-column: auto; }

.ah-block { container-type: inline-size; min-width: 0; }
.ah-primary > .ah-block,
.ah-home-latest { margin-top: 48px; }

.ah-block__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.ah-block__head::after { content: ""; flex: 1; height: 2px; background: var(--ah-border); border-radius: 2px; order: 1; }
.ah-block__title {
	margin: 0;
	position: relative;
	padding-inline-start: 16px;
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.4;
	white-space: nowrap;
}
.ah-block__title::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 12%;
	bottom: 12%;
	width: 5px;
	border-radius: 4px;
	background: var(--ah-cat, var(--ah-primary));
}
.ah-block__title a:hover { color: var(--ah-cat, var(--ah-primary)); }
.ah-block__more {
	order: 2;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 4px 4px 12px;
	font-size: .8rem;
	font-weight: 700;
	color: var(--ah-muted);
	white-space: nowrap;
	border-radius: 99px;
}
.ah-block__more:hover { color: var(--ah-cat, var(--ah-primary)); background: var(--ah-surface-2); }

.ah-block__body { min-width: 0; }

/* شبكة */
.ah-block--grid .ah-block__body,
.ah-related .ah-block__body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }

/* خبر رئيسي + قائمة */
.ah-block--featured .ah-block__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
.ah-block__list { display: flex; flex-direction: column; gap: 0; }
.ah-block__list .ah-card--row { padding-block: 14px; border-bottom: 1px solid var(--ah-border); }
.ah-block__list .ah-card--row:first-child { padding-top: 0; }
.ah-block__list .ah-card--row:last-child { border-bottom: 0; padding-bottom: 0; }

/* قائمة أفقية */
.ah-block--list .ah-block__body { display: flex; flex-direction: column; gap: 0; }
.ah-block--list .ah-card--row { padding-block: 20px; border-bottom: 1px solid var(--ah-border); }
.ah-block--list .ah-card--row:first-child { padding-top: 0; }
.ah-block--list .ah-card--row:last-child { border-bottom: 0; }

/* فوق الصورة */
.ah-block--overlay .ah-block__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); gap: 14px; }
.ah-block--overlay .ah-card--lead { grid-column: span 2; }
/* ملء الصف الأخير تلقائياً مهما كان عدد الأخبار */
.ah-block--overlay .ah-card:last-child:nth-child(3n + 1) { grid-column: span 2; }
.ah-block--overlay .ah-card:last-child:nth-child(3n) { grid-column: 1 / -1; }
.ah-block--overlay .ah-card--lead:only-child { grid-column: 1 / -1; }

/* داكن */
.ah-block--dark { background: var(--ah-dark); color: #fff; border-radius: calc(var(--ah-radius) + 4px); }
.ah-block__dark-inner { padding: clamp(20px, 3vw, 34px); position: relative; overflow: hidden; border-radius: inherit; }
.ah-block__dark-inner::before {
	content: "";
	position: absolute;
	width: 420px;
	height: 420px;
	inset-inline-end: -140px;
	top: -200px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--ah-primary-rgb), .45), transparent 70%);
	pointer-events: none;
}
.ah-block--dark .ah-block__title,
.ah-block--dark .ah-block__title a { color: #fff; }
.ah-block--dark .ah-block__head::after { background: rgba(255, 255, 255, .14); }
.ah-block--dark .ah-block__more { color: rgba(255, 255, 255, .7); }
.ah-block--dark .ah-block__more:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ah-block--dark .ah-block__body { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); gap: 14px; }
.ah-block--dark .ah-card--lead { grid-column: span 2; grid-row: span 2; }
.ah-block--dark .ah-card--overlay { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }

/* مرقمة ومختصرة */
.ah-block--numbered .ah-block__body,
.ah-block--compact .ah-block__body { display: flex; flex-direction: column; }
.ah-block--compact .ah-block__body { padding-top: 4px; }

/* شريط تمرير */
.ah-carousel { position: relative; }
.ah-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 66px) / 4);
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	scroll-behavior: smooth;
	padding-bottom: 4px;
}
.ah-carousel__track::-webkit-scrollbar { display: none; }
.ah-carousel__track > .ah-card { scroll-snap-align: start; }
.ah-carousel__btn {
	position: absolute;
	top: calc((100cqi - 66px) / 4 * .28125 - 21px);
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: var(--ah-surface);
	color: var(--ah-text);
	box-shadow: var(--ah-shadow);
	z-index: 3;
	transition: background-color .2s, color .2s, opacity .2s;
}
.ah-carousel__btn:hover { background: var(--ah-primary); color: var(--ah-on-primary); }
.ah-carousel__btn--prev { inset-inline-start: -14px; }
.ah-carousel__btn--next { inset-inline-end: -14px; }
.ah-carousel__btn[disabled] { opacity: 0; pointer-events: none; }

/* استجابة الأقسام حسب عرضها الفعلي (Container Queries) */
@container (max-width: 820px) {
	.ah-block--grid .ah-block__body,
	.ah-related .ah-block__body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ah-carousel__track { grid-auto-columns: calc((100% - 44px) / 3); }
	.ah-carousel__btn { top: calc((100cqi - 44px) / 3 * .28125 - 21px); }
}
@container (max-width: 720px) {
	.ah-block--grid .ah-block__body,
	.ah-related .ah-block__body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.ah-block--featured .ah-block__body { grid-template-columns: minmax(0, 1fr); }
	.ah-block--overlay .ah-block__body { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); }
	.ah-block--overlay .ah-card:last-child:nth-child(n) { grid-column: auto; }
	.ah-block--overlay .ah-card--lead,
	.ah-block--overlay .ah-card:not(.ah-card--lead):last-child:nth-child(even) { grid-column: 1 / -1; }
	.ah-block--dark .ah-block__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ah-block--dark .ah-card--lead { grid-column: span 2; grid-row: span 1; min-height: 320px; }
	.ah-block--dark .ah-card:not(.ah-card--lead):last-child:nth-child(even) { grid-column: 1 / -1; }
	.ah-carousel__track { grid-auto-columns: calc((100% - 22px) / 2); }
	.ah-carousel__btn { top: calc((100cqi - 22px) / 2 * .28125 - 21px); }
	.ah-card--row-lg { grid-template-columns: 140px minmax(0, 1fr); gap: 14px; }
	.ah-card--row-lg .ah-card__title { font-size: 1rem; }
	.ah-card--row-lg .ah-card__excerpt { display: none; }
}
@container (max-width: 460px) {
	.ah-block--grid .ah-block__body,
	.ah-related .ah-block__body { grid-template-columns: minmax(0, 1fr); }
	.ah-block--grid .ah-card--grid:not(:first-child) { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px; }
	.ah-block--grid .ah-card--grid:not(:first-child) .ah-card__media { aspect-ratio: 4 / 3; border-radius: var(--ah-radius-sm); }
	.ah-block--grid .ah-card--grid:not(:first-child) .ah-card__body { padding-top: 0; }
	.ah-block--grid .ah-card--grid:not(:first-child) .ah-card__title { font-size: .95rem; }
	.ah-block--grid .ah-card--grid:not(:first-child) .ah-card__excerpt { display: none; }
	.ah-block--overlay .ah-block__body,
	.ah-block--dark .ah-block__body { grid-template-columns: minmax(0, 1fr); }
	.ah-block--overlay .ah-card--lead,
	.ah-block--dark .ah-card--lead,
	.ah-block--overlay .ah-card:not(.ah-card--lead):last-child:nth-child(even),
	.ah-block--dark .ah-card:not(.ah-card--lead):last-child:nth-child(even) { grid-column: auto; }
	.ah-carousel__track { grid-auto-columns: 78%; gap: 14px; }
	.ah-carousel__btn { display: none; }
	.ah-card--row-lg { grid-template-columns: 112px minmax(0, 1fr); }
}

@supports not (container-type: inline-size) {
	.ah-sidebar .ah-block__body { display: flex !important; flex-direction: column; gap: 18px; }
}

/* ==========================================================================
   12. الأخبار الرئيسية (Hero)
   ========================================================================== */
.ah-hero { padding-block: 26px 10px; }
.ah-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 12px;
	height: clamp(440px, 44vw, 570px);
}
.ah-hero__grid .ah-card--overlay { min-height: 0; }
.ah-hero__grid .ah-card--lead { grid-row: span 2; }
.ah-hero--mosaic3 .ah-hero__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ah-hero__grid .ah-card--overlay:not(.ah-card--lead) .ah-card__body { padding: 16px; gap: 6px; }
.ah-hero__grid .ah-card--overlay:not(.ah-card--lead) .ah-card__title { font-size: 1rem; -webkit-line-clamp: 3; }
.ah-hero--mosaic3 .ah-hero__grid .ah-card--overlay:not(.ah-card--lead) .ah-card__title { font-size: 1.15rem; }
.ah-hero__grid .ah-card--overlay:not(.ah-card--lead) .ah-meta { display: none; }

.ah-hero__split { display: grid; grid-template-columns: minmax(0, 1fr) var(--ah-sidebar); gap: 26px; align-items: stretch; }
.ah-hero--split .ah-card--lead { min-height: clamp(420px, 40vw, 540px); }
.ah-hero__side { min-width: 0; }
.ah-hero__side .ah-block { margin: 0; }

/* السلايدر */
.ah-slider { position: relative; border-radius: var(--ah-radius); overflow: hidden; background: var(--ah-dark); min-height: clamp(420px, 40vw, 540px); }
.ah-slider__viewport { position: absolute; inset: 0; }
.ah-slide { position: absolute !important; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ah-ease), visibility .8s; border-radius: 0 !important; }
.ah-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.ah-slide.is-active .ah-img { animation: ah-kenburns 9s ease-out both; }
.ah-slide .ah-card__body { padding-bottom: 70px !important; }
.ah-slider__nav {
	position: absolute;
	z-index: 3;
	bottom: 18px;
	inset-inline: clamp(20px, 3vw, 36px);
	display: flex;
	align-items: center;
	gap: 10px;
}
.ah-slider__arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .25); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.ah-slider__arrow:hover { background: var(--ah-primary); border-color: var(--ah-primary); }
.ah-slider__dots { display: flex; gap: 6px; flex: 1; }
.ah-slider__dot { flex: 1; max-width: 60px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.ah-slider__dot.is-active::after { content: ""; position: absolute; inset: 0; background: var(--ah-accent); transform-origin: right; animation: ah-progress-dot var(--ah-slide-interval, 6.5s) linear forwards; }
html:not([dir="rtl"]) .ah-slider__dot.is-active::after { transform-origin: left; }
.ah-slider.is-paused .ah-slider__dot.is-active::after { animation-play-state: paused; }
@keyframes ah-progress-dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ah-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ==========================================================================
   13. التخطيط والشريط الجانبي
   ========================================================================== */
.ah-home { padding-block: 34px 10px; }
.ah-page { padding-block: 22px 10px; }

.ah-layout { display: grid; gap: 40px; align-items: start; }
.ah-layout--full { grid-template-columns: minmax(0, 1fr); }
.ah-layout--sb-end { grid-template-columns: minmax(0, 1fr) var(--ah-sidebar); }
.ah-layout--sb-start { grid-template-columns: var(--ah-sidebar) minmax(0, 1fr); }
.ah-layout--sb-start .ah-sidebar { order: -1; }
.ah-primary { min-width: 0; }

.ah-sidebar { min-width: 0; }
.ah-widget { margin-bottom: 38px; container-type: inline-size; }
.ah-widget__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-size: 1.1rem;
	font-weight: 800;
}
.ah-widget__title span { position: relative; padding-inline-start: 14px; }
.ah-widget__title span::before { content: ""; position: absolute; inset-inline-start: 0; top: 10%; bottom: 10%; width: 4px; border-radius: 4px; background: var(--ah-primary); }
.ah-widget__title::after { content: ""; flex: 1; height: 2px; background: var(--ah-border); border-radius: 2px; }
.ah-widget ul:not([class]) { list-style: none; padding: 0; margin: 0; }
.ah-widget ul:not([class]) li { padding-block: 8px; border-bottom: 1px solid var(--ah-border); }
.ah-widget select { width: 100%; padding: 10px; border: 1px solid var(--ah-border); border-radius: var(--ah-radius-sm); background: var(--ah-surface); }
.ah-sections--widgets .ah-widget__title { font-size: 1.3rem; }

/* التبويبات */
.ah-tabs__nav { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--ah-surface-2); border-radius: calc(var(--ah-radius-sm) + 4px); }
.ah-tabs__btn { flex: 1; border: 0; padding: 8px 6px; border-radius: var(--ah-radius-sm); background: transparent; color: var(--ah-muted); font-family: var(--ah-font-head); font-size: .82rem; font-weight: 700; }
.ah-tabs__btn.is-active { background: var(--ah-surface); color: var(--ah-primary); box-shadow: var(--ah-shadow-sm); }

/* ==========================================================================
   14. مسار التنقل ورأس الأرشيف
   ========================================================================== */
.ah-breadcrumbs { margin-bottom: 18px; font-size: .8rem; color: var(--ah-muted); }
.ah-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.ah-breadcrumbs li { display: inline-flex; align-items: center; }
.ah-breadcrumbs li + li::before { content: "‹"; margin-inline: 8px; opacity: .6; font-size: 1.1em; }
html:not([dir="rtl"]) .ah-breadcrumbs li + li::before { content: "›"; }
.ah-breadcrumbs [aria-current] { color: var(--ah-text-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }

.ah-archive-head {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 24px;
	margin-bottom: 32px;
	padding: clamp(20px, 3vw, 32px);
	background: var(--ah-surface-2);
	border-radius: calc(var(--ah-radius) + 4px);
	overflow: hidden;
}
.ah-archive-head::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: var(--ah-cat, var(--ah-primary)); }
.ah-archive-head__title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.4; }
.ah-archive-head__title span { color: var(--ah-primary); }
.ah-archive-head__desc { color: var(--ah-text-2); margin-top: 6px; }
.ah-archive-head__desc p:last-child { margin: 0; }
.ah-archive-head__author img { border-radius: 50%; }
.ah-archive-head__subcats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; width: 100%; }
.ah-archive-head__subcats a { display: inline-block; padding: 4px 14px; border-radius: 99px; background: var(--ah-surface); border: 1px solid var(--ah-border); font-size: .82rem; font-weight: 600; }
.ah-archive-head__subcats a:hover { border-color: var(--ah-primary); }
.ah-archive-head--search .ah-search-form { flex: 1 1 320px; max-width: 520px; margin-inline-start: auto; }

.ah-primary { container-type: inline-size; }
.ah-archive--overlay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 14px; }
.ah-archive--overlay .ah-card--lead { grid-column: 1 / -1; min-height: clamp(340px, 38vw, 480px); }
.ah-archive--grid,
.ah-archive--mixed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; }
.ah-archive__lead { grid-column: 1 / -1; min-height: clamp(340px, 38vw, 480px); }
.ah-archive--list { display: flex; flex-direction: column; }
.ah-archive--list .ah-card--row { padding-block: 22px; border-bottom: 1px solid var(--ah-border); }
.ah-archive--list .ah-card--row:first-child { padding-top: 0; }
@container (max-width: 760px) {
	.ah-archive--overlay { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); }
	.ah-archive--grid,
	.ah-archive--mixed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
	.ah-archive--list .ah-card--row-lg { grid-template-columns: 140px minmax(0, 1fr); gap: 14px; }
	.ah-archive--list .ah-card__excerpt { display: none; }
}
@container (max-width: 460px) {
	.ah-archive--overlay { grid-template-columns: minmax(0, 1fr); }
	.ah-archive--grid .ah-card--grid,
	.ah-archive--mixed .ah-card--grid { grid-column: 1 / -1; }
	.ah-archive--list .ah-card--row-lg { grid-template-columns: 112px minmax(0, 1fr); }
}

/* ترقيم الصفحات */
.ah-pagination { margin-top: 44px; }
.ah-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ah-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	height: 44px;
	padding-inline: 14px;
	border: 1px solid var(--ah-border);
	border-radius: var(--ah-radius-sm);
	background: var(--ah-surface);
	font-weight: 700;
	font-size: .9rem;
}
.ah-pagination .page-numbers:hover { border-color: var(--ah-primary); color: var(--ah-primary); }
.ah-pagination .page-numbers.current { background: var(--ah-primary); border-color: var(--ah-primary); color: var(--ah-on-primary); }
.ah-pagination .dots { border: 0; background: none; }
.ah-more-wrap { display: flex; justify-content: center; margin-top: 30px; }

/* ==========================================================================
   15. صفحة الخبر
   ========================================================================== */
.ah-article__head { margin-bottom: 26px; }
.ah-article__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ah-article__badges .ah-badge { font-size: .8rem; padding: 3px 14px; }
.ah-article__title { font-size: clamp(1.6rem, 3.4vw, 2.55rem); font-weight: 800; line-height: 1.5; margin-bottom: 16px; letter-spacing: -.005em; }
.ah-article__lead {
	margin: 0 0 22px;
	padding-inline-start: 18px;
	border-inline-start: 4px solid var(--ah-primary);
	font-size: clamp(1.05rem, 1.6vw, 1.22rem);
	line-height: 1.9;
	color: var(--ah-text-2);
	font-weight: 500;
}
.ah-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 22px;
	padding-block: 14px;
	border-block: 1px solid var(--ah-border);
}
.ah-article__author { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ah-font-head); font-weight: 700; font-size: .92rem; }
.ah-article__author img { border-radius: 50%; width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--ah-surface), 0 0 0 4px var(--ah-primary); }
.ah-article__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; color: var(--ah-muted); font-size: .8rem; }
.ah-article__facts li { display: inline-flex; align-items: center; gap: 6px; }
.ah-article__facts .ah-icon { opacity: .8; }

.ah-article__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }

.ah-font-tools { display: inline-flex; border: 1px solid var(--ah-border); border-radius: 99px; overflow: hidden; }
.ah-font-tools button { border: 0; background: transparent; padding: 6px 14px; font-family: var(--ah-font-head); font-weight: 800; font-size: .85rem; color: var(--ah-text-2); }
.ah-font-tools button + button { border-inline-start: 1px solid var(--ah-border); }
.ah-font-tools button:hover { background: var(--ah-surface-2); color: var(--ah-primary); }

.ah-article__figure { margin: 0 0 30px; }
.ah-article__img { width: 100%; border-radius: var(--ah-radius); aspect-ratio: 16 / 9; object-fit: cover; }
.ah-article__figure figcaption { margin-top: 10px; font-size: .82rem; color: var(--ah-muted); padding-inline-start: 12px; border-inline-start: 3px solid var(--ah-border); }

/* المشاركة */
.ah-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ah-share__title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ah-font-head); font-weight: 800; }
.ah-share__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ah-share__btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--ah-border);
	border-radius: 50%;
	background: var(--ah-surface);
	color: var(--ah-text-2);
	font-size: 1rem;
	padding: 0;
	transition: all .2s var(--ah-ease);
}
.ah-share__btn:hover { color: #fff; border-color: transparent; transform: translateY(-2px); background: var(--ah-primary); }
.ah-share--facebook:hover { background: #1877f2; }
.ah-share--x:hover { background: #000; }
.ah-share--whatsapp:hover { background: #25d366; }
.ah-share--telegram:hover { background: #229ed9; }
.ah-share--linkedin:hover { background: #0a66c2; }
.ah-share__btn.is-copied { background: #08785a; color: #fff; }
.ah-share--bottom { margin-block: 30px; padding: 18px 22px; background: var(--ah-surface-2); border-radius: var(--ah-radius); justify-content: space-between; }

/* نص الخبر */
.ah-prose { font-size: var(--ah-article-fs); line-height: 2.05; color: var(--ah-text); overflow-wrap: break-word; }
.ah-prose > * { margin-block: 0 1.35em; }
.ah-prose h2 { font-size: 1.45em; margin-top: 1.8em; line-height: 1.55; }
.ah-prose h3 { font-size: 1.25em; margin-top: 1.6em; }
.ah-prose h4 { font-size: 1.1em; margin-top: 1.4em; }
.ah-prose a { color: var(--ah-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.ah-prose a:hover { text-decoration-thickness: 2px; }
.ah-prose strong { font-weight: 700; color: var(--ah-text); }
.ah-prose img { border-radius: var(--ah-radius-sm); }
.ah-prose figure { margin-inline: 0; }
.ah-prose figcaption,
.ah-prose .wp-caption-text { font-size: .78em; color: var(--ah-muted); text-align: center; margin-top: 8px; line-height: 1.7; }
.ah-prose blockquote {
	position: relative;
	margin-inline: 0;
	padding: 26px 30px 22px;
	padding-inline-start: 64px;
	background: var(--ah-surface-2);
	border-inline-start: 4px solid var(--ah-primary);
	border-radius: var(--ah-radius-sm);
	font-family: var(--ah-font-head);
	font-size: 1.05em;
	font-weight: 500;
	line-height: 1.95;
}
.ah-prose blockquote::before { content: "”"; position: absolute; inset-inline-start: 16px; top: 4px; font-size: 4rem; line-height: 1; color: var(--ah-primary); opacity: .35; font-family: Georgia, serif; }
.ah-prose blockquote p:last-child { margin: 0; }
.ah-prose blockquote cite { display: block; margin-top: 10px; font-size: .78em; color: var(--ah-muted); font-style: normal; }
.ah-prose ul li::marker { color: var(--ah-primary); }
.ah-prose li { margin-bottom: .45em; }
.ah-prose table { width: 100%; border-collapse: collapse; font-size: .85em; }
.ah-prose th,
.ah-prose td { border: 1px solid var(--ah-border); padding: 10px 12px; text-align: start; }
.ah-prose th { background: var(--ah-surface-2); font-family: var(--ah-font-head); }
.ah-prose hr { border: 0; height: 1px; background: var(--ah-border); margin-block: 2em; }
.ah-prose pre { direction: ltr; text-align: left; background: var(--ah-dark); color: #e6edf3; padding: 18px; border-radius: var(--ah-radius-sm); overflow-x: auto; font-size: .8em; line-height: 1.7; }
.ah-prose code { font-size: .88em; }
.ah-prose iframe,
.ah-prose .wp-block-embed__wrapper { max-width: 100%; }
.ah-prose .wp-block-embed.is-type-video .wp-block-embed__wrapper,
.ah-prose .wp-embed-aspect-16-9 .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.ah-prose .wp-block-embed.is-type-video iframe,
.ah-prose .wp-embed-aspect-16-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--ah-radius-sm); }
.ah-prose .wp-block-pullquote { border-block: 4px solid var(--ah-primary); padding: 24px 0; text-align: center; }
.ah-prose .wp-block-pullquote blockquote { background: none; border: 0; padding: 0; }
.ah-prose .wp-block-pullquote blockquote::before { display: none; }

.ah-page-links { display: flex; gap: 8px; align-items: center; margin-block: 20px; font-family: var(--ah-font-head); }
.ah-page-links a,
.ah-page-links > span:not(:first-child) { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid var(--ah-border); border-radius: var(--ah-radius-sm); }

.ah-article__source { padding: 12px 16px; background: var(--ah-surface-2); border-radius: var(--ah-radius-sm); font-size: .88rem; color: var(--ah-text-2); }
.ah-article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 26px; color: var(--ah-muted); }
.ah-article__tags a { display: inline-block; padding: 4px 14px; border-radius: 99px; background: var(--ah-surface-2); color: var(--ah-text-2); font-size: .82rem; font-weight: 600; }
.ah-article__tags a::before { content: "#"; opacity: .5; margin-inline-end: 2px; }
.ah-article__tags a:hover { background: var(--ah-primary); color: var(--ah-on-primary); }

/* صندوق الكاتب */
.ah-author-box { display: flex; gap: 20px; align-items: flex-start; margin-block: 30px; padding: 24px; border: 1px solid var(--ah-border); border-radius: var(--ah-radius); background: var(--ah-surface); }
.ah-author-box__avatar { border-radius: 50%; flex-shrink: 0; }
.ah-author-box__label { font-size: .75rem; color: var(--ah-muted); }
.ah-author-box__name { margin: 0 0 6px; font-size: 1.15rem; }
.ah-author-box__bio { margin: 0 0 10px; color: var(--ah-text-2); font-size: .92rem; }
.ah-author-box__more { display: inline-flex; align-items: center; gap: 4px; color: var(--ah-primary); font-weight: 700; font-size: .85rem; }

/* السابق والتالي */
.ah-post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 30px; }
.ah-post-nav__item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--ah-border); border-radius: var(--ah-radius); transition: border-color .2s, box-shadow .2s, transform .2s; }
.ah-post-nav__item:hover { border-color: var(--ah-primary); box-shadow: var(--ah-shadow); transform: translateY(-2px); color: inherit; }
.ah-post-nav__item--next { text-align: end; align-items: flex-end; grid-column: 2; }
.ah-post-nav__label { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--ah-primary); font-weight: 700; }
.ah-post-nav__title { font-family: var(--ah-font-head); font-weight: 700; font-size: .95rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ah-related { margin-top: 46px; }

/* التعليقات */
.ah-comments { margin-top: 46px; }
.ah-comments__list,
.ah-comments__list .children { list-style: none; margin: 0; padding: 0; }
.ah-comments__list .children { padding-inline-start: clamp(16px, 4vw, 48px); }
.ah-comments__list .comment-body { padding: 18px 20px; margin-bottom: 14px; border-radius: var(--ah-radius); background: var(--ah-surface-2); }
.ah-comments__list .comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--ah-font-head); font-weight: 700; }
.ah-comments__list .comment-author img { border-radius: 50%; }
.ah-comments__list .says { display: none; }
.ah-comments__list .comment-metadata { font-size: .76rem; color: var(--ah-muted); margin: 4px 0 8px; }
.ah-comments__list .comment-content { font-size: .95rem; }
.ah-comments__list .reply a { font-size: .8rem; font-weight: 700; color: var(--ah-primary); }
.ah-comments__list .bypostauthor > .comment-body { border-inline-start: 3px solid var(--ah-primary); }
.ah-comments__reply-title { font-size: 1.3rem; margin-top: 30px; }
.comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.comment-form > p { grid-column: 1 / -1; margin-bottom: 14px; }
.comment-form .comment-form-author,
.comment-form .comment-form-email { grid-column: auto; }
.comment-form label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--ah-border);
	border-radius: var(--ah-radius-sm);
	background: var(--ah-surface);
	transition: border-color .2s, box-shadow .2s;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--ah-primary); box-shadow: 0 0 0 3px rgba(var(--ah-primary-rgb), .15); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; font-size: .85rem; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-notes,
.logged-in-as { font-size: .82rem; color: var(--ah-muted); }

/* ==========================================================================
   16. البحث
   ========================================================================== */
.ah-search-form { position: relative; display: flex; width: 100%; }
.ah-search-form__input {
	flex: 1;
	min-width: 0;
	height: 50px;
	padding-inline: 18px 56px;
	border: 1px solid var(--ah-border);
	border-radius: var(--ah-radius-sm);
	background: var(--ah-surface);
	transition: border-color .2s, box-shadow .2s;
}
.ah-search-form__input:focus { outline: none; border-color: var(--ah-primary); box-shadow: 0 0 0 4px rgba(var(--ah-primary-rgb), .14); }
.ah-search-form__btn {
	position: absolute;
	inset-block: 5px;
	inset-inline-end: 5px;
	width: 42px;
	border: 0;
	border-radius: calc(var(--ah-radius-sm) - 2px);
	background: var(--ah-primary);
	color: var(--ah-on-primary);
	display: grid;
	place-items: center;
	font-size: 1.05rem;
}
.ah-search-form__btn:hover { background: var(--ah-primary-600); }

.ah-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: flex-start;
	padding-top: 16vh;
	background: rgba(8, 12, 20, .94);
	backdrop-filter: blur(10px);
	color: #fff;
	opacity: 0;
	transition: opacity .3s var(--ah-ease);
}
.ah-search-overlay.is-open { opacity: 1; }
.ah-search-overlay[hidden] { display: none; }
.ah-search-overlay__inner { max-width: 820px; }
.ah-search-overlay__title { font-family: var(--ah-font-head); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 20px; }
.ah-search-overlay .ah-search-form__input { height: 64px; font-size: 1.2rem; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; padding-inline-end: 70px; }
.ah-search-overlay .ah-search-form__input::placeholder { color: rgba(255, 255, 255, .5); }
.ah-search-overlay .ah-search-form__btn { width: 54px; }
.ah-search-overlay__close { position: absolute; top: 20px; inset-inline-end: 20px; color: #fff; font-size: 1.5rem; width: 50px; height: 50px; }
.ah-search-overlay__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.ah-search-overlay__tags a { padding: 4px 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #fff; }
.ah-search-overlay__tags a:hover { background: var(--ah-primary); }

/* ==========================================================================
   17. قائمة الجوال الجانبية
   ========================================================================== */
.ah-drawer { position: fixed; inset: 0; z-index: 210; }
.ah-drawer[hidden] { display: none; }
.ah-drawer__backdrop { position: absolute; inset: 0; background: rgba(5, 8, 14, .6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s var(--ah-ease); }
.ah-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: 0;
	width: min(360px, 88vw);
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 18px 18px 28px;
	background: var(--ah-surface);
	box-shadow: var(--ah-shadow-lg);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(100%);
	transition: transform .35s var(--ah-ease);
}
html:not([dir="rtl"]) .ah-drawer__panel { transform: translateX(-100%); }
.ah-drawer.is-open .ah-drawer__backdrop { opacity: 1; }
.ah-drawer.is-open .ah-drawer__panel { transform: none; }
.ah-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--ah-border); }
.ah-drawer__head .ah-brand { --ah-logo-h: 42px; }
.ah-drawer__head .ah-brand__tagline { display: none; }
.ah-drawer__menu,
.ah-drawer__menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.ah-drawer__menu li { position: relative; }
.ah-drawer__menu a { display: block; padding: 12px 6px; padding-inline-end: 48px; border-bottom: 1px solid var(--ah-border); font-family: var(--ah-font-head); font-weight: 700; font-size: .98rem; }
.ah-drawer__menu .sub-menu { display: none; padding-inline-start: 14px; background: var(--ah-surface-2); border-radius: var(--ah-radius-sm); }
.ah-drawer__menu .sub-menu a { font-weight: 500; font-size: .9rem; }
.ah-drawer__menu li.is-open > .sub-menu { display: block; }
.ah-drawer__menu .current-menu-item > a { color: var(--ah-primary); }
.ah-sub-toggle { position: absolute; top: 4px; inset-inline-end: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ah-surface-2); color: var(--ah-text); display: grid; place-items: center; transition: transform .25s; }
li.is-open > .ah-sub-toggle { transform: rotate(180deg); background: var(--ah-primary); color: var(--ah-on-primary); }
.ah-social--drawer { margin-top: auto; }

/* ==========================================================================
   18. التذييل
   ========================================================================== */
.ah-footer { margin-top: 64px; background: var(--ah-dark); color: rgba(255, 255, 255, .72); font-size: .92rem; position: relative; }
.ah-footer::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--ah-primary), var(--ah-accent)); }
.ah-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 44px 34px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ah-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.ah-footer .ah-brand__link,
.ah-footer .ah-brand__name { color: #fff; }
.ah-footer .ah-brand__tagline { color: rgba(255, 255, 255, .55); }
.ah-footer__about { margin: 0; line-height: 1.9; }
.ah-footer__widgets { display: grid; gap: 34px; padding-block: 40px; }
.ah-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ah-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ah-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ah-footer .ah-widget { margin-bottom: 26px; }
.ah-footer .ah-widget__title,
.ah-footer h2,
.ah-footer h3 { color: #fff; font-size: 1.02rem; }
.ah-footer .ah-widget__title::after { background: rgba(255, 255, 255, .1); }
.ah-footer a:hover { color: #fff; }
.ah-footer .ah-card__title,
.ah-footer .ah-card__title a { color: rgba(255, 255, 255, .92); }
.ah-footer .ah-meta { color: rgba(255, 255, 255, .5); }
.ah-footer .ah-card--numbered,
.ah-footer .ah-widget ul:not([class]) li { border-color: rgba(255, 255, 255, .08); }
.ah-footer .ah-card__dot { background: var(--ah-dark); }
.ah-footer .ah-card--compact::before { background: rgba(255, 255, 255, .1); }
.ah-footer__bottom { background: rgba(0, 0, 0, .25); font-size: .82rem; }
.ah-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 18px; }
.ah-footer__copy,
.ah-footer__credit { margin: 0; }
.ah-footer__credit a { color: #fff; font-weight: 700; border-bottom: 1px dashed rgba(255, 255, 255, .4); }
.ah-footer__credit a:hover { color: var(--ah-accent); border-color: var(--ah-accent); }
.ah-footer__menu { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   19. عناصر مساعدة
   ========================================================================== */
.ah-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 300; pointer-events: none; }
.admin-bar .ah-progress { top: var(--ah-sticky-top); }
.ah-progress__bar { display: block; height: 100%; background: linear-gradient(90deg, var(--ah-accent), var(--ah-primary)); transform: scaleX(0); transform-origin: right; }
html:not([dir="rtl"]) .ah-progress__bar { transform-origin: left; }

.ah-to-top {
	position: fixed;
	bottom: 22px;
	inset-inline-end: 22px;
	z-index: 80;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: var(--ah-primary);
	color: var(--ah-on-primary);
	box-shadow: 0 10px 24px -8px rgba(var(--ah-primary-rgb), .8);
	display: grid;
	place-items: center;
	font-size: 1.15rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: all .3s var(--ah-ease);
}
.ah-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.ah-to-top:hover { background: var(--ah-primary-600); }

.ah-empty,
.ah-404 { text-align: center; padding: clamp(30px, 6vw, 70px) 20px; max-width: 640px; margin: 0 auto; }
.ah-empty__icon { display: inline-grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--ah-surface-2); color: var(--ah-primary); font-size: 2rem; margin-bottom: 16px; }
.ah-empty .ah-search-form,
.ah-404 .ah-search-form { margin: 24px auto; max-width: 520px; }
.ah-404__code {
	display: block;
	font-family: var(--ah-font-head);
	font-size: clamp(6rem, 18vw, 11rem);
	font-weight: 900;
	line-height: 1;
	background: linear-gradient(135deg, var(--ah-primary), var(--ah-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ah-404__title { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.ah-404 + .ah-block { margin-top: 30px; }

.ah-toast {
	position: fixed;
	bottom: 26px;
	left: 50%;
	z-index: 400;
	transform: translate(-50%, 20px);
	padding: 10px 22px;
	border-radius: 99px;
	background: var(--ah-dark);
	color: #fff;
	font-size: .9rem;
	box-shadow: var(--ah-shadow-lg);
	opacity: 0;
	transition: all .3s var(--ah-ease);
	pointer-events: none;
}
.ah-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* عناصر ووردبريس الأساسية */
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { margin-inline: calc(-1 * min(60px, 4vw)); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.ah-layout--sb-end .alignfull,
.ah-layout--sb-start .alignfull,
.ah-layout--sb-end .alignwide,
.ah-layout--sb-start .alignwide { margin-inline: 0; width: auto; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; }
.gallery-columns-2 { --cols: 2; }
.gallery-columns-4 { --cols: 4; }
.gallery-item { margin: 0; }
.sticky,
.bypostauthor { position: relative; }

/* ==========================================================================
   19.1 صورة الترويسة المخصصة
   ========================================================================== */
.ah-header--image { background: var(--ah-surface); }
.ah-header-img { position: relative; }
.ah-header--image:not(.ah-header--image-full) .ah-header-img { padding-block: 14px; }
.ah-header-img__link,
.ah-header-img__pic { display: block; }
.ah-header-img__img { display: block; width: 100%; height: auto; }
.ah-header--image:not(.ah-header--image-full) .ah-header-img__img { border-radius: var(--ah-radius); }
.ah-header-img__btn {
	display: none;
	position: absolute;
	top: 50%;
	margin-top: -20px;
	z-index: 2;
	background: rgba(0, 0, 0, .38);
	color: #fff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.ah-header-img__btn:hover { background: rgba(0, 0, 0, .55); }
.ah-header-img__btn--start { inset-inline-start: calc(var(--ah-gutter) + 6px); }
.ah-header-img__btn--end { inset-inline-end: calc(var(--ah-gutter) + 6px); }
.ah-header--image-full .ah-header-img__btn--start { inset-inline-start: 10px; }
.ah-header--image-full .ah-header-img__btn--end { inset-inline-end: 10px; }

/* ==========================================================================
   19.2 تصميمات صفحة الخبر
   ========================================================================== */
/* نصّي */
.ah-article__head--minimal .ah-article__title { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.45; }
.ah-article--minimal .ah-article__head { margin-bottom: 32px; }

/* قراءة مركّزة */
.ah-page--wide { max-width: calc(880px + var(--ah-gutter) * 2); }
.ah-page--wide .ah-breadcrumbs ol { justify-content: center; }
.ah-article__head--wide { text-align: center; }
.ah-article__head--wide .ah-article__badges,
.ah-article__head--wide .ah-article__meta,
.ah-article__head--wide .ah-article__facts,
.ah-article__head--wide .ah-article__tools { justify-content: center; }
.ah-article__head--wide .ah-article__title { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.ah-article__head--wide .ah-article__lead { border: 0; padding: 0; }
.ah-page--wide .ah-article__figure { margin-inline: calc((100% - min(1120px, 100vw - var(--ah-gutter) * 2)) / 2); }
.ah-page--wide .ah-article__img { border-radius: calc(var(--ah-radius) + 6px); }
.ah-page--wide .ah-prose { font-size: calc(var(--ah-article-fs) + 1px); }

/* منقسم */
.ah-single-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
	gap: clamp(22px, 3.4vw, 50px);
	align-items: center;
	margin-bottom: 36px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--ah-border);
}
.ah-single-split .ah-article__head { margin: 0; }
.ah-single-split .ah-article__figure { margin: 0; }
.ah-single-split .ah-article__img { aspect-ratio: 4 / 3; border-radius: calc(var(--ah-radius) + 8px); box-shadow: var(--ah-shadow-lg); }
.ah-article__head--split .ah-article__title { font-size: clamp(1.6rem, 3vw, 2.5rem); }

/* غلاف */
.ah-single-cover {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(440px, 64vh, 700px);
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background: var(--ah-dark);
}
.ah-single-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(6, 10, 18, .96) 0%, rgba(6, 10, 18, .62) 45%, rgba(6, 10, 18, .12) 100%);
}
.ah-single-cover__media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.ah-single-cover__media .ah-article__img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; animation: ah-kenburns 16s ease-out both; }
.ah-single-cover--noimg {
	min-height: 0;
	background:
		radial-gradient(90% 120% at 90% 0%, rgba(255, 255, 255, .16), transparent 55%),
		linear-gradient(135deg, var(--ah-cat, var(--ah-primary)), var(--ah-dark) 88%);
}
.ah-single-cover--noimg::before { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 16px); }
.ah-single-cover__inner { width: 100%; padding-block: clamp(70px, 12vh, 140px) clamp(28px, 4vw, 48px); }
.ah-single-cover .ah-breadcrumbs,
.ah-single-cover .ah-breadcrumbs a { color: rgba(255, 255, 255, .75); }
.ah-single-cover .ah-breadcrumbs [aria-current] { color: #fff; }
.ah-article__head--cover { margin: 0; max-width: 980px; }
.ah-article__head--cover .ah-article__title { color: #fff; font-size: clamp(1.8rem, 4.3vw, 3.3rem); text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.ah-article__head--cover .ah-article__lead { color: rgba(255, 255, 255, .9); border-color: var(--ah-cat, var(--ah-accent)); }
.ah-article__head--cover .ah-article__meta { border-color: rgba(255, 255, 255, .18); }
.ah-article__head--cover .ah-article__facts { color: rgba(255, 255, 255, .78); }
.ah-article__head--cover .ah-article__facts a,
.ah-article__head--cover .ah-article__author { color: #fff; }
.ah-article__head--cover .ah-share__btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); color: #fff; }
.ah-article__head--cover .ah-font-tools { border-color: rgba(255, 255, 255, .28); }
.ah-article__head--cover .ah-font-tools button { color: #fff; }
.ah-article__head--cover .ah-font-tools button + button { border-color: rgba(255, 255, 255, .28); }
.ah-article__head--cover .ah-font-tools button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ah-page--cover { padding-top: 34px; }

/* ==========================================================================
   19.3 السرعة والحركة: عرض كسول للأقسام البعيدة، ظهور ناعم، انتقال الصفحات
   ========================================================================== */
.ah-sections > .ah-block:nth-child(n+3):not(.ah-block--carousel),
.ah-home-latest,
.ah-related,
.ah-comments,
.ah-footer__widgets {
	content-visibility: auto;
	contain-intrinsic-size: auto 640px;
}

.ah-reveal-ready .ah-sections > *,
.ah-reveal-ready .ah-home-latest,
.ah-reveal-ready .ah-related,
.ah-reveal-ready .ah-archive > .ah-card,
.ah-reveal-ready .ah-sidebar .ah-widget {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .75s var(--ah-ease), transform .75s var(--ah-ease);
}
.ah-reveal-ready .ah-sections > .is-in,
.ah-reveal-ready .ah-home-latest.is-in,
.ah-reveal-ready .ah-related.is-in,
.ah-reveal-ready .ah-archive > .ah-card.is-in,
.ah-reveal-ready .ah-sidebar .ah-widget.is-in { opacity: 1; transform: none; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .28s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

@media (max-width: 992px) {
	.ah-header-img__btn { display: inline-grid; }
	.ah-header--image:not(.ah-header--image-full) .ah-header-img { padding-block: 8px; }
	.ah-single-split { grid-template-columns: minmax(0, 1fr); }
	.ah-single-split .ah-article__figure { order: -1; }
}
@media (max-width: 576px) {
	.ah-header-img__btn { width: 34px; height: 34px; margin-top: -17px; font-size: .95rem; }
	.ah-single-cover { min-height: 78vh; }
	.ah-single-cover--noimg { min-height: 0; }
}

/* ==========================================================================
   20. الاستجابة لأحجام الشاشات
   ========================================================================== */
@media (max-width: 1200px) {
	:root { --ah-sidebar: 300px; }
	.ah-menu > li > a { padding-inline: 11px; font-size: .88rem; }
}

@media (max-width: 992px) {
	:root { --ah-gutter: 16px; --ah-nav-h: 48px; }

	.ah-header__burger,
	.ah-header__tools { display: inline-flex; }
	.ah-header__inner { padding-block: 10px; gap: 10px; }
	.ah-header__ad { display: none; }
	.ah-header-centered .ah-header__inner { justify-content: space-between; }
	.ah-brand { flex: 1; display: flex; justify-content: center; }
	.ah-brand__logo { --ah-logo-h: 44px; height: min(var(--ah-logo-h), 44px); }
	.ah-brand__mark { width: 40px; height: 40px; font-size: 1.2rem; border-radius: 10px; }
	.ah-brand__tagline { display: none; }
	.ah-brand__name { font-size: 1.2rem; }

	/* القائمة تصبح شريط تصنيفات قابل للتمرير */
	.ah-nav__actions,
	.ah-nav__mini { display: none; }
	.ah-menu { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
	.ah-menu::-webkit-scrollbar { display: none; }
	.ah-menu > li > a { padding-inline: 12px; font-size: .86rem; scroll-snap-align: start; }
	.ah-menu .sub-menu,
	.ah-menu-caret { display: none !important; }

	.ah-layout--sb-end,
	.ah-layout--sb-start { grid-template-columns: minmax(0, 1fr); }
	.ah-layout--sb-start .ah-sidebar { order: 0; }
	.ah-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }

	.ah-sections { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.ah-sections > .ah-widget:has(.ah-w-half) { grid-column: 1 / -1; }

	.ah-hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; height: auto; }
	.ah-hero__grid .ah-card--lead { grid-column: 1 / -1; grid-row: auto; min-height: clamp(320px, 56vw, 460px); }
	.ah-hero__grid .ah-card--overlay:not(.ah-card--lead) { min-height: 210px; }
	.ah-hero--mosaic3 .ah-hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ah-hero__split { grid-template-columns: minmax(0, 1fr); }

	.ah-cols-4,
	.ah-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ah-footer__top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 782px) {
	.admin-bar { --ah-sticky-top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar { --ah-sticky-top: 0px; }
}

@media (max-width: 768px) {
	:root { --ah-ticker-h: 42px; }
	.ah-topbar__menu { display: none; }
	.ah-topbar__inner { min-height: 34px; }
	.ah-ticker__label { padding-inline: 8px 10px; font-size: .85rem; }
	.ah-ticker__logo-wrap { width: 28px; height: 28px; }
	.ah-ticker__item { font-size: .86rem; }
	.ah-ticker__toggle { width: 38px; }
	.ah-hero { padding-top: 16px; }
	.ah-home { padding-top: 24px; }
	.ah-block__title { font-size: 1.15rem; }
	.ah-sidebar { grid-template-columns: minmax(0, 1fr); }
	.ah-article__tools { flex-direction: column; align-items: flex-start; }
	.ah-share--bottom { flex-direction: column; align-items: flex-start; }
	.ah-post-nav { grid-template-columns: minmax(0, 1fr); }
	.ah-post-nav__item--next { grid-column: auto; }
	.ah-author-box { flex-direction: column; }
	.comment-form { grid-template-columns: minmax(0, 1fr); }
	.ah-breaking__inner { flex-wrap: wrap; gap: 8px 12px; }
	.ah-breaking__link { flex-basis: 100%; order: 3; font-size: .95rem; }
	.ah-breaking__close { margin-inline-start: auto; }
}

@media (max-width: 576px) {
	:root { --ah-gutter: 14px; }
	.ah-today__hijri { display: none; }
	.ah-social--top { display: none; }
	.ah-topbar__inner { justify-content: center; }
	.ah-hero__grid { gap: 8px; }
	.ah-hero__grid .ah-card--overlay:not(.ah-card--lead) { min-height: 170px; }
	.ah-hero__grid .ah-card--overlay:not(.ah-card--lead) .ah-card__body { padding: 12px; }
	.ah-hero__grid .ah-card--overlay:not(.ah-card--lead) .ah-card__title { font-size: .86rem; line-height: 1.55; }
	.ah-hero__grid .ah-card--overlay:not(.ah-card--lead) .ah-badge { display: none; }
	.ah-card--overlay.ah-card--lead .ah-card__excerpt { display: none; }
	.ah-card--row { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
	.ah-cols-2,
	.ah-cols-3,
	.ah-cols-4 { grid-template-columns: minmax(0, 1fr); }
	.ah-footer__bottom-inner { flex-direction: column; text-align: center; }
	.ah-to-top { width: 42px; height: 42px; bottom: 16px; inset-inline-end: 16px; }
	.ah-prose blockquote { padding-inline-start: 22px; padding-top: 34px; }
	.ah-prose blockquote::before { top: -2px; inset-inline-start: 14px; font-size: 3rem; }
	.alignleft,
	.alignright { float: none; margin-inline: 0; }
}

/* ==========================================================================
   21. تقليل الحركة (إمكانية الوصول)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   22. الطباعة
   ========================================================================== */
@media print {
	.ah-topbar, .ah-header__burger, .ah-header__tools, .ah-header__ad, .ah-nav, .ah-ticker, .ah-breaking, .ah-sidebar,
	.ah-share, .ah-font-tools, .ah-ad, .ah-related, .ah-comments, .ah-post-nav, .ah-author-box, .ah-footer__top,
	.ah-footer__widgets, .ah-to-top, .ah-progress, .ah-breadcrumbs, .ah-search-overlay, .ah-drawer { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.ah-layout { display: block; }
	.ah-footer { background: none; color: #000; margin: 0; }
	.ah-footer__bottom { background: none; }
	.ah-prose { font-size: 12pt; }
	.ah-prose a { color: #000; }
}
