/*
Theme Name: Shughl Com - شغل كوم
Theme URI: https://shughl.com
Author: Amin
Author URI: https://shughl.com
Description: قالب احترافي متكامل لموقع شغل كوم للوظائف باللغة العربية مع دعم كامل لـ RTL ومتجاوب مع جميع الأجهزة. مُحسّن لمحركات البحث وجوجل أدسنس.
Version: 3.5.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ay-wadhefa
Tags: rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, jobs, employment, arabic
*/

/* ==========================================
   Reset & Base Styles
========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* الألوان الأساسية - يمكن تغييرها من لوحة التحكم */
    --primary-color: #2C5AA0;
    --primary-hover: #1e4480;
    --secondary-color: #1E88E5;
    --accent-color: #FFA726;
    --success-color: #43A047;
    --danger-color: #E53935;
    --warning-color: #FB8C00;
    --info-color: #039BE5;
    
    /* ألوان الخلفيات */
    --bg-color: #F5F7FA;
    --bg-light: #FFFFFF;
    --bg-dark: #1a1a2e;
    --header-bg: #2C5AA0;
    --nav-bg: #1a1a2e;
    
    /* ألوان النصوص */
    --text-color: #2C3E50;
    --text-light: #6C7A89;
    --text-white: #FFFFFF;
    --text-muted: #95A5A6;
    
    /* الحدود والظلال */
    --border-color: #E1E8ED;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    
    /* الخطوط */
    --font-primary: 'Thmanyah', 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-heading: 'Thmanyah', 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    
    /* المسافات */
    --container-width: 1200px;
    --header-height: 70px;
    --nav-height: 50px;
    
    /* الانتقالات */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

/* ==========================================
   Container & Layout
========================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    padding: 30px 0;
}

/* ==========================================
   Header (نسخة موحّدة ومنظّمة)
========================================== */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    flex-wrap: nowrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

.site-logo img {
    height: 70px;
    width: auto;
    max-height: 90px;
    object-fit: contain;
}

.site-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.site-title a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-title a::before {
    content: '💼';
    font-size: 1.2rem;
}

.site-description {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    margin: 2px 0 0;
    line-height: 1.2;
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 15px;
    min-width: 0;
    position: relative;
}

.header-search form {
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.header-search form:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.18);
}

.header-search input[type="search"] {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 11px 18px;
    font-size: 14px;
    font-family: var(--font-primary);
    outline: none;
    background: transparent;
    color: var(--text-color);
}

.header-search input[type="search"]::placeholder {
    color: #94a3b8;
}

.header-search button {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-color), #fb923c);
    color: #fff;
    border: none;
    padding: 0 22px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-primary);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: filter 0.2s ease;
}

.header-search button:hover {
    filter: brightness(1.08);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
    background: rgba(255,255,255,0.22);
}

/* ==========================================
   Navigation
========================================== */
.main-navigation {
    background: var(--nav-bg);
    border-top: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
}

