/*
Theme Name: أحداث الداخلة — Ahdat Dakhla News
Theme URI: https://ahdatdakhla.com
Author: أحداث الداخلة
Author URI: https://ahdatdakhla.com
Description: قالب إخباري عربي احترافي بتصميم عصري وألوان هوية أحداث الداخلة. لوحة تحكم كاملة: الشعار، الألوان، 8 خطوط عربية، سلايدر، شريط آخر الأخبار، 6 أقسام قابلة للتخصيص في الرئيسية، قسم فيديو، 11 مكاناً إعلانياً (صورة أو كود، حاسوب أو هاتف)، وضع ليلي، عداد مشاهدات، والأكثر قراءة. متجاوب بالكامل مع الهاتف والحاسوب.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ahdat
Tags: news, blog, rtl-language-support, custom-logo, custom-menu, custom-colors, featured-images, theme-options, threaded-comments, two-columns, right-sidebar
*/

/* ==========================================================================
   1. المتغيرات
   ========================================================================== */
:root {
	--c-primary: #0b2a5b;
	--c-accent: #1f6fd6;
	--c-topbar: #041330;
	--c-header: #082150;
	--c-nav: #0b2a5b;
	--c-footer: #05142f;
	--c-ticker: #1f6fd6;
	--c-bg: #f3f5f9;
	--c-text: #161c2b;
	--surface: #ffffff;
	--surface-2: #f7f9fc;
	--muted: #5d6679;
	--line: #e2e7f0;
	--shadow: 0 1px 2px rgba(11, 42, 91, .06), 0 6px 20px rgba(11, 42, 91, .06);
	--shadow-lg: 0 12px 34px rgba(11, 42, 91, .16);
	--font-head: 'Cairo', system-ui, sans-serif;
	--font-body: 'Tajawal', system-ui, sans-serif;
	--fs-base: 17px;
	--radius: 10px;
	--logo-h: 64px;
	--logo-h-m: 42px;
	--container: 1240px;
	--gap: 28px;
	--nav-h: 52px;
	--mobile-bar-h: 62px;
}

html.is-dark {
	--c-bg: #0a1222;
	--c-text: #e7ecf5;
	--surface: #111c31;
	--surface-2: #16223a;
	--muted: #9aa6bd;
	--line: #22304b;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
	color-scheme: dark;
}

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

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

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-accent); }
img, video, iframe { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
ul, ol { padding-inline-start: 1.3em; }
.ic { flex-shrink: 0; vertical-align: middle; }

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 20px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	z-index: 9999; top: 8px; inset-inline-start: 8px;
	background: #fff; color: #000; padding: 10px 16px; border-radius: 6px;
}

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--c-primary); color: #fff;
	border: 0; border-radius: var(--radius);
	padding: 11px 22px;
	font-family: var(--font-head); font-weight: 700; font-size: 15px;
	transition: background .15s, transform .15s;
}
.btn:hover { background: var(--c-accent); color: #fff; }
.btn--ghost { background: transparent; color: inherit; border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--surface-2); color: inherit; }
.btn--more { width: 100%; margin-top: 18px; padding: 14px; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px;
	background: transparent; border: 0; border-radius: 50%;
	color: inherit;
	transition: background .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); }

/* أيقونة الشمس/القمر */
.dark-toggle .ic-sun { display: none; }
html.is-dark .dark-toggle .ic-sun { display: inline-block; }
html.is-dark .dark-toggle .ic-moon { display: none; }

/* ==========================================================================
   3. الهيدر
   ========================================================================== */
.site-header { position: relative; z-index: 50; }

