/*
Theme Name: Emole Partners
Theme URI: https://partners.emole.com
Author: Emole
Description: قالب موقع شركاء إيمول — صفحة رئيسية تسويقية، بوابة الشركاء، الدليل والمدونة. مصمَّم ليعمل مع إضافة «إيمول للشركاء».
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: emole-partners-theme
*/

/* ════════════════════════════════════════════════════════════
   الرموز
   ════════════════════════════════════════════════════════════ */

:root {
	--ep-ink: #0b1220;
	--ep-ink-2: #111a2e;
	--ep-text: #0f172a;
	--ep-muted: #5b6b80;
	--ep-line: #e3e8f0;
	--ep-surface: #f6f8fc;
	--ep-bg: #ffffff;

	--ep-primary: #0284c7;
	--ep-primary-strong: #0369a1;
	--ep-sky: #0ea5e9;
	--ep-violet: #6366f1;
	--ep-emerald: #10b981;
	--ep-amber: #f59e0b;
	--ep-rose: #f43f5e;

	--ep-grad: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
	--ep-grad-soft: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(99, 102, 241, .12));

	--ep-radius: 16px;
	--ep-radius-sm: 10px;
	--ep-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
	--ep-shadow-lg: 0 20px 60px rgba(15, 23, 42, .14);

	--ep-container: 1200px;
	--ep-font: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

/* مواءمة ألوان إضافة الشركاء مع هوية الموقع.
   محدِّد أقوى من :root لأن أنماط الإضافة تُحمَّل بعد القالب. */
html[data-emole-theme] {
	--emole-accent: #0284c7;
	--emole-accent-soft: rgba(2, 132, 199, .1);
	--emole-text: #0f172a;
	--emole-muted: #5b6b80;
	--emole-surface: #f6f8fc;
	--emole-border: #e3e8f0;
	--emole-radius: 14px;
}

/* ════════════════════════════════════════════════════════════
   الأساس
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: var(--ep-font);
	font-size: 16px;
	line-height: 1.75;
	color: var(--ep-text);
	background: var(--ep-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ep-primary); text-decoration: none; }
a:hover { color: var(--ep-primary-strong); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; color: var(--ep-text); }
p { margin: 0 0 1em; }

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

@media (min-width: 768px) {
	.ep-container { padding-inline: 24px; }
}

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

.ep-skip:focus {
	position: fixed; top: 8px; inset-inline-start: 8px; z-index: 1000;
	background: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: var(--ep-shadow);
	clip: auto; width: auto; height: auto;
}

:focus-visible { outline: 3px solid rgba(14, 165, 233, .5); outline-offset: 2px; border-radius: 6px; }

/* ════════════════════════════════════════════════════════════
   الأزرار
   ════════════════════════════════════════════════════════════ */

.ep-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px;
	border-radius: 12px;
	font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
	white-space: nowrap;
	text-decoration: none;
}

.ep-btn:hover { transform: translateY(-1px); }
.ep-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.ep-btn-primary { background: var(--ep-primary); color: #fff; box-shadow: 0 6px 18px rgba(2, 132, 199, .28); }
.ep-btn-primary:hover { background: var(--ep-primary-strong); color: #fff; }

.ep-btn-grad { background: var(--ep-grad); color: #fff; box-shadow: 0 8px 24px rgba(99, 102, 241, .3); }
.ep-btn-grad:hover { color: #fff; box-shadow: 0 12px 30px rgba(99, 102, 241, .38); }

.ep-btn-ghost { background: transparent; color: var(--ep-text); border-color: var(--ep-line); }
.ep-btn-ghost:hover { border-color: var(--ep-primary); color: var(--ep-primary); }

.ep-btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.ep-btn-light:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.ep-btn-white { background: #fff; color: var(--ep-ink); }
.ep-btn-white:hover { color: var(--ep-primary-strong); }

.ep-btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.ep-btn-lg { padding: 15px 28px; font-size: 16px; }

/* ════════════════════════════════════════════════════════════
   الرأس
   ════════════════════════════════════════════════════════════ */

.ep-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .86);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(227, 232, 240, .8);
}

.admin-bar .ep-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ep-header { top: 46px; } }

.ep-header-in {
	display: flex; align-items: center; gap: 20px;
	min-height: 72px;
}

.ep-brand {
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--ep-text); font-weight: 800; font-size: 19px;
	flex-shrink: 0;
}

.ep-brand:hover { color: var(--ep-text); }

.ep-brand-mark {
	width: 38px; height: 38px; border-radius: 11px;
	background: var(--ep-grad);
	display: grid; place-items: center;
	color: #fff; font-size: 19px; font-weight: 800;
	box-shadow: 0 6px 16px rgba(99, 102, 241, .35);
}

.ep-brand-sub {
	font-size: 12px; font-weight: 700;
	color: var(--ep-primary);
	background: var(--ep-grad-soft);
	padding: 3px 9px; border-radius: 999px;
}

.ep-brand .custom-logo { max-height: 40px; width: auto; }

.ep-nav { flex: 1; }

.ep-nav ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: center; gap: 4px;
}

