/*
Theme Name: Wisal Jobs
Theme URI: https://wisalnews.com/
Author: Wisal News
Description: A professional English job-board style theme for publishing job opportunities in Germany, France, Sweden, the Netherlands, Belgium, Austria, the UK and across Europe. AdSense-ready, with job detail fields, Google for Jobs structured data and auto-created legal pages.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wisal
Tags: blog, news, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* ========== المتغيرات ========== */
:root {
	--w-primary: #0b2545;
	--w-primary-2: #13315c;
	--w-accent: #e8a317;
	--w-accent-dark: #b97f0a;
	--w-green: #0f9d73;
	--w-red: #d64545;
	--w-bg: #f4f6fa;
	--w-card: #ffffff;
	--w-text: #1c2533;
	--w-muted: #5f6b7a;
	--w-border: #e3e8ef;
	--w-radius: 14px;
	--w-shadow: 0 2px 10px rgba(11, 37, 69, .06);
	--w-shadow-hover: 0 10px 28px rgba(11, 37, 69, .13);
	--w-max: 1200px;
	--w-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========== الأساس ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	direction: ltr;
	font-family: var(--w-font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--w-text);
	background: var(--w-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--w-primary-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--w-accent-dark); }
h1, h2, h3, h4 { line-height: 1.45; color: var(--w-primary); margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 999; top: 8px; inset-inline-start: 8px;
	background: #fff; padding: 10px 16px; border-radius: 8px;
}
.w-container { max-width: var(--w-max); margin: 0 auto; padding: 0 18px; }