.topbar {
	background: var(--c-topbar);
	color: rgba(255, 255, 255, .82);
	font-size: 13px;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar__start { display: flex; align-items: center; gap: 20px; }
.topbar__date { display: inline-flex; align-items: center; gap: 7px; }
.topbar__menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.topbar__menu a:hover { color: #fff; }

.social-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.social-icons a {
	display: grid; place-items: center;
	width: 30px; height: 30px; border-radius: 50%;
	color: currentColor;
	transition: background .15s, color .15s, transform .15s;
}
.social-icons a:hover { background: var(--c-accent); color: #fff; transform: translateY(-2px); }
.social-icons--big a { width: 42px; height: 42px; background: var(--surface-2); color: var(--c-primary); border: 1px solid var(--line); }
html.is-dark .social-icons--big a { color: #fff; }
.social-icons--big .si-facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-icons--big .si-instagram:hover { background: #d6249f; border-color: #d6249f; }
.social-icons--big .si-youtube:hover { background: #ff0000; border-color: #ff0000; }
.social-icons--big .si-whatsapp:hover { background: #25d366; border-color: #25d366; }
.social-icons--big .si-x:hover, .social-icons--big .si-tiktok:hover { background: #000; border-color: #000; }
.social-icons--big .si-telegram:hover { background: #229ed9; border-color: #229ed9; }

.masthead {
	position: relative;
	background: var(--c-header);
	color: #fff;
	overflow: hidden;
}
/* شرائط مائلة متدرجة (هوية الإطار) */
.masthead::before,
.masthead::after {
	content: "";
	position: absolute; top: 0; bottom: 0;
	inset-inline-end: -60px;
	width: 46%;
	transform: skewX(-24deg);
	background: linear-gradient(90deg, rgba(31, 111, 214, .0), rgba(31, 111, 214, .22));
	pointer-events: none;
}
.masthead::after { inset-inline-end: -170px; width: 30%; background: rgba(255, 255, 255, .05); }

.masthead__inner {
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px;
	min-height: calc(var(--logo-h) + 40px);
}
.masthead--center .masthead__inner { justify-content: center; }
.masthead__brand { display: flex; align-items: center; }
.masthead__ad { flex: 0 1 728px; min-width: 0; display: flex; justify-content: flex-end; }
.masthead__ad .ad-slot { margin: 0; background: transparent; border: 0; padding: 0; }
.masthead__ad .ad-label { display: none; }

.site-logo { display: inline-flex; flex-direction: column; justify-content: center; color: #fff; }
.site-logo:hover { color: #fff; }
.site-logo img, .site-logo .logo-img { height: var(--logo-h); width: auto; max-width: 360px; object-fit: contain; }
.logo-text {
	font-family: var(--font-head); font-weight: 800;
	font-size: calc(var(--logo-h) * .58);
	line-height: 1.1; letter-spacing: -.5px;
	position: relative;
	padding-inline-start: 16px;
}
.logo-text::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 10%; bottom: 10%;
	width: 6px; border-radius: 3px;
	background: linear-gradient(var(--c-accent), #fff);
}
.logo-tagline { font-size: 13px; opacity: .72; padding-inline-start: 16px; margin-top: 4px; }

/* القائمة الرئيسية */
.main-nav {
	background: var(--c-nav);
	color: #fff;
	border-top: 1px solid rgba(255, 255, 255, .08);
	box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}
.is-fixed { position: fixed !important; top: 0; inset-inline: 0; z-index: 90; animation: slideDown .3s ease; }
.admin-bar .is-fixed { top: 32px; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }
.main-nav__inner { display: flex; align-items: center; gap: 8px; min-height: var(--nav-h); }
.main-nav__home {
	display: grid; place-items: center;
	width: 44px; height: var(--nav-h);
	background: var(--c-accent); color: #fff;
	clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}
.main-nav__home:hover { color: #fff; filter: brightness(1.1); }
.main-nav__menu { flex: 1; min-width: 0; }
.main-nav__menu > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav__menu li { position: relative; }
.main-nav__menu > ul > li > a {
	display: flex; align-items: center;
	height: var(--nav-h);
	padding: 0 14px;
	font-family: var(--font-head); font-weight: 700; font-size: 15px;
	color: rgba(255, 255, 255, .92);
	position: relative;
}
.main-nav__menu > ul > li > a::after {
	content: ""; position: absolute; bottom: 0; inset-inline: 14px;
	height: 3px; border-radius: 3px 3px 0 0;
	background: var(--c-accent);
	transform: scaleX(0); transition: transform .2s;
}
.main-nav__menu > ul > li:hover > a,
.main-nav__menu > ul > li.current-menu-item > a,
.main-nav__menu > ul > li.current-menu-ancestor > a,
.main-nav__menu > ul > li.current-category-ancestor > a { color: #fff; }
.main-nav__menu > ul > li:hover > a::after,
.main-nav__menu > ul > li.current-menu-item > a::after,
.main-nav__menu > ul > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.main-nav__menu .menu-item-has-children > a::before {
	content: ""; order: 2; margin-inline-start: 6px;
	border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px;
}
.main-nav__menu .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0;
	min-width: 220px;
	list-style: none; margin: 0; padding: 8px 0;
	background: var(--surface); color: var(--c-text);
	border-radius: 0 0 var(--radius) var(--radius);
	border-top: 3px solid var(--c-accent);
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: .18s;
	z-index: 10;
}
.main-nav__menu li:hover > .sub-menu,
.main-nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav__menu .sub-menu a { display: block; padding: 9px 18px; font-weight: 600; font-size: 14px; }
.main-nav__menu .sub-menu a:hover { background: var(--surface-2); }
.main-nav__menu .sub-menu .sub-menu { top: 0; inset-inline-start: 100%; }
.main-nav__tools { display: flex; align-items: center; gap: 2px; }

/* شريط الأخبار */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.ticker__inner { display: flex; align-items: stretch; height: 46px; overflow: hidden; }
.ticker__label {
	flex-shrink: 0;
	display: flex; align-items: center; gap: 10px;
	padding-inline: 16px 26px;
	background: var(--c-ticker); color: #fff;
	font-family: var(--font-head); font-weight: 800; font-size: 14px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%);
	white-space: nowrap;
}
[dir="rtl"] .ticker__label, .ticker__label { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.ticker__track {
	flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__list { display: flex; width: max-content; animation: ticker var(--ticker-duration, 60s) linear infinite; }
.ticker:hover .ticker__list { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
.ticker__item {
	white-space: nowrap; padding-inline: 26px;
	font-weight: 600; font-size: 15px;
	position: relative;
}
.ticker__item::after {
	content: ""; position: absolute; inset-inline-end: 0; top: 50%;
	width: 7px; height: 7px; margin-top: -3.5px;
	background: var(--c-accent); transform: rotate(45deg);
}

/* ==========================================================================
   4. البطاقات
   ========================================================================== */
.post-card { position: relative; min-width: 0; }
.post-card__media {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface-2);
	aspect-ratio: 16 / 10;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.thumb-fallback {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
	color: rgba(255, 255, 255, .35);
	font-family: var(--font-head); font-weight: 800; font-size: 18px;
}
.post-card__title { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.55; }
.post-card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 100% 100%; transition: background-size .3s, color .15s; }
.post-card:hover .post-card__title a { color: var(--c-accent); }
.post-card__excerpt { color: var(--muted); font-size: 15px; margin: 8px 0 0; line-height: 1.75; }
.post-card__meta { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.post-card__meta span { display: inline-flex; align-items: center; gap: 5px; }

.cat-badge {
	display: inline-block;
	background: var(--c-accent); color: #fff;
	font-family: var(--font-head); font-weight: 700; font-size: 12px;
	padding: 3px 11px; border-radius: 4px;
	margin-bottom: 8px; line-height: 1.6;
	align-self: flex-start;
}
.cat-badge:hover { color: #fff; background: var(--c-primary); }
.cat-badge--lg { font-size: 13px; padding: 4px 14px; }

.play-badge {
	position: absolute; top: 50%; left: 50%;
	width: 54px; height: 54px; margin: -27px 0 0 -27px;
	display: grid; place-items: center;
	background: rgba(255, 255, 255, .95); color: var(--c-primary);
	border-radius: 50%; box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
	padding-left: 3px;
	transition: transform .2s;
}
.post-card:hover .play-badge { transform: scale(1.1); }

/* بطاقة عادية */
.post-card--card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.post-card--card .post-card__media { border-radius: 0; }
.post-card--card .post-card__body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.post-card--card .post-card__meta { margin-top: auto; padding-top: 10px; }

/* بطاقة بعنوان فوق الصورة */
.post-card--overlay, .post-card--hero { border-radius: var(--radius); overflow: hidden; background: #000; }
.post-card--overlay .post-card__media, .post-card--hero .post-card__media { border-radius: 0; height: 100%; aspect-ratio: auto; min-height: 200px; }
.post-card--overlay .post-card__media::after, .post-card--hero .post-card__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(3, 12, 30, .95) 0%, rgba(3, 12, 30, .55) 40%, rgba(3, 12, 30, 0) 72%);
}
.post-card--overlay .post-card__body, .post-card--hero .post-card__body {
	position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
	padding: 18px; color: #fff; pointer-events: none;
}
.post-card--overlay .post-card__body a, .post-card--hero .post-card__body a { pointer-events: auto; }
.post-card--overlay .post-card__title, .post-card--hero .post-card__title { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.post-card--overlay:hover .post-card__title a, .post-card--hero:hover .post-card__title a { color: #fff; background-size: 100% 1px; }
.post-card--overlay .post-card__meta, .post-card--hero .post-card__meta { color: rgba(255, 255, 255, .8); }
.post-card--overlay .post-card__excerpt, .post-card--hero .post-card__excerpt { color: rgba(255, 255, 255, .85); }
.post-card--overlay.is-video .play-badge { top: 38%; }

/* بطاقة صف (صورة صغيرة + عنوان) */
.post-card--row { display: flex; gap: 14px; align-items: flex-start; }
.post-card--row .post-card__media { flex: 0 0 112px; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) * .8); }
.post-card--row .post-card__title { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card--row .post-card__meta { margin-top: 5px; font-size: 12px; }
.post-card--row .play-badge { width: 32px; height: 32px; margin: -16px 0 0 -16px; }

/* بطاقة نص */
.post-card--text .post-card__title { font-size: 15px; }
.post-card--text .post-card__meta { margin-top: 3px; font-size: 12px; }

/* بطاقة عريضة (الأرشيف) */
.post-card--wide { display: grid; grid-template-columns: 300px 1fr; gap: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; align-items: center; }
.post-card--wide .post-card__title { font-size: 20px; }

/* ==========================================================================
   5. السلايدر والواجهة
   ========================================================================== */
.hero { margin-top: 24px; display: grid; gap: 14px; }
.hero--slider_side { grid-template-columns: 1.7fr 1fr; height: 480px; }
.hero--slider_full { height: 520px; }
.hero-main, .slider, .slider__track { height: 100%; min-height: 0; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.slider__track { position: relative; }
.slider__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slider__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slider__slide .post-card { height: 100%; }
.slider__slide .post-card__media img { transform: scale(1.06); transition: transform 7s ease; }
.slider__slide.is-active .post-card__media img { transform: scale(1); }
.post-card--hero .post-card__body { padding: 34px 34px 46px; max-width: 860px; }
.post-card--hero .post-card__title { font-size: 30px; font-weight: 800; line-height: 1.4; }
.post-card--hero .cat-badge { font-size: 13px; padding: 4px 14px; }

.slider__nav {
	position: absolute; top: 50%; z-index: 5;
	width: 44px; height: 44px; margin-top: -22px;
	display: grid; place-items: center;
	background: rgba(255, 255, 255, .15); color: #fff;
	border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%;
	backdrop-filter: blur(6px);
	opacity: 0; transition: .2s;
}
.slider:hover .slider__nav { opacity: 1; }
.slider__nav:hover { background: var(--c-accent); border-color: var(--c-accent); }
.slider__prev { right: 16px; }
.slider__next { left: 16px; }
.slider__dots { position: absolute; z-index: 5; bottom: 20px; left: 34px; display: flex; gap: 7px; }
.slider__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .45); transition: .25s; }
.slider__dots button.is-active { width: 28px; background: #fff; }
.slider__progress { position: absolute; z-index: 5; bottom: 0; inset-inline: 0; height: 4px; background: rgba(255, 255, 255, .12); }
.slider__progress span { display: block; height: 100%; width: 0; background: var(--c-accent); }
.slider__progress span.run { animation: progress linear forwards; }
@keyframes progress { to { width: 100%; } }

.hero-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 0; }
.hero-side .post-card__title { font-size: 15px; }
.hero-side .post-card__body { padding: 12px 14px; }
.hero-side .cat-badge { font-size: 11px; padding: 2px 9px; margin-bottom: 6px; }

.hero-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 235px 235px; gap: 14px; }
.hero-grid > .post-card:first-child { grid-row: 1 / 3; }
.hero-grid > .post-card:first-child .post-card__title { font-size: 28px; font-weight: 800; }
.hero-grid > .post-card:first-child .post-card__body { padding: 28px; }
.hero-grid .post-card__title { font-size: 16px; }

/* ==========================================================================
   6. التخطيط والأقسام
   ========================================================================== */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: var(--gap); margin-top: 28px; align-items: start; }
.no-sidebar .layout, .layout--continue { grid-template-columns: minmax(0, 1fr); }
.layout__sidebar { position: sticky; top: calc(var(--nav-h) + 18px); }
.admin-bar .layout__sidebar { top: calc(var(--nav-h) + 50px); }
.layout--single { max-width: var(--container); }
.no-sidebar .layout--single .layout__content { max-width: 860px; margin-inline: auto; width: 100%; }

.home-block { margin-bottom: 36px; }

.section-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-bottom: 18px;
	border-bottom: 2px solid var(--line);
	position: relative;
}
.section-title { margin: 0; font-size: 21px; font-weight: 800; }
.section-title span {
	display: inline-flex; align-items: center; gap: 10px;
	padding-bottom: 10px; margin-bottom: -2px;
	border-bottom: 3px solid var(--c-primary);
	position: relative;
}
html.is-dark .section-title span { border-bottom-color: var(--c-accent); }
.section-title span::before {
	content: ""; width: 14px; height: 22px;
	background: linear-gradient(90deg, var(--c-accent) 0 45%, transparent 45% 60%, var(--c-primary) 60%);
	transform: skewX(-18deg);
	border-radius: 2px;
}
.section-more {
	display: inline-flex; align-items: center; gap: 4px;
	font-family: var(--font-head); font-weight: 700; font-size: 13px;
	color: var(--muted); padding-bottom: 10px;
}
.section-more:hover { color: var(--c-accent); }

.block-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.no-sidebar .block-grid, .layout--continue .block-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.block-grid--3, .no-sidebar .block-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.block-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.block-featured__main .post-card__title { font-size: 21px; }
.block-featured__list { display: flex; flex-direction: column; gap: 14px; }
.block-featured__list .post-card--row + .post-card--row { border-top: 1px solid var(--line); padding-top: 14px; }

.block-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; background: var(--surface); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.no-sidebar .block-list, .layout--continue .block-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.block-overlay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.block-overlay .post-card { aspect-ratio: 16 / 11; }
.no-sidebar .block-overlay, .layout--continue .block-overlay { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* شريط الفيديو */
.video-band {
	position: relative;
	background: linear-gradient(135deg, var(--c-topbar), var(--c-primary));
	color: #fff;
	padding: 36px 0 40px; margin: 10px 0 36px;
	overflow: hidden;
}
.video-band::before {
	content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: -80px; width: 40%;
	background: linear-gradient(90deg, rgba(31, 111, 214, .25), transparent);
	transform: skewX(-24deg);
}
.video-band .container { position: relative; }
.video-band .section-head { border-color: rgba(255, 255, 255, .15); }
.video-band .section-title span { border-color: #fff; }
.video-band .section-more { color: rgba(255, 255, 255, .7); }
.video-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 14px; }
.video-item--main { grid-row: 1 / 3; }
.video-item .post-card { height: 100%; }
.video-item--main .post-card__title { font-size: 24px; }
.video-item:not(.video-item--main) .post-card__title { font-size: 15px; }

/* الأرشيف */
.page-header { padding: 26px 0 4px; }
.page-title { font-size: 30px; font-weight: 800; margin: 6px 0 0; }
.page-title span { color: var(--c-accent); }
.page-desc { color: var(--muted); margin-top: 6px; }
.page-search { max-width: 520px; margin-top: 12px; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.no-sidebar .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.archive-grid > .post-card:first-child { grid-column: 1 / -1; }
.paged .archive-grid > .post-card:first-child { grid-column: auto; }
.archive-grid > .post-card:first-child .post-card__media { aspect-ratio: 21 / 9; }
.paged .archive-grid > .post-card:first-child .post-card__media { aspect-ratio: 16 / 10; }
.archive-grid > .post-card:first-child .post-card__title { font-size: 24px; }
.paged .archive-grid > .post-card:first-child .post-card__title { font-size: 17px; }
.archive-list { display: flex; flex-direction: column; gap: 16px; }
.archive-ad { grid-column: 1 / -1; }
.empty-state { background: var(--surface); padding: 40px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.empty-state .search-form { max-width: 460px; margin: 18px auto 0; }

.pagination { margin-top: 30px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; gap: 6px;
	min-width: 42px; height: 42px; padding: 0 14px; justify-content: center;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	font-weight: 700;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.breadcrumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs .current { color: var(--c-text); }

/* ==========================================================================
   7. صفحة المقال
   ========================================================================== */
.single-article { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px; }
.entry-title { font-size: 34px; font-weight: 800; line-height: 1.45; margin: 6px 0 12px; }
.entry-lead { font-size: 19px; color: var(--muted); line-height: 1.8; margin: 0 0 16px; font-weight: 500; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 14px; color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entry-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.em-author a { color: var(--c-text); font-weight: 700; }
.em-avatar { border-radius: 50%; }
.entry-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }

.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { font-weight: 700; font-size: 14px; color: var(--muted); }
.share-btn {
	display: inline-flex; align-items: center; gap: 7px;
	height: 38px; padding: 0 14px;
	border: 0; border-radius: 8px;
	color: #fff; font-size: 14px; font-weight: 700;
	transition: transform .15s, filter .15s;
}
.share-btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.sb-facebook { background: #1877f2; }
.sb-whatsapp { background: #25d366; }
.sb-x { background: #111; }
.sb-telegram { background: #229ed9; }
.sb-copy { background: var(--surface-2); color: var(--c-text); border: 1px solid var(--line); }
.sb-copy:hover { color: var(--c-text); }
.sb-copy.is-copied { background: var(--c-accent); color: #fff; }

.font-tools { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.font-tools button { width: 40px; height: 38px; display: grid; place-items: center; background: var(--surface); border: 0; color: var(--c-text); }
.font-tools button + button { border-inline-start: 1px solid var(--line); }
.font-tools button:hover { background: var(--surface-2); color: var(--c-accent); }

.entry-thumb { margin: 22px 0; }
.entry-thumb img { width: 100%; border-radius: var(--radius); }
.entry-thumb figcaption, .wp-caption-text, figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

.entry-content { font-size: var(--fs-base); line-height: 2; overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry-content h2 { font-size: 1.45em; margin-top: 1.4em; }
.entry-content h3 { font-size: 1.25em; margin-top: 1.3em; }
.entry-content a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote, .wp-block-quote {
	margin-inline: 0; padding: 18px 24px;
	background: var(--surface-2);
	border-inline-start: 5px solid var(--c-accent);
	border-radius: var(--radius);
	font-size: 1.08em; font-weight: 500;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; }
.entry-content iframe { width: 100%; border-radius: var(--radius); }
.entry-content .wp-block-embed__wrapper iframe, .entry-content iframe[src*="youtube"] { aspect-ratio: 16 / 9; height: auto; }
.alignwide, .alignfull { margin-inline: 0; }
.aligncenter { margin-inline: auto; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.sticky, .bypostauthor, .wp-caption { position: relative; }
.wp-caption { max-width: 100%; }
.gallery-caption { font-size: 13px; }

.entry-footer { margin-top: 26px; display: flex; flex-direction: column; gap: 20px; }
.entry-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.entry-tags span { font-weight: 700; }
.entry-tags a { background: var(--surface-2); border: 1px solid var(--line); padding: 4px 12px; border-radius: 20px; font-size: 13px; }
.entry-tags a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.author-box { display: flex; gap: 16px; align-items: center; background: var(--surface-2); padding: 18px; border-radius: var(--radius); }
.author-box img { border-radius: 50%; }
.author-box h3 { margin: 0 0 4px; font-size: 17px; }
.author-box p { margin: 0; color: var(--muted); font-size: 14px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-nav__item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); transition: .15s; }
.post-nav__item:hover { border-color: var(--c-accent); }
.post-nav__item small { color: var(--muted); font-size: 12px; }
.post-nav__item span { font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.5; }
.post-nav__next { text-align: left; grid-column: 2; }

.related { margin-top: 34px; }
.related .post-card--card { box-shadow: none; border: 1px solid var(--line); }

/* التعليقات */
.comments-area { margin-top: 34px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .children { list-style: none; padding-inline-start: 28px; }
.comment-body { background: var(--surface-2); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.comment-content p { margin: 0 0 .6em; }
.reply a { font-size: 13px; font-weight: 700; color: var(--c-accent); }
.comment-respond { background: var(--surface-2); border-radius: var(--radius); padding: 20px; }
.comment-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 11px 14px;
	background: var(--surface); color: var(--c-text);
	border: 1px solid var(--line); border-radius: 8px;
	font: inherit;
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.form-submit .submit { background: var(--c-primary); color: #fff; border: 0; border-radius: var(--radius); padding: 11px 26px; font-family: var(--font-head); font-weight: 700; cursor: pointer; }
.form-submit .submit:hover { background: var(--c-accent); }

/* الصفحة 404 */
.error-404 { text-align: center; padding: 50px 20px; max-width: 620px; margin: 0 auto; }
.error-404__code { font-family: var(--font-head); font-size: 120px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-404 .search-form { margin: 20px 0; }

/* ==========================================================================
   8. الشريط الجانبي والودجات
   ========================================================================== */
.sidebar-inner { display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.widget-title { font-size: 17px; font-weight: 800; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.widget-title span { position: relative; display: inline-block; padding-bottom: 10px; margin-bottom: -12px; border-bottom: 3px solid var(--c-accent); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget-posts { display: flex; flex-direction: column; gap: 14px; }
.widget-posts--thumbs .post-card--row + .post-card--row, .widget-posts--first-big .post-card--row { border-top: 1px solid var(--line); padding-top: 14px; }
.widget-posts--first-big .post-card--overlay { aspect-ratio: 16 / 11; }
.widget-posts .post-card--row .post-card__media { flex-basis: 96px; }
.wp-num { display: flex; gap: 14px; align-items: flex-start; }
.wp-num + .wp-num { border-top: 1px solid var(--line); padding-top: 14px; }
.wp-num__n {
	flex: 0 0 38px; height: 38px;
	display: grid; place-items: center;
	font-family: var(--font-head); font-weight: 800; font-size: 18px;
	color: #fff; background: var(--c-primary);
	clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}
.wp-num:first-child .wp-num__n { background: var(--c-accent); }
.wp-num .post-card { flex: 1; }

.search-form { display: flex; position: relative; }
.search-field {
	flex: 1; min-width: 0;
	height: 48px; padding: 0 16px; padding-inline-end: 54px;
	background: var(--surface); color: var(--c-text);
	border: 2px solid var(--line); border-radius: var(--radius);
	font: inherit; font-size: 16px;
	transition: border-color .15s;
	-webkit-appearance: none;
}
.search-field:focus { outline: 0; border-color: var(--c-accent); }
.search-submit {
	position: absolute; inset-inline-end: 4px; top: 4px; bottom: 4px;
	width: 44px; display: grid; place-items: center;
	background: var(--c-primary); color: #fff;
	border: 0; border-radius: calc(var(--radius) - 3px);
}
.search-submit:hover { background: var(--c-accent); }

/* ==========================================================================
   9. الإعلانات
   ========================================================================== */
.ad-slot { text-align: center; position: relative; }
.ad-slot--spaced { margin: 24px 0; }
.ad-label { display: block; font-size: 10px; color: var(--muted); letter-spacing: .5px; margin-bottom: 4px; }
.ad-inner { display: flex; justify-content: center; }
.ad-inner > * { max-width: 100%; }
.ad-inner img { border-radius: 6px; margin: 0 auto; }
.layout__sidebar .ad-slot { background: var(--surface); padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.entry-content .ad-slot { margin: 1.5em 0; }
.ad-sticky-mobile {
	position: fixed; z-index: 70;
	inset-inline: 0; bottom: 0;
	background: var(--surface);
	box-shadow: 0 -4px 18px rgba(0, 0, 0, .15);
	padding: 6px 0;
	display: flex; justify-content: center;
}
.has-mobile-bar .ad-sticky-mobile { bottom: var(--mobile-bar-h); }
.ad-sticky-mobile.is-closed { display: none; }
.ad-close {
	position: absolute; top: -26px; inset-inline-start: 8px;
	width: 28px; height: 26px; display: grid; place-items: center;
	background: var(--surface); color: var(--c-text);
	border: 0; border-radius: 6px 6px 0 0;
	box-shadow: 0 -3px 8px rgba(0, 0, 0, .1);
}

/* ==========================================================================
   10. الفوتر
   ========================================================================== */
.site-footer {
	position: relative;
	margin-top: 50px;
	background: var(--c-footer);
	color: rgba(255, 255, 255, .78);
	overflow: hidden;
}
.site-footer::before {
	content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px;
	background: linear-gradient(90deg, var(--c-accent) 0 40%, var(--c-primary) 40% 70%, #fff 70%);
}
.site-footer::after {
	content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: -90px; width: 36%;
	background: linear-gradient(90deg, transparent, rgba(31, 111, 214, .14));
	transform: skewX(-24deg); pointer-events: none;
}
.footer-top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 36px; padding: 46px 0 34px; }
.footer-brand .site-logo img { height: calc(var(--logo-h) * .9); }
.footer-about { margin: 14px 0 18px; line-height: 1.9; font-size: 15px; }
.social-icons--footer a { background: rgba(255, 255, 255, .08); width: 38px; height: 38px; color: #fff; }
.site-footer .widget { background: transparent; box-shadow: none; padding: 0; color: inherit; }
.site-footer .widget-title { color: #fff; border-color: rgba(255, 255, 255, .12); }
.site-footer .widget li { border-color: rgba(255, 255, 255, .08); }
.site-footer a:hover { color: #fff; }
.site-footer .post-card__meta { color: rgba(255, 255, 255, .55); }
.site-footer .wp-num + .wp-num, .site-footer .widget-posts .post-card--row + .post-card--row { border-color: rgba(255, 255, 255, .08); }
.footer-cats { columns: 2; }
.footer-cats li { break-inside: avoid; }
.footer-bottom { position: relative; z-index: 1; background: rgba(0, 0, 0, .25); font-size: 14px; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; }
.copyright { margin: 0; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }

.back-to-top {
	position: fixed; z-index: 65; bottom: 22px; left: 22px;
	width: 46px; height: 46px; display: grid; place-items: center;
	background: var(--c-accent); color: #fff; border-radius: 50%;
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; background: var(--c-primary); }

/* ==========================================================================
   11. القائمة الجانبية للهاتف والبحث
   ========================================================================== */
.offcanvas { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.offcanvas.is-open { visibility: visible; }
.offcanvas__backdrop { position: absolute; inset: 0; background: rgba(2, 8, 22, .6); opacity: 0; transition: opacity .25s; }
.offcanvas.is-open .offcanvas__backdrop { opacity: 1; }
.offcanvas__panel {
	position: absolute; top: 0; bottom: 0; right: 0;
	width: min(86vw, 360px);
	background: var(--surface);
	display: flex; flex-direction: column; gap: 16px;
	padding: 0 0 20px;
	transform: translateX(100%); transition: transform .3s ease;
	overflow-y: auto;
}
.offcanvas.is-open .offcanvas__panel { transform: none; }
.offcanvas__head { display: flex; align-items: center; justify-content: space-between; background: var(--c-header); color: #fff; padding: 12px 16px; }
.offcanvas__head .site-logo img { height: 40px; }
.offcanvas__head .logo-text { font-size: 22px; }
.offcanvas__panel > .search-form { margin: 0 16px; }
.offcanvas__menu ul { list-style: none; margin: 0; padding: 0; }
.offcanvas__menu li { border-bottom: 1px solid var(--line); position: relative; }
.offcanvas__menu a { display: block; padding: 13px 20px; font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.offcanvas__menu .current-menu-item > a { color: var(--c-accent); border-inline-start: 4px solid var(--c-accent); }
.offcanvas__menu .sub-menu { display: none; background: var(--surface-2); }
.offcanvas__menu .sub-menu a { padding-inline-start: 36px; font-size: 15px; font-weight: 600; }
.offcanvas__menu li.is-open > .sub-menu { display: block; }
.submenu-toggle { position: absolute; top: 4px; inset-inline-end: 8px; width: 40px; height: 40px; background: none; border: 0; display: grid; place-items: center; transition: transform .2s; }
li.is-open > .submenu-toggle { transform: rotate(-90deg); }
.offcanvas__foot { margin-top: auto; padding: 0 16px; display: flex; flex-direction: column; gap: 14px; }
.offcanvas__foot .social-icons a { background: var(--surface-2); color: var(--c-primary); width: 40px; height: 40px; }
html.is-dark .offcanvas__foot .social-icons a { color: #fff; }

.search-overlay {
	position: fixed; inset: 0; z-index: 210;
	background: rgba(4, 19, 48, .96);
	display: flex; align-items: flex-start; justify-content: center;
	padding: 18vh 20px 20px;
	opacity: 0; visibility: hidden; transition: .25s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__box { width: 100%; max-width: 720px; transform: translateY(-14px); transition: transform .3s; }
.search-overlay.is-open .search-overlay__box { transform: none; }
.search-overlay__label { color: rgba(255, 255, 255, .7); font-family: var(--font-head); font-weight: 700; font-size: 18px; margin: 0 0 14px; }
.search-overlay .search-field { height: 64px; font-size: 20px; background: #fff; color: #111; border-color: transparent; padding-inline-end: 70px; }
.search-overlay .search-submit { width: 58px; }
.search-overlay__close { position: absolute; top: 20px; left: 20px; color: #fff; width: 52px; height: 52px; }

/* شريط الهاتف السفلي */
.mobile-bar {
	position: fixed; z-index: 80;
	inset-inline: 0; bottom: 0;
	height: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	display: flex;
	background: var(--surface);
	border-top: 1px solid var(--line);
	box-shadow: 0 -4px 18px rgba(11, 42, 91, .08);
}
.mobile-bar > * {
	flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	background: none; border: 0; color: var(--muted);
	font-family: var(--font-head); font-size: 11px; font-weight: 700;
}
.mobile-bar > .is-active, .mobile-bar > *:hover { color: var(--c-accent); }

/* ==========================================================================
   12. إظهار حسب الجهاز
   ========================================================================== */
.only-mobile, .hide-desktop { display: none !important; }

/* ==========================================================================
   13. التجاوب: الحاسوب اللوحي
   ========================================================================== */
@media (max-width: 1100px) {
	.layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; }
	.hero--slider_side { height: 420px; }
	.post-card--hero .post-card__title { font-size: 26px; }
	.footer-top { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   14. التجاوب: الهاتف والأجهزة الصغيرة
   ========================================================================== */
@media (max-width: 900px) {
	.only-mobile, .hide-desktop { display: revert !important; }
	.only-desktop, .hide-mobile { display: none !important; }
	.icon-btn.hide-desktop { display: inline-grid !important; }
	.masthead__tools.hide-desktop { display: flex !important; }
	.mobile-bar.hide-desktop { display: flex !important; }
	.ad-inner.only-mobile { display: flex !important; }
	.ad-sticky-mobile.only-mobile { display: flex !important; }

	body { font-size: 15px; }
	.has-mobile-bar { padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom)); }
	.container { padding-inline: 14px; }

	/* الهيدر */
	.masthead__inner { min-height: calc(var(--logo-h-m) + 22px); gap: 6px; flex-wrap: wrap; }
	.masthead--logo-ad .masthead__inner, .masthead--center .masthead__inner { justify-content: space-between; }
	.masthead__brand { flex: 1; justify-content: center; }
	.site-logo img, .site-logo .logo-img { height: var(--logo-h-m); max-width: 230px; }
	.logo-text { font-size: calc(var(--logo-h-m) * .62); padding-inline-start: 12px; }
	.logo-text::before { width: 4px; }
	.logo-tagline { display: none; }
	.masthead__ad { flex: 1 0 100%; justify-content: center; padding-bottom: 10px; }
	.masthead__ad:empty { display: none; }
	.masthead::before { width: 70%; }
	.topbar { display: none; }

	.main-nav { box-shadow: none; }
	.admin-bar .is-fixed { top: 0; }
	.masthead.is-fixed { box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
	.masthead.is-fixed .masthead__ad { display: none; }
	.main-nav__home, .main-nav__tools { display: none; }
	.main-nav__menu { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.main-nav__menu::-webkit-scrollbar { display: none; }
	.main-nav__menu > ul { flex-wrap: nowrap; }
	.main-nav__menu > ul > li > a { height: 44px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
	.main-nav__menu .sub-menu, .main-nav__menu .menu-item-has-children > a::before { display: none; }
	.main-nav__inner { min-height: 44px; padding-inline: 4px; }

	.ticker__inner { height: 42px; padding-inline: 0; }
	.ticker__label { padding-inline: 12px 22px; font-size: 13px; }
	.ticker__item { font-size: 14px; }

	/* الواجهة */
	.hero { margin-top: 14px; gap: 10px; }
	.hero--slider_side, .hero--slider_full { grid-template-columns: 1fr; height: auto; }
	.hero-main { height: 62vw; max-height: 430px; min-height: 250px; }
	.post-card--hero .post-card__body { padding: 16px 16px 30px; }
	.post-card--hero .post-card__title { font-size: 20px; }
	.post-card--hero .post-card__excerpt { display: none; }
	.slider__nav { display: none; }
	.slider__dots { bottom: 12px; left: 16px; }
	.hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 10px; }
	.hero-side .post-card { aspect-ratio: 1 / 1; }
	.hero-side .post-card__title { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.hero-side .post-card__body { padding: 10px; }
	.hero-side .cat-badge { display: none; }
	.hero--mobile-noside .hero-side { display: none; }
	.hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; }
	.hero-grid > .post-card:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
	.hero-grid > .post-card:first-child .post-card__title { font-size: 21px; }
	.hero-grid > .post-card:first-child .post-card__body { padding: 16px; }
	.hero-grid > .post-card:not(:first-child) { aspect-ratio: 1 / 1; }
	.hero-grid .post-card__title { font-size: 14px; }

	/* الأقسام */
	.layout, .no-sidebar .layout { grid-template-columns: minmax(0, 1fr); margin-top: 18px; gap: 18px; }
	.layout__sidebar { position: static; }
	.layout__sidebar--top { display: none; }
	.home-block { margin-bottom: 26px; }
	.section-title { font-size: 18px; }
	.section-head { margin-bottom: 14px; }
	.block-grid, .no-sidebar .block-grid, .layout--continue .block-grid, .block-grid--3, .no-sidebar .block-grid--3 { grid-template-columns: 1fr 1fr; gap: 12px; }
	.block-grid .post-card--card .post-card__body { padding: 10px 11px 12px; }
	.block-grid .post-card__title { font-size: 14.5px; }
	.block-featured { grid-template-columns: 1fr; gap: 14px; }
	.block-featured__main .post-card__title { font-size: 18px; }
	.block-list, .no-sidebar .block-list, .layout--continue .block-list { grid-template-columns: 1fr; padding: 14px; gap: 12px; }
	.block-list .post-card--row + .post-card--row { border-top: 1px solid var(--line); padding-top: 12px; }
	.block-overlay, .no-sidebar .block-overlay, .layout--continue .block-overlay { grid-template-columns: 1fr 1fr; gap: 10px; }
	.block-overlay .post-card { aspect-ratio: 1 / 1; }
	.block-overlay .post-card__title { font-size: 14px; }
	.block-overlay .post-card__body { padding: 10px; }
	.post-card--row .post-card__media { flex-basis: 104px; }
	.post-card--row .post-card__title { font-size: 14.5px; }

	.video-band { padding: 24px 0 26px; }
	.video-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; }
	.video-item--main { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 10; }
	.video-item:not(.video-item--main) { aspect-ratio: 1 / 1; }
	.video-item--main .post-card__title { font-size: 18px; }
	.video-item:not(.video-item--main) .post-card__title { font-size: 13.5px; }
	.video-item:not(.video-item--main) .play-badge { width: 38px; height: 38px; margin: -19px 0 0 -19px; }

	.page-header { padding-top: 16px; }
	.page-title { font-size: 23px; }
	.archive-grid, .no-sidebar .archive-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.archive-grid .post-card__title { font-size: 14.5px; }
	.archive-grid .post-card--card .post-card__body { padding: 10px 11px 12px; }
	.archive-grid > .post-card:first-child .post-card__media { aspect-ratio: 16 / 10; }
	.archive-grid > .post-card:first-child .post-card__title { font-size: 19px; }
	.post-card--wide { grid-template-columns: 120px 1fr; gap: 12px; padding: 10px; align-items: start; }
	.post-card--wide .post-card__media { aspect-ratio: 4 / 3; }
	.post-card--wide .post-card__title { font-size: 15px; }
	.post-card--wide .post-card__excerpt, .post-card--wide .cat-badge { display: none; }

	/* المقال */
	.single-article { padding: 18px 16px; border-radius: 0; margin-inline: -14px; box-shadow: none; }
	.entry-title { font-size: 24px; line-height: 1.5; }
	.entry-lead { font-size: 16px; }
	.entry-meta { gap: 6px 14px; font-size: 13px; }
	.entry-thumb { margin: 16px -16px; }
	.entry-thumb img { border-radius: 0; }
	.share-btn span { display: none; }
	.share-btn { width: 42px; padding: 0; justify-content: center; }
	.share-label { display: none; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__next { grid-column: auto; text-align: right; }
	.alignright, .alignleft { float: none; margin: 0 0 1em; }

	.footer-top { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 24px; text-align: center; }
	.footer-brand { display: flex; flex-direction: column; align-items: center; }
	.social-icons--footer { justify-content: center; }
	.footer-bottom__inner { justify-content: center; text-align: center; padding: 12px 0; }
	.site-footer .widget { text-align: right; }

	.back-to-top { bottom: calc(var(--mobile-bar-h) + 14px); left: 14px; width: 42px; height: 42px; }
	body:not(.has-mobile-bar) .back-to-top { bottom: 16px; }
	.has-sticky-ad .back-to-top { bottom: calc(var(--mobile-bar-h) + 80px); }
}

@media (max-width: 380px) {
	.block-grid, .no-sidebar .block-grid, .layout--continue .block-grid, .archive-grid, .no-sidebar .archive-grid { grid-template-columns: 1fr; }
	.archive-grid .post-card__title, .block-grid .post-card__title { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.ticker__list { animation: none; }
}

/* الطباعة */
@media print {
	.site-header, .site-footer, .layout__sidebar, .share-bar, .entry-tools, .ad-slot, .related, .comments-area, .mobile-bar, .back-to-top, .post-nav { display: none !important; }
	.single-article { box-shadow: none; padding: 0; }
	body { background: #fff; color: #000; }
}