.ep-nav a {
	display: block; padding: 8px 12px; border-radius: 9px;
	color: #334155; font-weight: 600; font-size: 15px;
}

.ep-nav a:hover,
.ep-nav .current-menu-item > a,
.ep-nav .current_page_item > a,
.ep-nav a[aria-current="page"] {
	color: var(--ep-primary-strong); background: rgba(2, 132, 199, .07);
}

.ep-nav .sub-menu { display: none; }

.ep-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.ep-menu-toggle, .ep-menu-btn { display: none; }

@media (max-width: 1023px) {
	.ep-menu-btn {
		display: inline-grid; place-items: center;
		width: 42px; height: 42px; border-radius: 10px;
		border: 1.5px solid var(--ep-line); background: #fff; cursor: pointer;
		margin-inline-start: auto;
	}

	.ep-menu-btn svg { width: 22px; height: 22px; }

	.ep-nav, .ep-header-actions { display: none; }

	.ep-menu-toggle:checked ~ .ep-nav,
	.ep-menu-toggle:checked ~ .ep-header-actions {
		display: flex;
	}

	.ep-header-in { flex-wrap: wrap; padding-block: 12px; }

	.ep-menu-toggle:checked ~ .ep-nav { flex-basis: 100%; order: 3; }
	.ep-menu-toggle:checked ~ .ep-nav ul { flex-direction: column; align-items: stretch; width: 100%; }
	.ep-menu-toggle:checked ~ .ep-header-actions { flex-basis: 100%; order: 4; padding-bottom: 8px; }
	.ep-menu-toggle:checked ~ .ep-header-actions .ep-btn { flex: 1; }
}

/* ════════════════════════════════════════════════════════════
   البطل (Hero)
   ════════════════════════════════════════════════════════════ */

.ep-hero {
	position: relative; overflow: hidden;
	background: var(--ep-ink);
	color: #e2e8f0;
	padding: 72px 0 96px;
}

.ep-hero::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(600px 380px at 85% 10%, rgba(14, 165, 233, .35), transparent 60%),
		radial-gradient(520px 360px at 10% 90%, rgba(99, 102, 241, .35), transparent 60%);
	pointer-events: none;
}

.ep-hero::after {
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	pointer-events: none;
}

.ep-hero .ep-container { position: relative; z-index: 1; }

.ep-hero-grid {
	display: grid; gap: 48px; align-items: center;
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.ep-hero-grid { grid-template-columns: 1.05fr .95fr; }
	.ep-hero { padding: 96px 0 120px; }
}

.ep-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px 6px 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .14);
	font-size: 13.5px; font-weight: 600; color: #cbd5e1;
	margin-bottom: 22px;
}

[dir="rtl"] .ep-eyebrow { padding: 6px 6px 6px 14px; }

.ep-eyebrow b {
	background: var(--ep-grad); color: #fff;
	padding: 2px 10px; border-radius: 999px; font-size: 12px;
}

