/* ==========================================================================
   مدار — التنسيقات الرئيسية (RTL)
   القيم القابلة للتعديل تأتي من لوحة التخصيص كمتغيرات CSS في :root
   ========================================================================== */

:root {
	--c-primary: #0B2447;
	--c-secondary: #1E5AA8;
	--c-accent: #F2A900;
	--c-bg: #F3F5F9;
	--c-surface: #fff;
	--c-text: #1B2333;
	--c-muted: #5B6475;
	--c-heading: #0B2447;
	--c-link: #1E5AA8;
	--c-border: #E2E7F0;
	--radius: 12px;
	--btn-radius: 10px;
	--container: 1240px;
	--section-gap: 44px;
	--fs-base: 16px;
	--fs-h1: 38px;
	--fs-h2: 28px;
	--fs-h3: 20px;
	--fw-head: 700;
	--lh-article: 1.9;
	--thumb-ratio: 16/10;
	--gutter: clamp(16px, 4vw, 32px);
	--scale-h: 1;
	--scale-s: 1;
	--gap: calc(24px * var(--scale-s));
	--shadow: 0 1px 2px rgba(11, 36, 71, .06), 0 8px 24px rgba(11, 36, 71, .07);
	--font-body: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
	--font-head: var(--font-body);
	--article-fs: 1.0625em;
}
@media (max-width: 1279px) { :root { --scale-h: .94; --scale-s: .95; } }
@media (max-width: 1023px) { :root { --scale-h: .84; --scale-s: .85; } }
@media (max-width: 767px)  { :root { --scale-h: .72; --scale-s: .75; } }
@media (max-width: 479px)  { :root { --scale-h: .64; --scale-s: .7; } }

html[data-theme="dark"] {
	--c-border: rgba(255, 255, 255, .1);
	--c-muted: #9AA6BC;
	--c-link: #7FB2FF;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
	color-scheme: dark;
}

/* ---------- الأساس ---------- */
*, *::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: var(--fs-base);
	line-height: 1.7;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-secondary); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: var(--fw-head);
	color: var(--c-heading);
	line-height: 1.45;
	margin: 0 0 .6em;
}
h1 { font-size: calc(var(--fs-h1) * var(--scale-h)); }
h2 { font-size: calc(var(--fs-h2) * var(--scale-h)); }
h3 { font-size: calc(var(--fs-h3) * var(--scale-h)); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; right: 8px;
	background: var(--c-surface); padding: 10px 16px; border-radius: 8px;
}
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }
.layout-boxed .site { max-width: calc(var(--container) + 48px); margin-inline: auto; background: var(--c-bg); box-shadow: 0 0 40px rgba(0, 0, 0, .08); }
.ico { flex: none; vertical-align: middle; }

