/* تنسيقات عامة للجسم والخطوط */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    direction: rtl; /* اتجاه الكتابة من اليمين لليسار */
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* تنسيقات الرأس (Header) */
/* تنسيقات الرأس (Header) */
.main-header {
    background-color: #4a0b0b;
    border-bottom: 2px solid #330000;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* إضافة مسافة داخلية لضمان عدم التصاق المحتوى بالحواف */
}

/* تنسيقات اللوغو */
.header-logo img {
    height: 60px;
 /*   border-radius: 50%;  */  /* هذا الكود يجعل الصورة دائرية */
    border: 2px solid #ffffff; /* هذا يضيف حدودا بيضاء */
}
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff; /* لون أبيض */
    font-weight: bold;
    padding: 10px 15px;
    margin-right: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* تنسيقات المحتوى الرئيسي (Main Content) */
.main-content {
    min-height: calc(100vh - 120px);
    padding: 20px 0;
}

.form-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
}

.form-container h1 {
    text-align: center;
    color: #004d40;
    border-bottom: 2px solid #004d40;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-container input[type="text"],
.form-container input[type="password"],
.form-container input[type="email"],
.form-container input[type="url"],
.form-container input[type="date"],
.form-container textarea,
.form-container select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

.form-container button {
    background-color: #006400; /* أخضر غامق */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.form-container button:hover {
    background-color: #004d40; /* لون أغمق عند التمرير */
}

/* تنسيقات الروابط العامة والأزرار */
.button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.button:hover {
    background-color: #0056b3;
}

.links {
    text-align: center;
}

/* تنسيقات قائمة الوظائف */
.job-listing {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.job-listing h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: #333;
}
.job-listing h3 a {
    text-decoration: none;
    color: #007bff;
}
.job-listing h3 a:hover {
    text-decoration: underline;
}
.job-meta {
    color: #666;
    font-size: 0.9rem;
}
.job-meta span {
    margin-right: 15px;
}
.no-jobs-message {
    text-align: center;
    color: #888;
    font-size: 1.2rem;
    margin-top: 50px;
}

/* تنسيقات صفحة تفاصيل الوظيفة */
.job-details-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.job-details-container h1 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #333;
}
.job-info {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.job-info div {
    flex: 1 1 300px;
    margin-bottom: 10px;
}
.job-info span {
    font-weight: bold;
    color: #555;
}
.job-description {
    line-height: 1.6;
    color: #666;
}


/* تنسيقات التذييل (Footer) */
.main-footer {
    background-color: #4a0b0b; /* لون خمري داكن */
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}


/* تنسيقات جديدة لعرض الوظائف كبطاقات */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.job-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-header {
    background-color: #4a0b0b;
    color: #ffffff;
    padding: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.card-body {
    padding: 15px;
}

.card-body p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.job-details-link {
    display: block;
    background-color: #007bff;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.job-details-link:hover {
    background-color: #0056b3;
}

/* تنسيقات خاصة لزر العودة في صفحة التفاصيل */
.back-button-container {
    text-align: center; /* توسيط الزر */
    margin-bottom: 20px; /* مسافة أسفل الزر */
}

.back-button-container .button {
    background-color: #4a0b0b; /* اللون الخمري الداكن */
    color: #ffffff; /* لون النص أبيض */
    padding: 12px 25px; /* حجم أكبر للزر */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block; /* لكي يعمل text-align: center على العنصر */
}

.back-button-container .button:hover {
    background-color: #330000; /* لون أغمق عند التمرير */
}


/* تنسيقات روابط المشاركة */
.share-section {
    margin-top: 40px;
    text-align: center;
}

.share-section h3 {
    font-size: 1.2rem;
    color: #4a0b0b;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-buttons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #4a0b0b;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.5rem;
}

.share-buttons a:hover {
    background-color: #330000;
    transform: translateY(-3px);
}