.ep-hero h1 {
	color: #fff;
	font-size: clamp(2rem, 4.6vw, 3.4rem);
	line-height: 1.22;
	font-weight: 800;
	letter-spacing: -.01em;
	margin-bottom: 20px;
}

.ep-grad-text {
	background: linear-gradient(90deg, #38bdf8, #a5b4fc);
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
}

.ep-hero-lead {
	font-size: clamp(1.02rem, 1.6vw, 1.18rem);
	color: #a8b6c9; max-width: 560px; margin-bottom: 30px;
}

.ep-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.ep-hero-trust {
	display: flex; flex-wrap: wrap; gap: 10px 22px;
	font-size: 14px; color: #94a3b8;
}

.ep-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.ep-hero-trust svg { width: 18px; height: 18px; color: #34d399; }

/* لوحة العرض في البطل */

.ep-mock {
	position: relative;
	background: linear-gradient(180deg, #121c32, #0e172a);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 20px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
	padding: 14px;
}

.ep-mock-bar { display: flex; gap: 6px; padding: 4px 6px 12px; }
.ep-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: block; }
.ep-mock-bar i:nth-child(1) { background: #f87171; }
.ep-mock-bar i:nth-child(2) { background: #fbbf24; }
.ep-mock-bar i:nth-child(3) { background: #34d399; }

.ep-mock-body {
	display: grid; grid-template-columns: 120px 1fr; gap: 12px;
	background: #0b1324; border-radius: 14px; padding: 12px; min-height: 300px;
}

.ep-mock-side { display: flex; flex-direction: column; gap: 8px; }

.ep-mock-step {
	display: flex; align-items: center; gap: 8px;
	font-size: 11.5px; color: #64748b;
	padding: 7px 8px; border-radius: 8px;
}

.ep-mock-step i {
	width: 18px; height: 18px; border-radius: 50%;
	display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700;
	background: #1e293b; color: #94a3b8; flex-shrink: 0;
}

.ep-mock-step.is-done i { background: #10b981; color: #fff; }
.ep-mock-step.is-on { background: rgba(14, 165, 233, .14); color: #e2e8f0; }
.ep-mock-step.is-on i { background: var(--ep-grad); color: #fff; }

.ep-mock-main { display: flex; flex-direction: column; gap: 10px; }

.ep-mock-card {
	background: #111c33; border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 12px; padding: 12px;
}

.ep-mock-title { font-size: 13px; font-weight: 700; color: #e2e8f0; margin-bottom: 8px; }

.ep-mock-line { height: 8px; border-radius: 6px; background: #1e293b; margin-bottom: 7px; }
.ep-mock-line.w60 { width: 60%; } .ep-mock-line.w80 { width: 80%; } .ep-mock-line.w40 { width: 40%; }

.ep-mock-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-mock-chip {
	font-size: 11px; padding: 4px 9px; border-radius: 999px;
	background: #1e293b; color: #94a3b8;
}
.ep-mock-chip.is-on { background: rgba(14, 165, 233, .2); color: #7dd3fc; }

.ep-mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ep-mock-kpi { font-size: 20px; font-weight: 800; color: #fff; }
.ep-mock-kpi small { display: block; font-size: 11px; font-weight: 500; color: #64748b; }

.ep-mock-float {
	position: absolute;
	background: #fff; color: var(--ep-text);
	border-radius: 14px; padding: 10px 14px;
	box-shadow: var(--ep-shadow-lg);
	display: flex; align-items: center; gap: 10px;
	font-size: 13px; font-weight: 700;
}

.ep-mock-float small { display: block; font-weight: 500; color: var(--ep-muted); font-size: 11.5px; }
.ep-mock-float .ep-ico-badge { width: 34px; height: 34px; }

.ep-mock-float.f1 { inset-inline-start: -18px; bottom: 34px; }
.ep-mock-float.f2 { inset-inline-end: -14px; top: -16px; }

@media (max-width: 640px) {
	.ep-mock-body { grid-template-columns: 1fr; }
	.ep-mock-side { flex-direction: row; overflow: hidden; }
	.ep-mock-step span { display: none; }
	.ep-mock-float.f1 { inset-inline-start: 8px; bottom: -22px; }
	.ep-mock-float.f2 { display: none; }
}

/* ════════════════════════════════════════════════════════════
   شريط الأرقام
   ════════════════════════════════════════════════════════════ */

.ep-stats {
	position: relative; z-index: 2;
	margin-top: -56px;
}

.ep-stats-grid {
	display: grid; grid-template-columns: repeat(2, 1fr);
	background: #fff; border: 1px solid var(--ep-line);
	border-radius: 20px; box-shadow: var(--ep-shadow-lg);
	overflow: hidden;
}

@media (min-width: 768px) { .ep-stats-grid { grid-template-columns: repeat(4, 1fr); } }

.ep-stat { padding: 24px 22px; border-inline-end: 1px solid var(--ep-line); border-bottom: 1px solid var(--ep-line); }
.ep-stat:last-child { border-inline-end: 0; }
@media (min-width: 768px) { .ep-stat { border-bottom: 0; } }

.ep-stat-val {
	font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.1;
	background: var(--ep-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.ep-stat-key { color: var(--ep-muted); font-size: 14px; margin-top: 6px; }

/* ════════════════════════════════════════════════════════════
   الأقسام
   ════════════════════════════════════════════════════════════ */

.ep-section { padding: 88px 0; }
.ep-section-alt { background: var(--ep-surface); }
.ep-section-tight { padding: 56px 0; }

.ep-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }

.ep-kicker {
	display: inline-block;
	font-size: 13px; font-weight: 700; letter-spacing: .02em;
	color: var(--ep-primary);
	background: var(--ep-grad-soft);
	padding: 5px 12px; border-radius: 999px;
	margin-bottom: 14px;
}

.ep-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
.ep-head p { color: var(--ep-muted); font-size: 1.08rem; margin: 0; }

.ep-grid { display: grid; gap: 20px; }
.ep-grid-2 { grid-template-columns: 1fr; }
.ep-grid-3 { grid-template-columns: 1fr; }
.ep-grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
	.ep-grid-3, .ep-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.ep-grid-2 { grid-template-columns: repeat(2, 1fr); }
	.ep-grid-3 { grid-template-columns: repeat(3, 1fr); }
	.ep-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.ep-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--ep-line);
	border-radius: var(--ep-radius);
	padding: 26px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ep-card:hover { transform: translateY(-3px); box-shadow: var(--ep-shadow); border-color: #cfd8e6; }
.ep-card h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.ep-card p { color: var(--ep-muted); margin: 0; font-size: 15px; }

.ep-card-link {
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 16px; font-weight: 700; font-size: 14.5px;
}

.ep-card-link svg { width: 16px; height: 16px; }
[dir="rtl"] .ep-card-link svg { transform: scaleX(-1); }

.ep-ico-badge {
	width: 48px; height: 48px; border-radius: 13px;
	display: grid; place-items: center;
	background: var(--ep-grad-soft); color: var(--ep-primary);
}

.ep-ico-badge svg { width: 24px; height: 24px; }
.ep-ico-badge.tone-violet { background: rgba(99, 102, 241, .1); color: var(--ep-violet); }
.ep-ico-badge.tone-emerald { background: rgba(16, 185, 129, .1); color: #059669; }
.ep-ico-badge.tone-amber { background: rgba(245, 158, 11, .12); color: #b45309; }
.ep-ico-badge.tone-rose { background: rgba(244, 63, 94, .1); color: #e11d48; }

.ep-tag {
	display: inline-block; font-size: 12px; font-weight: 700;
	padding: 3px 10px; border-radius: 999px;
	background: var(--ep-surface); color: var(--ep-muted);
	border: 1px solid var(--ep-line);
}

.ep-card .ep-tag { position: absolute; top: 20px; inset-inline-end: 20px; }

/* قائمة نقاط */

.ep-checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ep-checks li { display: flex; gap: 10px; align-items: flex-start; color: #334155; font-size: 15px; }
.ep-checks svg { width: 20px; height: 20px; color: var(--ep-emerald); flex-shrink: 0; margin-top: 3px; }

/* ════════════════════════════════════════════════════════════
   قسم الميزة (نص + صورة)
   ════════════════════════════════════════════════════════════ */

.ep-split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
	.ep-split { grid-template-columns: 1fr 1fr; }
	.ep-split.is-flip > :first-child { order: 2; }
}

.ep-split h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.ep-split .ep-lead { color: var(--ep-muted); font-size: 1.05rem; }

.ep-panel {
	background: #fff; border: 1px solid var(--ep-line);
	border-radius: 20px; box-shadow: var(--ep-shadow);
	padding: 22px;
}

.ep-panel-head {
	display: flex; align-items: center; justify-content: space-between;
	padding-bottom: 14px; margin-bottom: 14px;
	border-bottom: 1px solid var(--ep-line);
	font-weight: 700;
}

.ep-wizard-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: wz; }

.ep-wizard-list li {
	counter-increment: wz;
	display: flex; align-items: center; gap: 12px;
	padding: 10px 12px; border-radius: 12px;
	background: var(--ep-surface); font-size: 14.5px; font-weight: 600;
}

.ep-wizard-list li::before {
	content: counter(wz);
	width: 28px; height: 28px; border-radius: 9px;
	display: grid; place-items: center;
	background: #fff; border: 1px solid var(--ep-line);
	font-size: 13px; font-weight: 800; color: var(--ep-primary);
	flex-shrink: 0;
}

.ep-wizard-list li small { margin-inline-start: auto; color: var(--ep-muted); font-weight: 500; font-size: 12.5px; }

/* شيفرة */

.ep-code {
	background: #0b1220; color: #cbd5e1;
	border-radius: 16px; padding: 18px 20px;
	font: 13.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	direction: ltr; text-align: left;
	overflow-x: auto; box-shadow: var(--ep-shadow-lg);
	margin: 0;
}

.ep-code .k { color: #7dd3fc; } .ep-code .s { color: #86efac; } .ep-code .c { color: #64748b; } .ep-code .v { color: #fbbf24; }

/* ════════════════════════════════════════════════════════════
   خطوات
   ════════════════════════════════════════════════════════════ */

.ep-steps { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: st; }
@media (min-width: 768px) { .ep-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ep-steps { grid-template-columns: repeat(4, 1fr); } }

.ep-step { position: relative; padding: 26px; background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-radius); }

.ep-step-num {
	width: 42px; height: 42px; border-radius: 12px;
	background: var(--ep-grad); color: #fff;
	display: grid; place-items: center;
	font-weight: 800; font-size: 17px;
	box-shadow: 0 8px 20px rgba(99, 102, 241, .3);
	margin-bottom: 16px;
}

.ep-step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.ep-step p { color: var(--ep-muted); font-size: 14.5px; margin: 0; }

/* ════════════════════════════════════════════════════════════
   الأسعار / نموذج الربح
   ════════════════════════════════════════════════════════════ */

.ep-plan { background: #fff; border: 1px solid var(--ep-line); border-radius: 20px; padding: 30px; }
.ep-plan.is-featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--ep-grad) border-box; box-shadow: var(--ep-shadow-lg); }
.ep-plan-name { font-weight: 700; color: var(--ep-muted); }
.ep-plan-price { font-size: 2.3rem; font-weight: 800; margin: 6px 0 2px; }
.ep-plan-price small { font-size: 1rem; font-weight: 600; color: var(--ep-muted); }

/* ════════════════════════════════════════════════════════════
   الأسئلة
   ════════════════════════════════════════════════════════════ */

.ep-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }

.ep-faq details {
	background: #fff; border: 1px solid var(--ep-line); border-radius: 14px;
	padding: 4px 20px; transition: box-shadow .2s;
}

.ep-faq details[open] { box-shadow: var(--ep-shadow); }

.ep-faq summary {
	cursor: pointer; list-style: none;
	padding: 16px 0; font-weight: 700; font-size: 16px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.ep-faq summary::-webkit-details-marker { display: none; }

.ep-faq summary::after {
	content: "+"; font-size: 22px; font-weight: 500; color: var(--ep-primary);
	transition: transform .2s; flex-shrink: 0;
}

.ep-faq details[open] summary::after { transform: rotate(45deg); }
.ep-faq details p { color: var(--ep-muted); padding-bottom: 16px; margin: 0; }

/* ════════════════════════════════════════════════════════════
   شريط الدعوة
   ════════════════════════════════════════════════════════════ */

.ep-cta {
	position: relative; overflow: hidden;
	background: var(--ep-ink); color: #cbd5e1;
	border-radius: 28px;
	padding: 56px 32px;
	text-align: center;
}

.ep-cta::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(500px 260px at 20% 0%, rgba(14, 165, 233, .4), transparent 60%),
	            radial-gradient(500px 260px at 80% 100%, rgba(99, 102, 241, .45), transparent 60%);
}

.ep-cta > * { position: relative; }
.ep-cta h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
.ep-cta p { max-width: 560px; margin: 0 auto 26px; font-size: 1.05rem; }
.ep-cta .ep-hero-cta { justify-content: center; margin-bottom: 0; }

/* ════════════════════════════════════════════════════════════
   رأس الصفحات الداخلية
   ════════════════════════════════════════════════════════════ */

.ep-page-head {
	position: relative; overflow: hidden;
	background: var(--ep-ink);
	color: #a8b6c9;
	padding: 52px 0 56px;
}

.ep-page-head::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(520px 260px at 90% 0%, rgba(14, 165, 233, .32), transparent 60%),
	            radial-gradient(420px 240px at 0% 100%, rgba(99, 102, 241, .32), transparent 60%);
}

.ep-page-head .ep-container { position: relative; }
.ep-page-head h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: 10px; }
.ep-page-head p { margin: 0; max-width: 720px; font-size: 1.05rem; }

.ep-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; margin-bottom: 14px; color: #7f8ea3; }
.ep-crumbs a { color: #94a3b8; }
.ep-crumbs a:hover { color: #fff; }
.ep-crumbs span[aria-hidden] { opacity: .5; }

.ep-page-body { padding: 48px 0 88px; }

.ep-portal .ep-page-head { padding: 36px 0 40px; }
.ep-portal .ep-page-body { padding-top: 32px; }

/* محتوى المحرر */

.ep-content { max-width: 820px; margin-inline: auto; font-size: 17px; }
.ep-content.is-wide { max-width: none; }
.ep-content > * + * { margin-top: 1.1em; }
.ep-content h2 { font-size: 1.6rem; margin-top: 1.8em; }
.ep-content h3 { font-size: 1.25rem; margin-top: 1.6em; }
.ep-content ul, .ep-content ol { padding-inline-start: 1.4em; }
.ep-content li + li { margin-top: .35em; }
.ep-content img { border-radius: 14px; }
.ep-content blockquote { margin: 1.5em 0; padding: 16px 20px; border-inline-start: 4px solid var(--ep-primary); background: var(--ep-surface); border-radius: 10px; }
.ep-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ep-content th, .ep-content td { border: 1px solid var(--ep-line); padding: 10px 12px; text-align: start; }
.ep-content th { background: var(--ep-surface); }
.ep-content code { background: var(--ep-surface); padding: 2px 6px; border-radius: 6px; font-size: .9em; direction: ltr; unicode-bidi: embed; }
.ep-content pre { background: var(--ep-ink); color: #e2e8f0; padding: 16px; border-radius: 12px; overflow-x: auto; direction: ltr; text-align: left; }
.ep-content pre code { background: none; padding: 0; }

.ep-content .wp-block-button__link {
	background: var(--ep-primary); color: #fff; border-radius: 12px; padding: 12px 22px; font-weight: 700;
}

.ep-content .is-style-outline .wp-block-button__link {
	background: transparent; color: var(--ep-primary); border: 1.5px solid var(--ep-primary);
}

/* ════════════════════════════════════════════════════════════
   الدليل
   ════════════════════════════════════════════════════════════ */

.ep-docs { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .ep-docs { grid-template-columns: 260px 1fr; } }
.ep-docs > * { min-width: 0; }
.ep-doc pre, .ep-doc table { max-width: 100%; overflow-x: auto; }
.ep-doc table { display: block; }
.ep-doc p code, .ep-doc li code, .ep-doc td code { overflow-wrap: anywhere; }
.ep-doc pre { direction: ltr; text-align: left; white-space: pre; overflow-x: auto; max-width: 100%; }
.ep-doc img { max-width: 100%; height: auto; }

.ep-docs-nav {
	position: sticky; top: 96px; align-self: start;
	background: var(--ep-surface); border: 1px solid var(--ep-line);
	border-radius: 16px; padding: 18px;
	max-height: calc(100vh - 120px); overflow-y: auto;
}

@media (max-width: 1023px) { .ep-docs-nav { position: static; max-height: none; } }

.ep-docs-nav h2 { font-size: 13px; color: var(--ep-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.ep-docs-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: dn; }
.ep-docs-nav li { counter-increment: dn; }
.ep-docs-nav a {
	display: flex; gap: 8px; padding: 7px 10px; border-radius: 9px;
	color: #334155; font-size: 14px; font-weight: 600;
}
.ep-docs-nav a::before { content: counter(dn) "."; color: var(--ep-primary); font-weight: 800; }
.ep-docs-nav a:hover { background: #fff; color: var(--ep-primary-strong); }

.ep-docs-lang { display: flex; gap: 6px; margin-bottom: 16px; }
.ep-docs-lang a {
	flex: 1; text-align: center; padding: 7px; border-radius: 9px;
	font-size: 13px; font-weight: 700; border: 1px solid var(--ep-line); color: var(--ep-muted); background: #fff;
}
.ep-docs-lang a.is-on { background: var(--ep-primary); border-color: var(--ep-primary); color: #fff; }

.ep-doc { max-width: 860px; }
.ep-doc h2 { font-size: 1.6rem; margin: 56px 0 14px; padding-top: 8px; scroll-margin-top: 96px; }
.ep-doc h2:first-child { margin-top: 0; }
.ep-doc h3 { font-size: 1.2rem; margin: 30px 0 10px; scroll-margin-top: 96px; }
.ep-doc p, .ep-doc li { color: #334155; font-size: 16.5px; }
.ep-doc ol, .ep-doc ul { padding-inline-start: 1.3em; }

.ep-shot {
	margin: 20px 0 28px;
	border: 1px solid var(--ep-line); border-radius: 16px; overflow: hidden;
	background: var(--ep-surface); box-shadow: var(--ep-shadow);
}

.ep-shot img { display: block; width: 100%; height: auto; }
.ep-shot figcaption { padding: 10px 16px; font-size: 14px; color: var(--ep-muted); border-top: 1px solid var(--ep-line); background: #fff; }

.ep-note {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 14px 16px; border-radius: 12px; margin: 18px 0;
	background: rgba(2, 132, 199, .06); border: 1px solid rgba(2, 132, 199, .18);
	font-size: 15px; color: #0c4a6e;
}

.ep-note.is-warn { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .3); color: #78350f; }
.ep-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }

.ep-kbd {
	display: inline-block; font-size: 13px; font-weight: 700;
	padding: 1px 8px; border-radius: 6px;
	background: #fff; border: 1px solid var(--ep-line); border-bottom-width: 2px;
}

[lang="en"] .ep-doc, .ep-doc[lang="en"] { font-family: "Inter", system-ui, sans-serif; }

/* ════════════════════════════════════════════════════════════
   المدونة
   ════════════════════════════════════════════════════════════ */

.ep-posts { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ep-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ep-posts { grid-template-columns: repeat(3, 1fr); } }

.ep-post { background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.ep-post:hover { box-shadow: var(--ep-shadow); transform: translateY(-3px); }
.ep-post-thumb { aspect-ratio: 16 / 9; background: var(--ep-grad-soft); display: grid; place-items: center; color: var(--ep-primary); overflow: hidden; }
.ep-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-post-thumb svg { width: 42px; height: 42px; opacity: .6; }
.ep-post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ep-post-meta { font-size: 13px; color: var(--ep-muted); margin-bottom: 8px; }
.ep-post h2 { font-size: 1.15rem; margin-bottom: 8px; }
.ep-post h2 a { color: var(--ep-text); }
.ep-post h2 a:hover { color: var(--ep-primary); }
.ep-post p { color: var(--ep-muted); font-size: 15px; flex: 1; }

.ep-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.ep-pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ep-line); color: var(--ep-text); font-weight: 600; }
.ep-pagination .current { background: var(--ep-primary); border-color: var(--ep-primary); color: #fff; }

/* ════════════════════════════════════════════════════════════
   التذييل
   ════════════════════════════════════════════════════════════ */

.ep-footer { background: var(--ep-ink); color: #94a3b8; padding: 64px 0 28px; margin-top: 0; }
.ep-footer a { color: #cbd5e1; }
.ep-footer a:hover { color: #fff; }

.ep-footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ep-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ep-footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }

.ep-footer .ep-brand { color: #fff; }
.ep-footer-about { font-size: 15px; margin: 16px 0 0; max-width: 340px; }

.ep-footer h3 { color: #fff; font-size: 15px; margin: 4px 0 14px; }
.ep-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }

.ep-footer-bottom {
	margin-top: 48px; padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
	font-size: 13.5px;
}

.ep-footer-bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════
   صفحات البوابة: احتواء إضافة الشركاء
   ════════════════════════════════════════════════════════════ */

.ep-page-body .emole-wrap { max-width: none; padding-inline: 0; background: transparent; }

.ep-404 { text-align: center; padding: 120px 0; }
.ep-404 b { display: block; font-size: 6rem; line-height: 1; font-weight: 800; background: var(--ep-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* حركة خفيفة — تُطفأ لمن يفضّل تقليلها */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.ep-footer-links { display: flex !important; flex-wrap: wrap; gap: 16px !important; }

/* ════════════════════════════════════════════════════════════
   التسجيل والدخول
   ════════════════════════════════════════════════════════════ */

.ep-auth { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .ep-auth { grid-template-columns: minmax(0, 1fr) 380px; } }

.ep-auth-form {
	background: #fff; border: 1px solid var(--ep-line); border-radius: 20px;
	box-shadow: var(--ep-shadow); padding: 28px;
}

@media (max-width: 640px) { .ep-auth-form { padding: 18px; } }

.ep-auth-aside {
	position: sticky; top: 96px;
	background: var(--ep-ink); color: #a8b6c9;
	border-radius: 20px; padding: 28px;
	overflow: hidden;
}

@media (max-width: 1023px) { .ep-auth-aside { position: static; } }

.ep-auth-aside::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(360px 220px at 100% 0%, rgba(14, 165, 233, .35), transparent 60%),
	            radial-gradient(320px 220px at 0% 100%, rgba(99, 102, 241, .35), transparent 60%);
	pointer-events: none;
}

.ep-auth-aside > * { position: relative; }
.ep-auth-aside h2 { color: #fff; font-size: 1.25rem; margin-bottom: 18px; }

.ep-auth-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.ep-auth-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.ep-auth-list b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.ep-auth-list .ep-ico-badge { width: 40px; height: 40px; flex-shrink: 0; background: rgba(255, 255, 255, .08); color: #7dd3fc; }
.ep-auth-list .ep-ico-badge svg { width: 20px; height: 20px; }

.ep-stat-val { unicode-bidi: plaintext; }

/* زر اللغة في رأس الموقع */
.ep-lang-switch{display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:600;color:inherit;text-decoration:none;border:1px solid rgba(15,23,42,.12)}
.ep-lang-switch:hover{border-color:#0ea5e9}