.main-navigation .container {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu > li > a {
    padding: 13px 18px;
    font-weight: 500;
    position: relative;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.nav-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    background: rgba(255,255,255,0.05);
}

.nav-menu > li > a:hover::before,
.nav-menu > li.current-menu-item > a::before {
    transform: scaleX(1);
}

.nav-menu .menu-item-icon {
    font-size: 14px;
    opacity: 0.9;
}

/* ==========================================
   RESPONSIVE — التابلت (Tablet)
========================================== */
@media (max-width: 992px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .header-search {
        max-width: 320px;
        margin: 0 10px;
    }

    .site-title {
        font-size: 1.2rem;
    }
}

/* ==========================================
   RESPONSIVE — الجوال (Mobile) — مهم جداً
========================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1.05rem; }

    /* الحاوية */
    .container {
        padding: 0 12px;
    }

    /* الهيدر العلوي */
    .header-top {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 0;
    }

    .site-branding {
        order: 1;
        flex: 1;
        min-width: 0;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 2;
        flex-shrink: 0;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
        margin: 8px 0 0;
        width: 100%;
    }

    .site-title {
        font-size: 1.1rem;
        white-space: normal;
    }

    .site-description {
        display: none;
    }

    .header-search input[type="search"] {
        padding: 10px 14px;
        font-size: 13px;
    }

    .header-search button {
        padding: 0 16px;
    }

    .header-search button span {
        display: none;
    }

    /* القائمة على الجوال - تنطوي */
    .main-navigation .container {
        padding: 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--nav-bg);
        max-height: 70vh;
        overflow-y: auto;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-menu > li > a {
        padding: 14px 18px;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-menu > li > a::before {
        display: none;
    }

    /* المحتوى */
    .site-content {
        padding: 20px 0;
    }

    /* الشريط العلوي (topbar) */
    .site-topbar {
        font-size: 0.78rem;
        padding: 5px 0;
    }
    .site-topbar .topbar-item span {
        display: none;
    }
}

/* ==========================================
   RESPONSIVE — الجوال الصغير (≤ 480px)
========================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .site-title {
        font-size: 1rem;
    }

    .site-title a::before {
        font-size: 1rem;
    }

    .header-top {
        gap: 6px;
    }

    .header-search button {
        padding: 0 14px;
    }
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-white);
    padding: 14px 18px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    background: rgba(255,255,255,0.08);
    border-bottom-color: var(--accent-color);
}

.nav-menu .menu-item-icon {
    font-size: 16px;
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-light);
    box-shadow: var(--shadow-lg);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
    z-index: 100;
}

.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-color);
    font-size: 14px;
}

.nav-menu .sub-menu a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

/* ==========================================
   Jobs Grid
========================================== */
.page-title-area {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.page-title {
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-title {
    text-align: center;
    margin: 30px 0 25px;
    font-size: 1.4rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.job-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.job-card.no-status {
    padding: 20px;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: var(--transition);
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.job-card:hover::before {
    transform: scaleY(1);
}

.job-card-content {
    flex: 1;
    min-width: 0;
}

.job-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-title a {
    color: inherit;
}

.job-card-title a:hover {
    color: var(--primary-color);
}

.job-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.82rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.job-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-card-meta i {
    color: var(--primary-color);
    font-size: 14px;
}

.job-card-logo {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.job-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.job-card-logo-placeholder {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* ==========================================
   Single Job Page
========================================== */
.single-job-wrapper {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.single-job-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.single-job-logo {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-color);
    background: #fff;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-job-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.single-job-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.5;
}

.single-job-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-color);
    padding: 5px 12px;
    border-radius: 20px;
}

.job-content {
    line-height: 1.9;
    font-size: 15px;
}

/* روابط داخل محتوى الوظيفة والمقالات */
.job-content a,
.company-description a,
.entry-content a {
    color: var(--primary-color, #2C5AA0);
    text-decoration: underline;
    text-decoration-color: rgba(44, 90, 160, 0.4);
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.job-content a:hover,
.company-description a:hover,
.entry-content a:hover {
    color: var(--secondary-color, #1E88E5);
    text-decoration-color: var(--secondary-color, #1E88E5);
}

.job-content h2,
.job-content h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 12px;
}

.job-content ul li {
    margin-bottom: 8px;
}

.job-apply-button {
    display: inline-block;
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    padding: 14px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    margin: 25px auto;
    display: block;
    max-width: 280px;
}

.job-apply-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-white);
}

.job-meta-box {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-meta-item i {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.job-meta-item .label {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
}

.job-meta-item .value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* ==========================================
   Sidebar & Widgets
========================================== */
.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
    /* مهم جداً: نسمح للأعمدة بالانكماش دون تجاوز viewport */
    min-width: 0;
    max-width: 100%;
}

/* عناصر CSS Grid لها min-width: auto افتراضياً مما يمنعها من الانكماش
   ويسبب overflow أفقي. هذا هو السبب الرئيسي للقص على الجوال. */
.content-area > .site-main,
.content-area > .widget-area,
.content-area > main {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.site-main {
    min-width: 0;
    max-width: 100%;
}

.widget-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.widget ul li a:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

.widget ul li a::before {
    content: '◂';
    color: var(--primary-color);
    font-weight: bold;
}

/* ==========================================
   Search Form
========================================== */
.search-form-large {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}

.search-form-large form {
    display: flex;
    gap: 10px;
}

.search-form-large input[type="search"] {
    flex: 1;
    padding: 13px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition-fast);
}

.search-form-large input[type="search"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.search-form-large button {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 13px 32px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-primary);
    font-size: 15px;
    transition: var(--transition-fast);
}

.search-form-large button:hover {
    background: var(--primary-hover);
}

/* ==========================================
   Ads & Banners
========================================== */
.ad-banner {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    margin: 20px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* ==========================================
   Pagination
========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

/* ==========================================
   Footer
========================================== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 40px 0 0;
    margin-top: 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget ul li {
    padding: 6px 0;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-widget ul li a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.footer-widget p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.site-info {
    background: rgba(0,0,0,0.3);
    padding: 18px 0;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

/* ==========================================
   Responsive Design
========================================== */
@media (max-width: 992px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .single-job-wrapper {
        padding: 20px 15px;
    }

    .single-job-title {
        font-size: 1.2rem;
    }

    .single-job-logo {
        width: 130px;
        height: 130px;
    }

    .job-card {
        padding: 15px;
        gap: 12px;
    }

    .job-card-logo {
        width: 55px;
        height: 55px;
    }

    .job-card-title {
        font-size: 0.92rem;
    }

    .job-card-meta {
        font-size: 0.75rem;
        gap: 10px;
    }

    .search-form-large form {
        flex-direction: column;
    }

    .search-form-large button {
        width: 100%;
    }

    .page-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .job-card {
        flex-direction: row;
    }
    
    .job-card-logo {
        width: 50px;
        height: 50px;
    }
    
    .job-meta-box {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ==========================================
   Utilities
========================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.alignleft { float: right; margin-left: 1.5rem; }
.alignright { float: left; margin-right: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }

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

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--text-white);
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   حالة التقديم (مفتوح / مغلق)
========================================== */
.job-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 10px 0;
}
.job-status-badge i {
    font-size: 1.1em;
}
.job-status-open {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
    animation: pulse-green 2s infinite;
}
.job-status-closed {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}
.job-status-soon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 2px 8px rgba(16,185,129,0.3); }
    50% { box-shadow: 0 2px 16px rgba(16,185,129,0.6); }
}

/* ==========================================
   نقطة حالة التقديم على بطاقة الوظيفة (دائرة صغيرة)
========================================== */
.job-card-status-dot {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 1px 3px rgba(0, 0, 0, 0.15);
    cursor: help;
    transition: transform 0.2s ease;
}
.job-card-status-dot:hover {
    transform: scale(1.25);
}
.job-card-status-dot--open {
    background: #10b981;
    animation: status-dot-pulse-green 2s infinite;
}
.job-card-status-dot--closed {
    background: #ef4444;
}
.job-card-status-dot--soon {
    background: #f59e0b;
    animation: status-dot-pulse-amber 2s infinite;
}
@keyframes status-dot-pulse-green {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 0 rgba(16,185,129,0.5); }
    50% { box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 6px rgba(16,185,129,0); }
}
@keyframes status-dot-pulse-amber {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 0 rgba(245,158,11,0.5); }
    50% { box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 6px rgba(245,158,11,0); }
}
.job-card {
    position: relative;
}

/* ==========================================
   العدّاد التنازلي (من - إلى)
========================================== */
.job-countdown {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid var(--border-color);
    text-align: center;
}
.job-countdown-title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 600;
}
.job-countdown-title i {
    color: var(--primary-color);
    margin-left: 6px;
}
.countdown-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.countdown-box {
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    padding: 12px 18px;
    min-width: 75px;
    box-shadow: 0 3px 10px rgba(44,90,160,0.2);
}
.countdown-box.expired {
    background: #94a3b8;
}
.countdown-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}
.countdown-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 600;
}
.countdown-dates {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    flex-wrap: wrap;
}
.countdown-date-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
}
.countdown-date-item .label {
    color: var(--text-light);
    font-weight: 600;
}
.countdown-date-item .value {
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
}
.countdown-date-item i {
    color: var(--primary-color);
    margin-left: 4px;
}
.countdown-expired-msg {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .countdown-box {
        min-width: 60px;
        padding: 10px 12px;
    }
    .countdown-number {
        font-size: 1.5rem;
    }
}