/* ---------- الأزرار ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--btn-bg); color: var(--btn-text);
	border: 0; border-radius: var(--btn-radius);
	padding: 12px 22px; font-weight: 700; cursor: pointer; line-height: 1.4;
	transition: background .2s, transform .2s, color .2s;
}
.btn:hover { background: var(--btn-hover); color: var(--btn-text); }
.btn:active { transform: translateY(1px); }
.btn-alt { background: var(--btn-alt); color: var(--btn-alt-text); }
.btn-alt:hover { background: #fff; color: var(--c-primary); }
.btn-ghost { background: transparent; color: var(--c-primary); box-shadow: inset 0 0 0 2px var(--c-border); }
.btn-ghost:hover { background: var(--c-primary); color: #fff; }
html[data-theme="dark"] .btn-ghost { color: var(--c-text); }
.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px;
	border: 0; background: transparent; color: inherit; border-radius: 10px; cursor: pointer;
}
.icon-btn:hover { background: rgba(127, 140, 160, .14); }

/* ---------- الشريط العلوي ---------- */
.topbar { background: var(--c-topbar); color: var(--tb-text, #C7D0E0); font-size: var(--tb-fs, 13px); }
.topbar.has-line { border-bottom: 2px solid var(--tb-line, var(--c-accent)); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: var(--tb-h, 38px); flex-wrap: wrap; }
.topbar.align-reverse .topbar-row { flex-direction: row-reverse; }
.topbar.align-center .topbar-row { justify-content: center; }
.topbar-start, .topbar-end { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; min-width: 0; }
.topbar-date, .topbar-clock, .topbar-text, .topbar-contact { display: inline-flex; align-items: center; gap: 6px; }
.topbar .ico { color: var(--tb-icon, var(--c-accent)); }
.topbar-clock time { font-weight: 700; font-variant-numeric: tabular-nums; }
.top-nav ul { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; }
.topbar a { color: inherit; }
.topbar a:hover { color: var(--tb-hover, #fff); }
.topbar a:hover .ico { color: inherit; }
.topbar-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: var(--btn-radius);
	background: var(--tb-btn-bg, var(--c-accent)); color: var(--tb-btn-text, var(--c-primary)) !important; font-weight: 700; line-height: 1.6;
}
.topbar-btn .ico { color: inherit; }
.topbar-btn:hover { filter: brightness(1.08); }
.social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.social a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: inherit; }
.social-top { gap: 4px; }
.social-top a { width: calc(var(--tb-social, 15px) + 14px); height: calc(var(--tb-social, 15px) + 14px); }
.social-top .ico { color: inherit; }
.social-top.social-square a { background: rgba(255, 255, 255, .08); border-radius: 6px; }
.social-top.social-circle a { background: rgba(255, 255, 255, .08); border-radius: 50%; }
.social-top a:hover { background: rgba(255, 255, 255, .14); color: var(--tb-hover, #fff); }

/* ---------- الهيدر ---------- */
.header-main { background: var(--c-header); color: var(--c-header-text); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: calc(22px * var(--scale-s)); }
.header-center .header-row { flex-direction: column; text-align: center; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; min-width: 0; }
.site-brand:hover { color: inherit; }
.site-brand .custom-logo { width: var(--logo-w); max-width: 100%; height: auto; }
.site-brand .logo-mark { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-head); font-size: calc(30px * var(--scale-h)); font-weight: 800; line-height: 1.5; margin: 0; color: inherit; }
.brand-desc { font-size: 13px; opacity: .78; line-height: 1.6; }
.header-side { display: flex; align-items: center; gap: 16px; min-width: 0; }
.header-cta-box { display: flex; align-items: center; gap: 14px; }
.cta-hint { font-size: 14px; opacity: .8; }
.header-side .ad-slot { margin: 0; max-width: 728px; }

/* ---------- شريط القائمة ---------- */
.nav-bar { background: var(--c-nav); color: var(--c-nav-text); border-bottom: 1px solid var(--c-border); position: relative; z-index: 40; }
.has-sticky-nav .nav-bar { position: sticky; top: 0; }
.admin-bar.has-sticky-nav .nav-bar { top: 32px; }
.nav-bar.is-stuck { box-shadow: 0 6px 18px rgba(11, 36, 71, .1); }
.nav-bar.has-top-line { border-top: 3px solid var(--nav-top, var(--c-accent)); }
.nav-row { display: flex; align-items: center; gap: 8px; min-height: var(--nav-h, 56px); }
.nav-mini-brand { display: none; align-items: center; gap: 8px; color: var(--c-nav-text); font-weight: 800; font-family: var(--font-head); }
.nav-bar.is-stuck .nav-mini-brand { display: inline-flex; }
.nav-mini-brand svg { width: 30px; height: 30px; border-radius: 8px; }
.primary-nav { flex: 1; min-width: 0; }
.primary-nav .menu { display: flex; align-items: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a {
	display: flex; align-items: center; gap: 6px; padding: max(8px, calc((var(--nav-h, 56px) - 1.6em) / 2)) 14px; color: var(--c-nav-text);
	font-weight: var(--nav-fw, 700); font-family: var(--font-head); font-size: var(--nav-fs, 15px); line-height: 1.6; position: relative;
}
.primary-nav .menu > li > a:hover { color: var(--nav-hover, var(--c-nav-text)); }
.nav-align-center .primary-nav .menu { justify-content: center; }
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; inset-inline: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
	background: var(--nav-line, var(--c-accent)); transform: scaleX(0); transition: transform .2s;
}
.primary-nav .menu > li:hover > a::after,
.primary-nav .menu > .current-menu-item > a::after,
.primary-nav .menu > .current-cat > a::after { transform: scaleX(1); }
.menu-home .home-label { display: none; }
.primary-nav .sub-menu, .primary-nav .children {
	position: absolute; top: 100%; right: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px;
	background: var(--c-surface); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--c-border);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 50;
}
.primary-nav .sub-menu .sub-menu { top: 0; right: 100%; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { padding: 10px 12px; border-radius: 8px; font-size: 14.5px; }
.primary-nav .sub-menu a:hover { background: var(--c-bg); }
.nav-tools { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.menu-toggle, .mobile-nav-head, .mobile-nav-extra { display: none; }
.theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: inline; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.search-panel { border-top: 1px solid var(--c-border); background: var(--c-nav); padding-block: 14px; }
.search-panel[hidden] { display: none; }

/* نموذج البحث */
.search-form { display: flex; position: relative; max-width: 640px; width: 100%; }
.search-field {
	flex: 1; min-width: 0; height: 50px; padding: 0 18px 0 56px; border-radius: var(--btn-radius);
	border: 2px solid var(--c-border); background: var(--c-surface); color: var(--c-text);
}
.search-field:focus { outline: none; border-color: var(--c-secondary); }
.search-submit {
	position: absolute; left: 5px; top: 5px; width: 40px; height: 40px; border: 0; border-radius: calc(var(--btn-radius) - 2px);
	background: var(--btn-bg); color: var(--btn-text); display: grid; place-items: center; cursor: pointer;
}

/* ---------- شريط العاجل ---------- */
.ticker { background: var(--tk-bg, var(--c-surface)); font-size: var(--tk-fs, 15px); }
.ticker.has-line { border-bottom: 1px solid var(--c-border); }
.ticker-row { display: flex; align-items: stretch; min-height: var(--tk-h, 44px); overflow: hidden; }
.ticker-label {
	display: inline-flex; align-items: center; gap: 8px; flex: none; background: var(--c-breaking); color: var(--tk-label-text, #fff);
	padding: 0 16px; font-weight: 800; font-family: var(--font-head); position: relative; z-index: 2; white-space: nowrap;
}
.ticker-label .ico { color: inherit; }
.label-arrow .ticker-label { padding-inline-end: 26px; clip-path: polygon(100% 0, 100% 100%, 14px 100%, 0 50%, 14px 0); }
.label-badge .ticker-row { align-items: center; }
.label-badge .ticker-label { border-radius: 999px; padding: 4px 14px; margin-inline-end: 6px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: madar-pulse 1.4s infinite; }
@keyframes madar-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
.ticker-viewport { flex: 1; overflow: hidden; position: relative; min-width: 0; display: flex; align-items: center; mask-image: linear-gradient(to left, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.ticker-track { display: flex; width: max-content; animation: madar-ticker var(--ticker-speed, 45s) linear infinite; }
.dir-reverse .ticker-track { animation-direction: reverse; }
.ticker.can-pause:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes madar-ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
.ticker-list { display: flex; list-style: none; margin: 0; padding: 0; flex: none; }
.ticker-list li { display: flex; align-items: center; white-space: nowrap; }
.ticker-list a { color: var(--tk-text, var(--c-text)); font-weight: 600; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px; }
.ticker-list a:hover { color: var(--tk-hover, var(--c-breaking)); }
.ticker-list li::before { content: ""; width: 6px; height: 6px; background: var(--tk-sep, var(--c-accent)); border-radius: 50%; flex: none; }
.sep-diamond .ticker-list li::before { width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); }
.sep-bar .ticker-list li::before { width: 2px; height: 1.1em; border-radius: 2px; }
.sep-none .ticker-list li::before { display: none; }
.ticker-list time { color: var(--tk-time, var(--c-breaking)); font-size: .85em; font-weight: 700; direction: ltr; }
/* وضع التبدّل والوضع الثابت */
.mode-slide .ticker-track, .mode-static .ticker-track { animation: none; width: auto; min-width: 0; }
.mode-slide .ticker-viewport, .mode-static .ticker-viewport { mask-image: none; }
.mode-slide .ticker-track { flex: 1; }
.mode-slide .ticker-list { flex: 1; min-width: 0; }
.mode-slide .ticker-list li { display: none; min-width: 0; }
.mode-slide .ticker-list li.is-active { display: flex; animation: madar-fade .45s ease; }
.mode-slide .ticker-list li::before { display: none; }
.mode-slide .ticker-list a { min-width: 0; padding-inline: 16px; }
.mode-slide .ticker-title { overflow: hidden; text-overflow: ellipsis; }
@keyframes madar-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mode-static .ticker-viewport { overflow-x: auto; scrollbar-width: none; }
.mode-static .ticker-viewport::-webkit-scrollbar { display: none; }
.ticker-nav { display: flex; align-items: center; gap: 4px; flex: none; padding-inline-start: 6px; }
.ticker-nav button { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--c-border); border-radius: 8px; background: transparent; color: var(--tk-text, var(--c-text)); cursor: pointer; }
.ticker-nav button:hover { background: var(--c-breaking); border-color: var(--c-breaking); color: var(--tk-label-text, #fff); }
@media (prefers-reduced-motion: reduce) { .ticker-track, .markets-track { animation: none !important; } .ticker-viewport, .markets-viewport { overflow-x: auto; } }

/* ---------- شريط الأسواق ---------- */
.markets { background: var(--mk-bg, var(--c-primary)); color: var(--mk-text, #DCE4F2); font-size: var(--mk-fs, 14px); }
html[data-theme="dark"] .markets:not(.custom-bg) { background: #0d1a30; }
.markets-row { display: flex; align-items: center; gap: 16px; min-height: var(--mk-h, 40px); overflow: hidden; }
.markets-label { display: inline-flex; align-items: center; gap: 6px; color: var(--mk-label, var(--c-accent)); font-weight: 800; flex: none; }
.markets-label .ico { color: inherit; }
.markets-viewport { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.markets-viewport::-webkit-scrollbar { display: none; }
.markets-track { display: flex; width: max-content; }
.markets.is-animated .markets-viewport { overflow: hidden; mask-image: linear-gradient(to left, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%); }
.markets.is-animated .markets-track { animation: madar-ticker var(--mk-speed, 40s) linear infinite; }
.markets.is-animated:hover .markets-track { animation-play-state: paused; }
.markets-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 4px 0; flex: none; }
.markets.is-animated .markets-list { padding-inline-end: 22px; }
.mk { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.markets.has-sep .mk + .mk, .markets.has-sep.is-animated .mk { padding-inline-start: 22px; border-inline-start: 1px solid rgba(255, 255, 255, .14); }
.markets.has-sep.is-animated .mk:first-child { border-inline-start: 0; }
.mk-name { color: var(--mk-name, #fff); font-weight: 600; }
.mk-chg { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; direction: ltr; }
.mk-val { direction: ltr; }
.mk.up .mk-chg { color: var(--c-up, #34D399); }
.mk.down .mk-chg { color: var(--c-down, #F87171); }
.mk.flat .mk-chg { color: var(--mk-flat, #CBD5E1); }
.chg-badge .mk-chg { padding: 1px 8px; border-radius: 6px; color: #fff !important; font-size: .9em; }
.chg-badge .mk.up .mk-chg { background: var(--c-up, #34D399); }
.chg-badge .mk.down .mk-chg { background: var(--c-down, #F87171); }
.chg-badge .mk.flat .mk-chg { background: rgba(255, 255, 255, .16); }
.markets-note { font-size: 12px; opacity: .65; flex: none; }

/* ---------- البطاقات ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.cards-shadow .card:not(.card-overlay):not(.card-mini) { box-shadow: var(--shadow); }
.cards-border .card:not(.card-overlay):not(.card-mini) { border: 1px solid var(--c-border); }
.card-thumb { display: block; position: relative; aspect-ratio: var(--thumb-ratio); overflow: hidden; background: #dfe6f1; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }
.thumb-ph {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--cat, var(--c-secondary)) 55%, #fff 0%), var(--c-primary));
}
.thumb-ph .logo-mark { opacity: .9; box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); border-radius: 14px; }
.format-badge { position: absolute; inset: auto auto 12px 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; font-size: 13px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: calc(18px * var(--scale-h) + 2px); line-height: 1.55; margin: 0; }
.card-title a { color: var(--c-heading); }
.card-title a:hover { color: var(--c-secondary); }
.card-excerpt { color: var(--c-muted); font-size: .94em; margin: 0; line-height: 1.75; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--c-muted); margin-top: auto; }
.card-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--c-secondary); }
.cat-badge {
	align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 800; line-height: 1.5;
	padding: 3px 10px; border-radius: 6px; color: #fff; background: var(--cat, var(--c-secondary));
}
.cat-badge:hover { color: #fff; filter: brightness(1.1); }

/* قائمة أفقية */
.card-list { flex-direction: row; align-items: stretch; }
.card-list .card-thumb { width: 38%; max-width: 300px; flex: none; aspect-ratio: auto; min-height: 160px; }
.card-list .card-thumb img { position: absolute; inset: 0; }
.card-list.no-image .card-body { padding-block: 18px; }

/* بطاقة صغيرة */
.card-mini { flex-direction: row; gap: 14px; background: transparent; border-radius: 0; align-items: center; }
.card-mini + .card-mini { border-top: 1px solid var(--c-border); padding-top: 14px; }
.card-mini .card-thumb { width: 108px; flex: none; border-radius: calc(var(--radius) - 4px); aspect-ratio: 4/3; }
.card-mini .card-body { padding: 0; gap: 6px; }
.card-mini .card-title { font-size: 15.5px; }
.card-mini .thumb-ph .logo-mark { width: 34px; height: 34px; }

/* نص فوق الصورة */
.card-overlay { min-height: 220px; color: #fff; }
.card-overlay .card-thumb { position: absolute; inset: 0; aspect-ratio: auto; }
.card-overlay .card-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 14, 32, .92) 0%, rgba(5, 14, 32, .45) 50%, rgba(5, 14, 32, .05) 100%); }
.card-overlay .card-body { position: relative; z-index: 2; margin-top: auto; flex: 0; padding: 18px; pointer-events: none; }
.card-overlay .card-body a { pointer-events: auto; }
.card-overlay .card-title a, .card-overlay .card-meta, .card-overlay .card-excerpt { color: #fff; }
.card-overlay .card-excerpt { opacity: .85; }
.card-overlay .card-meta { opacity: .85; }

/* ---------- عناوين الأقسام ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--c-border); }
.sec-title { margin: 0; font-size: calc(22px * var(--scale-h) + 2px); position: relative; }
.sec-title span { display: inline-block; padding-bottom: 10px; position: relative; }
.sec-title span::after { content: ""; position: absolute; right: 0; left: 0; bottom: -2px; height: 3px; background: var(--cat, var(--c-accent)); border-radius: 3px; }
.sec-title span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--cat, var(--c-primary)); margin-inline-end: 10px; vertical-align: middle; }
.sec-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--c-muted); padding-bottom: 8px; }
.sec-more:hover { color: var(--cat, var(--c-secondary)); }

/* ---------- البطل ---------- */
.featured { padding-block: calc(var(--section-gap) * .6) 0; }
.featured-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.featured-main .card-overlay { height: 100%; min-height: clamp(320px, 42vw, 520px); }
.featured-main .card-title { font-size: calc(30px * var(--scale-h)); line-height: 1.5; }
.featured-main .card-body { padding: clamp(18px, 3vw, 32px); }
.featured-mosaic .featured-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.featured-mosaic .featured-side .card-overlay { min-height: 200px; }
.featured-mosaic .featured-side .card-title { font-size: 16px; }
.featured-big-list .featured-side { background: var(--c-surface); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }

.welcome-hero {
	color: #fff; padding-block: clamp(56px, 9vw, 120px); text-align: center;
	background: radial-gradient(circle at 80% 0%, rgba(30, 90, 168, .65), transparent 55%), var(--hero-img, none) center/cover, var(--c-primary);
	position: relative;
}
.welcome-hero::before { content: ""; position: absolute; inset: 0; background: rgba(7, 24, 51, .55); }
.welcome-hero .container { position: relative; max-width: 820px; }
.welcome-title { color: #fff; font-size: calc(var(--fs-h1) * var(--scale-h) + 4px); }
.welcome-hero p { font-size: 1.1em; opacity: .9; }
.kicker { display: inline-block; font-weight: 800; color: var(--c-accent); font-size: 14px; margin-bottom: 10px; letter-spacing: 0; }

/* ---------- أعمدة الرئيسية ---------- */
.home-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(32px * var(--scale-s)); padding-block: var(--section-gap); }
.home-columns.has-aside { grid-template-columns: minmax(0, 1fr) 340px; }
.sidebar-right .home-columns.has-aside .home-aside { order: -1; }
.home-main { display: flex; flex-direction: column; gap: var(--section-gap); min-width: 0; }
.home-block { min-width: 0; }
.block-posts { display: grid; gap: var(--gap); }
.layout-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.layout-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.layout-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.layout-list { grid-template-columns: 1fr; }
.layout-overlay { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.layout-overlay .card-overlay { min-height: 260px; }
.layout-big-list { grid-template-columns: 1.1fr 1fr; align-items: start; }
.bl-list { display: flex; flex-direction: column; gap: 14px; background: var(--c-surface); padding: 16px; border-radius: var(--radius); }
.cards-shadow .bl-list { box-shadow: var(--shadow); }
.center-more { text-align: center; margin-top: 22px; }
.ad-slot { margin-block: 18px; text-align: center; overflow: hidden; }
.ad-label { display: block; font-size: 11px; color: var(--c-muted); margin-bottom: 4px; }

/* ---------- الشريط الجانبي والودجات ---------- */
.sidebar { min-width: 0; }
.sidebar-inner { display: flex; flex-direction: column; gap: 22px; }
.sticky-sidebar .sidebar-inner { position: sticky; top: 76px; }
.widget { background: var(--c-surface); border-radius: var(--radius); padding: 20px; min-width: 0; }
.cards-shadow .widget { box-shadow: var(--shadow); }
.cards-border .widget { border: 1px solid var(--c-border); }
.widget-title { font-size: 18px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--c-border); }
.widget-title span { position: relative; padding-bottom: 10px; }
.widget-title span::after { content: ""; position: absolute; right: 0; left: 0; bottom: -12px; height: 3px; background: var(--c-accent); border-radius: 3px; }
.widget ul, .widget ol { margin: 0; padding: 0; list-style: none; }
.widget ul li { padding: 7px 0; border-bottom: 1px dashed var(--c-border); }
.widget ul li:last-child { border-bottom: 0; }
.widget .newsletter { padding: 0; background: none; box-shadow: none; }
.mini-list li { padding: 0 !important; border: 0 !important; }
.mini-list li + li { border-top: 1px solid var(--c-border) !important; }
.mini-link { display: flex; gap: 12px; align-items: center; padding: 12px 0; color: var(--c-text); }
.mini-list li:first-child .mini-link { padding-top: 0; }
.mini-thumb { width: 84px; flex: none; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; position: relative; background: #dfe6f1; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-thumb .logo-mark { width: 30px; height: 30px; }
.mini-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-title { font-weight: 700; font-family: var(--font-head); line-height: 1.55; font-size: 15px; }
.mini-link:hover .mini-title { color: var(--c-secondary); }
.mini-date { font-size: 12px; color: var(--c-muted); }
.mini-list.numbered { counter-reset: mr; }
.mini-list.numbered .mini-link::before {
	counter-increment: mr; content: counter(mr); flex: none; width: 38px; height: 38px; border-radius: 10px;
	display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--c-primary);
	background: color-mix(in srgb, var(--c-accent) 22%, transparent); font-family: var(--font-head);
}
html[data-theme="dark"] .mini-list.numbered .mini-link::before { color: var(--c-accent); }
.social-boxes { gap: 8px; }
.social-boxes li { border: 0 !important; padding: 0 !important; }
.social-boxes a { width: 42px; height: 42px; border-radius: 10px; background: var(--c-bg); color: var(--c-primary); }
.social-boxes a:hover { background: var(--c-primary); color: #fff; }
html[data-theme="dark"] .social-boxes a { color: var(--c-text); }

/* ---------- النشرة ---------- */
.newsletter {
	background: linear-gradient(135deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 70%, var(--c-secondary)));
	color: #fff; border-radius: var(--radius); padding: 26px 22px; text-align: center; position: relative; overflow: hidden;
}
.widget .newsletter.compact { padding: 24px 18px; background: linear-gradient(135deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 70%, var(--c-secondary))); }
.nl-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c-accent); color: var(--c-primary); margin-bottom: 10px; }
.nl-title { color: #fff; font-size: 20px; margin-bottom: 6px; }
.nl-text { opacity: .85; font-size: 14.5px; }
.nl-form { display: flex; flex-direction: column; gap: 10px; position: relative; }
.nl-form input[type="email"] { height: 48px; border-radius: var(--btn-radius); border: 0; padding: 0 16px; background: #fff; color: #1B2333; width: 100%; direction: rtl; }
.nl-band { padding-block: var(--section-gap); }
.nl-band .newsletter { max-width: 760px; margin-inline: auto; }
.nl-band .nl-form { flex-direction: row; max-width: 520px; margin-inline: auto; }

/* الحقل الفخ — لا نستخدم left:-9999px لأنه يسبب تمريراً أفقياً في RTL */
.contact-form, .nl-form { position: relative; }
.hp-wrap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.form-notice { padding: 12px 14px; border-radius: 10px; font-weight: 700; font-size: 14.5px; margin-bottom: 12px; }
.form-notice.ok { background: #DCFCE7; color: #14532D; }
.form-notice.err { background: #FEE2E2; color: #7F1D1D; }

/* ---------- اخترنا لك / الخدمات / من نحن / التواصل ---------- */
.picks { padding-block: var(--section-gap); background: var(--c-surface); border-block: 1px solid var(--c-border); }
.services { padding-block: var(--section-gap); }
.center-head { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.center-head p { color: var(--c-muted); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }
.service { background: var(--c-surface); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--c-border); transition: transform .25s, box-shadow .25s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--c-primary); color: var(--c-accent); margin-bottom: 14px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--c-muted); margin: 0; font-size: .95em; }

.about { padding-block: var(--section-gap); background: var(--c-surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.about-media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.about-art {
	position: relative; aspect-ratio: 4/3; border-radius: calc(var(--radius) + 8px); overflow: hidden;
	background: radial-gradient(circle at 70% 30%, rgba(30, 90, 168, .8), transparent 60%), var(--c-primary);
	display: grid; place-items: center;
}
.about-art .logo-mark { width: 120px; height: 120px; position: relative; z-index: 2; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); border-radius: 30px; }
.orbit { position: absolute; border: 2px dashed rgba(255, 255, 255, .22); border-radius: 50%; }
.orbit.o1 { width: 62%; aspect-ratio: 1; }
.orbit.o2 { width: 92%; aspect-ratio: 1; border-color: rgba(242, 169, 0, .35); }
.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--c-primary); font-weight: 800; font-size: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.chip .ico { color: var(--c-secondary); }
.chip.c1 { top: 14%; right: 10%; } .chip.c2 { bottom: 16%; right: 16%; } .chip.c3 { top: 42%; left: 8%; }
.about-body p { color: var(--c-muted); font-size: 1.05em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0; margin: 22px 0 26px; }
.stats li { background: var(--c-bg); border-radius: var(--radius); padding: 14px 10px; text-align: center; display: flex; flex-direction: column; }
.stat-num { font-size: calc(26px * var(--scale-h) + 2px); font-weight: 800; color: var(--c-primary); font-family: var(--font-head); line-height: 1.4; }
html[data-theme="dark"] .stat-num { color: var(--c-accent); }
.stats span { font-size: 13px; color: var(--c-muted); }

.contact-sec { padding-block: var(--section-gap); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-info p { color: var(--c-muted); }
.info-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.info-list li { display: flex; align-items: center; gap: 10px; }
.info-list .ico { color: var(--c-secondary); }
.contact-box { background: var(--c-surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; }
.req { color: var(--c-breaking); }
.field input, .field select, .field textarea,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 1.5px solid var(--c-border); border-radius: 10px; padding: 11px 14px; background: var(--c-bg); color: var(--c-text);
}
.field input:focus, .field select:focus, .field textarea:focus, .comment-form textarea:focus { outline: none; border-color: var(--c-secondary); background: var(--c-surface); }
.field input[dir="ltr"] { text-align: right; }

/* ---------- صفحات القوائم ---------- */
.page-hero { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding-block: calc(30px * var(--scale-s)); position: relative; }
.page-hero::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--cat, var(--c-accent)); }
.page-title { margin: 6px 0 4px; }
.page-desc { color: var(--c-muted); }
.page-desc p { margin: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--c-muted); }
.breadcrumbs li + li::before { content: "‹"; margin-inline-end: 6px; opacity: .6; }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-secondary); }
.content-area { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: calc(32px * var(--scale-s)); padding-block: calc(var(--section-gap) * .8) var(--section-gap); }
.no-sidebar .content-area { grid-template-columns: minmax(0, 1fr); }
.no-sidebar .single-area .primary { max-width: 860px; margin-inline: auto; width: 100%; }
.sidebar-right .content-area > .sidebar { order: -1; }
.primary { min-width: 0; }
.posts-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.posts-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.posts-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.no-sidebar .posts-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.posts-list { display: grid; gap: var(--gap); }
.search-again { margin-bottom: 22px; }
.pagination { margin-top: 32px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--c-surface); color: var(--c-text); font-weight: 700; border: 1px solid var(--c-border); }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pagination a:hover { border-color: var(--c-secondary); color: var(--c-secondary); }
.empty-state { text-align: center; background: var(--c-surface); border-radius: var(--radius); padding: 48px 20px; }
.empty-state .search-form { margin: 18px auto 0; }
.empty-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--c-bg); color: var(--c-secondary); margin-bottom: 12px; }

/* ---------- المقال ---------- */
.article-box { background: var(--c-surface); border-radius: var(--radius); padding: clamp(18px, 3.5vw, 40px); }
.cards-shadow .article-box, .cards-shadow .page-article { box-shadow: var(--shadow); }
.page-article { background: var(--c-surface); border-radius: var(--radius); padding: clamp(18px, 3.5vw, 40px); }
.entry-header { margin-bottom: 22px; }
.entry-header .breadcrumbs { margin-bottom: 14px; }
.entry-badges { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.breaking-badge { background: var(--c-breaking); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 6px; }
.entry-title { font-size: calc(var(--fs-h1) * var(--scale-h)); line-height: 1.5; margin-bottom: 10px; }
.entry-subtitle { font-size: 1.15em; color: var(--c-muted); border-inline-start: 4px solid var(--c-accent); padding-inline-start: 14px; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13.5px; color: var(--c-muted); padding-block: 14px; border-block: 1px solid var(--c-border); margin-top: 16px; }
.entry-meta .m { display: inline-flex; align-items: center; gap: 6px; color: var(--c-muted); }
.entry-meta .author a { color: var(--c-heading); font-weight: 700; }
.entry-meta .avatar { border-radius: 50%; width: 32px; height: 32px; }
.entry-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; border: 0; cursor: pointer; background: #334155; }
.share-btn:hover { color: #fff; filter: brightness(1.12); transform: translateY(-1px); }
.s-x { background: #111; } .s-facebook { background: #1877F2; } .s-whatsapp { background: #25D366; }
.s-telegram { background: #229ED9; } .s-linkedin { background: #0A66C2; } .s-copy { background: var(--c-primary); }
.s-copy.copied { background: #0E9F6E; }
.article-tools { display: flex; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 2px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); cursor: pointer; font-weight: 800; }
.tool:hover { border-color: var(--c-secondary); }
.entry-thumb { margin: 0 0 24px; }
.entry-thumb img { border-radius: var(--radius); width: 100%; }
.entry-thumb figcaption { font-size: 13px; color: var(--c-muted); margin-top: 8px; }
.entry-content { font-size: var(--article-fs); line-height: var(--lh-article); overflow-wrap: break-word; }
.entry-content > * { max-width: 100%; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.4em; font-size: calc(var(--fs-h2) * var(--scale-h)); }
.entry-content h3 { margin-top: 1.3em; }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 22px; background: var(--c-bg); border-inline-start: 4px solid var(--c-accent); border-radius: 0 10px 10px 0; font-size: 1.05em; }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--c-border); padding: 10px; }
.entry-content th { background: var(--c-bg); }
.entry-content figure { margin: 1.5em 0; }
.entry-content img { border-radius: 10px; }
.entry-content pre { overflow-x: auto; background: #0B1324; color: #E2E8F0; padding: 16px; border-radius: 10px; direction: ltr; text-align: left; }
.entry-content .alignwide, .entry-content .alignfull { margin-inline: 0; }
.entry-source { font-size: 14px; color: var(--c-muted); background: var(--c-bg); padding: 10px 14px; border-radius: 10px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0; }
.tags-label { font-weight: 700; }
.entry-tags a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--c-bg); color: var(--c-text); font-size: 13.5px; border: 1px solid var(--c-border); }
.entry-tags a:hover { background: var(--c-primary); color: #fff; }
.share-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; background: var(--c-bg); border-radius: var(--radius); margin: 22px 0; font-weight: 700; }
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--c-border); margin: 24px 0; }
.author-box .avatar { border-radius: 50%; flex: none; }
.ab-label { font-size: 12.5px; color: var(--c-muted); }
.ab-name { font-size: 19px; margin: 2px 0 6px; }
.ab-name a { color: var(--c-heading); }
.author-box p { color: var(--c-muted); font-size: 14.5px; margin-bottom: 8px; }
.ab-more { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.post-navigation a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--c-bg); color: var(--c-text); height: 100%; }
.post-navigation .nav-next { text-align: left; }
.nav-label { font-size: 12.5px; color: var(--c-muted); }
.nav-title { font-weight: 700; font-family: var(--font-head); line-height: 1.5; }
.related { margin-top: 32px; }
.page-links { margin: 20px 0; font-weight: 700; }

/* التعليقات */
.comments-area { margin-top: 36px; }
.comments-title { font-size: 21px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .children { list-style: none; padding-inline-start: clamp(14px, 4vw, 40px); }
.comment-body { padding: 16px; border-radius: var(--radius); background: var(--c-bg); margin-bottom: 12px; }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12.5px; margin: 4px 0 8px; }
.comment-metadata a { color: var(--c-muted); }
.reply a { font-weight: 700; font-size: 13.5px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form p { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.comment-form .comment-form-cookies-consent { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; }
.comment-form .form-submit { align-items: flex-start; }
.comment-reply-title { font-size: 20px; }

/* 404 */
.error-404 { text-align: center; padding-block: var(--section-gap); }
.e404-num { font-size: clamp(90px, 18vw, 180px); font-weight: 800; line-height: 1; color: var(--c-primary); font-family: var(--font-head); letter-spacing: 4px; text-shadow: 6px 6px 0 var(--c-accent); }
html[data-theme="dark"] .e404-num { color: var(--c-text); }
.error-404 .search-form { margin: 20px auto; }
.e404-latest { margin-top: 48px; text-align: start; }

/* ---------- صفحات من نحن وتواصل معنا والصفحات القانونية ---------- */
.page-section { padding-block: calc(var(--section-gap) * .8); }
.about-intro { background: transparent; }
.story-box { max-width: 900px; margin-inline: auto; }
.mvv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.mvv-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 26px 22px; }
.mvv-card .service-ico { width: 52px; height: 52px; border-radius: 14px; }
.mvv-title { font-size: calc(var(--fs-h3) * var(--scale-h)); margin-bottom: 8px; }
.mvv-card p { color: var(--c-muted); margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 230px)); justify-content: center; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.team-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px 16px; text-align: center; }
.team-link { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--c-heading); }
.team-avatar { position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin-bottom: 8px; display: grid; place-items: center; background: var(--c-primary); }
.team-avatar::before { content: attr(data-initial); color: #fff; font-size: 30px; font-weight: 800; font-family: var(--font-head); }
.team-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: 800; font-family: var(--font-head); font-size: 17px; }
.team-count { font-size: 13px; color: var(--c-muted); }
.team-bio { font-size: 14px; color: var(--c-muted); margin: 10px 0 0; }
.cta-band {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	background: radial-gradient(circle at 15% 20%, rgba(30, 90, 168, .7), transparent 55%), var(--c-primary);
	color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 4vw, 40px);
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .85; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1EBE5A; color: #fff; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; list-style: none; margin: 0 0 var(--gap); padding: 0; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 18px; min-width: 0; }
.cc-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-primary); color: var(--c-accent); margin-bottom: 6px; }
.cc-ico.cc-whatsapp { background: #25D366; color: #fff; }
.cc-label { font-size: 13px; color: var(--c-muted); font-weight: 700; }
.cc-value { font-weight: 700; color: var(--c-heading); overflow-wrap: anywhere; }
a.cc-value:hover { color: var(--c-secondary); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
.contact-layout:not(.has-side) .contact-box { max-width: 860px; margin-inline: auto; width: 100%; }
.contact-layout.has-side { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.contact-form-title { display: flex; align-items: center; gap: 10px; font-size: calc(var(--fs-h2) * var(--scale-h) * .85); }
.contact-form-title .ico { color: var(--c-accent); }
.contact-intro { margin-bottom: 16px; color: var(--c-muted); }
.contact-side { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.side-box { background: var(--c-surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--c-border); }
.side-title { font-size: 18px; margin-bottom: 12px; }
.map-box { padding: 0; overflow: hidden; }
.map-box iframe { display: block; width: 100%; height: 280px; border: 0; }
.social-contact a { width: 42px; height: 42px; background: var(--c-bg); color: var(--c-heading); }
.social-contact a:hover { background: var(--c-primary); color: #fff; }
.faq details { border-top: 1px solid var(--c-border); }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; font-weight: 700; color: var(--c-heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c-bg); color: var(--c-secondary); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--c-muted); margin: 0 0 12px; font-size: 15px; }
.form-privacy { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--c-muted); margin: 12px 0 0; line-height: 1.7; }
.form-privacy .ico { margin-top: 3px; color: var(--c-secondary); }
.form-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.newsletter .form-privacy { justify-content: center; }
.copyright .sep { margin-inline: 8px; opacity: .6; }
.copyright .privacy-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.legal-wrap { padding-block: calc(var(--section-gap) * .8) var(--section-gap); }
.legal-article { max-width: 900px; margin-inline: auto; }
.cards-shadow .legal-article { box-shadow: var(--shadow); }
.toc { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 26px; }
.toc-title { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 10px; }
.toc-title .ico { color: var(--c-accent); }
.toc ol { margin: 0; padding-inline-start: 1.4em; columns: 2 220px; column-gap: 28px; }
.toc li { padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--c-text); font-weight: 600; }
.toc a:hover { color: var(--c-secondary); }
.legal-article .entry-content h2 { scroll-margin-top: 90px; }

/* ---------- الفوتر ---------- */
.site-footer { background: var(--c-footer); color: var(--c-footer-text); margin-top: var(--section-gap); font-size: 15px; }
.site-footer a { color: var(--c-footer-text); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; gap: 32px; padding-block: calc(56px * var(--scale-s)) 32px; }
.footer-top.cols-3 { grid-template-columns: 1.4fr 1fr 1fr; }
.footer-top.cols-4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-top.cols-5 { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
.footer-about .site-brand { color: #fff; margin-bottom: 14px; }
.footer-about p { opacity: .85; max-width: 420px; }
.social-footer a { width: 38px; height: 38px; background: rgba(255, 255, 255, .07); }
.social-footer a:hover { background: var(--c-accent); color: var(--c-primary); }
.footer-title, .site-footer .widget-title { color: #fff; font-size: 17px; margin-bottom: 16px; border: 0; padding: 0; }
.site-footer .widget { background: none; padding: 0; box-shadow: none; border: 0; }
.site-footer .widget-title span::after { display: none; }
.footer-links, .footer-contact, .site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.footer-links li, .site-footer .widget ul li { padding: 5px 0; border: 0; }
.footer-links a::before { content: "‹"; margin-inline-end: 8px; color: var(--c-accent); }
.footer-contact li { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.footer-contact .ico { color: var(--c-accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 16px; }
.copyright { margin: 0; opacity: .8; }
.theme-credit { margin: 0; opacity: .8; }
.theme-credit a { color: var(--c-accent); font-weight: 700; }
.theme-credit a:hover { color: #fff; }
.footer-inline { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* ---------- عناصر عائمة ---------- */
.floating { position: fixed; bottom: var(--float-bottom); z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.floating.side-right { right: var(--float-offset); }
.floating.side-left { left: var(--float-offset); }
.float-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 54px; height: 54px; padding: 0 15px;
	border-radius: var(--float-radius); color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); font-weight: 700; transition: transform .2s;
}
.float-btn:hover { color: #fff; transform: translateY(-2px); }
.float-wa { background: var(--float-wa); }
.float-call { background: var(--float-call); }
.shape-circle:not(.with-text) .float-btn { width: 54px; padding: 0; }
.to-top {
	position: fixed; bottom: 20px; z-index: 59; width: 46px; height: 46px; border-radius: 12px; border: 0; cursor: pointer;
	background: var(--c-surface); color: var(--c-primary); box-shadow: 0 8px 22px rgba(0, 0, 0, .15); display: grid; place-items: center;
	left: 20px;
}
.floating.side-left ~ .to-top { left: auto; right: 20px; }
.to-top[hidden] { display: none; }
.read-progress { position: fixed; top: 0; right: 0; left: 0; height: 4px; z-index: 100; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(to left, var(--c-accent), var(--c-secondary)); margin-inline-start: 0; transition: width .1s linear; }
.admin-bar .read-progress { top: 32px; }

/* ---------- ووردبريس ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--c-muted); text-align: center; }
.sticky .card-title a::before { content: "★ "; color: var(--c-accent); }
.bypostauthor > .comment-body { border-inline-start: 3px solid var(--c-accent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }

/* ---------- الشاشات المتوسطة والصغيرة ---------- */
@media (max-width: 1100px) {
	.home-columns.has-aside { grid-template-columns: minmax(0, 1fr) 300px; }
	.content-area { grid-template-columns: minmax(0, 1fr) 290px; }
	.footer-top.cols-4, .footer-top.cols-5 { grid-template-columns: repeat(3, 1fr); }
	.footer-top .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
	.admin-bar.has-sticky-nav .nav-bar { top: 46px; }
	.menu-toggle { display: inline-grid; }
	.nav-mini-brand { display: inline-flex; }
	.primary-nav {
		position: fixed; top: 0; bottom: 0; right: 0; width: min(86vw, 360px); background: var(--c-surface); z-index: 200;
		transform: translateX(105%); visibility: hidden; transition: transform .3s ease, visibility .3s; overflow-y: auto; padding: 16px;
		display: flex; flex-direction: column; gap: 10px; box-shadow: -10px 0 40px rgba(0, 0, 0, .2);
	}
	.primary-nav.is-open { transform: none; visibility: visible; }
	.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border); color: var(--c-heading); }
	.mobile-nav-head .site-brand .logo-mark { width: 40px; height: 40px; }
	.mobile-nav-head .brand-name { font-size: 22px; color: var(--c-heading); }
	.mobile-nav-head .brand-desc { color: var(--c-muted); }
	.mobile-nav-head .custom-logo { width: var(--logo-w-m); }
	.mobile-nav-extra { display: block; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--c-border); color: var(--c-heading); }
	.mobile-quick-links { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; }
	.mobile-quick-links a { color: var(--c-muted); font-weight: 600; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
	.primary-nav .menu a { padding: 12px 10px; border-radius: 10px; color: var(--c-heading); }
	.primary-nav .menu a:hover { background: var(--c-bg); }
	.primary-nav .menu > li > a::after { display: none; }
	.menu-home .home-label { display: inline; }
	.primary-nav .sub-menu, .primary-nav .children { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 14px 0 0; min-width: 0; background: transparent; }
	.menu-overlay { position: fixed; inset: 0; background: rgba(5, 14, 32, .55); z-index: 150; }
	.menu-overlay[hidden] { display: none; }
	.header-side { display: none; }
	.header-row { justify-content: center; }
	.site-brand .custom-logo { width: var(--logo-w-m); }
	.featured-grid { grid-template-columns: 1fr; }
	.home-columns.has-aside, .content-area { grid-template-columns: minmax(0, 1fr); }
	.sidebar-right .content-area > .sidebar, .sidebar-right .home-columns.has-aside .home-aside { order: 0; }
	.sticky-sidebar .sidebar-inner { position: static; }
	.sidebar-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
	.about-grid, .contact-grid, .contact-layout.has-side { grid-template-columns: 1fr; }
	.markets-note { display: none; }
}

@media (max-width: 767px) {
	.hide-mobile { display: none !important; }
	.topbar-row, .topbar.align-reverse .topbar-row { justify-content: center; flex-direction: row; }
	.topbar-end, .top-nav, .topbar-text { display: none; }
	.header-row { padding-block: 16px; }
	.site-brand .logo-mark { width: 44px; height: 44px; }
	.featured-mosaic .featured-side { grid-template-columns: 1fr 1fr; gap: 10px; }
	.featured-mosaic .featured-side .card-overlay { min-height: 170px; }
	.featured-mosaic .featured-side .card-body { padding: 12px; }
	.featured-mosaic .featured-side .card-title { font-size: 14px; }
	.featured-mosaic .featured-side .card-meta { display: none; }
	.layout-big-list { grid-template-columns: 1fr; }
	.layout-grid, .layout-grid.cols-3, .layout-grid.cols-4, .layout-overlay { grid-template-columns: 1fr 1fr; gap: 12px; }
	.layout-grid .card-body { padding: 10px 12px 12px; gap: 6px; }
	.layout-grid .card-title { font-size: 14.5px; }
	.layout-grid .card-excerpt, .layout-grid .read-more { display: none; }
	.layout-overlay .card-overlay { min-height: 200px; }
	.layout-overlay .card-overlay .card-body { padding: 12px; }
	.layout-overlay .card-title { font-size: 14.5px; }
	.card-list .card-thumb { width: 40%; min-height: 120px; }
	.card-list .card-excerpt { display: none; }
	.card-list .card-body { padding: 12px 14px; }
	.form-grid { grid-template-columns: 1fr; }
	.stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.contact-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
	.contact-card { padding: 14px; }
	.cta-band { flex-direction: column; align-items: flex-start; }
	.team-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
	.footer-top.cols-3, .footer-top.cols-4, .footer-top.cols-5 { grid-template-columns: 1fr 1fr; }
	.footer-bottom-row { justify-content: center; text-align: center; flex-direction: column; gap: 6px; padding-bottom: 80px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: start; }
	.author-box { flex-direction: column; align-items: center; text-align: center; }
	.nl-band .nl-form { flex-direction: column; }
	.entry-actions { flex-direction: column; align-items: flex-start; }
	.chip { font-size: 12px; padding: 6px 10px; }
	.float-btn { min-width: 50px; height: 50px; }
	.shape-circle:not(.with-text) .float-btn { width: 50px; }
}

@media (max-width: 479px) {
	.featured-mosaic .featured-side { grid-template-columns: 1fr; }
	.card-list { flex-direction: column; }
	.posts-grid { grid-template-columns: 1fr; }
	.card-list .card-thumb { width: 100%; max-width: none; aspect-ratio: var(--thumb-ratio); min-height: 0; }
	.footer-top.cols-3, .footer-top.cols-4, .footer-top.cols-5 { grid-template-columns: 1fr; }
	.brand-desc { font-size: 12px; }
	.ticker-label { padding: 0 10px; }
	.label-arrow .ticker-label { padding-inline-end: 22px; }
	.ticker-nav { display: none; }
}

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

/* ---------- الطباعة ---------- */
@media print {
	.topbar, .nav-bar, .ticker, .markets, .sidebar, .site-footer, .floating, .to-top, .share, .share-bottom, .entry-actions, .related, .comments-area, .post-navigation, .ad-slot, .read-progress { display: none !important; }
	body { background: #fff; color: #000; }
	.article-box { box-shadow: none !important; padding: 0; }
	.content-area { display: block; }
	.header-main { background: #fff !important; color: #000 !important; }
}

/* ---------- ودجات ووردبريس الأساسية (بلوك) ---------- */
.sidebar .widget h2, .sidebar .widget .wp-block-heading { font-size: 18px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--c-border); }
.wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.wp-block-search__label { display: block; font-weight: 700; margin-bottom: 8px; }
.wp-block-search__input { flex: 1; min-width: 0; height: 44px; border: 1.5px solid var(--c-border); border-radius: 10px; padding: 0 12px; background: var(--c-bg); color: var(--c-text); }
.wp-block-search__button { border: 0; border-radius: 10px; padding: 0 16px; background: var(--btn-bg); color: var(--btn-text); font-weight: 700; cursor: pointer; }
.widget .wp-block-latest-posts li a, .widget .wp-block-categories li a, .widget .wp-block-archives li a { color: var(--c-text); font-weight: 600; }
.widget .wp-block-latest-comments { padding: 0; }
.widget .wp-block-latest-comments__comment { font-size: 14px; margin-bottom: 10px; }
