/**
 * قالب سلامة برو - التنسيق الرئيسي.
 * كل الألوان والمقاسات تأتي من متغيرات تُولّد من لوحة تحكم القالب.
 */

/* ============================== المتغيرات ============================== */
:root {
	--sp-primary: #d32f2f;
	--sp-primary-d: #9f1f1f;
	--sp-accent: #0d6efd;
	--sp-bg: #f3f4f6;
	--sp-card: #ffffff;
	--sp-text: #16181d;
	--sp-muted: #6b7280;
	--sp-border: #e5e7eb;
	--sp-header-bg: #ffffff;
	--sp-header-tx: #16181d;
	--sp-nav-bg: #16181d;
	--sp-nav-tx: #ffffff;
	--sp-topbar-bg: #0b0d12;
	--sp-topbar-tx: #e5e7eb;
	--sp-footer-bg: #0f172a;
	--sp-footer-tx: #c7d0dd;
	--sp-footer-hd: #ffffff;

	--sp-font: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
	--sp-fs: 16px;
	--sp-lh: 1.85;
	--sp-fs-card: 17px;
	--sp-fs-small: 15px;
	--sp-fs-section: 21px;
	--sp-fs-widget: 17px;
	--sp-fs-single: 32px;
	--sp-fs-content: 18px;
	--sp-fs-menu: 16px;
	--sp-fw-head: 700;

	--sp-container: 1240px;
	--sp-sidebar: 330px;
	--sp-gap: 22px;
	--sp-section-gap: 34px;
	--sp-radius: 12px;
	--sp-ratio: 16/9;
	--sp-thumb: 96px;
	--sp-logo-w: 180px;
	--sp-logo-wm: 130px;

	--sp-slider-h: 520px;
	--sp-slider-hm: 330px;
	--sp-slider-title: 34px;
	--sp-ticker-speed: 35s;
	--sp-ov: 0.55;
}

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

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

body {
	margin: 0;
	background: var(--sp-bg);
	color: var(--sp-text);
	font-family: var(--sp-font);
	font-size: var(--sp-fs);
	line-height: var(--sp-lh);
	overflow-x: hidden;
}

/* مهم: أي عنصر يحمل خاصية hidden يجب أن يختفي فعلياً حتى لو حُدّد له display في القالب،
   وإلا غطّت الطبقات المخفية (البحث/القائمة) الصفحة ومنعت الضغط على أي رابط. */
[hidden] { display: none !important; }

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sp-primary); }

h1, h2, h3, h4, h5, h6 { font-weight: var(--sp-fw-head); line-height: 1.5; }

button { font-family: inherit; }

.sp-container {
	width: 100%;
	max-width: var(--sp-container);
	margin: 0 auto;
	padding: 0 16px;
}

.sp-layout-boxed .sp-site {
	max-width: calc(var(--sp-container) + 80px);
	margin: 0 auto;
	background: var(--sp-bg);
	box-shadow: 0 0 40px rgba(0, 0, 0, .1);
}

.sp-icon { flex: none; vertical-align: middle; }

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

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

.sp-hide-mobile { display: block; }

/* ============================== شاشة التحميل =========================== */
.sp-preloader {
	position: fixed; inset: 0; z-index: 9999;
	background: var(--sp-bg);
	display: grid; place-items: center;
	transition: opacity .4s;
}
.sp-preloader.is-done { opacity: 0; visibility: hidden; }
.sp-spinner {
	width: 44px; height: 44px; border-radius: 50%;
	border: 4px solid var(--sp-border);
	border-top-color: var(--sp-primary);
	animation: sp-spin .8s linear infinite;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }

