/*
 * ---------------------------------------
 * إعدادات عامة (Reset & Typography)
 * ---------------------------------------
 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif; /* استخدام الخط العربي */
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    direction: rtl; /* جعل الصفحة تبدأ من اليمين لملائمة اللغة العربية */
    text-align: right;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

/*
 * ---------------------------------------
 * شريط التنقل (Header/Navbar)
 * ---------------------------------------
 */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    color: #007bff;
    font-size: 1.8em;
}

.nav a {
    color: #555;
    margin-right: 15px;
    font-weight: 500;
    padding: 5px 0;
}

.nav a:hover {
    color: #0056b3;
}

.login-btn {
    background-color: #007bff;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #0056b3;
}

/*
 * ---------------------------------------
 * قسم البحث والفلترة (Hero)
 * ---------------------------------------
 */
.hero {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-input, .filter-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    flex-grow: 1; /* للسماح لخانة البحث بالنمو */
    font-family: 'Cairo', sans-serif;
}

.search-btn {
    padding: 12px 25px;
    background-color: #28a745; /* لون أخضر للبحث */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
}

.search-btn:hover {
    background-color: #218838;
}

/*
 * ---------------------------------------
 * قائمة الوظائف (Job Listings)
 * ---------------------------------------
 */
.job-listings h3 {
    margin-bottom: 20px;
    font-size: 1.7em;
    color: #333;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
}

.job-card {
    background-color: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-right: 5px solid #007bff; /* شريط أزرق جانبي */
    transition: transform 0.2s;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.job-header h4 {
    color: #007bff;
    font-size: 1.4em;
}

.job-type {
    background-color: #ffc107;
    color: #333;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.company-name, .job-location {
    color: #555;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.company-name i, .job-location i {
    color: #888;
    margin-left: 8px;
}

.tags {
    margin: 15px 0;
}

.tags span {
    display: inline-block;
    background-color: #e9ecef;
    color: #6c757d;
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 3px;
    font-size: 0.8em;
}

.details-btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.details-btn:hover {
    background-color: #0056b3;
}

/*
 * ---------------------------------------
 * تذييل الصفحة (Footer)
 * ---------------------------------------
 */
.footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.footer p {
    margin: 0;
    font-size: 0.9em;
}