/* ========== الشريط العلوي ========== */
.w-topbar { background: #071a33; color: #c9d4e3; font-size: 13.5px; }
.w-topbar .w-container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.w-topbar a { color: #e9eef5; }
.w-topbar a:hover { color: var(--w-accent); }
.w-topbar__social { display: flex; gap: 14px; }

/* ========== الهيدر ========== */
.w-header { background: var(--w-primary); color: #fff; }
.w-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.w-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.w-brand:hover { color: #fff; }
.w-brand img { max-height: 52px; width: auto; }
.w-brand__mark {
	width: 42px; height: 42px; border-radius: 12px; background: var(--w-accent);
	display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--w-primary);
}
.w-brand__name { font-size: 22px; font-weight: 800; line-height: 1.2; }
.w-brand__tag { display: block; font-size: 12.5px; color: #aebdd1; font-weight: 400; }

.w-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.w-nav a { display: block; color: #e6ecf4; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15.5px; }
.w-nav a:hover, .w-nav .current-menu-item > a { background: rgba(255,255,255,.1); color: #fff; }
.w-nav ul ul { display: none; }
.w-nav__toggle {
	display: none; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff;
	border-radius: 8px; padding: 6px 12px; font-size: 15px; cursor: pointer; font-family: inherit;
}

/* شريط الدول */
.w-countries { background: #fff; border-bottom: 1px solid var(--w-border); }
.w-countries__list { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: thin; }
.w-chip {
	display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
	padding: 6px 14px; border-radius: 999px; background: var(--w-bg); color: var(--w-text);
	font-size: 14.5px; font-weight: 600; border: 1px solid var(--w-border);
}
.w-chip:hover { border-color: var(--w-accent); color: var(--w-primary); }
.w-chip__code {
	font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #fff;
	padding: 1px 6px; border-radius: 5px; background: var(--c, var(--w-primary));
}
.w-chip__count { color: var(--w-muted); font-weight: 400; font-size: 13px; }

/* ========== الإعلانات ========== */
.w-ad { margin: 22px auto; text-align: center; clear: both; overflow: hidden; }
.w-ad__label { display: block; font-size: 11.5px; color: #8a96a6; letter-spacing: .5px; margin-bottom: 4px; }
.w-ad--header { max-width: var(--w-max); padding: 0 18px; min-height: 100px; }
.w-ad--sidebar { margin: 0 0 22px; }
.w-ad--loop { grid-column: 1 / -1; margin: 6px 0; }
.w-ad-placeholder {
	border: 2px dashed #b8c3d2; border-radius: 10px; background: #fafbfd; color: #7b8797;
	padding: 26px 12px; font-size: 14px; min-height: 90px; display: grid; place-items: center;
}

/* ========== الهيرو ========== */
.w-hero {
	background:
		radial-gradient(circle at 15% 20%, rgba(232,163,23,.18), transparent 40%),
		linear-gradient(135deg, var(--w-primary) 0%, #1d4e89 100%);
	color: #fff; padding: 56px 0 64px; text-align: center;
}
.w-hero h1 { color: #fff; font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; margin-bottom: 12px; }
.w-hero p { color: #d5deea; font-size: 18px; max-width: 680px; margin: 0 auto 26px; }
.w-hero .w-search { max-width: 640px; margin: 0 auto 22px; }
.w-hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.w-hero__chips .w-chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.w-hero__chips .w-chip__count { color: #c1cede; }
.w-hero__chips .w-chip:hover { background: rgba(255,255,255,.2); }

/* البحث */
.w-search { display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--w-shadow); border: 1px solid var(--w-border); }
.w-search input[type="search"] {
	flex: 1; border: 0; padding: 14px 16px; font-size: 16px; font-family: inherit; outline: none; min-width: 0; color: var(--w-text);
}
.w-search button {
	border: 0; background: var(--w-accent); color: var(--w-primary); font-weight: 800; padding: 0 24px;
	font-size: 16px; cursor: pointer; font-family: inherit;
}
.w-search button:hover { background: #f2b53a; }

/* ========== التخطيط ========== */
.w-main { padding: 30px 0 50px; }
.w-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.w-sidebar { position: sticky; top: 20px; }
.w-section { margin-bottom: 42px; }
.w-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.w-section__title { font-size: 24px; margin: 0; display: flex; align-items: center; gap: 10px; }
.w-section__title::before { content: ""; width: 6px; height: 26px; border-radius: 4px; background: var(--c, var(--w-accent)); }
.w-section__more { font-weight: 700; font-size: 15px; white-space: nowrap; }

/* ========== البطاقات ========== */
.w-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.w-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.w-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w-card {
	background: var(--w-card); border-radius: var(--w-radius); overflow: hidden; box-shadow: var(--w-shadow);
	border: 1px solid var(--w-border); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.w-card:hover { transform: translateY(-3px); box-shadow: var(--w-shadow-hover); }
.w-card__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--w-primary); overflow: hidden; display: block; }
.w-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.w-card__ph {
	width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.95);
	background: linear-gradient(135deg, var(--c, var(--w-primary)) 0%, var(--w-primary) 100%);
	font-size: 40px; font-weight: 800; letter-spacing: 2px;
}
.w-card__badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.w-badge {
	display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
	background: #fff; color: var(--w-primary); box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.w-badge--country { background: var(--c, var(--w-primary)); color: #fff; }
.w-badge--expired { background: var(--w-red); color: #fff; }
.w-badge--new { background: var(--w-green); color: #fff; }
.w-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.w-card__title { font-size: 18px; margin: 0 0 8px; line-height: 1.5; }
.w-card__title a { color: var(--w-primary); }
.w-card__title a:hover { color: var(--w-accent-dark); }
.w-card__excerpt { color: var(--w-muted); font-size: 15px; margin: 0 0 12px; line-height: 1.75; }
.w-card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--w-muted); }
.w-card__meta span { display: inline-flex; align-items: center; gap: 4px; }

/* قائمة مضغوطة */
.w-list { list-style: none; margin: 0; padding: 0; }
.w-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--w-border); }
.w-list li:last-child { border-bottom: 0; }
.w-list__thumb { flex: 0 0 74px; height: 58px; border-radius: 8px; overflow: hidden; background: var(--w-primary); }
.w-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.w-list__thumb .w-card__ph { font-size: 16px; }
.w-list a.w-list__title { font-weight: 700; font-size: 15px; line-height: 1.55; color: var(--w-primary); display: block; }
.w-list small { color: var(--w-muted); font-size: 12.5px; }

/* ========== الويدجت ========== */
.w-widget { background: #fff; border-radius: var(--w-radius); padding: 18px 20px; margin-bottom: 22px; border: 1px solid var(--w-border); box-shadow: var(--w-shadow); }
.w-widget__title { font-size: 18px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--w-bg); }
.w-widget ul { list-style: none; margin: 0; padding: 0; }
.w-widget > ul > li, .w-widget .menu > li { padding: 7px 0; border-bottom: 1px dashed var(--w-border); }
.w-widget > ul > li:last-child { border-bottom: 0; }
.w-widget--cta { background: linear-gradient(135deg, var(--w-primary), #1d4e89); color: #fff; border: 0; }
.w-widget--cta .w-widget__title { color: #fff; border-color: rgba(255,255,255,.15); }
.w-widget--cta p { color: #d5deea; font-size: 15px; }

/* ========== رأس الأرشيف ========== */
.w-archive-head { background: #fff; border-radius: var(--w-radius); padding: 26px 28px; margin-bottom: 24px; border: 1px solid var(--w-border); border-inline-start: 6px solid var(--c, var(--w-accent)); box-shadow: var(--w-shadow); }
.w-archive-head h1 { font-size: 28px; margin-bottom: 6px; }
.w-archive-head p, .w-archive-head .w-archive-desc { color: var(--w-muted); margin: 0; }

/* مسار التنقل */
.w-breadcrumb { font-size: 14px; color: var(--w-muted); margin-bottom: 14px; }
.w-breadcrumb a { color: var(--w-muted); }
.w-breadcrumb a:hover { color: var(--w-primary); }
.w-breadcrumb span.sep { margin: 0 6px; opacity: .6; }

/* ========== المقال ========== */
.w-article { background: #fff; border-radius: var(--w-radius); padding: 30px 34px; border: 1px solid var(--w-border); box-shadow: var(--w-shadow); }
.w-article__title { font-size: clamp(25px, 3.2vw, 34px); font-weight: 800; margin-bottom: 12px; }
.w-article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--w-muted); font-size: 14.5px; margin-bottom: 20px; align-items: center; }
.w-article__thumb { border-radius: 12px; overflow: hidden; margin: 0 0 24px; }
.w-article__thumb img { width: 100%; }
.w-content { font-size: 18px; line-height: 1.8; }
.w-content h2 { font-size: 25px; margin-top: 1.6em; padding-bottom: 8px; border-bottom: 2px solid var(--w-bg); }
.w-content h3 { font-size: 21px; margin-top: 1.4em; }
.w-content ul, .w-content ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.w-content li { margin-bottom: .4em; }
.w-content a { color: #1d63b8; text-decoration: underline; text-underline-offset: 3px; }
.w-content blockquote { margin: 1.4em 0; padding: 14px 20px; background: var(--w-bg); border-inline-start: 4px solid var(--w-accent); border-radius: 8px; }
.w-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 16px; display: block; overflow-x: auto; }
.w-content th, .w-content td { border: 1px solid var(--w-border); padding: 10px 12px; text-align: start; }
.w-content th { background: var(--w-bg); }
.w-content img { border-radius: 10px; }
.w-content .wp-block-image { margin: 1.4em 0; }
.w-content figcaption { font-size: 14px; color: var(--w-muted); text-align: center; }

/* صندوق تفاصيل الوظيفة */
.w-job-box { background: linear-gradient(180deg, #f8fafd, #eef3f9); border: 1px solid var(--w-border); border-radius: 12px; padding: 20px 22px; margin: 0 0 26px; }
.w-job-box__title { font-size: 18px; margin: 0 0 14px; }
.w-job-box dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 0; }
.w-job-box dl div { display: flex; flex-direction: column; }
.w-job-box dt { font-size: 13px; color: var(--w-muted); }
.w-job-box dd { margin: 0; font-weight: 700; color: var(--w-primary); font-size: 16px; }
.w-job-box .is-expired { color: var(--w-red); }

/* الأزرار */
.w-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px;
	border-radius: 10px; font-weight: 800; font-size: 16.5px; background: var(--w-accent); color: var(--w-primary);
	border: 0; cursor: pointer; font-family: inherit; text-decoration: none !important;
}
.w-btn:hover { background: #f2b53a; color: var(--w-primary); }
.w-btn--dark { background: var(--w-primary); color: #fff; }
.w-btn--dark:hover { background: var(--w-primary-2); color: #fff; }
.w-btn[aria-disabled="true"] { background: #c7ced8; color: #5f6b7a; pointer-events: none; }
.w-apply { text-align: center; margin: 30px 0 10px; padding: 22px; background: var(--w-bg); border-radius: 12px; }
.w-apply p { margin: 10px 0 0; font-size: 14px; color: var(--w-muted); }

/* التحذير */
.w-notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; background: #fff7e6; border: 1px solid #f5d699; margin: 26px 0; font-size: 15.5px; line-height: 1.8; }
.w-notice__icon { font-size: 22px; line-height: 1.4; }
.w-notice strong { color: #7a4f00; }

/* المشاركة */
.w-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 6px; padding-top: 18px; border-top: 1px solid var(--w-border); }
.w-share__label { font-weight: 700; margin-inline-end: 6px; }
.w-share a { padding: 7px 14px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 700; }
.w-share a:hover { color: #fff; opacity: .9; }
.w-share .s-wa { background: #25d366; }
.w-share .s-fb { background: #1877f2; }
.w-share .s-tg { background: #229ed9; }
.w-share .s-x { background: #111; }

.w-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.w-tags a { background: var(--w-bg); padding: 4px 12px; border-radius: 999px; font-size: 13.5px; color: var(--w-muted); }

.w-related { margin-top: 34px; }
.w-related h2 { font-size: 22px; }

/* الصفحات */
.w-page .w-content h2 { font-size: 22px; }

/* الترقيم */
.w-pagination { margin-top: 30px; }
.w-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.w-pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--w-border); font-weight: 700; }
.w-pagination .page-numbers.current { background: var(--w-primary); color: #fff; border-color: var(--w-primary); }

/* التعليقات */
.w-comments { margin-top: 28px; background: #fff; border-radius: var(--w-radius); padding: 26px 30px; border: 1px solid var(--w-border); }
.w-comments ol { list-style: none; padding: 0; }
.w-comments .children { padding-inline-start: 24px; list-style: none; }
.w-comments .comment-body { padding: 14px 0; border-bottom: 1px solid var(--w-border); }
.w-comments textarea, .w-comments input[type="text"], .w-comments input[type="email"], .w-comments input[type="url"] {
	width: 100%; border: 1px solid var(--w-border); border-radius: 8px; padding: 10px 12px; font-family: inherit; font-size: 15px;
}
.w-comments .submit { background: var(--w-primary); color: #fff; border: 0; padding: 11px 24px; border-radius: 8px; font-family: inherit; font-weight: 700; cursor: pointer; }

/* 404 */
.w-404 { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--w-radius); border: 1px solid var(--w-border); }
.w-404 strong { font-size: 90px; color: var(--w-accent); line-height: 1; display: block; }
.w-404 .w-search { max-width: 520px; margin: 22px auto; }

/* ========== الفوتر ========== */
.w-footer { background: #071a33; color: #aebdd1; padding: 46px 0 0; margin-top: 20px; font-size: 15px; }
.w-footer a { color: #dfe7f1; }
.w-footer a:hover { color: var(--w-accent); }
.w-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-bottom: 34px; }
.w-footer h3 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.w-footer ul { list-style: none; margin: 0; padding: 0; }
.w-footer li { padding: 4px 0; }
.w-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ووردبريس */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: 14px; color: var(--w-muted); }
.sticky .w-card { border-color: var(--w-accent); }

/* ========== الاستجابة ========== */
@media (max-width: 1080px) {
	.w-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
	.w-layout { grid-template-columns: 1fr; }
	.w-sidebar { position: static; }
	.w-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.w-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.w-nav__toggle { display: block; }
	.w-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--w-primary); padding: 10px 18px 16px; z-index: 50; box-shadow: 0 10px 20px rgba(0,0,0,.2); }
	.w-nav.is-open { display: block; }
	.w-nav ul { flex-direction: column; }
	.w-header { position: relative; }
	.w-grid, .w-grid--4, .w-grid--2 { grid-template-columns: 1fr; }
	.w-article { padding: 20px 18px; }
	.w-content { font-size: 17px; }
	.w-job-box dl { grid-template-columns: 1fr 1fr; }
	.w-footer__grid { grid-template-columns: 1fr; }
	.w-hero { padding: 40px 0 46px; }
	.w-topbar__social { display: none; }
	.w-comments { padding: 20px 18px; }
}
@media print {
	.w-ad, .w-header, .w-countries, .w-sidebar, .w-footer, .w-share, .w-topbar { display: none !important; }
}