/* ============================== الشريط العلوي ========================== */
.sp-topbar {
	background: var(--sp-topbar-bg);
	color: var(--sp-topbar-tx);
	font-size: 13px;
}
.sp-topbar-in {
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px; min-height: 40px; flex-wrap: wrap;
}
.sp-topbar-right,
.sp-topbar-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sp-today { display: inline-flex; align-items: center; gap: 6px; }
.sp-topmenu { display: flex; list-style: none; margin: 0; padding: 0; gap: 14px; }
.sp-socials { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-soc {
	width: 28px; height: 28px; border-radius: 6px;
	display: grid; place-items: center;
	background: rgba(255, 255, 255, .08);
	transition: transform .2s, background .2s;
}
.sp-soc:hover { transform: translateY(-2px); color: #fff; }
.sp-socials-top .sp-soc:hover { background: var(--sp-primary); }

/* ================================= الهيدر ============================== */
.sp-header {
	background: var(--sp-header-bg);
	color: var(--sp-header-tx);
	position: relative; z-index: 60;
}
.sp-header-in {
	display: flex; align-items: center; gap: 18px;
	padding: 16px 16px;
}
.sp-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sp-logo { display: inline-flex; align-items: center; }
.sp-logo-img { width: var(--sp-logo-w); max-width: 100%; height: auto; }
.sp-logo-dark { display: none; }
.sp-logo-text { font-size: 27px; font-weight: 800; letter-spacing: -.5px; }
.sp-tagline { color: var(--sp-muted); font-size: 13px; border-inline-start: 1px solid var(--sp-border); padding-inline-start: 12px; }

.sp-header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.sp-act {
	width: 40px; height: 40px; border-radius: 10px;
	border: 1px solid var(--sp-border); background: transparent;
	color: inherit; display: grid; place-items: center; cursor: pointer;
	transition: background .2s, color .2s;
}
.sp-act:hover { background: var(--sp-primary); color: #fff; border-color: var(--sp-primary); }
.sp-i-sun { display: none; }

.sp-burger {
	display: none; width: 42px; height: 42px; border-radius: 10px;
	border: 1px solid var(--sp-border); background: transparent; color: inherit;
	place-items: center; cursor: pointer;
}

.sp-header-banner { margin-inline-start: auto; max-height: 90px; overflow: hidden; }
.sp-header-banner img { max-height: 90px; width: auto; }

/* أشكال الهيدر */
.sp-header-h2 .sp-header-in { flex-direction: column; text-align: center; gap: 10px; }
.sp-header-h2 .sp-header-actions { margin: 0; }
.sp-header-h2 .sp-burger { position: absolute; inset-inline-start: 16px; top: 18px; }

.sp-header-h3 .sp-header-actions { margin-inline-start: 0; }

.sp-header-h4 .sp-header-in,
.sp-header-h6 .sp-header-in { padding: calc(var(--sp-header-pad) * .75) var(--sp-side-pad); }

.sp-header-h5 .sp-header {
	background: var(--sp-nav-bg);
	color: var(--sp-nav-tx);
}
.sp-header-h5 .sp-act { border-color: rgba(255, 255, 255, .18); }
.sp-header-h5 .sp-navbar { border-top: 1px solid rgba(255, 255, 255, .1); }

.sp-header-h6 .sp-header {
	background: color-mix(in srgb, var(--sp-header-bg) 82%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--sp-border);
}

/* تثبيت الهيدر */
.sp-sticky .sp-header { position: sticky; top: 0; }
.sp-sticky.admin-bar .sp-header { top: 32px; }
.sp-header.is-stuck { box-shadow: 0 6px 22px rgba(16, 24, 40, .12); }

/* ============================= شريط القائمة ============================ */
.sp-navbar { background: var(--sp-nav-bg); color: var(--sp-nav-tx); }
.sp-navbar-in { display: flex; align-items: center; }
.sp-menu { display: flex; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.sp-menu > li { position: relative; }
.sp-menu > li > a {
	display: block; padding: 13px 15px;
	font-size: var(--sp-fs-menu); font-weight: 600;
	position: relative; transition: color .2s, background .2s;
}
.sp-nav-inline { margin-inline-start: 20px; }
.sp-nav-inline .sp-menu > li > a { color: var(--sp-header-tx); padding: 10px 12px; }

.sp-menu .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0;
	min-width: 220px; list-style: none; margin: 0; padding: 6px 0;
	background: var(--sp-card); color: var(--sp-text);
	border: 1px solid var(--sp-border); border-radius: 10px;
	box-shadow: 0 14px 34px rgba(16, 24, 40, .14);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: .25s; z-index: 70;
}
.sp-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sp-menu .sub-menu li { position: relative; }
.sp-menu .sub-menu a { display: block; padding: 9px 16px; font-size: 15px; }
.sp-menu .sub-menu a:hover { background: rgba(0, 0, 0, .04); color: var(--sp-primary); }
.sp-menu .sub-menu .sub-menu { top: 0; inset-inline-start: 100%; }

/* أشكال روابط القائمة */
.sp-menu-underline .sp-menu > li > a::after {
	content: ""; position: absolute; bottom: 6px; inset-inline: 15px;
	height: 3px; background: var(--sp-primary); border-radius: 3px;
	transform: scaleX(0); transition: transform .25s;
}
.sp-menu-underline .sp-menu > li:hover > a::after,
.sp-menu-underline .sp-menu > li.current-menu-item > a::after { transform: scaleX(1); }

.sp-menu-pill .sp-menu > li > a { border-radius: 999px; margin: 6px 3px; padding: 8px 16px; }
.sp-menu-pill .sp-menu > li:hover > a,
.sp-menu-pill .sp-menu > li.current-menu-item > a { background: var(--sp-primary); color: #fff; }

.sp-menu-solid .sp-menu > li:hover > a,
.sp-menu-solid .sp-menu > li.current-menu-item > a { background: var(--sp-primary); color: #fff; }

.sp-menu-border .sp-menu > li > a { border: 1px solid transparent; border-radius: 8px; margin: 5px 3px; }
.sp-menu-border .sp-menu > li:hover > a { border-color: currentColor; }

.sp-menu-plain .sp-menu > li:hover > a { color: var(--sp-primary); }

/* =========================== شريط الأخبار العاجلة ====================== */
.sp-breaking { background: var(--sp-card); border-bottom: 1px solid var(--sp-border); }
.sp-breaking-in { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.sp-breaking-label {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--sp-primary); color: #fff;
	padding: 6px 14px; border-radius: 8px;
	font-weight: 700; white-space: nowrap; font-size: 14px;
}
.sp-breaking-track { flex: 1; overflow: hidden; }
.sp-breaking-move {
	display: flex; align-items: center; gap: 34px;
	white-space: nowrap; width: max-content;
	animation: sp-ticker var(--sp-ticker-speed) linear infinite;
}
.sp-breaking-move:hover { animation-play-state: paused; }
.sp-breaking-move a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.sp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sp-primary); display: inline-block; }
.sp-breaking-nav { display: flex; gap: 4px; }
.sp-tk-btn {
	width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
	border: 1px solid var(--sp-border); background: transparent; color: inherit;
	display: grid; place-items: center;
}
.sp-tk-btn:hover { background: var(--sp-primary); color: #fff; }

@keyframes sp-ticker {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* =============================== السلايدرات ============================ */
.sp-slider { margin: 22px 0 var(--sp-section-gap); }
.sp-slider-full { margin-top: 0; }

.sp-sl { position: relative; border-radius: var(--sp-radius); overflow: hidden; background: #0b0d12; }
.sp-slider-full .sp-sl { border-radius: 0; }
.sp-sl-viewport { overflow: hidden; }
.sp-sl-track { display: flex; transition: transform .65s cubic-bezier(.3, .85, .3, 1); }
.sp-sl-slide { position: relative; flex: 0 0 100%; height: var(--sp-slider-h); }

.sp-sl[data-mode="fade"] .sp-sl-track { display: block; position: relative; height: var(--sp-slider-h); transition: none; }
.sp-sl[data-mode="fade"] .sp-sl-slide {
	position: absolute; inset: 0; height: 100%;
	opacity: 0; pointer-events: none; transition: opacity .8s ease;
}
.sp-sl[data-mode="fade"] .sp-sl-slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }

.sp-sl-img { position: absolute; inset: 0; display: block; overflow: hidden; }
.sp-sl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-sl-img.sp-img-ph { display: grid; place-items: center; background: #1b1f27; color: #4b5563; }
.sp-kb img { animation: sp-kb 16s ease-in-out infinite alternate; }
@keyframes sp-kb { from { transform: scale(1); } to { transform: scale(1.13); } }

.sp-sl-shade {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(to top,
		rgba(0, 0, 0, calc(var(--sp-ov) + .3)) 0%,
		rgba(0, 0, 0, var(--sp-ov)) 45%,
		rgba(0, 0, 0, .05) 100%);
}
.sp-sl-link { position: absolute; inset: 0; z-index: 2; }
.sp-sl-content { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; padding: 30px; }
.sp-slider-full .sp-sl-content { padding: 34px 16px; }

.sp-sl-body { max-width: 820px; }
.sp-sl-title { font-size: var(--sp-slider-title); margin: 10px 0; color: #fff; }
.sp-sl-title a { color: #fff; }
.sp-sl-title a:hover { color: #ffd9d9; }
.sp-sl-body-md .sp-sl-title { font-size: calc(var(--sp-slider-title) * .72); }
.sp-sl-body-sm .sp-sl-title { font-size: calc(var(--sp-slider-title) * .55); }
.sp-sl-ex { color: #e3e6eb; font-size: 15px; margin: 0 0 10px; }
.sp-sl-meta { display: flex; gap: 16px; color: #d6dae1; font-size: 13px; flex-wrap: wrap; }
.sp-sl-meta span { display: inline-flex; align-items: center; gap: 5px; }
.sp-cat-sl {
	position: static; display: inline-block;
	background: var(--sp-primary); color: #fff;
	padding: 4px 12px; border-radius: 5px; font-size: 13px; font-weight: 600;
}

.sp-sl-btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: rgba(255, 255, 255, .92); color: #111;
	display: grid; place-items: center; cursor: pointer; z-index: 6;
	transition: background .2s, color .2s;
}
.sp-sl-btn:hover { background: var(--sp-primary); color: #fff; }
/* في RTL: inline-start = يمين، لذلك زر «السابق» يمين و«التالي» يسار. */
.sp-sl-prev { inset-inline-start: 14px; }
.sp-sl-next { inset-inline-end: 14px; }

.sp-sl-dots {
	position: absolute; bottom: 14px; inset-inline: 0; z-index: 6;
	display: flex; justify-content: center; gap: 8px;
}
.sp-sl-dots button {
	width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .5); cursor: pointer; transition: .25s;
}
.sp-sl-dots button.is-active { background: #fff; width: 26px; border-radius: 6px; }

/* 2 - مقسوم */
.sp-split { display: grid; grid-template-columns: 1fr 340px; gap: 14px; }
.sp-split .sp-sl,
.sp-split .sp-sl[data-mode="fade"] .sp-sl-track,
.sp-split .sp-sl-slide { height: var(--sp-slider-h); }
.sp-split-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 14px; height: var(--sp-slider-h); }
.sp-split-item { height: 100%; }

/* 3 - فسيفساء */
.sp-mosaic-slider {
	display: grid; grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, calc((var(--sp-slider-h) - 14px) / 2)); gap: 14px;
}
.sp-mos-main { grid-column: span 2; grid-row: span 2; }
.sp-mos-main.sp-sl,
.sp-mos-main .sp-sl-track,
.sp-mos-main .sp-sl-slide { height: 100%; }
.sp-mos-cell { height: 100%; }

/* 4 - بطاقات */
.sp-sl-cards { background: transparent; overflow: visible; }
.sp-sl-cards .sp-sl-viewport { overflow: hidden; border-radius: var(--sp-radius); }
.sp-sl-cards .sp-sl-slide { height: auto; padding-inline: 7px; }
.sp-sl-card { background: var(--sp-card); border-radius: var(--sp-radius); overflow: hidden; }
.sp-sl-card-img { position: relative; display: block; height: calc(var(--sp-slider-h) * .62); }
.sp-sl-card-img .sp-sl-shade { background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent 60%); }
.sp-sl-card-body { padding: 14px; }
.sp-sl-card-title { font-size: calc(var(--sp-fs-card) + 2px); margin: 8px 0; }
.sp-sl-cards .sp-cat-sm { position: static; display: inline-block; }

/* 5 - تلاشٍ مع مصغّرات */
.sp-thumbs-row {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px; margin-top: 12px;
}
.sp-thumb-btn {
	position: relative; border: 0; padding: 0; cursor: pointer;
	border-radius: 10px; overflow: hidden; background: #000;
	height: 84px; display: block; width: 100%;
}
.sp-thumb-btn .sp-thumb { height: 100%; aspect-ratio: auto; }
.sp-thumb-btn .sp-img { opacity: .55; transition: opacity .3s; }
.sp-thumb-btn.is-active .sp-img,
.sp-thumb-btn:hover .sp-img { opacity: .9; }
.sp-thumb-btn.is-active { outline: 3px solid var(--sp-primary); outline-offset: -3px; }
.sp-thumb-title {
	position: absolute; inset-inline: 0; bottom: 0; padding: 6px 8px;
	color: #fff; font-size: 12px; text-align: start; line-height: 1.5;
	background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent);
}

/* 6 - عمود مصغّرات جانبي */
.sp-sidewrap { display: grid; grid-template-columns: 1fr 320px; gap: 14px; }
.sp-sidewrap .sp-sl,
.sp-sidewrap .sp-sl[data-mode="fade"] .sp-sl-track,
.sp-sidewrap .sp-sl-slide { height: var(--sp-slider-h); }
.sp-thumbs-col {
	display: grid; grid-template-rows: repeat(4, 1fr); gap: 10px;
	height: var(--sp-slider-h); overflow: hidden;
}
.sp-thumbs-col .sp-thumb-btn { height: 100%; }

/* 7 - كوفر فلو */
.sp-sl-cover { background: transparent; }
.sp-sl-cover .sp-sl-viewport { overflow: hidden; padding: 10px 0; }
.sp-sl-cover .sp-sl-slide {
	flex: 0 0 60%; padding-inline: 10px;
	transform: scale(.84); opacity: .5;
	transition: transform .6s, opacity .6s;
}
.sp-sl-cover .sp-sl-slide.is-active { transform: scale(1); opacity: 1; }
.sp-cover-card {
	display: block; position: relative; height: 100%;
	border-radius: var(--sp-radius); overflow: hidden;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

/* 8 - ثلاث صور كبيرة */
.sp-sl-trio { background: transparent; }
.sp-sl-trio .sp-sl-slide { padding-inline: 7px; }
.sp-trio-item {
	display: block; position: relative; height: 100%;
	border-radius: var(--sp-radius); overflow: hidden;
}

/* 9 - سينمائي */
.sp-sl-cinema .sp-sl-slide { overflow: hidden; }
.sp-cinema-bg {
	position: absolute; inset: -30px; z-index: 0;
	background-size: cover; background-position: center;
	filter: blur(28px) brightness(.4); transform: scale(1.1);
}
.sp-cinema-in {
	position: relative; z-index: 2; height: 100%;
	display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px;
	align-items: center; padding: 26px;
}
.sp-cinema-img { display: block; height: calc(var(--sp-slider-h) - 60px); }
.sp-cinema-img .sp-thumb { height: 100%; aspect-ratio: auto; border-radius: var(--sp-radius); }
.sp-cinema-body .sp-sl-title { color: #fff; }

/* 10 - مجلة */
.sp-magwrap { display: grid; gap: 14px; }
.sp-maggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sp-mag-cell { height: 175px; }

/* ============================== كتل المقالات =========================== */
.sp-block { margin-bottom: var(--sp-section-gap); }
.sp-block:last-child { margin-bottom: 0; }

.sp-section-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px; margin-bottom: 16px;
}
.sp-section-title { font-size: var(--sp-fs-section); margin: 0; }
.sp-more { color: var(--sp-primary); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

.sp-sectitle-t1 .sp-section-title { border-inline-start: 5px solid var(--sp-primary); padding-inline-start: 12px; }
.sp-sectitle-t2 .sp-section-title span { background: var(--sp-primary); color: #fff; padding: 7px 16px; border-radius: 8px; display: inline-block; }
.sp-sectitle-t3 .sp-section-head { border-bottom: 2px solid var(--sp-border); padding-bottom: 10px; }
.sp-sectitle-t3 .sp-section-title span { position: relative; display: inline-block; padding-bottom: 12px; margin-bottom: -12px; border-bottom: 3px solid var(--sp-primary); }
.sp-sectitle-t4 .sp-section-head { flex-direction: column; text-align: center; gap: 8px; }
.sp-sectitle-t4 .sp-section-title span { border-bottom: 3px solid var(--sp-primary); padding-bottom: 8px; }
.sp-sectitle-t5 .sp-section-title span {
	background: var(--sp-primary); color: #fff;
	padding: 7px 20px; display: inline-block; transform: skewX(-12deg);
}
.sp-sectitle-t5 .sp-section-title span { text-indent: 0; }

.sp-grid { display: grid; gap: var(--sp-gap); }
.sp-cols-1 { grid-template-columns: 1fr; }
.sp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sp-cols-4 { grid-template-columns: repeat(4, 1fr); }
.sp-cols-5 { grid-template-columns: repeat(5, 1fr); }

.sp-thumb {
	display: block; position: relative; overflow: hidden;
	aspect-ratio: var(--sp-ratio); background: #e9ecf1;
	border-radius: inherit;
}
.sp-thumb .sp-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s, filter .55s, opacity .4s; }
span.sp-img-ph { display: grid; place-items: center; color: #9aa3b2; width: 100%; height: 100%; }

.sp-hover-zoom .sp-card:hover .sp-img,
.sp-hover-zoom .sp-ov:hover .sp-img,
.sp-hover-zoom .sp-li:hover .sp-img { transform: scale(1.08); }
.sp-hover-fade .sp-card:hover .sp-img,
.sp-hover-fade .sp-ov:hover .sp-img { filter: brightness(1.15); }
.sp-hover-gray .sp-img { filter: grayscale(1); }
.sp-hover-gray .sp-card:hover .sp-img,
.sp-hover-gray .sp-ov:hover .sp-img,
.sp-hover-gray .sp-li:hover .sp-img { filter: grayscale(0); }

.sp-card {
	background: var(--sp-card); border-radius: var(--sp-radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform .3s, box-shadow .3s;
}
.sp-shadow-soft .sp-card { box-shadow: 0 2px 12px rgba(16, 24, 40, .07); }
.sp-shadow-strong .sp-card { box-shadow: 0 10px 28px rgba(16, 24, 40, .14); }
.sp-shadow-border .sp-card { border: 1px solid var(--sp-border); }
.sp-shadow-soft .sp-card:hover,
.sp-shadow-strong .sp-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16, 24, 40, .16); }

.sp-card-img { display: block; position: relative; }
.sp-cat {
	position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
	background: var(--sp-primary); color: #fff;
	font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 5px;
}
.sp-cat:hover { color: #fff; background: var(--sp-primary-d); }
.sp-card-body { padding: 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sp-card-title { font-size: var(--sp-fs-card); margin: 0; line-height: 1.6; }
.sp-card-ex { color: var(--sp-muted); font-size: 14px; margin: 0; }
.sp-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--sp-muted); font-size: 12.5px; margin-top: auto; }
.sp-meta span { display: inline-flex; align-items: center; gap: 5px; }

.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sp-list-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sp-list-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sp-list-cols-4 { grid-template-columns: repeat(4, 1fr); }
.sp-li { display: flex; gap: 12px; align-items: flex-start; }
.sp-li-img { flex: 0 0 var(--sp-thumb); border-radius: 10px; overflow: hidden; }
.sp-li-img .sp-thumb { width: var(--sp-thumb); aspect-ratio: 4/3; }
.sp-li-body { flex: 1; min-width: 0; }
.sp-li-title { font-size: var(--sp-fs-small); margin: 0 0 6px; line-height: 1.65; }

.sp-ov { position: relative; border-radius: var(--sp-radius); overflow: hidden; background: #111; }
.sp-ovgrid .sp-ov { height: 250px; }
.sp-ov-link { display: block; position: relative; height: 100%; }
.sp-ov .sp-thumb { height: 100%; aspect-ratio: auto; }
.sp-ov-shade {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .2) 55%, transparent);
}
.sp-ov-body {
	position: absolute; inset-inline: 0; bottom: 0; padding: 14px;
	display: flex; flex-direction: column; align-items: flex-start; gap: 7px; color: #fff;
}
.sp-ov-title { font-size: var(--sp-fs-card); font-weight: var(--sp-fw-head); line-height: 1.55; color: #fff; }
.sp-ov-meta { font-size: 12.5px; color: #dde1e7; }
.sp-cat-sm { position: static; font-size: 11.5px; padding: 3px 9px; }

.sp-mag { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--sp-gap); }
.sp-mag-side { align-content: start; }
.sp-card-lg .sp-card-title { font-size: calc(var(--sp-fs-card) + 6px); }

.sp-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 165px; gap: 14px; }
.sp-mosaic-2 { grid-template-columns: repeat(2, 1fr); }
.sp-mosaic-3 { grid-template-columns: repeat(3, 1fr); }
.sp-mosaic-5 { grid-template-columns: repeat(5, 1fr); }
.sp-mosaic .sp-mos-item:first-child { grid-column: span 2; grid-row: span 2; }
.sp-mos-item { height: 100%; }

.sp-carousel { position: relative; }
.sp-car-viewport { overflow: hidden; }
.sp-car-track { display: flex; transition: transform .55s cubic-bezier(.3, .85, .3, 1); }
.sp-car-item { flex: 0 0 calc(100% / var(--per, 3)); padding-inline: 7px; }
.sp-car-btn {
	position: absolute; top: 38%; transform: translateY(-50%);
	width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--sp-border);
	background: var(--sp-card); color: inherit; cursor: pointer;
	display: grid; place-items: center; z-index: 5;
	box-shadow: 0 4px 14px rgba(16, 24, 40, .14);
}
.sp-car-btn:hover { background: var(--sp-primary); color: #fff; }
.sp-car-prev { inset-inline-start: -8px; }
.sp-car-next { inset-inline-end: -8px; }

.sp-numbered { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sp-num-item { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--sp-border); }
.sp-num-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sp-num { font-size: 28px; font-weight: 800; color: var(--sp-primary); min-width: 32px; text-align: center; line-height: 1; }
.sp-num-body { flex: 1; min-width: 0; }
.sp-num-img { flex: 0 0 70px; border-radius: 8px; overflow: hidden; }
.sp-num-img .sp-thumb { width: 70px; aspect-ratio: 1/1; }

.sp-bigrid { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--sp-gap); }
.sp-bg-main .sp-ov-lg { height: 100%; min-height: 360px; }
.sp-bg-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-gap); align-content: start; }

.sp-tkblock {
	overflow: hidden; background: var(--sp-card); border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius); padding: 10px;
}
.sp-tkblock-move {
	display: flex; gap: 26px; width: max-content;
	animation: sp-ticker var(--sp-ticker-speed) linear infinite;
}
.sp-tkblock-move:hover { animation-play-state: paused; }
.sp-tk-item { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 14.5px; font-weight: 500; }
.sp-thumb.sp-tk-thumb { width: 50px; aspect-ratio: 1/1; border-radius: 8px; flex: none; }

.sp-titles { list-style: none; margin: 0; padding: 0; display: grid; }
.sp-titles li {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 0; border-bottom: 1px dashed var(--sp-border);
}
.sp-titles li:last-child { border-bottom: 0; }
.sp-titles a { display: inline-flex; align-items: center; gap: 9px; font-size: var(--sp-fs-small); }
.sp-bullet { width: 7px; height: 7px; border-radius: 50%; background: var(--sp-primary); flex: none; }
.sp-t-date { color: var(--sp-muted); font-size: 12px; white-space: nowrap; }

/* ============================== تخطيط الصفحة =========================== */
.sp-wrap { display: grid; gap: var(--sp-gap); margin-block: var(--sp-section-gap); align-items: start; }
.sp-sb-right { grid-template-columns: var(--sp-sidebar) minmax(0, 1fr); }
.sp-sb-right .sp-sidebar { order: -1; }
.sp-sb-left { grid-template-columns: minmax(0, 1fr) var(--sp-sidebar); }
.sp-nosidebar { grid-template-columns: minmax(0, 1fr); }
.sp-reading .sp-content { max-width: 840px; margin: 0 auto; }
.sp-content { min-width: 0; }

.sp-warea { margin-bottom: var(--sp-section-gap); }

.sp-page-head { margin-bottom: 20px; }
.sp-page-title { font-size: 26px; margin: 0 0 8px; }
.sp-page-title span { color: var(--sp-primary); }
.sp-page-desc { color: var(--sp-muted); }

.sp-breadcrumb {
	display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
	font-size: 13.5px; color: var(--sp-muted); margin-bottom: 14px;
}
.sp-breadcrumb a { display: inline-flex; align-items: center; gap: 5px; }
.sp-sep { opacity: .6; }
.sp-current { color: var(--sp-text); font-weight: 600; }

/* ============================== الشريط الجانبي ========================= */
.sp-sidebar { min-width: 0; }
.sp-sidebar-in { position: sticky; top: 20px; }
.sp-sticky .sp-sidebar-in { top: 96px; }

.sp-widget {
	background: var(--sp-card); border-radius: var(--sp-radius);
	padding: 16px; margin-bottom: var(--sp-gap);
}
.sp-shadow-soft .sp-widget { box-shadow: 0 2px 12px rgba(16, 24, 40, .06); }
.sp-shadow-border .sp-widget { border: 1px solid var(--sp-border); }
.sp-widget:last-child { margin-bottom: 0; }
.sp-widget-title {
	font-size: var(--sp-fs-widget); margin: 0 0 15px;
	border-bottom: 2px solid var(--sp-border);
}
.sp-widget-title span {
	display: inline-block; padding-bottom: 10px; margin-bottom: -2px;
	border-bottom: 3px solid var(--sp-primary);
}
.sp-widget .sp-block { margin-bottom: 0; }
.sp-widget ul { list-style: none; margin: 0; padding: 0; }
.sp-widget > ul li { padding: 8px 0; border-bottom: 1px dashed var(--sp-border); }
.sp-widget > ul li:last-child { border-bottom: 0; }
.sp-socials-grid { flex-wrap: wrap; }
.sp-socials-grid .sp-soc { width: 38px; height: 38px; background: var(--sp-bg); color: var(--sp-text); }
.sp-socials-grid .sp-soc:hover { background: var(--sp-primary); color: #fff; }

/* الودجات داخل الشريط الجانبي تُعرض في عمود واحد */
.sp-sidebar .sp-mag,
.sp-sidebar .sp-bigrid,
.sp-sidebar .sp-bg-side,
.sp-sidebar .sp-grid,
.sp-sidebar .sp-list,
.sp-sidebar .sp-mosaic { grid-template-columns: 1fr; }
.sp-sidebar .sp-mosaic { grid-auto-rows: 150px; }
.sp-sidebar .sp-mosaic .sp-mos-item:first-child { grid-column: span 1; grid-row: span 1; }
.sp-sidebar .sp-car-item { flex-basis: 100%; }
.sp-sidebar .sp-ovgrid .sp-ov { height: 190px; }
.sp-sidebar .sp-bg-main .sp-ov-lg { min-height: 220px; }

/* ================================ المقال =============================== */
.sp-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 999; background: transparent; }
.sp-progress span { display: block; height: 100%; width: 0; background: var(--sp-primary); transition: width .1s linear; }

.sp-single { background: var(--sp-card); border-radius: var(--sp-radius); padding: 26px; }
.sp-shadow-soft .sp-single { box-shadow: 0 2px 12px rgba(16, 24, 40, .06); }
.sp-single-head { margin-bottom: 18px; }
.sp-cat-single { position: static; display: inline-block; margin-bottom: 10px; }
.sp-single-title { font-size: var(--sp-fs-single); margin: 6px 0 12px; line-height: 1.45; }
.sp-single-lead { color: var(--sp-muted); font-size: 17px; margin: 0 0 12px; }
.sp-single-meta {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	flex-wrap: wrap; border-top: 1px solid var(--sp-border); border-bottom: 1px solid var(--sp-border);
	padding: 10px 0;
}
.sp-single-meta .sp-meta { margin: 0; }
.sp-resizer { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sp-muted); }
.sp-resizer button {
	width: 28px; height: 28px; border-radius: 7px; cursor: pointer;
	border: 1px solid var(--sp-border); background: transparent; color: inherit;
	display: grid; place-items: center;
}
.sp-resizer button:hover { background: var(--sp-primary); color: #fff; }

.sp-single-figure { margin: 0 0 20px; }
.sp-single-figure img { width: 100%; border-radius: var(--sp-radius); display: block; }
.sp-single-figure figcaption { color: var(--sp-muted); font-size: 13px; padding-top: 8px; text-align: center; }

.sp-entry { font-size: var(--sp-fs-content); line-height: var(--sp-lh); }
.sp-entry p { margin: 0 0 1.15em; }
.sp-entry a { color: var(--sp-accent); text-decoration: underline; }
.sp-entry h2 { font-size: 1.45em; margin: 1.4em 0 .6em; }
.sp-entry h3 { font-size: 1.25em; margin: 1.3em 0 .5em; }
.sp-entry ul, .sp-entry ol { padding-inline-start: 24px; margin: 0 0 1.2em; }
.sp-entry li { margin-bottom: .5em; }
.sp-entry img { border-radius: 10px; height: auto; }
.sp-entry figure { margin: 1.4em 0; }
.sp-entry figcaption { color: var(--sp-muted); font-size: 13.5px; text-align: center; padding-top: 6px; }
.sp-entry blockquote {
	margin: 1.4em 0; padding: 14px 18px;
	border-inline-start: 4px solid var(--sp-primary);
	background: rgba(0, 0, 0, .035); border-radius: 8px;
}
.sp-entry table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; }
.sp-entry th, .sp-entry td { border: 1px solid var(--sp-border); padding: 9px 12px; }
.sp-entry iframe { max-width: 100%; border-radius: 10px; }
.sp-linkpages { margin: 16px 0; display: flex; gap: 8px; align-items: center; }

.sp-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.sp-tags-label { display: inline-flex; align-items: center; gap: 6px; color: var(--sp-muted); font-size: 14px; }
.sp-tags a {
	display: inline-block; background: var(--sp-bg); border: 1px solid var(--sp-border);
	padding: 5px 12px; border-radius: 999px; font-size: 13px; margin-inline-end: 6px;
}
.sp-tags a:hover { background: var(--sp-primary); color: #fff; border-color: var(--sp-primary); }

.sp-share { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sp-share-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sp-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-sh {
	width: 40px; height: 40px; border-radius: 9px; cursor: pointer;
	display: grid; place-items: center; border: 0; color: #fff; background: #444;
	transition: transform .2s, opacity .2s;
}
.sp-sh:hover { transform: translateY(-3px); color: #fff; }
.sp-sh-facebook { background: #1877f2; }
.sp-sh-twitter { background: #111111; }
.sp-sh-whatsapp { background: #25d366; }
.sp-sh-telegram { background: #229ed9; }
.sp-sh-linkedin { background: #0a66c2; }
.sp-sh-email { background: #0f766e; }
.sp-sh-copy { background: #6b7280; }
.sp-sh-print { background: #374151; }
.sp-share-outline .sp-sh { background: transparent; border: 1px solid var(--sp-border); color: var(--sp-text); }
.sp-share-outline .sp-sh:hover { background: var(--sp-primary); color: #fff; border-color: var(--sp-primary); }
.sp-share-round .sp-sh { border-radius: 50%; }
.sp-share-bar { display: block; }
.sp-share-bar .sp-share-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 10px; }
.sp-share-bar .sp-sh { width: 100%; height: 44px; border-radius: 8px; }

.sp-authorbox {
	display: flex; gap: 16px; margin-top: 26px; padding: 18px;
	background: var(--sp-bg); border-radius: var(--sp-radius);
}
.sp-authorbox-avatar img { border-radius: 50%; }
.sp-authorbox-body h4 { margin: 0 0 6px; font-size: 17px; }
.sp-authorbox-body p { margin: 0 0 8px; color: var(--sp-muted); font-size: 14.5px; }
.sp-authorbox-more { color: var(--sp-primary); font-size: 13.5px; font-weight: 600; }

.sp-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.sp-postnav-item {
	background: var(--sp-bg); border-radius: var(--sp-radius); padding: 14px;
	border: 1px solid var(--sp-border);
}
.sp-postnav-item:hover { border-color: var(--sp-primary); }
.sp-postnav-label { display: flex; align-items: center; gap: 6px; color: var(--sp-primary); font-size: 13px; margin-bottom: 6px; }
.sp-postnav-title { font-weight: 600; font-size: 15px; display: block; line-height: 1.6; }
.sp-next { text-align: end; }
.sp-next .sp-postnav-label { justify-content: flex-end; }

.sp-related { margin-top: var(--sp-section-gap); }

/* =============================== التعليقات ============================= */
.sp-comments { margin-top: var(--sp-section-gap); background: var(--sp-card); border-radius: var(--sp-radius); padding: 22px; }
.sp-comments-title { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 0 0 18px; }
.sp-commentlist, .sp-commentlist .children { list-style: none; margin: 0; padding: 0; }
.sp-commentlist .children { padding-inline-start: 26px; margin-top: 14px; }
.sp-commentlist li.comment { margin-bottom: 18px; }
.sp-commentlist .comment-body { background: var(--sp-bg); border-radius: var(--sp-radius); padding: 16px; position: relative; }
.sp-commentlist .comment-author img { border-radius: 50%; margin-inline-end: 10px; vertical-align: middle; }
.sp-commentlist .comment-author .fn { font-weight: 700; font-style: normal; }
.sp-commentlist .comment-meta { font-size: 12.5px; color: var(--sp-muted); margin: 6px 0 10px; }
.sp-commentlist .reply a { font-size: 13px; color: var(--sp-primary); font-weight: 600; }
.sp-reply-title { font-size: 18px; margin: 22px 0 14px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--sp-border);
	border-radius: 9px; background: var(--sp-bg); color: inherit; font: inherit;
}
.comment-form .form-submit input,
.sp-btn {
	display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
	background: var(--sp-primary); color: #fff; border: 0;
	padding: 11px 22px; border-radius: 9px; font: inherit; font-weight: 600;
}
.comment-form .form-submit input:hover,
.sp-btn:hover { background: var(--sp-primary-d); color: #fff; }

/* ============================== ترقيم الصفحات ========================== */
.sp-pagination { margin-top: 26px; }
.sp-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sp-pagination a,
.sp-pagination span {
	display: inline-flex; align-items: center; gap: 5px; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	background: var(--sp-card); border: 1px solid var(--sp-border);
	border-radius: 9px; font-weight: 600;
}
.sp-pagination .current,
.sp-pagination a:hover { background: var(--sp-primary); color: #fff; border-color: var(--sp-primary); }

.sp-none { background: var(--sp-card); border-radius: var(--sp-radius); padding: 40px 20px; text-align: center; color: var(--sp-muted); }
.sp-none h2 { color: var(--sp-text); margin: 12px 0 6px; }
.sp-none-search, .sp-404-search { max-width: 420px; margin: 18px auto 0; }

.sp-404 { background: var(--sp-card); border-radius: var(--sp-radius); padding: 50px 20px; text-align: center; margin-bottom: var(--sp-section-gap); }
.sp-404-num { font-size: 92px; font-weight: 900; color: var(--sp-primary); line-height: 1; display: block; }
.sp-404-title { margin: 10px 0; }
.sp-404 p { color: var(--sp-muted); margin: 0; }
.sp-404 .sp-btn { margin-top: 18px; }

/* =============================== نموذج البحث =========================== */
.sp-searchform {
	display: flex; align-items: center; overflow: hidden;
	background: var(--sp-card); border: 1px solid var(--sp-border); border-radius: 10px;
}
.sp-search-input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; padding: 11px 14px; outline: none; }
.sp-search-btn { border: 0; background: var(--sp-primary); color: #fff; padding: 0 18px; height: 44px; cursor: pointer; display: grid; place-items: center; }
.sp-search-btn:hover { background: var(--sp-primary-d); }

/* ================================ الفوتر =============================== */
.sp-footer { background: var(--sp-footer-bg); color: var(--sp-footer-tx); margin-top: var(--sp-section-gap); padding-top: 44px; }
.sp-footer a { color: inherit; }
.sp-footer a:hover { color: #fff; }
.sp-footer-cols { display: grid; gap: 26px; grid-template-columns: repeat(4, 1fr); }
.sp-footer-f2 { grid-template-columns: 1.5fr repeat(3, 1fr); }
.sp-footer-f4 { grid-template-columns: repeat(2, 1fr); }
.sp-footer-news { display: grid; gap: 26px; grid-template-columns: 1.3fr 1fr 1fr; }
.sp-footer-center { text-align: center; max-width: 640px; margin: 0 auto; }
.sp-footer-center .sp-socials { justify-content: center; }
.sp-footer-logo { max-width: 190px; margin-bottom: 14px; }
.sp-footer-name { color: var(--sp-footer-hd); margin: 0 0 12px; font-size: 22px; }
.sp-footer-about { font-size: 14.5px; line-height: 1.9; margin: 0 0 14px; }
.sp-footer-head, .sp-footer .sp-widget-title { color: var(--sp-footer-hd); font-size: var(--sp-fs-widget); margin: 0 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sp-footer .sp-widget { background: transparent; padding: 0; box-shadow: none; border: 0; margin-bottom: 22px; }
.sp-footer .sp-widget-title span { border-bottom-color: var(--sp-primary); }
.sp-footer .sp-li-title { color: var(--sp-footer-hd); }
.sp-footer .sp-meta, .sp-footer .sp-card-ex { color: rgba(255, 255, 255, .55); }
.sp-footer .sp-card { background: rgba(255, 255, 255, .05); box-shadow: none; }
.sp-footer .sp-titles li, .sp-footer .sp-num-item { border-bottom-color: rgba(255, 255, 255, .12); }
.sp-footer .sp-soc { background: rgba(255, 255, 255, .08); }
.sp-footer .sp-soc:hover { background: var(--sp-primary); }
.sp-footer-bottom { margin-top: 34px; border-top: 1px solid rgba(255, 255, 255, .1); }
.sp-footer-bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 0; }
.sp-copy { margin: 0; font-size: 14px; }
.sp-footer-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 16px; flex-wrap: wrap; font-size: 14px; }

.sp-before-footer { margin-bottom: var(--sp-section-gap); }

/* ============================== أزرار عائمة ============================ */
.sp-backtop {
	position: fixed; inset-inline-end: 18px; bottom: 22px; z-index: 90;
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--sp-primary); color: #fff; display: grid; place-items: center;
	opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
.sp-backtop.is-show { opacity: 1; visibility: visible; transform: none; }

/* ============================== قائمة الجوال =========================== */
.sp-overlay {
	position: fixed; inset: 0; background: rgba(0, 0, 0, .55);
	z-index: 120; opacity: 0; transition: opacity .3s;
}
.sp-overlay.is-open { opacity: 1; }

.sp-drawer {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0;
	width: 320px; max-width: 86vw; z-index: 130;
	background: var(--sp-card); color: var(--sp-text);
	padding: 16px; overflow-y: auto;
	transform: translateX(100%); transition: transform .35s ease;
	box-shadow: -10px 0 40px rgba(0, 0, 0, .2);
}
html[dir="ltr"] .sp-drawer { transform: translateX(-100%); }
.sp-drawer.is-open { transform: none !important; }
.sp-drawer-full, .sp-drawer-dropdown {
	inset-inline: 0; width: 100%; max-width: none; bottom: auto;
	max-height: 100vh; transform: translateY(-100%);
}
.sp-drawer-dropdown { bottom: auto; }
.sp-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--sp-border); }
.sp-drawer-close {
	width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
	border: 1px solid var(--sp-border); background: transparent; color: inherit;
	display: grid; place-items: center;
}
.sp-drawer-search { margin: 14px 0; }
.sp-mmenu { list-style: none; margin: 0; padding: 0; }
.sp-mmenu li { border-bottom: 1px solid var(--sp-border); }
.sp-mmenu a { display: block; padding: 12px 4px; font-weight: 600; }
.sp-mmenu .sub-menu { padding-inline-start: 14px; }
.sp-mmenu .sub-menu a { font-weight: 400; font-size: 14.5px; }
.sp-drawer-foot { margin-top: 18px; }
.sp-socials-drawer .sp-soc { background: var(--sp-bg); color: var(--sp-text); width: 36px; height: 36px; }

.sp-searchbox {
	position: fixed; inset: 0; z-index: 140; display: grid; place-items: center;
	background: rgba(9, 11, 15, .95); opacity: 0; transition: opacity .3s;
}
.sp-searchbox.is-open { opacity: 1; }
.sp-searchbox-in { width: min(680px, 88vw); text-align: center; color: #fff; }
.sp-searchbox-in h3 { color: #fff; margin: 0 0 16px; font-size: 22px; }
.sp-searchbox .sp-searchform { border-radius: 12px; }
.sp-searchbox .sp-search-input { padding: 15px 16px; font-size: 17px; }
.sp-searchbox .sp-search-btn { height: 54px; }
.sp-searchbox-close {
	position: absolute; top: 22px; inset-inline-end: 22px;
	width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
	background: rgba(255, 255, 255, .12); color: #fff; border: 0;
	display: grid; place-items: center;
}

.sp-mobilebar {
	position: fixed; bottom: 0; inset-inline: 0; z-index: 100;
	display: none; justify-content: space-around; align-items: center;
	background: var(--sp-card); border-top: 1px solid var(--sp-border);
	padding: 6px 4px; padding-bottom: calc(6px + env(safe-area-inset-bottom));
	box-shadow: 0 -6px 20px rgba(16, 24, 40, .1);
}
.sp-mobilebar a,
.sp-mobilebar button {
	flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
	background: none; border: 0; color: inherit; cursor: pointer;
	font-size: 11px; font-family: inherit; padding: 5px 0;
}
.sp-mobilebar a:hover, .sp-mobilebar button:hover { color: var(--sp-primary); }

/* ============================== الوضع الليلي =========================== */
.sp-dark .sp-thumb { background: #20242c; }
.sp-dark .sp-logo-light { display: none; }
.sp-dark .sp-logo-dark { display: inline-block; }
.sp-dark .sp-i-moon { display: none; }
.sp-dark .sp-i-sun { display: block; }
.sp-dark .sp-entry blockquote { background: rgba(255, 255, 255, .05); }
.sp-dark .sp-authorbox,
.sp-dark .sp-postnav-item,
.sp-dark .sp-commentlist .comment-body,
.sp-dark .comment-form input,
.sp-dark .comment-form textarea,
.sp-dark .sp-tags a { background: rgba(255, 255, 255, .04); }
.sp-dark .sp-menu .sub-menu { background: var(--sp-card); }
.sp-dark .sp-socials-grid .sp-soc,
.sp-dark .sp-socials-drawer .sp-soc { background: rgba(255, 255, 255, .07); }
.sp-dark .sp-sl-btn { background: rgba(20, 23, 28, .9); color: #fff; }

/* =============================== الاستجابة ============================= */
@media (max-width: 1180px) {
	.sp-sl-cover .sp-sl-slide { flex-basis: 72%; }
}

@media (max-width: 1024px) {
	.sp-wrap { grid-template-columns: minmax(0, 1fr) !important; }
	.sp-sidebar { order: 2 !important; }
	.sp-sidebar-in { position: static; }
	.sp-cols-4, .sp-cols-5 { grid-template-columns: repeat(3, 1fr); }
	.sp-split, .sp-sidewrap { grid-template-columns: 1fr; }
	.sp-split-side, .sp-thumbs-col { grid-template-rows: none; grid-template-columns: repeat(4, 1fr); height: 150px; }
	.sp-footer-f2, .sp-footer-news { grid-template-columns: repeat(2, 1fr); }
	.sp-footer-cols { grid-template-columns: repeat(2, 1fr); }
	.sp-header-banner { display: none; }
}

@media (max-width: 860px) {
	.sp-mosaic-slider { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
	.sp-mos-main { grid-column: span 2; height: var(--sp-slider-hm); }
	.sp-mos-cell { height: 140px; }
	.sp-maggrid { grid-template-columns: repeat(2, 1fr); }
	.sp-cinema-in { grid-template-columns: 1fr; padding: 16px; }
	.sp-cinema-img { display: none; }
}

@media (max-width: 782px) {
	:root { --sp-gap: 16px; --sp-section-gap: 26px; }

	.sp-burger { display: grid; }
	.sp-navbar { display: none; }
	.sp-nav-inline { display: none; }
	.sp-topbar-right .sp-topbar-text { display: none; }
	.sp-logo-img { width: var(--sp-logo-wm); }
	.sp-brand { margin-inline-end: auto; }
	.sp-header-h2 .sp-header-in { flex-direction: row; text-align: start; }
	.sp-header-h2 .sp-burger { position: static; }
	.sp-tagline { display: none; }
	.sp-header-in { padding: 12px 16px; }

	.sp-hide-mobile { display: none !important; }

	.sp-sl-slide,
	.sp-sl[data-mode="fade"] .sp-sl-track,
	.sp-split .sp-sl-slide,
	.sp-split .sp-sl,
	.sp-sidewrap .sp-sl,
	.sp-sidewrap .sp-sl-slide,
	.sp-split-side { height: var(--sp-slider-hm); }
	.sp-sl-title { font-size: calc(var(--sp-slider-title) * .62); }
	.sp-sl-body-md .sp-sl-title, .sp-sl-body-sm .sp-sl-title { font-size: calc(var(--sp-slider-title) * .5); }
	.sp-sl-ex { display: none; }
	.sp-sl-content { padding: 16px; }
	.sp-sl-btn { width: 38px; height: 38px; }
	.sp-sl-cards .sp-sl-slide, .sp-sl-trio .sp-sl-slide, .sp-sl-cover .sp-sl-slide { flex-basis: 88%; }
	.sp-sl-card-img { height: calc(var(--sp-slider-hm) * .72); }
	.sp-split-side, .sp-thumbs-col { grid-template-columns: repeat(3, 1fr); height: 120px; }
	.sp-thumbs-row { grid-template-columns: repeat(3, 1fr); }
	.sp-thumb-btn { height: 66px; }
	.sp-thumb-title { display: none; }

	.sp-grid, .sp-cols-2, .sp-cols-3, .sp-cols-4, .sp-cols-5 { grid-template-columns: 1fr; }
	.sp-mcols-2 .sp-grid { grid-template-columns: repeat(2, 1fr); }
	.sp-mcols-2 .sp-card-ex { display: none; }
	.sp-list-cols-2, .sp-list-cols-3, .sp-list-cols-4 { grid-template-columns: 1fr; }
	.sp-mag, .sp-bigrid { grid-template-columns: 1fr; }
	.sp-bg-side { grid-template-columns: repeat(2, 1fr); }
	.sp-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
	.sp-mosaic .sp-mos-item:first-child { grid-column: span 2; }
	.sp-car-item { flex-basis: 100% !important; }
	.sp-car-prev, .sp-car-next { top: 32%; }
	.sp-ovgrid .sp-ov { height: 210px; }

	.sp-single { padding: 16px; }
	.sp-single-title { font-size: calc(var(--sp-fs-single) * .72); }
	.sp-postnav { grid-template-columns: 1fr; }
	.sp-authorbox { flex-direction: column; text-align: center; align-items: center; }
	.sp-comments { padding: 16px; }
	.sp-commentlist .children { padding-inline-start: 12px; }

	.sp-footer-cols, .sp-footer-f2, .sp-footer-f4, .sp-footer-news { grid-template-columns: 1fr; }
	.sp-footer-bottom-in { justify-content: center; text-align: center; }

	.sp-mobilebar { display: flex; }
	.sp-has-mobilebar .sp-backtop { bottom: 76px; }
	.sp-has-mobilebar .sp-footer-bottom { padding-bottom: 60px; }
	.sp-no-mobile-sidebar .sp-sidebar { display: none; }
}

@media (max-width: 480px) {
	.sp-breaking-nav { display: none; }
	.sp-404-num { font-size: 68px; }
	.sp-share-btns { width: 100%; }
}

@media print {
	.sp-header, .sp-topbar, .sp-navbar, .sp-breaking, .sp-sidebar, .sp-footer,
	.sp-share, .sp-related, .sp-comments, .sp-backtop, .sp-mobilebar, .sp-postnav { display: none !important; }
	.sp-single { box-shadow: none; padding: 0; }
}

/* ============================== إضافات وتحسينات ======================== */
.sp-header-in { position: relative; }

.sp-header-h6 .sp-header {
	background: var(--sp-header-bg);
	background: color-mix(in srgb, var(--sp-header-bg) 82%, transparent);
}

.sp-slider-full .sp-sl-content > .sp-sl-body {
	max-width: var(--sp-container);
	margin-inline: auto;
}

.sp-toast {
	position: fixed; inset-inline: 0; bottom: 28px; margin: 0 auto;
	width: max-content; max-width: 90vw; z-index: 200;
	background: #16181d; color: #fff; padding: 11px 22px; border-radius: 999px;
	font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
	opacity: 0; transform: translateY(14px); transition: .28s;
}
.sp-toast.is-show { opacity: 1; transform: none; }

.sp-menu .menu-item-has-children > a::before {
	content: ""; display: inline-block; vertical-align: middle;
	width: 6px; height: 6px; margin-inline-start: 7px;
	border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); opacity: .7;
}

.sp-entry > *:last-child { margin-bottom: 0; }
.sp-entry .wp-caption { max-width: 100%; }
.sp-entry .alignleft { float: left; margin: 0 1.2em 1em 0; }
.sp-entry .alignright { float: right; margin: 0 0 1em 1.2em; }
.sp-entry .aligncenter { display: block; margin: 0 auto 1.2em; }
.sp-entry::after { content: ""; display: block; clear: both; }

.sp-widget select,
.sp-widget input[type="text"],
.sp-widget input[type="search"] {
	width: 100%; padding: 9px 12px; border-radius: 9px;
	border: 1px solid var(--sp-border); background: var(--sp-bg);
	color: inherit; font: inherit;
}
.sp-widget .sp-searchform { background: var(--sp-bg); }

.sp-dark .sp-widget select,
.sp-dark .sp-widget input { background: rgba(255, 255, 255, .05); }

.sp-card-imglink { display: block; position: relative; }
.sp-card-img { display: block; position: relative; }
span.sp-cat { cursor: default; }

/* حماية إضافية: الطبقات المغلقة لا تلتقط النقرات إطلاقاً */
.sp-searchbox,
.sp-overlay,
.sp-drawer { pointer-events: none; }
.sp-searchbox.is-open,
.sp-overlay.is-open,
.sp-drawer.is-open { pointer-events: auto; }
.sp-preloader.is-done { pointer-events: none; }

/* اتجاه الشريط المتحرك في وضع RTL (نسخة احتياطية إذا تعطّل الجافاسكربت) */
@keyframes sp-ticker-rtl {
	from { transform: translateX(0); }
	to { transform: translateX(50%); }
}
html[dir="rtl"] .sp-breaking-move,
html[dir="rtl"] .sp-tkblock-move { animation-name: sp-ticker-rtl; }

/* ======================================================================
 * إصدار 1.1 — خط العناوين
 * =================================================================== */
:root { --sp-font-head: var(--sp-font); }

h1, h2, h3, h4, h5, h6,
.sp-logo-text, .sp-section-title, .sp-widget-title,
.sp-card-title, .sp-li-title, .sp-ov-title, .sp-sl-title,
.sp-single-title, .sp-photo-title, .sp-sl-card-title,
.sp-breaking-label, .sp-num { font-family: var(--sp-font-head); }

/* ======================================================================
 * إصدار 1.1 — أشكال العرض الجديدة
 * =================================================================== */
.sp-ov-ex { font-size: 13.5px; color: #e5e8ed; line-height: 1.7; }
.sp-ov-lg .sp-ov-title { font-size: calc(var(--sp-fs-card) + 7px); }
.sp-ov-lg .sp-ov-body { padding: 18px; }

/* 11 - خبر رئيسي + بطاقات بجانبه */
.sp-leadside { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-gap); }
.sp-ls-main { min-width: 0; }
.sp-ls-main .sp-ov-lg { height: 100%; min-height: 400px; }
.sp-ls-side { display: grid; gap: var(--sp-gap); align-content: start; min-width: 0; }

/* 12 - خبر رئيسي + بطاقات أسفله */
.sp-leadunder { display: grid; gap: var(--sp-gap); }
.sp-lu-main .sp-ov-lg { height: 390px; }

/* 13 - خبران رئيسيان + قائمة */
.sp-duo { display: grid; gap: var(--sp-gap); }
.sp-duo-top { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-gap); }
.sp-duo-item { height: 300px; }
.sp-duo-list { background: var(--sp-card); border-radius: var(--sp-radius); padding: 6px 16px; }

/* 14 - بطاقات طولية */
.sp-tall .sp-thumb { height: auto; aspect-ratio: 3/4; }
.sp-tall .sp-ov-title { font-size: calc(var(--sp-fs-card) + 1px); }

/* 15 - نصف صورة ونصف نص */
.sp-half {
	display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
	background: var(--sp-card); border-radius: var(--sp-radius);
}
.sp-shadow-soft .sp-half { box-shadow: 0 2px 12px rgba(16, 24, 40, .07); }
.sp-shadow-border .sp-half { border: 1px solid var(--sp-border); }
.sp-half-img { position: relative; min-height: 190px; }
.sp-half-img .sp-thumb { height: 100%; aspect-ratio: auto; }
.sp-half-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; justify-content: center; }

/* 16 - بانر عريض + عناوين */
.sp-bannerblock { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--sp-gap); }
.sp-bn-item { height: 100%; min-height: 330px; }
.sp-bn-side { align-content: start; }

/* 17 - شبكة تراكب مختلطة */
.sp-gridmix { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 155px; gap: var(--sp-gap); }
.sp-gridmix-2 { grid-template-columns: repeat(2, 1fr); }
.sp-gridmix-3 { grid-template-columns: repeat(3, 1fr); }
.sp-gridmix-5 { grid-template-columns: repeat(5, 1fr); }
.sp-gm-item { height: 100%; }
.sp-gm-big { grid-column: span 2; grid-row: span 2; }

/* 18 - بطاقات أفقية مؤطّرة */
.sp-stack-item {
	display: flex; gap: 14px; align-items: center;
	background: var(--sp-card); border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius); padding: 12px;
	transition: border-color .25s, transform .25s;
}
.sp-stack-item:hover { border-color: var(--sp-primary); transform: translateX(-4px); }
.sp-stack-img { flex: 0 0 112px; border-radius: 10px; overflow: hidden; }
.sp-stack-img .sp-thumb { width: 112px; aspect-ratio: 4/3; }
.sp-stack-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sp-cat-inline { position: static; align-self: flex-start; font-size: 11.5px; padding: 3px 9px; }

/* 19 - خبر + قائمة مرقّمة */
.sp-herolist { display: grid; gap: 14px; }
.sp-hl-main { height: 265px; }
.sp-hl-list { background: var(--sp-card); border-radius: var(--sp-radius); padding: 12px 14px; }

/* 20 - شريط صور مربعة */
.sp-photo { background: var(--sp-card); border-radius: var(--sp-radius); padding: 9px; display: flex; flex-direction: column; gap: 8px; }
.sp-shadow-soft .sp-photo { box-shadow: 0 2px 12px rgba(16, 24, 40, .06); }
.sp-photo-img { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.sp-photo-img .sp-thumb { aspect-ratio: 1/1; }
.sp-photo-icon {
	position: absolute; top: 8px; inset-inline-end: 8px;
	width: 27px; height: 27px; border-radius: 50%;
	background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center;
}
.sp-photo-title { font-size: var(--sp-fs-small); margin: 0; padding: 0 3px; line-height: 1.6; }
.sp-photo .sp-meta { padding: 0 3px; }

/* ======================================================================
 * إصدار 1.1 — أشكال عناوين الأقسام الإضافية
 * =================================================================== */
.sp-sectitle-t6 .sp-section-title span {
	background: linear-gradient(90deg, var(--sp-primary), var(--sp-accent));
	color: #fff; padding: 8px 20px; border-radius: 999px; display: inline-block;
}
.sp-sectitle-t7 .sp-section-title { flex: 1; display: flex; align-items: center; gap: 14px; }
.sp-sectitle-t7 .sp-section-title::before,
.sp-sectitle-t7 .sp-section-title::after { content: ""; flex: 1; height: 2px; background: var(--sp-border); }
.sp-sectitle-t7 .sp-section-title span { white-space: nowrap; }

.sp-sectitle-t8 .sp-section-title { flex: 1; display: flex; align-items: center; }
.sp-sectitle-t8 .sp-section-title span {
	background: var(--sp-primary); color: #fff;
	padding: 9px 18px; border-radius: 10px; white-space: nowrap;
}
.sp-sectitle-t8 .sp-section-title::after {
	content: ""; flex: 1; height: 4px; border-radius: 4px;
	background: var(--sp-primary); opacity: .22; margin-inline-start: 10px;
}

.sp-sectitle-t9 .sp-section-head {
	background: var(--sp-nav-bg); border-radius: var(--sp-radius);
	padding: 11px 18px;
}
.sp-sectitle-t9 .sp-section-title { color: var(--sp-nav-tx); }
.sp-sectitle-t9 .sp-section-title span::before {
	content: ""; display: inline-block; width: 10px; height: 10px;
	border-radius: 50%; background: var(--sp-primary); margin-inline-end: 9px;
}
.sp-sectitle-t9 .sp-more { color: var(--sp-nav-tx); opacity: .85; }

/* ======================================================================
 * إصدار 1.1 — أشكال روابط القائمة الإضافية
 * =================================================================== */
.sp-menu-ribbon .sp-menu > li > a::after {
	content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px;
	background: var(--sp-primary); transform: scaleX(0); transition: transform .25s;
}
.sp-menu-ribbon .sp-menu > li:hover > a::after,
.sp-menu-ribbon .sp-menu > li.current-menu-item > a::after { transform: scaleX(1); }

.sp-menu-boxed .sp-menu > li { border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.sp-menu-boxed .sp-menu > li:first-child { border-inline-start: 0; }
.sp-menu-boxed .sp-menu > li > a { padding: 14px 20px; }
.sp-menu-boxed .sp-menu > li:hover > a,
.sp-menu-boxed .sp-menu > li.current-menu-item > a { background: rgba(255, 255, 255, .1); }
.sp-menu-boxed .sp-nav-inline .sp-menu > li { border-inline-start-color: var(--sp-border); }

.sp-menu-arrow .sp-menu > li > a::after {
	content: ""; position: absolute; bottom: 0; inset-inline-start: 50%;
	width: 0; height: 0; margin-inline-start: -7px;
	border: 7px solid transparent; border-bottom-color: var(--sp-bg);
	opacity: 0; transition: opacity .25s;
}
.sp-menu-arrow .sp-menu > li:hover > a::after,
.sp-menu-arrow .sp-menu > li.current-menu-item > a::after { opacity: 1; }
.sp-menu-arrow .sp-menu > li:hover > a { color: var(--sp-primary); }

.sp-menu-gradient .sp-menu > li > a { border-radius: 8px; margin: 5px 3px; transition: background .3s; }
.sp-menu-gradient .sp-menu > li:hover > a,
.sp-menu-gradient .sp-menu > li.current-menu-item > a {
	background: linear-gradient(120deg, var(--sp-primary), var(--sp-accent)); color: #fff;
}

/* ======================================================================
 * إصدار 1.1 — أشكال الهيدر الإضافية
 * =================================================================== */
.sp-header-search { flex: 1; max-width: 520px; margin-inline: 18px; }
.sp-header-search .sp-searchform { background: var(--sp-bg); }

.sp-header-h8 .sp-header-in { flex-direction: column; gap: 12px; text-align: center; }
.sp-header-h8 .sp-header-actions { margin: 0; position: absolute; inset-inline-end: 16px; top: 16px; }
.sp-header-h8 .sp-burger { position: absolute; inset-inline-start: 16px; top: 16px; }
.sp-header-h8 .sp-navbar { background: var(--sp-card); border-top: 1px solid var(--sp-border); border-bottom: 2px solid var(--sp-primary); }
.sp-header-h8 .sp-navbar .sp-menu > li > a { color: var(--sp-text); }
.sp-header-h8 .sp-navbar-in { justify-content: center; }

.sp-header-h9 .sp-header {
	background: linear-gradient(120deg, var(--sp-primary), var(--sp-primary-d) 70%, var(--sp-accent));
	color: #fff;
}
.sp-header-h9 .sp-logo-text, .sp-header-h9 .sp-tagline { color: #fff; }
.sp-header-h9 .sp-act, .sp-header-h9 .sp-burger { border-color: rgba(255, 255, 255, .35); color: #fff; }
.sp-header-h9 .sp-act:hover { background: #fff; color: var(--sp-primary); border-color: #fff; }
.sp-header-h9 .sp-navbar { background: rgba(0, 0, 0, .82); }

.sp-header-h10 .sp-header { border-bottom: 4px solid var(--sp-primary); }
.sp-header-h10 .sp-navbar { background: var(--sp-card); color: var(--sp-text); border-bottom: 1px solid var(--sp-border); }
.sp-header-h10 .sp-navbar .sp-menu > li > a { padding: 15px 20px; font-size: calc(var(--sp-fs-menu) + 1px); }
.sp-header-h10 .sp-navbar .sp-menu > li + li { border-inline-start: 1px solid var(--sp-border); }
.sp-header-h10 .sp-navbar .sp-menu > li:hover > a { color: var(--sp-primary); }

/* ======================================================================
 * إصدار 1.1 — الفوتر السادس
 * =================================================================== */
.sp-f6-top { margin-bottom: 20px; }
.sp-f6-cats {
	display: flex; flex-wrap: wrap; gap: 9px; justify-content: center;
	padding: 18px 0; margin-bottom: 24px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.sp-f6-cats a {
	display: inline-flex; align-items: center; gap: 7px;
	background: rgba(255, 255, 255, .07); padding: 7px 15px;
	border-radius: 999px; font-size: 13.5px; transition: background .2s;
}
.sp-f6-cats a span {
	background: var(--sp-primary); color: #fff; border-radius: 999px;
	padding: 1px 8px; font-size: 11.5px; font-weight: 700;
}
.sp-f6-cats a:hover { background: var(--sp-primary); color: #fff; }
.sp-f6-cols { grid-template-columns: repeat(3, 1fr); }

/* ======================================================================
 * إصدار 1.1 — الأشكال الجديدة داخل الشريط الجانبي
 * =================================================================== */
.sp-sidebar .sp-leadside,
.sp-sidebar .sp-duo-top,
.sp-sidebar .sp-bannerblock,
.sp-sidebar .sp-half,
.sp-sidebar .sp-halfgrid { grid-template-columns: 1fr; }
.sp-sidebar .sp-gridmix { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
.sp-sidebar .sp-gm-big { grid-column: span 2; grid-row: span 1; }
.sp-sidebar .sp-ls-main .sp-ov-lg,
.sp-sidebar .sp-lu-main .sp-ov-lg,
.sp-sidebar .sp-bn-item { height: 200px; min-height: 200px; }
.sp-sidebar .sp-duo-item { height: 170px; }
.sp-sidebar .sp-hl-main { height: 185px; }
.sp-sidebar .sp-stack-img { flex: 0 0 88px; }
.sp-sidebar .sp-stack-img .sp-thumb { width: 88px; }
.sp-sidebar .sp-tallgrid { grid-template-columns: 1fr; }
.sp-sidebar .sp-photostrip { grid-template-columns: repeat(2, 1fr); }
.sp-sidebar .sp-duo-list,
.sp-sidebar .sp-hl-list { background: transparent; padding: 0; }

/* الفوتر */
.sp-footer .sp-stack-item,
.sp-footer .sp-photo,
.sp-footer .sp-half,
.sp-footer .sp-duo-list,
.sp-footer .sp-hl-list { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.sp-footer .sp-photo-title a,
.sp-footer .sp-card-title a { color: var(--sp-footer-hd); }

@media (max-width: 1024px) {
	.sp-leadside, .sp-bannerblock { grid-template-columns: 1fr; }
	.sp-ls-main .sp-ov-lg, .sp-bn-item { min-height: 320px; height: 320px; }
	.sp-ls-side { grid-template-columns: repeat(2, 1fr); }
	.sp-gridmix { grid-template-columns: repeat(3, 1fr); }
	.sp-f6-cols { grid-template-columns: repeat(2, 1fr); }
	.sp-header-search { display: none; }
}

@media (max-width: 782px) {
	.sp-leadside, .sp-bannerblock, .sp-duo-top,
	.sp-tallgrid, .sp-halfgrid, .sp-stack, .sp-lu-grid { grid-template-columns: 1fr; }
	.sp-mcols-2 .sp-tallgrid, .sp-mcols-2 .sp-photostrip { grid-template-columns: repeat(2, 1fr); }
	.sp-ls-side { grid-template-columns: 1fr; }
	.sp-ls-main .sp-ov-lg, .sp-lu-main .sp-ov-lg, .sp-bn-item { height: 250px; min-height: 250px; }
	.sp-duo-item { height: 210px; }
	.sp-hl-main { height: 210px; }
	.sp-gridmix { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 125px; }
	.sp-gm-big { grid-column: span 2; grid-row: span 1; }
	.sp-photostrip { grid-template-columns: repeat(2, 1fr); }
	.sp-half { grid-template-columns: 1fr; }
	.sp-half-img { min-height: 170px; }
	.sp-stack-img { flex: 0 0 96px; }
	.sp-stack-img .sp-thumb { width: 96px; }
	.sp-ov-lg .sp-ov-title { font-size: calc(var(--sp-fs-card) + 3px); }
	.sp-ov-ex { display: none; }
	.sp-f6-cols { grid-template-columns: 1fr; }
	.sp-header-h8 .sp-header-in { flex-direction: row; text-align: start; }
	.sp-header-h8 .sp-header-actions, .sp-header-h8 .sp-burger { position: static; }
	.sp-sectitle-t7 .sp-section-title::before { display: none; }
}

/* ======================================================================
 * إصدار 1.2 — عرض الموقع واللوجو والإعلانات
 * =================================================================== */
:root {
	--sp-side-pad: 16px;
	--sp-header-pad: 16px;
	--sp-logo-h: auto;
	--sp-logo-hm: auto;
	--sp-logo-fit: contain;
}

.sp-container { padding-inline: var(--sp-side-pad); }
.sp-header-in { padding: var(--sp-header-pad) var(--sp-side-pad); }

.sp-logo-img {
	width: var(--sp-logo-w);
	height: var(--sp-logo-h);
	object-fit: var(--sp-logo-fit);
	max-width: 100%;
}

/* المساحات الإعلانية */
.sp-ad {
	margin: 18px auto;
	text-align: center;
	max-width: 100%;
	overflow: hidden;
	clear: both;
}
.sp-ad-in { display: block; max-width: 100%; }
.sp-ad-in img { max-width: 100%; height: auto; }
.sp-ad-label {
	display: block;
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--sp-muted);
	margin-bottom: 6px;
	text-transform: uppercase;
}
.sp-ad-header_top, .sp-ad-header_bottom, .sp-ad-nav_bottom,
.sp-ad-footer_top, .sp-ad-footer_bottom { margin: 0; padding: 14px var(--sp-side-pad); background: var(--sp-card); }
.sp-ad-header_top, .sp-ad-header_bottom, .sp-ad-nav_bottom { border-bottom: 1px solid var(--sp-border); }
.sp-ad-footer_top, .sp-ad-footer_bottom { border-top: 1px solid var(--sp-border); }
.sp-ad-sidebar_top { margin-top: 0; margin-bottom: var(--sp-gap); }
.sp-ad-sidebar_bottom { margin-bottom: 0; }
.sp-ad-before_title { margin-top: 0; }
.sp-ad-content_top { margin-top: 0; }
.sp-ad-content_bottom { margin-bottom: 0; }
.sp-entry .sp-ad { margin: 26px auto; }
.sp-dark .sp-ad-header_top, .sp-dark .sp-ad-header_bottom,
.sp-dark .sp-ad-footer_top, .sp-dark .sp-ad-footer_bottom { background: var(--sp-card); }

@media (max-width: 782px) {
	.sp-logo-img { width: var(--sp-logo-wm); height: var(--sp-logo-hm); }
	.sp-ad { margin: 14px auto; }
}

/* ======================================================================
 * إصدار 1.5 — صندوق تاريخ المقال و«منذ كذا»
 * =================================================================== */
:root {
	--sp-ago: #0a7d32;
	--sp-h2-size: 26px;
	--sp-h3-size: 21px;
	--sp-h2-color: #16181d;
	--sp-h3-color: #16181d;
	--sp-h2-accent: #d32f2f;
	--sp-h3-accent: #0d6efd;
	--sp-related-fs: 16px;
	--sp-related-gap: 18px;
}

.sp-datebox {
	display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
	margin: 12px 0 4px;
}
.sp-datebox-main {
	display: inline-flex; align-items: center; gap: 7px;
	border: 1px solid var(--sp-border); border-radius: 8px;
	padding: 7px 14px; font-size: 14px; font-weight: 600;
	color: var(--sp-text); background: var(--sp-bg);
	direction: rtl; unicode-bidi: isolate;
}
.sp-datebox-main .sp-icon { color: var(--sp-primary); }
.sp-ago {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--sp-ago);
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 700;
	background: color-mix(in srgb, var(--sp-ago) 12%, transparent);
	border-color: color-mix(in srgb, var(--sp-ago) 38%, transparent);
}
.sp-updated { font-size: 12.5px; color: var(--sp-muted); }
.sp-dark .sp-datebox-main { background: rgba(255, 255, 255, .04); }

/* ======================================================================
 * إصدار 1.5 — أشكال عناوين H2 و H3 داخل المقال
 * =================================================================== */
.sp-entry h2 { font-size: var(--sp-h2-size); color: var(--sp-h2-color); }
.sp-entry h3 { font-size: var(--sp-h3-size); color: var(--sp-h3-color); }
.sp-entry h2, .sp-entry h3 { line-height: 1.5; }

/* H2 */
.sp-h2-bar .sp-entry h2 { border-inline-start: 5px solid var(--sp-h2-accent); padding-inline-start: 12px; }
.sp-h2-under .sp-entry h2 { position: relative; padding-bottom: 10px; }
.sp-h2-under .sp-entry h2::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 64px; height: 4px; border-radius: 4px; background: var(--sp-h2-accent); }
.sp-h2-dash .sp-entry h2 { padding-bottom: 8px; border-bottom: 2px dashed var(--sp-h2-accent); display: table; }
.sp-h2-fill .sp-entry h2 { background: var(--sp-h2-accent); color: #fff; padding: 10px 16px; border-radius: 8px; }
.sp-h2-grad .sp-entry h2 { background: linear-gradient(90deg, var(--sp-h2-accent), transparent); color: #fff; padding: 10px 16px; border-radius: 8px; }
.sp-h2-soft .sp-entry h2 { background: color-mix(in srgb, var(--sp-h2-accent) 12%, transparent); padding: 10px 16px; border-radius: 10px; border-inline-start: 4px solid var(--sp-h2-accent); }
.sp-h2-box .sp-entry h2 { border: 2px solid var(--sp-h2-accent); padding: 10px 16px; border-radius: 10px; }
.sp-h2-dot .sp-entry h2::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--sp-h2-accent); margin-inline-end: 10px; vertical-align: middle; }
.sp-h2-ribbon .sp-entry h2 { display: table; background: var(--sp-h2-accent); color: #fff; padding: 9px 20px; transform: skewX(-10deg); }
.sp-h2-ribbon .sp-entry h2 > * { display: inline-block; transform: skewX(10deg); }
.sp-h2-quote .sp-entry h2 { position: relative; padding-inline-start: 42px; }
.sp-h2-quote .sp-entry h2::before { content: "”"; position: absolute; inset-inline-start: 0; top: -14px; font-size: 54px; line-height: 1; color: var(--sp-h2-accent); opacity: .55; }

/* H3 */
.sp-h3-bar .sp-entry h3 { border-inline-start: 4px solid var(--sp-h3-accent); padding-inline-start: 10px; }
.sp-h3-under .sp-entry h3 { position: relative; padding-bottom: 8px; }
.sp-h3-under .sp-entry h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--sp-h3-accent); }
.sp-h3-dash .sp-entry h3 { padding-bottom: 7px; border-bottom: 2px dashed var(--sp-h3-accent); display: table; }
.sp-h3-fill .sp-entry h3 { background: var(--sp-h3-accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.sp-h3-grad .sp-entry h3 { background: linear-gradient(90deg, var(--sp-h3-accent), transparent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.sp-h3-soft .sp-entry h3 { background: color-mix(in srgb, var(--sp-h3-accent) 12%, transparent); padding: 8px 14px; border-radius: 9px; border-inline-start: 4px solid var(--sp-h3-accent); }
.sp-h3-box .sp-entry h3 { border: 2px solid var(--sp-h3-accent); padding: 8px 14px; border-radius: 9px; }
.sp-h3-dot .sp-entry h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sp-h3-accent); margin-inline-end: 9px; vertical-align: middle; }
.sp-h3-ribbon .sp-entry h3 { display: table; background: var(--sp-h3-accent); color: #fff; padding: 7px 18px; transform: skewX(-10deg); }
.sp-h3-quote .sp-entry h3 { position: relative; padding-inline-start: 36px; }
.sp-h3-quote .sp-entry h3::before { content: "”"; position: absolute; inset-inline-start: 0; top: -12px; font-size: 44px; line-height: 1; color: var(--sp-h3-accent); opacity: .55; }

.sp-h2-fill .sp-entry h2 a, .sp-h2-grad .sp-entry h2 a, .sp-h2-ribbon .sp-entry h2 a,
.sp-h3-fill .sp-entry h3 a, .sp-h3-grad .sp-entry h3 a, .sp-h3-ribbon .sp-entry h3 a { color: #fff; }

/* ======================================================================
 * إصدار 1.5 — قسم «اقرأ أيضاً»
 * =================================================================== */
.sp-related-box {
	background: var(--sp-card); border-radius: var(--sp-radius);
	padding: 18px; margin-top: var(--sp-section-gap);
}
.sp-shadow-soft .sp-related-box { box-shadow: 0 2px 12px rgba(16, 24, 40, .06); }
.sp-shadow-border .sp-related-box { border: 1px solid var(--sp-border); }
.sp-related-desc { color: var(--sp-muted); font-size: 14px; margin: -8px 0 14px; }
.sp-related .sp-grid,
.sp-related .sp-list { gap: var(--sp-related-gap); }
.sp-related .sp-card-title,
.sp-related .sp-li-title,
.sp-related .sp-ov-title { font-size: var(--sp-related-fs); }
.sp-related .sp-card-ex { display: none; }
.sp-related.sp-has-ex .sp-card-ex { display: block; }

/* ======================================================================
 * إصدار 1.5.1 — سطر بيانات المقال (كتب: فلان + التاريخ + منذ كذا)
 * =================================================================== */
.sp-meta-row {
	display: flex; align-items: center; flex-wrap: wrap;
	gap: 10px 14px; flex: 1; min-width: 0;
}
.sp-meta-row .sp-meta { margin: 0; }
.sp-meta-row .sp-datebox { margin: 0; }
.sp-single-meta .sp-datebox-main { padding: 5px 12px; font-size: 13.5px; }
.sp-single-meta .sp-ago { padding: 5px 12px; font-size: 12.5px; }
.sp-by { font-weight: 700; color: var(--sp-text); }
.sp-m-author a { font-weight: 600; }
.sp-m-author a:hover { color: var(--sp-primary); }

@media (max-width: 600px) {
	.sp-meta-row { gap: 8px 10px; }
	.sp-single-meta .sp-datebox-main { font-size: 12.5px; padding: 5px 10px; }
}

/* ======================================================================
 * إصدار 1.6 — أشكال رأس المقال (الصورة + العنوان)
 * =================================================================== */
:root {
	--sp-hero-h: 500px;
	--sp-hero-hm: 300px;
	--sp-hero-dark: .22;
	--sp-box-bg: rgba(0, 0, 0, .45);
	--sp-box-blur: 6px;
	--sp-ov-title: #ffffff;
}

/* الصورة العادية: تظهر بمقاسها الأصلي بلا قص إلا إذا اخترت نسبة */
.sp-single-figure img { width: 100%; height: auto; display: block; border-radius: var(--sp-radius); }
.sp-fig-crop img { aspect-ratio: var(--sp-fig-ratio, 16/9); object-fit: cover; }

/* الحاوية البطلة لأشكال التراكب */
.sp-hero {
	position: relative; overflow: hidden;
	border-radius: var(--sp-radius);
	height: var(--sp-hero-h); margin-bottom: 14px;
}
.sp-hero > img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; display: block;
}
.sp-hero-shade {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(to top,
		rgba(0, 0, 0, calc(var(--sp-hero-dark) + .3)) 0%,
		rgba(0, 0, 0, var(--sp-hero-dark)) 45%,
		rgba(0, 0, 0, 0) 100%);
}
.sp-hero-wrap {
	position: absolute; inset: 0; z-index: 2;
	display: flex; align-items: flex-end;
	padding: 22px;
}
.sp-hero-box {
	background: var(--sp-box-bg);
	backdrop-filter: blur(var(--sp-box-blur));
	-webkit-backdrop-filter: blur(var(--sp-box-blur));
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--sp-radius);
	padding: 18px 22px; max-width: 860px; width: 100%;
}
.sp-hero-box .sp-single-title { color: var(--sp-ov-title); margin: 8px 0 10px; }
.sp-hero-box .sp-single-meta { border: 0; padding: 0; margin: 0; }
.sp-hero-box .sp-meta,
.sp-hero-box .sp-meta a,
.sp-hero-box .sp-by { color: rgba(255, 255, 255, .92); }
.sp-hero-box .sp-datebox-main {
	background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25);
	color: #fff;
}
.sp-hero-box .sp-datebox-main .sp-icon { color: #fff; }
.sp-hero-box .sp-cat-single { margin: 0; }

.sp-box-center .sp-hero-wrap { align-items: center; justify-content: center; text-align: center; }
.sp-box-center .sp-hero-box { max-width: 760px; }
.sp-box-center .sp-meta-row { justify-content: center; }
.sp-box-end .sp-hero-wrap { justify-content: flex-end; }

.sp-hero-caption { color: var(--sp-muted); font-size: 13px; text-align: center; margin: -6px 0 12px; }
.sp-resizer-alone { margin: 6px 0 14px; }

/* 3 - صورة بعرض الشاشة */
.sp-sh-s3 .sp-hero {
	border-radius: 0; width: 100vw;
	position: relative; left: 50%; right: 50%;
	margin-left: -50vw; margin-right: -50vw;
}
.sp-sh-s3 .sp-hero-wrap { padding: 26px max(22px, calc((100vw - var(--sp-container)) / 2)); }

/* 4 - الصندوق في المنتصف */
.sp-sh-s4 .sp-hero-wrap { align-items: center; justify-content: center; text-align: center; }
.sp-sh-s4 .sp-hero-box { max-width: 720px; }
.sp-sh-s4 .sp-meta-row { justify-content: center; }

/* 5 - الصورة بجانب العنوان */
.sp-sh-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--sp-gap); align-items: center; }
.sp-sh-split-img .sp-single-figure { margin: 0; }
.sp-sh-split-img img { aspect-ratio: 4/3; object-fit: cover; }
.sp-sh-split-body .sp-single-title { margin-top: 6px; }

/* 6 - عنوان في المنتصف ثم الصورة */
.sp-sh-s6 { text-align: center; }
.sp-sh-s6 .sp-meta-row { justify-content: center; }
.sp-sh-s6 .sp-single-meta { justify-content: center; }
.sp-sh-s6 .sp-cat-single { margin-inline: auto; }

/* 7 - صندوق متداخل فوق الصورة */
.sp-sh-s7 .sp-hero-wrap { align-items: flex-end; padding: 0; }
.sp-sh-s7 .sp-hero { overflow: visible; margin-bottom: 0; }
.sp-sh-s7 .sp-hero > img { border-radius: var(--sp-radius); }
.sp-sh-s7 .sp-hero-shade { border-radius: var(--sp-radius); }
.sp-sh-s7 .sp-hero-box {
	transform: translateY(42px); margin-inline: 24px;
	background: var(--sp-card); color: var(--sp-text);
	border-color: var(--sp-border);
	backdrop-filter: none; -webkit-backdrop-filter: none;
	box-shadow: 0 14px 34px rgba(16, 24, 40, .18);
}
.sp-sh-s7 .sp-hero-box .sp-single-title { color: var(--sp-text); }
.sp-sh-s7 .sp-hero-box .sp-meta,
.sp-sh-s7 .sp-hero-box .sp-meta a,
.sp-sh-s7 .sp-hero-box .sp-by { color: var(--sp-muted); }
.sp-sh-s7 .sp-hero-box .sp-datebox-main { background: var(--sp-bg); border-color: var(--sp-border); color: var(--sp-text); }
.sp-sh-s7 .sp-hero-box .sp-datebox-main .sp-icon { color: var(--sp-primary); }
.sp-sh-s7 + .sp-entry, .sp-sh-s7 ~ .sp-entry { margin-top: 58px; }

@media (max-width: 782px) {
	.sp-hero { height: var(--sp-hero-hm); }
	.sp-hero-wrap { padding: 14px; }
	.sp-hero-box { padding: 14px; }
	.sp-sh-s3 .sp-hero-wrap { padding: 14px 18px; }
	.sp-sh-split { grid-template-columns: 1fr; }
	.sp-sh-s7 .sp-hero-box { transform: translateY(26px); margin-inline: 12px; }
	.sp-sh-s7 ~ .sp-entry { margin-top: 40px; }
}