/* ==========================================
   أيقونات التواصل في الفوتر
========================================== */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.15);
}
.footer-social a:hover {
    transform: translateY(-4px) scale(1.05);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.footer-social a.social-twitter:hover { background: #000; border-color: #000; }
.footer-social a.social-facebook:hover { background: #1877f2; border-color: #1877f2; }
.footer-social a.social-instagram:hover { 
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
}
.footer-social a.social-youtube:hover { background: #ff0000; border-color: #ff0000; }
.footer-social a.social-telegram:hover { background: #0088cc; border-color: #0088cc; }
.footer-social a.social-whatsapp:hover { background: #25d366; border-color: #25d366; }
.footer-social a.social-linkedin:hover { background: #0077b5; border-color: #0077b5; }
.footer-social a.social-snapchat:hover { background: #fffc00; color: #000; border-color: #fffc00; }
.footer-social a.social-tiktok:hover { background: #000; border-color: #000; }


/* زر التقديم المعطّل */
.job-apply-button.disabled,
.job-apply-button[onclick*="alert"] {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    cursor: not-allowed;
    opacity: 0.95;
}
.job-apply-button.disabled:hover {
    transform: none !important;
}

/* تحسين عرض الفوتر على الجوال */
@media (max-width: 768px) {
    .footer-social {
        justify-content: center;
    }
    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}

/* ==========================================
   Share Buttons (وسائل المشاركة)
========================================== */
.share-buttons {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}
.share-buttons h4 {
    margin: 0 0 15px;
    font-size: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.share-buttons h4 i {
    color: var(--primary-color);
}
.share-buttons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #fff;
    opacity: 0.95;
}
.share-btn i {
    font-size: 1rem;
}
.share-twitter   { background: #000000; }
.share-facebook  { background: #1877f2; }
.share-whatsapp  { background: #25d366; }
.share-telegram  { background: #0088cc; }
.share-linkedin  { background: #0a66c2; }
.share-snapchat  { background: #fffc00; color: #000; }
.share-snapchat:hover { color: #000; }
.share-pinterest { background: #e60023; }
.share-copy      { background: var(--text-color); }
.share-copy.copied {
    background: #10b981 !important;
}
.share-copy.copied i::before {
    content: "\f00c"; /* fa-check */
}

@media (max-width: 600px) {
    .share-btn span {
        display: none;
    }
    .share-btn {
        width: 42px;
        height: 42px;
        justify-content: center;
        padding: 0;
    }
    .share-btn i {
        font-size: 1.05rem;
    }
}


/* ==========================================
   Print styles
========================================== */
@media print {
    .site-header,
    .site-footer,
    .share-buttons,
    .related-jobs,
    .ad-banner,
    .mobile-menu-toggle {
        display: none !important;
    }
    body {
        background: #fff !important;
    }
    .single-job-wrapper {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* ==========================================
   Breadcrumbs
========================================== */
.breadcrumbs {
    background: var(--bg-light);
    padding: 12px 18px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--primary-hover); text-decoration: underline; }
.breadcrumbs .separator {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 2px;
}
.breadcrumbs .current {
    color: var(--text-color);
    font-weight: 600;
}
.breadcrumbs i { font-size: 0.9rem; }

@media (max-width: 600px) {
    .breadcrumbs { padding: 10px 14px; font-size: 0.82rem; }
}

/* ==========================================
   Topbar (شريط معلومات علوي)
========================================== */
.site-topbar {
    background: rgba(0,0,0,0.15);
    color: #fff;
    padding: 6px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.topbar-item {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}
.topbar-item:hover {
    color: var(--accent-color);
    opacity: 1;
}
.topbar-item i { font-size: 0.85rem; }
.topbar-social {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.2s;
    font-size: 0.78rem;
}
.topbar-social:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .site-topbar { font-size: 0.75rem; padding: 4px 0; }
    .topbar-item span { display: none; }
    .topbar-item i { font-size: 0.95rem; }
}

/* Hijri date display */
.hijri-date {
    display: inline-block;
    font-size: 0.82em;
    color: #059669;
    margin-right: 6px;
    direction: rtl;
    font-weight: 500;
}
.countdown-date-item .value {
    line-height: 1.6;
}

/* ==========================================
   وسوم المدن/المواقع تحت كرت الوظيفة
   ========================================== */
.job-location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    align-items: center;
}
.job-location-tags .location-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    background: #EBF2FA;
    color: #2C5AA0;
    border: 1px solid #B8D0ED;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.3;
    white-space: nowrap;
}
.job-location-tags .location-tag:hover {
    background: #2C5AA0;
    color: #fff;
    border-color: #2C5AA0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(44, 90, 160, 0.25);
}
.job-location-tags .location-tag i {
    font-size: 0.7rem;
    opacity: 0.85;
}
.job-location-tags .location-tag--text {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
    cursor: default;
}
.job-location-tags .location-tag--text:hover {
    background: #f8fafc;
    color: #475569;
    transform: none;
    box-shadow: none;
}

/* عدّاد المشاهدات */
.job-views-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
}
.job-views-count i {
    font-size: 0.78rem;
    color: #94a3b8;
}
.single-job-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 14px;
    font-size: 0.85rem;
}
.single-job-views .job-views-count {
    color: #475569;
    font-weight: 600;
}

/* صفحة الوظيفة المفردة: كل التصنيفات */
.job-taxonomies-block {
    margin: 25px 0;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.job-taxonomies-block .taxonomy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.job-taxonomies-block .taxonomy-row:last-child {
    margin-bottom: 0;
}
.job-taxonomies-block .taxonomy-label {
    font-weight: 700;
    color: #334155;
    font-size: 0.92rem;
    min-width: 90px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.job-taxonomies-block .taxonomy-label i {
    color: #10b981;
}
.job-taxonomies-block .taxonomy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.job-taxonomies-block .taxonomy-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.job-taxonomies-block .taxonomy-tag:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

/* الوظائف المرتبطة (السيو الداخلي) */
.related-jobs-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}
.related-jobs-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}
.related-jobs-title i {
    color: #10b981;
}
.related-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}
.related-job-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
}
.related-job-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
    transform: translateY(-2px);
}
.related-job-card .related-job-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.related-job-card .related-job-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.related-job-card .related-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: #64748b;
}
.related-job-card .related-job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.related-job-card .related-job-meta i {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Breadcrumbs */
.shughl-breadcrumbs {
    max-width: 1200px;
    margin: 15px auto 0;
    padding: 0 15px;
    font-size: 0.88rem;
}
.shughl-breadcrumbs .breadcrumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.shughl-breadcrumbs .breadcrumbs-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}
.shughl-breadcrumbs .breadcrumbs-item a:hover {
    color: #10b981;
    text-decoration: underline;
}
.shughl-breadcrumbs .breadcrumbs-item [aria-current="page"] {
    color: #1e293b;
    font-weight: 600;
}
.shughl-breadcrumbs .breadcrumbs-separator {
    color: #cbd5e1;
    list-style: none;
    margin: 0 2px;
}

/* ودجت المدن في الشريط الجانبي */
.widget-locations .location-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.widget-locations .location-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    background: #EBF2FA;
    color: #2C5AA0;
    border: 1px solid #B8D0ED;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.widget-locations .location-tag:hover {
    background: #2C5AA0;
    color: #fff;
    border-color: #2C5AA0;
}
.widget-locations .location-tag i {
    font-size: 0.72rem;
}
.widget-locations .location-count {
    display: inline-block;
    padding: 0 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-inline-start: 2px;
}
.widget-locations .location-tag:hover .location-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* تنسيق وراثة لكروت الوظائف لتناسب المساحة الإضافية للوسوم */
.job-card {
    align-items: flex-start;
}
.job-card .job-card-content {
    flex: 1;
    min-width: 0;
}

/* الموبايل */
@media (max-width: 600px) {
    .job-location-tags .location-tag {
        font-size: 0.72rem;
        padding: 3px 9px;
    }
    .job-taxonomies-block {
        padding: 14px;
    }
    .job-taxonomies-block .taxonomy-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .job-taxonomies-block .taxonomy-label {
        min-width: 0;
    }
    .related-jobs-grid {
        grid-template-columns: 1fr;
    }
}
