/*
Theme Name: مسار وظائف
Theme URI: https://wzfni.net/
Author: Masar Jobs
Description: قالب عربي خفيف وسريع لمواقع الوظائف مع دعم التصنيفات والمراجعة قبل النشر.
Version: 1.5.6
Text Domain: masar-jobs
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
    --masar-navy: #102f4d;
    --masar-navy-deep: #0d2944;
    --masar-blue: #174a72;
    --masar-gold: #e39a3d;
    --masar-gold-soft: #f4b963;
    --masar-bg: #f7f9fc;
    --masar-surface: #ffffff;
    --masar-text: #10233f;
    --masar-muted: #718198;
    --masar-border: #e4eaf1;
    --masar-success: #27835d;
    --masar-radius: 18px;
    --masar-shadow: 0 16px 42px rgba(20, 57, 90, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    margin: 0;
    background: var(--masar-bg);
    color: var(--masar-text);
    font-family: Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}
img { max-width: 100%; height: auto; }
a { color: var(--masar-blue); text-decoration: none; }
a:hover { color: var(--masar-gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(227, 154, 61, .38);
    outline-offset: 2px;
}
h1, h2, h3, p { overflow-wrap: break-word; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--masar-border);
    box-shadow: 0 2px 14px rgba(16, 47, 77, .035);
    backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; min-width: max-content; }
.brand-link { display: inline-flex; align-items: center; gap: 7px; color: var(--masar-navy); font-size: 22px; font-weight: 900; letter-spacing: -.5px; }
.brand-link:hover { color: var(--masar-navy); }
.brand-link em { color: var(--masar-gold); font-style: normal; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--masar-navy); color: var(--masar-gold-soft); font-size: 16px; line-height: 1; }
.brand .custom-logo-link { display: inline-flex; }
.brand .custom-logo { max-height: 48px; width: auto; }
.main-nav ul { display: flex; align-items: center; justify-content: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #52677f; font-size: 14px; font-weight: 700; transition: color .2s ease; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--masar-blue); }
.header-actions { display: flex; align-items: center; gap: 13px; }
.admin-link { color: #5d7189; font-size: 13px; font-weight: 700; white-space: nowrap; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    background: var(--masar-blue);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { background: #103d61; color: #fff; box-shadow: 0 8px 18px rgba(16, 47, 77, .18); transform: translateY(-1px); }
.button.gold { background: var(--masar-gold); color: var(--masar-navy); }
.button.gold:hover { background: var(--masar-gold-soft); color: var(--masar-navy); }
.button-header { min-height: 40px; padding-inline: 16px; }

.theme-notice { margin-top: 18px; padding: 13px 17px; border-radius: 12px; font-weight: 700; }
.notice-success { background: #e8f7ef; border: 1px solid #bfecd1; color: #176947; }
.notice-error { background: #fff1f0; border: 1px solid #ffd3ce; color: #a33a30; }

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(116deg, #0c2945 0%, #103553 47%, #174a72 100%);
    color: #fff;
    padding: 76px 0 92px;
}
.hero::before, .hero::after { position: absolute; content: ""; border-radius: 50%; pointer-events: none; }
.hero::before { width: 520px; height: 520px; top: -360px; left: -100px; background: rgba(91, 153, 195, .09); }
.hero::after { width: 440px; height: 440px; right: -230px; bottom: -350px; background: rgba(229, 173, 92, .08); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.eyebrow, .section-kicker { display: inline-block; margin: 0 0 9px; color: var(--masar-gold-soft); font-size: 13px; font-weight: 800; letter-spacing: .1px; }
.hero h1 { max-width: 630px; margin: 0; color: #fff; font-size: clamp(40px, 5vw, 64px); line-height: 1.25; letter-spacing: -1.3px; }
.hero p { max-width: 610px; margin: 19px 0 0; color: #c9d8e7; font-size: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 28px; color: #c7d8e8; font-size: 13px; }
.hero-stats span { display: inline-flex; align-items: baseline; gap: 5px; }
.hero-stats strong { color: #fff; font-size: 23px; line-height: 1; }
.hero-panel { padding: 26px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 26px; background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .07)); box-shadow: 0 24px 62px rgba(2, 21, 38, .25); backdrop-filter: blur(8px); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-size: 14px; }
.panel-heading small { padding: 3px 10px; border-radius: 999px; background: rgba(241, 180, 94, .14); color: #f4c77d; font-size: 11px; font-weight: 700; }
.floating-cards { display: grid; gap: 11px; margin-top: 18px; }
.hero-panel-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 14px; background: rgba(255, 255, 255, .11); color: #fff; animation: masar-float 5s ease-in-out infinite; }
.hero-panel-item:nth-child(2) { animation-delay: .8s; }
.hero-panel-item:nth-child(3) { animation-delay: 1.6s; }
.hero-panel-item.featured { background: rgba(255, 255, 255, .18); }
.hero-panel-item > div { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.hero-panel-item b { font-size: 13px; }
.hero-panel-item small { color: #c5d5e5; font-size: 11px; line-height: 1.55; }
.panel-icon { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #dbe9f7; font-size: 16px; }
.panel-icon-gold { background: var(--masar-gold); color: var(--masar-navy); }
.panel-arrow { color: #c5d5e5; font-size: 18px; }

.search-box { position: relative; z-index: 3; margin-top: -31px; }
.search-box form { display: grid; grid-template-columns: 1.45fr 1fr 1fr auto; gap: 0; padding: 8px; border: 1px solid var(--masar-border); border-radius: 15px; background: var(--masar-surface); box-shadow: 0 15px 34px rgba(16, 47, 77, .15); }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 0; padding-inline: 12px; border-left: 1px solid var(--masar-border); }
.search-field span { color: #95a3b2; font-size: 23px; line-height: 1; transform: rotate(-20deg); }
.search-box input, .search-box select, .job-form input, .job-form textarea, .job-form select { width: 100%; border: 1px solid var(--masar-border); border-radius: 10px; background: #fbfcfe; color: var(--masar-text); font: inherit; font-size: 14px; }
.search-box input, .search-box select { min-width: 0; border: 0; border-radius: 0; padding: 11px 10px; background: transparent; }
.search-box select { border-left: 1px solid var(--masar-border); cursor: pointer; }
.search-box input:focus, .search-box select:focus { outline: none; background: #f9fbfd; }
.search-box .button { min-height: 44px; border-radius: 10px; }

.section { padding: 72px 0; }
.jobs-section { padding-top: 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading h1, .section-heading h2 { margin: 0; color: var(--masar-navy); font-size: clamp(27px, 3vw, 34px); line-height: 1.35; letter-spacing: -.4px; }
.section-heading .section-kicker { margin-bottom: 2px; color: #c27b23; }
.count-label { color: var(--masar-muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.job-card { display: flex; flex-direction: column; min-width: 0; min-height: 270px; padding: 22px; border: 1px solid var(--masar-border); border-radius: var(--masar-radius); background: var(--masar-surface); box-shadow: 0 2px 6px rgba(16, 47, 77, .02); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.job-card:hover { border-color: #d4dee9; box-shadow: var(--masar-shadow); transform: translateY(-4px); }
.job-card-top, .job-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 10px; border-radius: 999px; background: #e8f7ef; color: var(--masar-success); font-size: 11px; font-weight: 800; line-height: 1.3; }
.job-age { color: #93a0b0; font-size: 11px; white-space: nowrap; }
.job-card h2 { margin: 15px 0 4px; color: var(--masar-navy); font-size: 19px; line-height: 1.55; }
.job-card h2 a { color: inherit; }
.job-card h2 a:hover { color: var(--masar-blue); }
.job-company { min-height: 25px; margin: 0; color: #4e6076; font-size: 13px; font-weight: 700; }
.job-excerpt { margin: 11px 0; color: var(--masar-muted); font-size: 12px; line-height: 1.75; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--masar-muted); font-size: 12px; }
.job-meta { margin-top: auto; padding-top: 15px; border-top: 1px solid #edf1f5; }
.job-card-footer { padding-top: 13px; }
.salary-label { color: var(--masar-navy); font-size: 12px; font-weight: 800; }
.job-card-link { color: var(--masar-blue); font-size: 12px; font-weight: 800; }
.job-card-link span { display: inline-block; transition: transform .2s ease; }
.job-card-link:hover span { transform: translateX(-3px); }
.empty-state { grid-column: 1 / -1; padding: 46px 24px; border: 1px dashed #d6e0e9; border-radius: var(--masar-radius); background: #fff; text-align: center; }
.empty-state strong { font-size: 18px; }
.empty-state p { margin: 5px 0 0; color: var(--masar-muted); }
.section-action { margin-top: 26px; text-align: center; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(-4px); }

.articles-section { padding-top: 0; }
.article-card { overflow: hidden; border: 1px solid var(--masar-border); border-radius: var(--masar-radius); background: #fff; }
.article-image { display: block; overflow: hidden; aspect-ratio: 16 / 8; background: #eef3f7; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.article-card:hover .article-image img { transform: scale(1.04); }
.article-card-content { padding: 18px; }
.article-date { margin: 0; color: #a17337; font-size: 11px; font-weight: 700; }
.article-card h3 { margin: 6px 0; font-size: 18px; line-height: 1.55; }
.article-card h3 a { color: var(--masar-navy); }
.article-card h3 a:hover { color: var(--masar-blue); }
.article-card-content > p:last-child { margin: 0; color: var(--masar-muted); font-size: 13px; }

.why-section { padding: 66px 0; border-block: 1px solid var(--masar-border); background: #fff; }
.why-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; align-items: stretch; }
.why-intro { padding: 6px 4px; }
.why-grid h2 { margin: 0; color: var(--masar-navy); font-size: clamp(27px, 3vw, 33px); line-height: 1.45; }
.why-intro > p:last-child { margin: 12px 0 0; color: var(--masar-muted); font-size: 14px; }
.why-card { padding: 23px; border: 1px solid #edf1f5; border-radius: var(--masar-radius); background: var(--masar-bg); }
.why-card h3 { margin: 14px 0 4px; color: var(--masar-navy); font-size: 18px; }
.why-card p { margin: 0; color: var(--masar-muted); font-size: 13px; }
.why-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: #e7f0f8; color: var(--masar-blue); font-size: 23px; font-weight: 700; }
.gold-icon { background: #fff1df; color: #b66e1c; }

.site-footer { padding: 30px 0; background: var(--masar-navy); color: #cbd9e7; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer p { margin: 0; font-size: 13px; }
.site-footer a { color: #fff; }

/* صفحات الأرشيف والبحث */
.archive-header { margin-bottom: 25px; }
.archive-header h1 { margin: 0; color: var(--masar-navy); font-size: clamp(28px, 3.3vw, 38px); }
.archive-description { margin: 8px 0 0; color: var(--masar-muted); }
.search-context { margin: 7px 0 0; color: var(--masar-muted); font-size: 14px; }
.pagination { display: flex; justify-content: center; margin-top: 30px; }
.pagination .nav-links { display: flex; align-items: center; gap: 6px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 38px; min-height: 38px; padding: 4px 9px; border: 1px solid var(--masar-border); border-radius: 9px; background: #fff; font-size: 13px; }
.pagination .current { border-color: var(--masar-blue); background: var(--masar-blue); color: #fff; }

/* صفحة تفاصيل الوظيفة */
.single-section { padding-top: 46px; }
.back-link { display: inline-flex; margin-bottom: 18px; color: var(--masar-blue); font-size: 13px; font-weight: 800; }
.single-job { border: 1px solid var(--masar-border); border-radius: 24px; background: #fff; overflow: hidden; }
.job-single-header { padding: 34px 36px 26px; border-bottom: 1px solid var(--masar-border); background: linear-gradient(135deg, #fff, #f9fbfd); }
.job-single-header h1 { margin: 14px 0 9px; color: var(--masar-navy); font-size: clamp(30px, 4vw, 44px); line-height: 1.35; }
.job-single-meta { font-size: 13px; }
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; padding: 34px 36px; }
.job-content section + section { margin-top: 36px; }
.job-content h2 { margin: 0 0 15px; color: var(--masar-navy); font-size: 23px; }
.job-content p, .job-content li { color: #43566e; }
.application-section { padding: 22px; border-radius: 16px; background: #f7fafc; scroll-margin-top: 96px; }
.application-email { display: inline-flex; margin-top: 7px; font-weight: 800; direction: rtl; }
.job-sidebar { min-width: 0; }
.sidebar-box { position: sticky; top: 96px; padding: 23px; border: 1px solid var(--masar-border); border-radius: var(--masar-radius); background: #fff; box-shadow: 0 8px 24px rgba(16, 47, 77, .05); }
.sidebar-kicker { margin: 0 0 12px; color: var(--masar-muted); font-size: 12px; font-weight: 800; }
.job-details { margin: 0; }
.job-details div { padding: 11px 0; border-top: 1px solid #edf1f5; }
.job-details dt { color: var(--masar-muted); font-size: 12px; }
.job-details dd { margin: 3px 0 0; color: var(--masar-navy); font-size: 14px; font-weight: 800; }
.full-button { width: 100%; margin-top: 20px; }

/* نموذج إضافة وظيفة */
.submit-section { padding-top: 58px; }
.submit-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 48px; align-items: start; }
.submit-intro { position: sticky; top: 112px; }
.submit-intro h1 { margin: 0; color: var(--masar-navy); font-size: clamp(33px, 4vw, 47px); line-height: 1.3; }
.submit-intro > p { margin: 15px 0 0; color: var(--masar-muted); }
.submit-info-card { margin-top: 26px; padding: 20px; border-radius: var(--masar-radius); background: var(--masar-navy); color: #fff; }
.submit-info-card strong { font-size: 16px; }
.submit-info-card p { margin: 7px 0 0; color: #c9d8e7; font-size: 13px; }
.job-form { padding: 28px; border: 1px solid var(--masar-border); border-radius: 22px; background: #fff; box-shadow: 0 10px 36px rgba(16, 47, 77, .045); }
.job-form label { display: block; margin-bottom: 17px; color: #32475f; font-size: 14px; font-weight: 800; }
.job-form label span { color: #b23b32; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.job-form input, .job-form textarea, .job-form select { display: block; margin-top: 6px; padding: 11px 13px; transition: border-color .2s ease, box-shadow .2s ease; }
.job-form input:focus, .job-form textarea:focus, .job-form select:focus { border-color: var(--masar-blue); box-shadow: 0 0 0 3px rgba(23, 74, 114, .1); outline: none; }
.job-form textarea { min-height: 145px; resize: vertical; }
.form-note { margin: 0 0 18px; color: var(--masar-muted); font-size: 12px; }

@keyframes masar-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 980px) {
    .header-inner { gap: 14px; }
    .main-nav ul { gap: 16px; }
    .hero-grid { gap: 34px; }
    .submit-layout { gap: 30px; }
}

@media (max-width: 800px) {
    .site-header { position: relative; }
    html { scroll-padding-top: 20px; }
    .header-inner { min-height: 68px; }
    .main-nav { display: none; }
    .hero { padding: 54px 0 74px; }
    .hero-grid, .why-grid, .single-layout, .submit-layout { grid-template-columns: 1fr; }
    .hero-grid { gap: 28px; }
    .hero h1 { font-size: clamp(36px, 10vw, 50px); }
    .hero-panel { max-width: 550px; }
    .search-box form { grid-template-columns: 1fr 1fr; gap: 3px; }
    .search-field { grid-column: 1 / -1; border-bottom: 1px solid var(--masar-border); border-left: 0; }
    .search-box select { border-left: 1px solid var(--masar-border); }
    .search-box .button { grid-column: 1 / -1; }
    .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .why-intro { padding: 0; }
    .site-footer .container { flex-direction: column; align-items: flex-start; }
    .single-layout { padding: 27px; }
    .job-single-header { padding: 27px; }
    .sidebar-box, .submit-intro { position: static; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 24px, 1180px); }
    .brand-link { font-size: 18px; }
    .brand-mark { width: 24px; height: 24px; border-radius: 7px; font-size: 13px; }
    .admin-link { display: none; }
    .button-header { min-height: 36px; padding: 8px 11px; font-size: 12px; }
    .hero { padding-top: 44px; }
    .hero h1 { letter-spacing: -.8px; }
    .hero-stats { gap: 17px; }
    .hero-stats strong { font-size: 20px; }
    .hero-panel { padding: 18px; }
    .hero-panel-item { padding: 11px; }
    .search-box { margin-top: -24px; }
    .search-box form { grid-template-columns: 1fr; }
    .search-box select { border-bottom: 1px solid var(--masar-border); border-left: 0; }
    .section, .why-section { padding: 48px 0; }
    .jobs-section { padding-top: 56px; }
    .section-heading { align-items: start; flex-direction: column; gap: 3px; }
    .count-label { white-space: normal; }
    .jobs-grid { grid-template-columns: 1fr; }
    .job-card { min-height: 0; }
    .single-section, .submit-section { padding-top: 30px; }
    .single-layout, .job-single-header { padding: 21px; }
    .single-job { border-radius: 18px; }
    .job-form { padding: 20px; border-radius: 18px; }
    .form-grid { grid-template-columns: 1fr; }
}


/* تحسينات الترويسة والحركة في الصفحة الرئيسية */
.site-header {
    border-bottom-color: rgba(228, 234, 241, .9);
    box-shadow: 0 6px 22px rgba(16, 47, 77, .055);
}
.header-inner {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    gap: 34px;
}
.main-nav {
    justify-self: center;
    padding: 4px;
    border: 1px solid #e7edf3;
    border-radius: 999px;
    background: #f8fafc;
}
.main-nav ul { gap: 2px; }
.main-nav li { margin: 0; }
.main-nav a {
    position: relative;
    display: block;
    padding: 7px 13px;
    border-radius: 999px;
    color: #5e7188;
    font-size: 13px;
    line-height: 1.35;
    transition: color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}
.main-nav a:hover {
    background: #fff;
    color: var(--masar-blue);
    box-shadow: 0 4px 12px rgba(16, 47, 77, .08);
    transform: translateY(-1px);
}
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    background: var(--masar-navy);
    color: #fff;
    box-shadow: 0 5px 13px rgba(16, 47, 77, .18);
}
.header-actions { justify-self: end; }
.button-header {
    position: relative;
    gap: 7px;
    min-height: 42px;
    padding-inline: 17px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 7px 17px rgba(23, 74, 114, .18);
}
.button-header::after {
    position: absolute;
    top: 0;
    right: -70%;
    width: 45%;
    height: 100%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .24), transparent);
    transform: skewX(-22deg);
    transition: right .48s ease;
}
.button-header:hover::after { right: 130%; }
.button-plus {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .18);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.hero::before { animation: masar-orbit-one 14s ease-in-out infinite alternate; }
.hero::after { animation: masar-orbit-two 17s ease-in-out infinite alternate; }
.hero-copy > .eyebrow,
.hero-copy > h1,
.hero-copy > p,
.hero-copy > .hero-stats {
    opacity: 0;
    animation: masar-enter .7s cubic-bezier(.2, .75, .3, 1) forwards;
}
.hero-copy > h1 { animation-delay: .1s; }
.hero-copy > p { animation-delay: .2s; }
.hero-copy > .hero-stats { animation-delay: .3s; }
.hero-panel { opacity: 0; animation: masar-panel-in .75s .16s cubic-bezier(.2, .75, .3, 1) forwards; }
.home .search-box { opacity: 0; animation: masar-search-in .65s .4s cubic-bezier(.2, .75, .3, 1) forwards; }
.home .jobs-section .section-heading,
.home .why-intro { animation: masar-enter .6s .12s cubic-bezier(.2, .75, .3, 1) both; }
.home .jobs-section .job-card,
.home .why-card {
    animation: masar-enter .58s cubic-bezier(.2, .75, .3, 1) both;
}
.home .jobs-section .job-card:nth-child(2),
.home .why-card:nth-child(2) { animation-delay: .09s; }
.home .jobs-section .job-card:nth-child(3),
.home .why-card:nth-child(3) { animation-delay: .18s; }
.home .jobs-section .job-card:nth-child(3n + 1) { animation-delay: .05s; }
.home .jobs-section .job-card:nth-child(3n + 2) { animation-delay: .12s; }
.home .jobs-section .job-card:nth-child(3n) { animation-delay: .19s; }

@keyframes masar-enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes masar-panel-in {
    from { opacity: 0; transform: translateX(-20px) scale(.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes masar-search-in {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes masar-orbit-one {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(65px, 44px, 0) scale(1.14); }
}
@keyframes masar-orbit-two {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-50px, -34px, 0) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy > .eyebrow,
    .hero-copy > h1,
    .hero-copy > p,
    .hero-copy > .hero-stats,
    .hero-panel,
    .home .search-box { opacity: 1; }
}

@media (max-width: 980px) {
    .header-inner { gap: 18px; }
    .main-nav a { padding-inline: 10px; }
}

@media (max-width: 800px) {
    .header-inner { display: flex; justify-content: space-between; }
    .main-nav { display: none; }
}

@media (max-width: 560px) {
    .button-header { min-height: 38px; padding-inline: 12px; }
    .button-plus { width: 17px; height: 17px; font-size: 16px; }
}

.home .jobs-section .job-card:hover {
    opacity: 1;
    animation: none;
    transform: translateY(-4px);
}


/* واجهة إرسال إعلان وظيفة */
.submit-section { background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%); }
.submit-layout { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 54px; }
.submit-intro { padding-top: 12px; }
.submit-intro h1 { max-width: 470px; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.8px; }
.submission-steps { display: grid; gap: 17px; margin: 31px 0 27px; padding: 0; list-style: none; }
.submission-steps li { display: flex; align-items: flex-start; gap: 12px; }
.submission-steps li > span { display: grid; flex: 0 0 auto; place-items: center; width: 29px; height: 29px; border: 1px solid #cbddea; border-radius: 50%; background: #fff; color: var(--masar-blue); font-size: 12px; font-weight: 900; }
.submission-steps li:not(:last-child) > span { box-shadow: 0 21px 0 -13px #d9e5ee; }
.submission-steps strong { display: block; color: var(--masar-navy); font-size: 14px; line-height: 1.45; }
.submission-steps small { display: block; margin-top: 2px; color: var(--masar-muted); font-size: 12px; line-height: 1.7; }
.submit-info-card { display: flex; align-items: flex-start; gap: 11px; margin-top: 0; padding: 19px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; box-shadow: 0 13px 28px rgba(16, 47, 77, .12); }
.info-card-icon { display: grid; flex: 0 0 auto; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: var(--masar-gold); color: var(--masar-navy); font-size: 15px; font-weight: 900; }
.submit-info-card p { line-height: 1.7; }
.submit-form-wrap { min-width: 0; }
.form-feedback { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; padding: 17px 19px; border-radius: 16px; animation: masar-enter .45s ease both; }
.form-feedback > span { display: grid; flex: 0 0 auto; place-items: center; width: 27px; height: 27px; border-radius: 50%; font-weight: 900; }
.form-feedback strong { display: block; font-size: 14px; }
.form-feedback p { margin: 2px 0 0; font-size: 13px; line-height: 1.65; }
.form-feedback-success { border: 1px solid #bae8cf; background: #eaf8f0; color: #166441; }
.form-feedback-success > span { background: #27835d; color: #fff; }
.form-feedback-error { border: 1px solid #ffd1cc; background: #fff1f0; color: #a33a30; }
.form-feedback-error > span { background: #c84a40; color: #fff; }
.job-submission-form { padding: 31px; }
.form-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--masar-border); }
.form-heading-icon { display: grid; flex: 0 0 auto; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: #e7f0f8; color: var(--masar-blue); font-size: 19px; }
.form-heading h2 { margin: 0; color: var(--masar-navy); font-size: 20px; line-height: 1.35; }
.form-heading p { margin: 2px 0 0; color: var(--masar-muted); font-size: 12px; }
.job-submission-form fieldset { min-width: 0; margin: 0 0 23px; padding: 0 0 6px; border: 0; }
.job-submission-form legend { margin-bottom: 14px; color: var(--masar-navy); font-size: 14px; font-weight: 900; }
.job-submission-form fieldset + fieldset { padding-top: 24px; border-top: 1px solid var(--masar-border); }
.field-help { display: block; margin-top: 5px; color: var(--masar-muted); font-size: 11px; font-weight: 400; }
.consent-check { display: flex !important; align-items: flex-start; gap: 9px; margin: 0 0 18px !important; color: #4b6078 !important; font-size: 12px !important; font-weight: 600 !important; line-height: 1.7; cursor: pointer; }
.consent-check input { width: 17px !important; min-width: 17px; height: 17px; margin: 3px 0 0 !important; accent-color: var(--masar-blue); }
.submit-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 17px; border-top: 1px solid var(--masar-border); }
.submit-form-footer .form-note { max-width: 330px; margin: 0; }
.submit-job-button { gap: 8px; min-height: 45px; white-space: nowrap; }
.submit-job-button > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .18); font-size: 15px; line-height: 1; transform: rotate(90deg); }

@media (max-width: 800px) {
    .submit-layout { gap: 34px; }
    .submit-intro { position: static; }
}

@media (max-width: 560px) {
    .job-submission-form { padding: 21px; }
    .submit-form-footer { align-items: stretch; flex-direction: column; }
    .submit-form-footer .form-note { max-width: none; }
    .submit-job-button { width: 100%; }
}


/* هوية وظفني والأصول البصرية للواجهة الرئيسية */
.brand-link-wazafni { gap: 8px; }
.brand-logo-wrap { display: grid; place-items: center; width: 42px; height: 42px; padding: 3px; border-radius: 13px; background: linear-gradient(145deg, #eff6fb, #fff); box-shadow: 0 5px 14px rgba(16, 47, 77, .11); }
.brand-logo-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-wordmark { font-size: 24px; font-weight: 900; letter-spacing: -.8px; }
.brand-link-wazafni em { margin-right: -5px; color: var(--masar-gold); font-size: 28px; line-height: 1; }

.hero-spark { position: absolute; z-index: 0; color: rgba(244, 185, 99, .38); line-height: 1; pointer-events: none; animation: masar-sparkle 4.8s ease-in-out infinite; }
.hero-spark-one { top: 18%; right: 8%; font-size: 22px; }
.hero-spark-two { top: 56%; right: 43%; color: rgba(207, 229, 246, .46); font-size: 36px; animation-delay: 1.4s; }
.hero-spark-three { bottom: 14%; left: 8%; font-size: 17px; animation-delay: 2.3s; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid rgba(244, 185, 99, .2); border-radius: 999px; background: rgba(255, 255, 255, .055); }
.eyebrow-icon { color: var(--masar-gold-soft); font-size: 14px; }
.hero-trust { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: #d1dfec; font-size: 12px; font-weight: 700; }
.trust-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(91, 193, 145, .22); color: #a9e7c5; font-size: 11px; }
.panel-heading-title { display: inline-flex; align-items: center; gap: 7px; }
.panel-heading-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #77d3aa; box-shadow: 0 0 0 4px rgba(119, 211, 170, .12); animation: masar-pulse-dot 2s ease-in-out infinite; }
.panel-icon-blue { background: rgba(169, 214, 245, .16); color: #d9efff; }
.search-box .button { gap: 6px; }
.search-box .button span { display: none; }

.category-quick-section { padding: 32px 0 2px; }
.quick-section-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: var(--masar-muted); font-size: 13px; font-weight: 800; }
.quick-section-heading p { margin: 0; }
.quick-heading-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #fff1df; color: #b66e1c; }
.category-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.category-quick-card { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 12px; border: 1px solid var(--masar-border); border-radius: 14px; background: #fff; color: var(--masar-navy); font-size: 13px; font-weight: 800; box-shadow: 0 3px 11px rgba(16, 47, 77, .025); transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease; }
.category-quick-card:hover { border-color: #cbddeb; color: var(--masar-blue); box-shadow: 0 10px 20px rgba(16, 47, 77, .08); transform: translateY(-3px); }
.quick-card-icon { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #e8f2f9; color: var(--masar-blue); font-size: 15px; }
.category-quick-card > span:nth-child(2) { overflow: hidden; flex: 1; text-overflow: ellipsis; white-space: nowrap; }
.category-quick-card b { color: #94a4b5; font-size: 16px; transition: transform .2s ease; }
.category-quick-card:hover b { color: var(--masar-gold); transform: translateX(-3px); }

.section-heading h2 { display: flex; align-items: center; gap: 9px; }
.section-title-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: #e8f2f9; color: var(--masar-blue); font-size: 15px; }
.count-label { display: inline-flex; align-items: center; gap: 7px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4cad7a; box-shadow: 0 0 0 4px #e3f5eb; animation: masar-pulse-dot 2s ease-in-out infinite; }
.job-card { position: relative; overflow: hidden; }
.job-card::before { position: absolute; top: 0; right: 22px; width: 42px; height: 3px; border-radius: 0 0 6px 6px; content: ""; background: var(--masar-gold); opacity: 0; transform: translateY(-3px); transition: opacity .2s ease, transform .2s ease; }
.job-card:hover::before { opacity: 1; transform: translateY(0); }
.article-date { display: inline-flex; align-items: center; gap: 5px; }

.why-grid { grid-template-columns: 1.25fr repeat(3, minmax(0, .85fr)); gap: 15px; }
.why-card { position: relative; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.why-card::after { position: absolute; bottom: -30px; left: -26px; width: 86px; height: 86px; border-radius: 50%; content: ""; background: rgba(23, 74, 114, .045); }
.why-card:hover { box-shadow: 0 13px 26px rgba(16, 47, 77, .08); transform: translateY(-3px); }
.why-card-blue { background: #f0f7fb; }
.blue-icon { background: #dceef8; color: #17618d; }

.home-cta-section { padding: 0 0 72px; background: #fff; }
.home-cta-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 27px; overflow: hidden; padding: 30px 34px; border-radius: 25px; background: linear-gradient(120deg, var(--masar-navy), #174a72); color: #fff; box-shadow: 0 20px 38px rgba(16, 47, 77, .19); }
.home-cta-card::after { position: absolute; bottom: -130px; left: -100px; width: 310px; height: 310px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 50%; content: ""; }
.home-cta-card h2 { margin: 0; color: #fff; font-size: clamp(24px, 3vw, 32px); line-height: 1.4; }
.home-cta-card .section-kicker { margin-bottom: 2px; color: #f6c879; }
.home-cta-card p:not(.section-kicker) { margin: 6px 0 0; color: #c7d8e6; font-size: 13px; }
.cta-orbit { position: relative; z-index: 1; width: 66px; height: 66px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 22px; background: rgba(255, 255, 255, .08); }
.cta-orbit > span { position: absolute; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #fff; color: var(--masar-blue); font-size: 13px; box-shadow: 0 4px 10px rgba(0, 0, 0, .1); }
.cta-orbit > span:nth-child(1) { top: -7px; right: -7px; color: #ba721e; }
.cta-orbit > span:nth-child(2) { bottom: -7px; right: 19px; color: #25845c; }
.cta-orbit > span:nth-child(3) { top: 20px; left: -8px; color: #17618d; }
.cta-button { position: relative; z-index: 1; gap: 7px; white-space: nowrap; }
.cta-button span { display: inline-block; transition: transform .2s ease; }
.cta-button:hover span { transform: translateX(-4px); }

@keyframes masar-sparkle { 0%, 100% { opacity: .25; transform: scale(.8) rotate(0deg); } 50% { opacity: .8; transform: scale(1.17) rotate(12deg); } }
@keyframes masar-pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .65; transform: scale(.88); } }

@media (max-width: 980px) {
    .why-grid { grid-template-columns: 1fr 1fr; }
    .why-intro { grid-column: 1 / -1; }
    .category-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .home-cta-card { grid-template-columns: auto 1fr; }
    .cta-button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 560px) {
    .brand-logo-wrap { width: 36px; height: 36px; border-radius: 11px; }
    .brand-wordmark { font-size: 21px; }
    .brand-link-wazafni em { font-size: 24px; }
    .hero-trust { align-items: flex-start; line-height: 1.55; }
    .category-quick-section { padding-top: 26px; }
    .category-quick-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .why-intro { grid-column: auto; }
    .home-cta-section { padding-bottom: 48px; }
    .home-cta-card { display: block; padding: 25px; border-radius: 20px; }
    .cta-orbit { margin-bottom: 19px; }
    .cta-button { width: 100%; margin-top: 18px; }
}


/* مناطق إعلانات Better Ads Manager */
.masar-ad-area { position: relative; width: min(1180px, calc(100% - 32px)); margin: 30px auto; padding: 24px 18px 18px; border: 1px solid var(--masar-border); border-radius: 16px; background: #fff; box-shadow: 0 7px 22px rgba(16, 47, 77, .045); text-align: center; }
.masar-ad-area .widget { max-width: 100%; overflow: hidden; }
.masar-ad-area .widget > * { max-width: 100%; }
.masar-ad-area img, .masar-ad-area iframe { display: block; max-width: 100%; margin-inline: auto; }
.masar-ad-label { position: absolute; top: 8px; right: 14px; padding: 2px 8px; border-radius: 999px; background: #eef3f7; color: #8797a8; font-size: 10px; font-weight: 800; line-height: 1.4; }
.masar-ad-before-header { margin-top: 10px; margin-bottom: 10px; }
.masar-ad-homepage-search { margin-top: 26px; margin-bottom: -12px; }
.masar-ad-homepage-listings { margin-top: -14px; margin-bottom: 56px; }
.masar-ad-before-footer { margin-top: 58px; margin-bottom: 0; }

.footer-inner { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center !important; }
.footer-brand { display: flex; align-items: baseline; gap: 8px; }
.footer-brand strong { color: #fff; font-size: 18px; }
.footer-brand strong span { color: var(--masar-gold); }
.footer-brand p { color: #cbd9e7; }
.footer-contact-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 9px; color: #fff !important; font-size: 12px; font-weight: 800; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.footer-contact-link:hover { border-color: rgba(244, 185, 99, .55); background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.footer-contact-link span { color: var(--masar-gold-soft); }
.footer-copyright { white-space: nowrap; }

/* صفحة اتصل بنا */
.contact-page { background: #f7f9fc; }
.contact-hero { position: relative; overflow: hidden; padding: 78px 0 122px; background: linear-gradient(120deg, #0d2944, #134568 66%, #1c628d); color: #fff; }
.contact-hero::before, .contact-hero::after { position: absolute; border-radius: 50%; content: ""; pointer-events: none; }
.contact-hero::before { top: -170px; left: -110px; width: 380px; height: 380px; border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 0 0 55px rgba(255, 255, 255, .025), 0 0 0 110px rgba(255, 255, 255, .018); }
.contact-hero::after { right: -70px; bottom: -190px; width: 360px; height: 360px; background: rgba(231, 166, 73, .09); }
.contact-hero-inner { position: relative; z-index: 1; max-width: 850px; text-align: center; }
.contact-hero-inner .eyebrow { margin-bottom: 13px; }
.contact-hero h1 { margin: 0; color: #fff; font-size: clamp(40px, 5vw, 62px); line-height: 1.25; letter-spacing: -1px; }
.contact-hero h1 span { color: var(--masar-gold-soft); }
.contact-hero-inner > p { max-width: 650px; margin: 18px auto 0; color: #c8d9e7; font-size: 16px; }
.contact-hero-points { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 21px; margin-top: 24px; color: #d7e7f3; font-size: 12px; font-weight: 700; }
.contact-hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.contact-hero-points i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: rgba(255, 255, 255, .13); color: #a7e3c4; font-style: normal; }
.contact-spark { position: absolute; z-index: 1; color: rgba(244, 185, 99, .45); animation: masar-sparkle 4.5s ease-in-out infinite; }
.contact-spark-one { top: 30%; right: 13%; font-size: 24px; }
.contact-spark-two { bottom: 22%; left: 14%; color: rgba(219, 241, 255, .5); font-size: 36px; animation-delay: 1.3s; }
.contact-main-section { position: relative; z-index: 2; margin-top: -64px; padding-bottom: 76px; }
.contact-layout { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); gap: 25px; align-items: start; }
.contact-info-panel { padding: 30px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 23px; background: linear-gradient(150deg, #113653, #174a72); color: #fff; box-shadow: 0 17px 34px rgba(16, 47, 77, .17); }
.contact-info-head { display: flex; align-items: center; gap: 11px; }
.contact-info-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .13); color: var(--masar-gold-soft); font-size: 21px; }
.contact-info-head p { margin: 0; color: #bad1e3; font-size: 11px; font-weight: 800; }
.contact-info-head h2 { margin: 2px 0 0; color: #fff; font-size: 20px; line-height: 1.35; }
.contact-info-copy { margin: 19px 0; color: #c5d8e7; font-size: 13px; line-height: 1.85; }
.contact-feature-list { display: grid; gap: 14px; }
.contact-feature-list > div { display: flex; align-items: flex-start; gap: 9px; }
.contact-feature-list > div > span { display: grid; flex: 0 0 auto; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: var(--masar-gold-soft); font-size: 13px; }
.contact-feature-list strong { display: block; font-size: 13px; }
.contact-feature-list small { display: block; margin-top: 1px; color: #b9cfdf; font-size: 11px; line-height: 1.6; }
.contact-response-note { display: flex; align-items: center; gap: 7px; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); color: #c9d9e7; font-size: 11px; }
.contact-response-note span { color: var(--masar-gold-soft); font-size: 14px; }
.contact-form-wrap { min-width: 0; }
.contact-form { padding: 31px; border: 1px solid var(--masar-border); border-radius: 23px; background: #fff; box-shadow: 0 17px 34px rgba(16, 47, 77, .09); }
.contact-form label { display: block; margin-bottom: 17px; color: #32475f; font-size: 14px; font-weight: 800; }
.contact-form label > span { color: #b23b32; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--masar-border); border-radius: 10px; background: #fbfcfe; color: var(--masar-text); font: inherit; font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form textarea { min-height: 156px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--masar-blue); outline: none; box-shadow: 0 0 0 3px rgba(23, 74, 114, .1); }
.contact-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 17px; border-top: 1px solid var(--masar-border); }
.contact-form-footer p { max-width: 310px; margin: 0; color: var(--masar-muted); font-size: 11px; line-height: 1.65; }
.contact-submit-button { gap: 8px; min-height: 45px; white-space: nowrap; }
.contact-submit-button > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .18); font-size: 15px; line-height: 1; transform: rotate(90deg); }

@media (max-width: 800px) {
    .footer-inner { grid-template-columns: 1fr auto !important; }
    .footer-copyright { grid-column: 1 / -1; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-info-panel { order: 2; }
    .contact-main-section { margin-top: -45px; }
}

@media (max-width: 560px) {
    .masar-ad-area { width: min(100% - 24px, 1180px); padding: 22px 10px 12px; border-radius: 13px; }
    .masar-ad-homepage-search { margin-bottom: -2px; }
    .masar-ad-homepage-listings { margin-bottom: 42px; }
    .footer-inner { display: flex !important; align-items: flex-start !important; }
    .footer-brand { align-items: flex-start; flex-direction: column; gap: 2px; }
    .footer-copyright { white-space: normal; }
    .contact-hero { padding: 57px 0 96px; }
    .contact-hero h1 { font-size: clamp(34px, 10vw, 46px); }
    .contact-hero-inner > p { font-size: 14px; }
    .contact-hero-points { align-items: flex-start; flex-direction: column; }
    .contact-main-section { margin-top: -34px; padding-bottom: 50px; }
    .contact-info-panel, .contact-form { padding: 22px; border-radius: 18px; }
    .contact-form-footer { align-items: stretch; flex-direction: column; }
    .contact-form-footer p { max-width: none; }
    .contact-submit-button { width: 100%; }
}


/* رموز التصنيفات المتخصصة */
.quick-card-icon.icon-government-jobs { background: #f0ecfb; color: #7454a6; }
.quick-card-icon.icon-private-sector-jobs { background: #e8f2f9; color: #17618d; }
.quick-card-icon.icon-remote-jobs { background: #eaf7f1; color: #25845c; }
.quick-card-icon.icon-scholarships { background: #fff1df; color: #b66e1c; }
.quick-card-icon.icon-free-courses { background: #e8f4fb; color: #1c6c98; }
.quick-card-icon.icon-articles { background: #eef1f8; color: #50678d; }
.quick-card-icon.icon-riyadh-jobs { background: #fdeced; color: #b54d57; }
.job-card-footer-no-salary { justify-content: flex-end; }


/* تحسينات السيو والمحتوى والربط الداخلي */
.archive-intro { max-width: 760px; margin: 9px 0 0; color: var(--masar-muted); font-size: 14px; line-height: 1.85; }
.seo-content-section { padding: 0 0 78px; background: #fff; }
.seo-content-inner { max-width: 890px; padding: 38px; border: 1px solid var(--masar-border); border-radius: 22px; background: linear-gradient(145deg, #fff, #f7fbfd); box-shadow: 0 12px 30px rgba(16, 47, 77, .055); }
.seo-content-inner h2 { max-width: 650px; margin: 7px 0 12px; color: var(--masar-navy); font-size: clamp(24px, 3vw, 32px); line-height: 1.45; }
.seo-content-inner > p:not(.section-kicker) { max-width: 800px; margin: 8px 0; color: #53687b; font-size: 14px; line-height: 1.9; }
.internal-links { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--masar-border); }
.internal-links p { margin: 0 0 10px; color: var(--masar-navy); font-size: 13px; font-weight: 900; }
.internal-links > div { display: flex; flex-wrap: wrap; gap: 8px; }
.internal-links a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #dbe7ef; border-radius: 9px; background: #fff; color: var(--masar-blue); font-size: 12px; font-weight: 800; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.internal-links a:hover { border-color: #a9c8dc; background: #eff7fb; transform: translateY(-2px); }
.internal-links a span { color: var(--masar-gold); font-size: 14px; }
.internal-page-links { margin-top: 16px; }
.related-jobs { margin-top: 54px; padding-top: 44px; border-top: 1px solid var(--masar-border); }
.related-jobs .section-heading { margin-bottom: 21px; }
.badge-link { display: inline-flex; text-decoration: none; transition: transform .2s ease, filter .2s ease; }
.badge-link:hover { color: #fff; filter: brightness(1.1); transform: translateY(-2px); }
.static-page-content .entry-content { color: #43596d; line-height: 1.9; }
.static-page-content .entry-content > :first-child { margin-top: 0; }
.static-page-header { margin-bottom: 20px; }
.static-page-header h1 { margin: 5px 0 0; }

@media (max-width: 560px) {
    .seo-content-section { padding-bottom: 50px; }
    .seo-content-inner { padding: 24px 20px; border-radius: 17px; }
    .seo-content-inner > p:not(.section-kicker), .archive-intro { font-size: 13px; }
    .internal-links > div { gap: 6px; }
    .internal-links a { font-size: 11px; }
    .related-jobs { margin-top: 38px; padding-top: 32px; }
}


/* إرشادات التقديم في صفحات الوظائف */
.application-guidance { margin-top: 28px; padding: 28px; border: 1px solid #dbe8f0; border-radius: 20px; background: linear-gradient(145deg, #f8fcff 0%, #ffffff 72%); box-shadow: 0 12px 28px rgba(16, 47, 77, .06); }
.guidance-header { max-width: 760px; }
.guidance-kicker { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 7px; color: var(--masar-blue); font-size: 12px; font-weight: 900; }
.guidance-kicker span { color: var(--masar-gold); font-size: 16px; }
.application-guidance h2 { margin: 0; color: var(--masar-navy); font-size: 23px; }
.guidance-header > p:last-child { margin: 10px 0 0; color: #566d80; font-size: 14px; line-height: 1.85; }
.guidance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 22px; }
.guidance-item { position: relative; min-height: 158px; padding: 17px 16px 16px 56px; border: 1px solid #e1ebf2; border-radius: 14px; background: #fff; }
.guidance-icon { position: absolute; top: 17px; right: 16px; display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; border-radius: 9px; background: #eaf4fa; color: var(--masar-blue); font-size: 14px; font-weight: 900; }
.guidance-item:nth-child(2) .guidance-icon, .guidance-item:nth-child(4) .guidance-icon { background: #fff1df; color: #b76e18; }
.guidance-item h3 { margin: 0 0 7px; color: var(--masar-navy); font-size: 15px; }
.guidance-item p { margin: 0; color: #5d7183; font-size: 13px; line-height: 1.8; }
.guidance-note { margin: 18px 0 0; padding: 13px 15px; border-right: 3px solid var(--masar-gold); border-radius: 0 10px 10px 0; background: #fff9ef; color: #705b38; font-size: 13px; line-height: 1.85; }
.guidance-note a { color: var(--masar-blue); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 700px) {
    .application-guidance { padding: 22px 17px; border-radius: 16px; }
    .guidance-grid { grid-template-columns: 1fr; }
    .guidance-item { min-height: 0; }
}


/* تحسين تصميم إرشادات وظفني للتقديم الواعي */
.application-guidance { position: relative; overflow: hidden; padding: 0; border: 1px solid #d9e7ef; border-radius: 22px; background: #fff; box-shadow: 0 16px 34px rgba(16, 47, 77, .075); }
.application-guidance::before { position: absolute; top: -78px; left: -56px; width: 180px; height: 180px; border-radius: 50%; content: ""; background: radial-gradient(circle, rgba(227, 154, 61, .15), rgba(227, 154, 61, 0) 69%); pointer-events: none; }
.guidance-header { position: relative; padding: 29px 30px 24px; border-bottom: 1px solid #e4edf3; background: linear-gradient(135deg, #f1f8fc 0%, #fff 75%); }
.guidance-header::after { position: absolute; bottom: 0; right: 30px; width: 52px; height: 3px; border-radius: 99px; content: ""; background: var(--masar-gold); }
.guidance-kicker { width: fit-content; margin-bottom: 8px; padding: 5px 10px; border: 1px solid #d7e8f2; border-radius: 999px; background: #fff; color: var(--masar-blue); }
.application-guidance h2 { margin: 0; color: var(--masar-navy); font-size: clamp(21px, 2.8vw, 26px); line-height: 1.45; }
.guidance-header > p:last-child { max-width: 760px; margin: 9px 0 0; color: #566d80; font-size: 14px; line-height: 1.9; }
.guidance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 23px 30px 18px; }
.guidance-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-areas: "icon title" "copy copy"; align-items: center; gap: 11px 12px; min-height: 0; padding: 18px; border: 1px solid #e1ebf2; border-radius: 16px; background: #fff; box-shadow: 0 5px 14px rgba(16, 47, 77, .035); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.guidance-item:hover { border-color: #c5ddea; box-shadow: 0 10px 20px rgba(16, 47, 77, .075); transform: translateY(-2px); }
.guidance-icon { position: static; grid-area: icon; width: 38px; height: 38px; border-radius: 12px; background: #e8f3fa; color: var(--masar-blue); font-size: 15px; line-height: 1; }
.guidance-item:nth-child(2) .guidance-icon, .guidance-item:nth-child(4) .guidance-icon { background: #fff1df; color: #b76e18; }
.guidance-item h3 { grid-area: title; align-self: center; margin: 0; color: var(--masar-navy); font-size: 15px; line-height: 1.55; }
.guidance-item p { grid-area: copy; margin: 1px 0 0; color: #5d7183; font-size: 13px; line-height: 1.9; }
.guidance-note { margin: 0 30px 30px; padding: 15px 17px; border: 1px solid #f3dfbf; border-right: 4px solid var(--masar-gold); border-radius: 12px; background: #fff9ef; color: #705b38; font-size: 13px; line-height: 1.9; }

@media (max-width: 700px) {
    .guidance-header { padding: 24px 20px 20px; }
    .guidance-header::after { right: 20px; }
    .guidance-grid { grid-template-columns: 1fr; padding: 18px 20px 14px; }
    .guidance-note { margin: 0 20px 20px; }
}

@media (max-width: 420px) {
    .guidance-header { padding: 21px 17px 18px; }
    .guidance-grid { padding: 15px 17px 12px; }
    .guidance-item { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 15px; }
    .guidance-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
    .guidance-item h3 { font-size: 14px; }
    .guidance-item p, .guidance-note, .guidance-header > p:last-child { font-size: 12px; }
    .guidance-note { margin: 0 17px 17px; padding: 13px; }
}

/* جاهزية AdSense: روابط الثقة، جودة معلومات الوظيفة، ووضوح الصفحات التعريفية */
.footer-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .8rem 1rem;
}
.trust-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem .85rem;
    font-size: .84rem;
}
.trust-links a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: color .2s ease;
}
.trust-links a:hover,
.trust-links a:focus-visible { color: var(--masar-gold); }
.static-page-content .entry-content { line-height: 2; }
.static-page-content .entry-content h2 {
    color: var(--masar-blue);
    margin-top: 2rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #e4edf4;
}
.static-page-content .entry-content p + h2 { margin-top: 2.4rem; }
.job-source,
.job-validity {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #dceaf3;
    border-radius: 12px;
    background: #f4f8fb;
    line-height: 1.8;
}
.job-source a {
    color: var(--masar-blue);
    font-weight: 800;
    text-decoration: none;
}
.job-source a:hover,
.job-source a:focus-visible {
    color: var(--masar-gold);
    text-decoration: underline;
}
.job-validity {
    color: #31576e;
    border-right: 4px solid var(--masar-gold);
}
.job-single-meta span:last-child { color: #5d7484; }
@media (max-width: 640px) {
    .footer-navigation,
    .trust-links { width: 100%; }
    .trust-links { gap: .5rem .75rem; }
    .trust-links a { font-size: .8rem; }
}

.job-search-guide {
    padding: 68px 0;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef5fa 100%);
    border-block: 1px solid #e2ebf2;
}
.guide-heading { margin-bottom: 24px; }
.guide-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.guide-steps article {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 24px;
    border: 1px solid #dce8f0;
    border-radius: var(--masar-radius);
    background: #fff;
    box-shadow: 0 6px 18px rgba(16, 47, 77, .035);
}
.guide-steps article::after {
    position: absolute;
    left: -22px;
    bottom: -30px;
    width: 88px;
    height: 88px;
    border: 16px solid rgba(227, 154, 61, .08);
    border-radius: 50%;
    content: "";
}
.guide-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--masar-navy);
    color: var(--masar-gold-soft);
    font-size: 12px;
    font-weight: 900;
}
.guide-steps h3 {
    margin: 15px 0 7px;
    color: var(--masar-navy);
    font-size: 19px;
}
.guide-steps p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--masar-muted);
    font-size: 13px;
    line-height: 1.9;
}
@media (max-width: 820px) {
    .guide-steps { grid-template-columns: 1fr; }
}

/* صفحات الثقة والسياسات */
.trust-page-section {
    position: relative;
    overflow: hidden;
    padding: 56px 0 74px;
    background:
        radial-gradient(circle at 9% 8%, rgba(227, 154, 61, .13), transparent 20rem),
        linear-gradient(180deg, #f3f8fb 0%, #f8fafc 100%);
}
.trust-page-section::before,
.trust-page-section::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.trust-page-section::before {
    top: 120px;
    right: -140px;
    width: 300px;
    height: 300px;
    border: 48px solid rgba(23, 74, 114, .04);
}
.trust-page-section::after {
    bottom: -105px;
    left: 6%;
    width: 190px;
    height: 190px;
    background: rgba(227, 154, 61, .06);
}
.trust-page-section .container { position: relative; z-index: 1; }
.trust-page-content.trust-page-content {
    max-width: 920px;
    margin-inline: auto;
    border: 1px solid #dbe7ee;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(16, 47, 77, .09);
}
.trust-page-hero {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 40px 46px 36px;
    border: 0;
    background: linear-gradient(125deg, #102f4d 0%, #174a72 58%, #22628e 100%);
    color: #fff;
}
.trust-page-hero::before {
    position: absolute;
    top: -98px;
    left: -48px;
    width: 240px;
    height: 240px;
    border: 28px solid rgba(255, 255, 255, .065);
    border-radius: 50%;
    content: "";
}
.trust-page-hero::after {
    position: absolute;
    right: 34px;
    bottom: 0;
    width: 100px;
    height: 4px;
    border-radius: 99px;
    background: var(--masar-gold);
    content: "";
}
.trust-page-hero > * { position: relative; z-index: 1; }
.trust-page-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, .21);
    border-radius: 15px;
    background: rgba(255, 255, 255, .11);
    color: var(--masar-gold-soft);
    font-size: 23px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(4, 25, 44, .16);
}
.trust-page-hero .section-kicker {
    margin: 0 0 5px;
    color: #f8cb87;
    font-size: 12px;
    letter-spacing: .2px;
}
.trust-page-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 4.4vw, 45px);
    font-weight: 900;
    line-height: 1.32;
    letter-spacing: -.65px;
}
.trust-page-summary {
    max-width: 660px;
    margin: 12px 0 0;
    color: #d5e6f3;
    font-size: 15px;
    line-height: 1.95;
}
.trust-page-body {
    padding: 40px 46px 26px;
    color: #4d6375;
    font-size: 15px;
    line-height: 2.05;
}
.trust-page-body > :first-child { margin-top: 0; }
.trust-page-body h2 {
    position: relative;
    margin: 2.35rem 0 .95rem;
    padding: 0 17px 0 0;
    color: var(--masar-navy);
    font-size: clamp(20px, 2.7vw, 25px);
    font-weight: 900;
    line-height: 1.5;
}
.trust-page-body h2::before {
    position: absolute;
    top: .35em;
    right: 0;
    width: 5px;
    height: 1.15em;
    border-radius: 99px;
    background: var(--masar-gold);
    content: "";
}
.trust-page-body h2 + p,
.trust-page-body h2 + ul,
.trust-page-body h2 + ol { margin-top: 0; }
.trust-page-body p { margin: 0 0 1rem; }
.trust-page-body strong { color: var(--masar-navy); font-weight: 900; }
.trust-page-body ul,
.trust-page-body ol {
    display: grid;
    gap: .7rem;
    margin: 1.1rem 0 1.45rem;
    padding: 0 1.4rem 0 0;
}
.trust-page-body li { padding-right: .25rem; }
.trust-page-body a:not(.button) {
    color: var(--masar-blue);
    font-weight: 800;
    text-decoration-color: rgba(23, 74, 114, .3);
    text-underline-offset: 4px;
}
.trust-page-body a:not(.button):hover { color: #b66e1c; }
.trust-page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 46px 46px;
    padding: 20px 22px;
    border: 1px solid #dceaf3;
    border-radius: 16px;
    background: linear-gradient(135deg, #f2f8fc, #fff);
}
.trust-page-footer p {
    margin: 0;
    color: #50677a;
    font-size: 14px;
    font-weight: 700;
}
.trust-page-footer .button { flex: 0 0 auto; }
@media (max-width: 700px) {
    .trust-page-section { padding: 30px 0 48px; }
    .trust-page-content.trust-page-content { border-radius: 19px; }
    .trust-page-hero { min-height: 0; padding: 30px 24px 28px; }
    .trust-page-hero::after { right: 24px; width: 72px; }
    .trust-page-icon { width: 42px; height: 42px; margin-bottom: 13px; border-radius: 13px; font-size: 20px; }
    .trust-page-summary { font-size: 14px; }
    .trust-page-body { padding: 29px 24px 18px; font-size: 14px; line-height: 2; }
    .trust-page-body h2 { margin-top: 2rem; font-size: 20px; }
    .trust-page-footer { flex-direction: column; align-items: stretch; margin: 0 24px 24px; padding: 18px; text-align: center; }
}
@media (max-width: 420px) {
    .trust-page-hero { padding: 26px 19px 24px; }
    .trust-page-hero::after { right: 19px; }
    .trust-page-body { padding: 24px 19px 15px; font-size: 13px; }
    .trust-page-footer { margin: 0 19px 19px; }
}


/* بطاقات المقالات: صور مصغرة خفيفة بمحاذاة المحتوى */
.articles-grid .article-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    padding: 12px;
    border-color: #e1e9f1;
    box-shadow: 0 3px 12px rgba(16, 47, 77, .035);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.articles-grid .article-card:hover {
    border-color: #cbddea;
    box-shadow: 0 12px 25px rgba(16, 47, 77, .09);
    transform: translateY(-3px);
}
.article-thumb {
    display: grid;
    flex: 0 0 120px;
    place-items: center;
    width: 120px;
    height: 86px;
    overflow: hidden;
    border: 1px solid #e7edf3;
    border-radius: 12px;
    background: #edf4f8;
}
.article-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.article-card:hover .article-thumb img { transform: scale(1.045); }
.article-thumb--placeholder {
    background: linear-gradient(135deg, var(--masar-navy), var(--masar-blue));
    color: var(--masar-gold-soft);
    font-size: 14px;
    font-weight: 900;
}
.articles-grid .article-card-content {
    flex: 1;
    min-width: 0;
    padding: 0;
}
.articles-grid .article-date { margin: 0 0 4px; font-size: 10px; }
.articles-grid .article-card h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--masar-navy);
    font-size: 15px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.articles-grid .article-card-content > p:last-child {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 560px) {
    .articles-grid .article-card { gap: 10px; padding: 10px; }
    .article-thumb { flex-basis: 100px; width: 100px; height: 72px; border-radius: 10px; }
    .articles-grid .article-card h3 { font-size: 14px; line-height: 1.6; }
    .articles-grid .article-card-content > p:last-child { display: none; }
}


/* صورة الجهة في بطاقات الوظائف */
.job-card-main {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    margin-top: 15px;
}
.job-card-thumb {
    display: grid;
    flex: 0 0 62px;
    place-items: center;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border: 1px solid #e4eaf1;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(16, 47, 77, .055);
}
.job-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}
.job-card-thumb--fallback { background: linear-gradient(145deg, #f8fbfd, #e8f1f7); }
.job-card-heading { flex: 1; min-width: 0; }
.job-card .job-card-heading h2 {
    display: -webkit-box;
    margin: -2px 0 3px;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.job-card-heading .job-company {
    display: -webkit-box;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}
.job-card-main + .job-excerpt { margin-top: 12px; }

@media (max-width: 560px) {
    .job-card-main { gap: 11px; margin-top: 13px; }
    .job-card-thumb { flex-basis: 56px; width: 56px; height: 56px; border-radius: 13px; }
    .job-card .job-card-heading h2 { font-size: 16px; }
}


/* ضبط صفحة إضافة وظيفة على الجوال */
@media (max-width: 700px) {
    .submit-section { padding: 24px 0 46px; }
    .submit-layout { gap: 22px; }
    .submit-intro { padding-top: 0; }
    .submit-intro h1 { max-width: none; font-size: clamp(28px, 8.2vw, 38px); line-height: 1.32; letter-spacing: -.55px; }
    .submit-intro > p { margin-top: 10px; font-size: 13px; line-height: 1.8; }
    .submission-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 20px 0 16px; }
    .submission-steps li { display: block; min-width: 0; padding: 11px 8px; border: 1px solid #e4eaf1; border-radius: 13px; background: #fff; }
    .submission-steps li > span { width: 24px; height: 24px; margin-bottom: 7px; font-size: 11px; }
    .submission-steps li:not(:last-child) > span { box-shadow: none; }
    .submission-steps strong { font-size: 11px; line-height: 1.55; }
    .submission-steps small { margin-top: 3px; font-size: 10px; line-height: 1.55; }
    .submit-info-card { gap: 9px; padding: 14px; border-radius: 14px; }
    .submit-info-card p { font-size: 11px; }
    .form-feedback { gap: 9px; margin-bottom: 12px; padding: 14px; border-radius: 14px; }
    .job-submission-form { padding: 19px 16px; border-radius: 18px; }
    .form-heading { align-items: flex-start; gap: 9px; margin-bottom: 20px; padding-bottom: 15px; }
    .form-heading-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
    .form-heading h2 { font-size: 18px; }
    .form-heading p { font-size: 11px; line-height: 1.65; }
    .job-submission-form fieldset { margin-bottom: 18px; padding-bottom: 3px; }
    .job-submission-form fieldset + fieldset { padding-top: 19px; }
    .job-submission-form legend { margin-bottom: 10px; font-size: 13px; }
    .job-submission-form .form-grid { grid-template-columns: 1fr; gap: 0; }
    .job-submission-form label { margin-bottom: 13px; font-size: 13px; }
    .job-submission-form input,
    .job-submission-form select,
    .job-submission-form textarea { min-height: 45px; padding: 10px 11px; font-size: 14px; }
    .job-submission-form textarea { min-height: 118px; }
    .field-help { font-size: 10px; }
    .consent-check { gap: 8px; margin-bottom: 15px !important; font-size: 11px !important; }
    .submit-form-footer { gap: 12px; padding-top: 14px; }
    .submit-form-footer .form-note { font-size: 11px; line-height: 1.7; }
    .submit-job-button { width: 100%; min-height: 48px; font-size: 14px; }
}

@media (max-width: 390px) {
    .submission-steps { gap: 5px; }
    .submission-steps li { padding: 9px 6px; }
    .submission-steps small { display: none; }
}


/* رابط سياسة الخصوصية الكاملة */
.trust-policy-reference {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    padding: 10px 13px;
    border: 1px solid #d7e5ef;
    border-radius: 12px;
    background: #f6fafc;
    font-size: 13px;
    font-weight: 800;
}
.trust-policy-reference > span { color: var(--masar-gold); font-size: 16px; }
.trust-policy-reference a { color: var(--masar-blue); }
.trust-policy-reference a:hover { color: var(--masar-navy); }

@media (max-width: 560px) {
    .trust-policy-reference { width: 100%; justify-content: center; margin-top: 16px; font-size: 12px; }
}


/* إصلاح حاسم لأجهزة الجوال التي تستخدم إطار عرض أكبر من عرض الشاشة */
@media (max-width: 1100px) {
    .submit-section .submit-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: min(100%, 720px);
        margin-inline: auto;
        gap: 26px !important;
    }
    .submit-section .submit-layout > *,
    .submit-form-wrap,
    .job-submission-form {
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .submit-section .submit-intro { position: static !important; }
    .submit-section .job-submission-form .form-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 520px) {
    .submit-section .submit-layout { width: calc(100% - 24px); gap: 20px !important; }
    .submit-section .job-submission-form { width: 100%; padding: 18px 14px; }
    .submit-section .submit-intro h1 { font-size: clamp(27px, 8vw, 35px); }
}
