/*
Theme Name: Wazayef
Description: قالب عربي لمواقع الوظائف والأخبار — يدعم الوضع الليلي وفلترة المحافظات.
Version: 1.0
Text Domain: wazayef
*/

:root {
	--bg: #f4f6f9;
	--surface: #ffffff;
	--surface-2: #eef2f7;
	--text: #172033;
	--muted: #5d6b82;
	--border: #e1e6ee;
	--brand: #0b6e4f;
	--brand-2: #0f8a63;
	--brand-ink: #ffffff;
	--accent: #e8a317;
	--danger: #d6453d;
	--telegram: #229ed9;
	--whatsapp: #1fa855;
	--facebook: #1877f2;
	--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .05);
	--radius: 12px;
	--max: 1200px;
}
:root[data-theme="dark"] {
	--bg: #0f141c;
	--surface: #171e29;
	--surface-2: #1f2835;
	--text: #e7ecf3;
	--muted: #9aa7ba;
	--border: #2a3443;
	--brand: #19a77a;
	--brand-2: #22c08e;
	--shadow: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	transition: background .2s, color .2s;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand); color: var(--brand-ink); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar .channels-mini { display: flex; gap: 6px; }
.topbar .channels-mini a { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.15); }
.topbar .channels-mini a:hover { background: rgba(255,255,255,.3); color: #fff; }
.topbar svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.brand-name { font-size: 22px; font-weight: 800; line-height: 1.2; }
.brand-tag { font-size: 12px; color: var(--muted); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; }

.main-nav { border-top: 1px solid var(--border); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav li a { display: block; padding: 10px 14px; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.main-nav li a:hover, .main-nav li.current-menu-item a { color: var(--brand); border-bottom-color: var(--brand); }
.main-nav .home-link a { padding-inline-start: 0; }

.search-panel { display: none; padding: 0 0 14px; }
.search-panel.open { display: block; }

/* ---------- Ticker ---------- */
.ticker { background: var(--surface); border-bottom: 1px solid var(--border); }
.ticker .container { display: flex; align-items: center; gap: 12px; height: 42px; overflow: hidden; }
.ticker-label { background: var(--danger); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 12px; border-radius: 6px; flex-shrink: 0; }
.ticker-track { flex: 1; overflow: hidden; white-space: nowrap; position: relative; }
.ticker-items { display: inline-flex; gap: 40px; animation: ticker 40s linear infinite; padding-inline-start: 100%; }
.ticker-track:hover .ticker-items { animation-play-state: paused; }
.ticker-items a { font-size: 14px; }
.ticker-items a::before { content: "•"; color: var(--accent); margin-inline-end: 8px; }
.ticker-date { font-size: 13px; color: var(--muted); flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--brand) 0%, #0a4f3a 100%); color: #fff; padding: 36px 0 40px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 34px); line-height: 1.4; }
.hero p { margin: 0 0 20px; opacity: .9; }
.job-search { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; background: var(--surface); padding: 10px; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.job-search input, .job-search select {
	width: 100%; height: 46px; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px;
	font: inherit; font-size: 15px; background: var(--surface-2); color: var(--text);
}
.job-search button, .btn {
	height: 46px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--accent); color: #1b1300;
	font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.job-search button:hover, .btn:hover { filter: brightness(1.05); color: #1b1300; }
.hero-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; opacity: .95; }
.hero-stats b { font-size: 18px; }

/* ---------- Channel CTA ---------- */
.channels-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 24px 0; }
.channel-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); color: #fff; font-weight: 700; box-shadow: var(--shadow); transition: transform .15s; }
.channel-btn:hover { color: #fff; transform: translateY(-2px); }
.channel-btn svg { width: 30px; height: 30px; fill: #fff; flex-shrink: 0; }
.channel-btn small { display: block; font-weight: 400; opacity: .9; font-size: 12px; line-height: 1.4; }
.channel-btn.telegram { background: var(--telegram); }
.channel-btn.whatsapp { background: var(--whatsapp); }
.channel-btn.facebook { background: var(--facebook); }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin: 24px auto 40px; }
.section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 24px; box-shadow: var(--shadow); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border); position: relative; }
.section-head::after { content: ""; position: absolute; bottom: -2px; inset-inline-start: 0; width: 70px; height: 2px; background: var(--brand); }
.section-head h2 { margin: 0; font-size: 19px; }
.section-head .more { font-size: 13px; color: var(--brand); font-weight: 600; }

/* ---------- Cards ---------- */
.thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 10px; color: #fff; font-weight: 800; font-size: 18px; line-height: 1.4; }
.cat-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; background: var(--brand); color: #fff; }
.thumb .cat-badge { position: absolute; top: 10px; inset-inline-start: 10px; }
.meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.deadline { color: var(--danger); font-weight: 600; }

.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card h3 { font-size: 15.5px; line-height: 1.6; margin: 10px 0 6px; }
.card-excerpt { font-size: 14px; color: var(--muted); margin: 0 0 6px; }

.feature-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.feature-main h3 { font-size: 18px; margin: 12px 0 6px; line-height: 1.6; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mini-item { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
.mini-item .thumb { aspect-ratio: 4/3; }
.mini-item .thumb-ph { font-size: 12px; }
.mini-item h4 { margin: 0 0 2px; font-size: 14px; line-height: 1.6; }

.list-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-row h2 { font-size: 18px; margin: 6px 0; line-height: 1.6; }

/* ---------- Sidebar ---------- */
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; box-shadow: var(--shadow); }
.widget-title { font-size: 16px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget .channels-cta { grid-template-columns: 1fr; margin: 0; gap: 8px; }
.widget .channel-btn { padding: 10px 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { font-size: 13px; padding: 4px 10px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); }
.chips a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.cat-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.cat-list li:last-child { border-bottom: 0; }
.count { background: var(--surface-2); border-radius: 20px; padding: 0 9px; font-size: 12px; color: var(--muted); }
.ad-slot { border: 2px dashed var(--border); border-radius: var(--radius); padding: 30px 12px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Single ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--brand); }
.entry-title { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.5; margin: 6px 0 12px; }
.entry-content { font-size: 17px; }
.entry-content h2 { font-size: 21px; margin-top: 1.6em; color: var(--brand); }
.entry-content a { color: var(--brand); text-decoration: underline; }
.job-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin: 16px 0 20px; }
.job-box div { font-size: 14px; }
.job-box b { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.job-box .expired { color: var(--danger); }
.apply-wrap { text-align: center; margin: 28px 0; }
.apply-wrap .btn { height: 52px; font-size: 17px; padding: 0 36px; background: var(--brand); color: #fff; }
.apply-wrap .btn:hover { color: #fff; }
.join-box { border: 2px solid var(--brand); border-radius: var(--radius); padding: 16px; margin: 24px 0; background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.join-box h3 { margin: 0 0 4px; font-size: 17px; }
.join-box p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.join-box .channels-cta { margin: 0; }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 20px 0; font-size: 14px; }
.share a { padding: 6px 14px; border-radius: 8px; color: #fff; font-weight: 600; font-size: 13px; }
.share a:hover { color: #fff; filter: brightness(1.1); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.tags a { font-size: 13px; padding: 3px 10px; background: var(--surface-2); border-radius: 6px; }
.disclaimer { font-size: 13px; color: var(--muted); background: var(--surface-2); padding: 10px 12px; border-radius: 8px; margin-top: 20px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); padding: 0 10px; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: #0c1a14; color: #c7d3cc; padding: 40px 0 0; margin-top: 30px; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .channels-cta { grid-template-columns: 1fr; margin: 0; gap: 8px; }
.site-footer .channel-btn { padding: 9px 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding: 16px 0; font-size: 13px; text-align: center; color: #8fa199; }

.to-top { position: fixed; bottom: 20px; inset-inline-end: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; cursor: pointer; display: none; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.2); z-index: 40; }
.to-top.show { display: grid; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.5; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.layout { grid-template-columns: 1fr; }
	.grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.job-search { grid-template-columns: 1fr 1fr; }
	.job-search input { grid-column: 1 / -1; }
	.job-search button { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
	.menu-toggle { display: grid; }
	.main-nav { display: none; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav li a { border-bottom: 1px solid var(--border); padding-inline-start: 0; }
	.feature-split, .grid-cards { grid-template-columns: 1fr; }
	.list-row { grid-template-columns: 1fr; }
	.footer-cols { grid-template-columns: 1fr; }
	.job-search { grid-template-columns: 1fr; }
	.ticker-date, .brand-tag, .topbar-date { display: none; }
}

/* =====================================================
   Premium layer — زمردي × ذهبي
   ===================================================== */
:root {
	--bg: #f5f7f6;
	--brand: #0a5c45;
	--brand-2: #12805f;
	--brand-deep: #072e24;
	--gold: #c9a227;
	--gold-2: #e8c766;
	--accent: #d9b44a;
	--border: #e3e9e6;
	--shadow: 0 1px 2px rgba(7,46,36,.05), 0 8px 24px rgba(7,46,36,.06);
	--shadow-lg: 0 18px 40px rgba(7,46,36,.14);
	--radius: 16px;
}
:root[data-theme="dark"] {
	--bg: #0a110e; --surface: #111a16; --surface-2: #17231e; --border: #23332c;
	--brand: #1fa47b; --brand-2: #2bc392; --brand-deep: #06140f; --text: #e6efe9; --muted: #93a69c;
}
body { font-feature-settings: "kern"; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .brand-name { letter-spacing: -.2px; }

.topbar { background: var(--brand-deep); }
.topbar .channels-mini a { background: rgba(232,199,102,.14); color: var(--gold-2); }

.site-header { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.brand-mark { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b1300; border-radius: 14px; box-shadow: 0 6px 18px rgba(201,162,39,.35); }
.custom-logo { max-height: 52px; width: auto; }
.main-nav li a { font-weight: 700; position: relative; border-bottom: 0; }
.main-nav li a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform: scaleX(0); transition: transform .2s; }
.main-nav li a:hover::after, .main-nav li.current-menu-item a::after { transform: scaleX(1); }
.main-nav li:not(.home-link):first-of-type a, .main-nav li.menu-item:nth-child(2) a { color: var(--brand); }

.ticker-label { background: linear-gradient(135deg, #d6453d, #b91c1c); box-shadow: 0 4px 12px rgba(214,69,61,.3); }

.hero {
	position: relative; overflow: hidden; padding: 56px 0 64px;
	background:
		radial-gradient(800px 380px at 85% -10%, rgba(232,199,102,.28), transparent 60%),
		radial-gradient(600px 300px at 0% 110%, rgba(43,195,146,.25), transparent 60%),
		linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
}
.hero::before {
	content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
	background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero .container { position: relative; }
.hero h1 { font-weight: 800; font-size: clamp(26px, 4.4vw, 42px); }
.hero h1 span, .hero .gold { background: linear-gradient(90deg, var(--gold-2), #fff1c2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.job-search { background: rgba(255,255,255,.96); border-radius: 18px; padding: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
:root[data-theme="dark"] .job-search { background: var(--surface); }
.job-search input, .job-search select { border-radius: 12px; height: 50px; }
.job-search input:focus, .job-search select:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand); }
.job-search button, .btn { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b1300; border-radius: 12px; height: 50px; box-shadow: 0 8px 20px rgba(201,162,39,.35); }
.hero-stats span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: 6px 14px; border-radius: 30px; backdrop-filter: blur(6px); }
.hero-stats b { color: var(--gold-2); }

.channels-cta { margin-top: -28px; position: relative; z-index: 2; }
.layout .channels-cta, .widget .channels-cta, .site-footer .channels-cta, .join-box .channels-cta, .section .channels-cta { margin-top: 0; }
.channel-btn { border-radius: 14px; position: relative; overflow: hidden; }
.channel-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%); transform: translateX(-100%); transition: transform .6s; }
.channel-btn:hover::after { transform: translateX(100%); }
.channel-btn.telegram { background: linear-gradient(135deg, #2aabee, #1b8fd0); }
.channel-btn.whatsapp { background: linear-gradient(135deg, #25d366, #128c4a); }

.section, .widget { border-radius: var(--radius); border-color: var(--border); }
.section-head { border-bottom-width: 1px; }
.section-head::after { height: 3px; bottom: -2px; width: 56px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.section-head h2 { font-weight: 800; }
.section-head .more { background: color-mix(in srgb, var(--brand) 10%, transparent); padding: 4px 12px; border-radius: 20px; }

.card, .feature-main, .mini-item, .list-row { transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.thumb { border-radius: 12px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.thumb img, .thumb-ph { transition: transform .4s ease; }
.card:hover .thumb img, .card:hover .thumb-ph, .feature-main:hover .thumb-ph, .feature-main:hover .thumb img { transform: scale(1.05); }
.thumb-ph { position: relative; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.thumb-ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.25), transparent 45%), repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 12px); }
.cat-badge { background: color-mix(in srgb, var(--brand-deep) 70%, transparent); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); }
.entry-title + .meta, .section > .cat-badge { margin-bottom: 8px; }
article.section > .cat-badge { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b1300; border: 0; }

.job-box { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 7%, var(--surface)), var(--surface)); border-inline-start: 4px solid var(--gold); }
.apply-wrap .btn { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 12px 30px rgba(10,92,69,.35); border-radius: 14px; }
.join-box { border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, var(--surface)), color-mix(in srgb, var(--gold) 6%, var(--surface))); }

.file-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin: 24px 0; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); background: var(--surface-2); text-decoration: none !important; transition: .2s; }
.file-card:hover { border-style: solid; transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.file-card b { display: block; font-size: 16px; }
.file-card small { color: var(--muted); font-size: 13px; }
.file-ico { width: 52px; height: 60px; flex-shrink: 0; border-radius: 8px; background: linear-gradient(160deg, #e5484d, #b4232a); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(180,35,42,.3); }
.file-arrow { margin-inline-start: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 18px; }

.wz-ad { margin: 18px 0; text-align: center; overflow: hidden; }
.wz-ad-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; letter-spacing: .5px; }
.wz-ad-empty { border: 2px dashed var(--border); border-radius: 12px; padding: 18px; background: repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in srgb, var(--gold) 5%, transparent) 10px 20px); }
.wz-ad-empty a { font-weight: 700; color: var(--brand); display: block; }
.wz-ad-empty small { color: var(--muted); font-size: 11px; }
.ad-top .wz-ad { margin: 14px 0 0; }
.sidebar .wz-ad { background: var(--surface); border-radius: var(--radius); padding: 12px; border: 1px solid var(--border); margin: 0 0 20px; }

.site-footer { background: radial-gradient(700px 300px at 90% 0%, rgba(201,162,39,.12), transparent 60%), #06140f; border-top: 3px solid var(--gold); }
.site-footer h4 { position: relative; padding-bottom: 8px; }
.site-footer h4::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 2px; background: var(--gold); }
.to-top { background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.to-top svg { stroke: #1b1300; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- أيقونات SVG بدل الإيموجي ---------- */
.h-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-inline-end: 10px; vertical-align: middle; flex-shrink: 0;
	background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), color-mix(in srgb, var(--gold) 14%, var(--surface)));
	color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); }
.h-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.widget-title { display: flex; align-items: center; }
.widget-title .h-ico { width: 30px; height: 30px; border-radius: 9px; }
.widget-title .h-ico svg { width: 16px; height: 16px; }
.section-head h2 { display: flex; align-items: center; }
.join-box h3 { display: flex; align-items: center; }
.more svg, .apply-wrap .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.apply-wrap .btn svg { width: 20px; height: 20px; }
.section-head .more { display: inline-flex; align-items: center; gap: 4px; }
.file-arrow svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.disclaimer, .notice-line { display: flex; gap: 10px; align-items: flex-start; }
.disclaimer svg, .notice-line svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wz-ad-empty .dashicons { font-family: dashicons; vertical-align: middle; }

/* ---------- قنوات إضافية + التواصل ---------- */
.channel-btn.ch-telegram { background: linear-gradient(135deg, #2aabee, #1b8fd0); }
.channel-btn.ch-whatsapp { background: linear-gradient(135deg, #25d366, #128c4a); }
.channel-btn.ch-facebook { background: linear-gradient(135deg, #3b8bff, #1666d8); }
.channel-btn.ch-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.channel-btn.ch-tiktok, .channel-btn.ch-x { background: linear-gradient(135deg, #2b2b2b, #000); }
.channel-btn.ch-youtube { background: linear-gradient(135deg, #ff3b3b, #cc0000); }
.channel-btn.ch-linkedin { background: linear-gradient(135deg, #1e7fd6, #0a58a8); }
.channel-btn.ch-website { background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.contact-lines { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 8px; }
.contact-lines svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact-lines li:first-child svg { fill: #25d366; }
.contact-lines svg rect, .contact-lines svg path[d^="M3 7"] { fill: none; stroke: currentColor; stroke-width: 2; }
.entry-content + .contact-lines, .section .contact-lines { margin: 16px 0; }
.no-hero .channels-cta { margin-top: 24px; }

/* ---------- الوظائف المنتهية ---------- */
.expired-pill { display: inline-block; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); font-weight: 700; font-size: 11.5px; padding: 1px 9px; border-radius: 20px; }
.thumb.is-expired img, .thumb.is-expired .thumb-ph { filter: grayscale(.85) brightness(.9); }
.thumb.is-expired::after { content: "انتهى التقديم"; position: absolute; bottom: 8px; inset-inline-end: 8px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 6px; }
.mini-item .thumb.is-expired::after { display: none; }

/* ---------- نموذج التواصل ---------- */
.wz-contact { display: grid; gap: 14px; margin: 20px 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.wz-contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wz-contact label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.wz-contact input, .wz-contact select, .wz-contact textarea { font: inherit; font-weight: 400; font-size: 15px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.wz-contact input:focus, .wz-contact select:focus, .wz-contact textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.wz-contact .btn { justify-self: start; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 30%, transparent); }
.wz-contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.form-msg.ok { background: #dcfce7; color: #166534; }
.form-msg.err { background: #ffe4e6; color: #9f1239; }
@media (max-width: 680px) { .wz-contact .row2 { grid-template-columns: 1fr; } }

/* ---------- شريط الكوكيز ---------- */
.cookie-bar { position: fixed; bottom: 16px; inset-inline: 16px; max-width: 760px; margin: 0 auto; z-index: 60; display: flex; gap: 14px; align-items: center; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-inline-start: 4px solid var(--gold); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-lg); font-size: 14px; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1; }
.cookie-bar a { color: var(--brand); text-decoration: underline; }
.cookie-bar .btn { height: 40px; padding: 0 20px; flex-shrink: 0; }
@media (max-width: 560px) { .cookie-bar { flex-direction: column; align-items: stretch; } }

/* =====================================================
   الهيدر + الشريط الأحمر (زي التصميم المطلوب)
   ===================================================== */
.hdr { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.hdr-main { background: var(--header-bg); color: #fff; position: relative; }
.hdr-row { display: flex; align-items: stretch; gap: 14px; min-height: 76px; }
.brand { display: flex; align-items: center; flex-shrink: 0; padding: 12px 0; margin-inline-end: 10px; }
.brand-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 6px 10px 6px 16px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.brand-ico { width: 36px; height: 36px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; }
.brand-ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-badge .brand-name { color: #111; font-weight: 800; font-size: 21px; line-height: 1; white-space: nowrap; }
.hdr .custom-logo { max-height: 54px; width: auto; display: block; }

.nav { flex: 1; display: flex; align-items: stretch; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.nav-list > li { position: relative; display: flex; }
.nav-list > li > a { display: flex; align-items: center; gap: 6px; padding: 0 18px; color: #fff; font-weight: 700; font-size: 16.5px; white-space: nowrap; transition: background .15s; }
.nav-list > li > a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-list > li.current-menu-item > a, .nav-list > li.current-menu-parent > a, .nav-list > li.current-menu-ancestor > a, .nav-list > li.current-post-parent > a { background: var(--brand); color: #fff; }
.nav-list > li.menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); margin-inline-start: 4px; }
.nav .sub-menu { position: absolute; top: 100%; right: 0; z-index: 70; list-style: none; margin: 0; padding: 10px; min-width: 480px; display: none; grid-template-columns: 1fr 1fr; gap: 2px 8px; background: var(--surface); border-top: 3px solid var(--brand); border-radius: 0 0 12px 12px; box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.nav .menu-item-has-children:hover > .sub-menu, .nav .menu-item-has-children.open > .sub-menu, .nav .menu-item-has-children:focus-within > .sub-menu { display: grid; }
.nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 14.5px; }
.nav .sub-menu a:hover, .nav .sub-menu .current-menu-item a { background: var(--surface-2); color: var(--brand); }

.hdr-actions { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.hdr-btn { width: 42px; height: 42px; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.hdr-btn:hover { background: rgba(255,255,255,.12); }
.hdr-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn svg:last-child { display: none; }
:root[data-theme="dark"] .theme-btn svg:first-child { display: none; }
:root[data-theme="dark"] .theme-btn svg:last-child { display: block; }
.hdr .menu-toggle { display: none; }
.hdr .search-panel { display: none; padding: 12px 0; background: var(--header-bg); border-top: 1px solid rgba(255,255,255,.08); }
.hdr .search-panel.open { display: block; }

.newsbar { background: var(--brand); color: #fff; }
.newsbar-row { display: flex; align-items: center; gap: 16px; min-height: 54px; }
.nb-date { font-size: 14.5px; white-space: nowrap; opacity: .95; }
.nb-label { align-self: stretch; display: flex; align-items: center; padding: 0 18px; margin: 6px 0; background: var(--gold); color: #1b1300; font-weight: 800; font-size: 15.5px; white-space: nowrap; }
.nb-track { flex: 1; min-width: 0; position: relative; height: 54px; }
.nb-item { position: absolute; inset: 0; display: block; line-height: 54px; color: #fff; font-weight: 800; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; pointer-events: none; }
.nb-item.on { opacity: 1; transform: none; pointer-events: auto; }
.nb-item:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.nb-arrows { display: flex; gap: 8px; flex-shrink: 0; }
.nb-arrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.nb-arrow:hover { background: rgba(255,255,255,.18); }
.nb-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nb-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-shrink: 0; }
.nb-links a { color: #fff; font-weight: 700; font-size: 16px; white-space: nowrap; }
.nb-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* الواجهة والفوتر بنفس ألوان الهيدر */
.hero {
	background:
		radial-gradient(760px 320px at 88% -10%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 60%),
		radial-gradient(520px 260px at 0% 115%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%),
		linear-gradient(135deg, color-mix(in srgb, var(--header-bg) 80%, var(--brand)), var(--header-bg));
}
.site-footer { background: var(--header-bg); border-top: 4px solid var(--brand); }
.site-footer h4::after { background: var(--brand); }
.section-head::after { background: var(--brand); }
.chips a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chips-sub { margin: 12px 0 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.chips.sm a { font-size: 12.5px; padding: 3px 9px; }

@media (max-width: 1100px) {
	.nav-list > li > a { padding: 0 12px; font-size: 15px; }
}
@media (max-width: 900px) {
	.hdr-row { min-height: 64px; }
	.hdr .menu-toggle { display: grid; }
	.nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: var(--header-bg); border-top: 1px solid rgba(255,255,255,.1); max-height: 75vh; overflow-y: auto; z-index: 80; }
	.nav.open { display: block; }
	.nav-list { flex-direction: column; }
	.nav-list > li { display: block; }
	.nav-list > li > a { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.07); justify-content: space-between; }
	.nav .sub-menu { position: static; min-width: 0; grid-template-columns: 1fr 1fr; border-radius: 0; box-shadow: none; border-top: 0; background: rgba(255,255,255,.04); }
	.nav .menu-item-has-children:hover > .sub-menu { display: none; }
	.nav .menu-item-has-children.open > .sub-menu { display: grid; }
	.nav .sub-menu a { color: #e5e7eb; }
	.brand-badge .brand-name { font-size: 18px; }
	.nb-links { display: none; }
}
@media (max-width: 640px) {
	.nb-date { display: none; }
	.newsbar-row { gap: 10px; min-height: 46px; }
	.nb-track { height: 46px; }
	.nb-item { line-height: 46px; font-size: 14.5px; }
	.nb-label { padding: 0 10px; font-size: 13.5px; }
	.nb-arrow { width: 28px; height: 28px; }
	.nav .sub-menu { grid-template-columns: 1fr; }
	.brand-ico { width: 30px; height: 30px; }
	.brand-badge { padding: 5px 8px 5px 12px; }
	.brand-badge .brand-name { font-size: 16px; }
}

/* إصلاحات الفحص البصري */
.job-search button svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.section .grid-cards.few { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.wz-contact { position: relative; }
.wz-contact .hp { position: absolute; inset-inline-start: 0; top: 0; left: auto; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
html, body { overflow-x: clip; }
