/* تحسينات قسم الوظائف - Enhanced Careers Styles
   تنسيقات مخصصة لصفحة الوظائف وعرضها بشكل أكثر جاذبية
*/

/* قسم الوظائف */
.careers-section {
    padding: 60px 0;
    position: relative;
}

/* رأس قسم الوظائف */
.careers-header {
    text-align: center;
    margin-bottom: 40px;
}

.careers-header h2 {
    font-size: 32px;
    color: #0a3a78;
    margin-bottom: 15px;
    font-weight: 700;
}

.careers-header p {
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
}

/* شبكة الوظائف */
.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* بطاقة الوظيفة */
.job-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(10, 58, 120, 0.1);
}

.job-card-header {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.job-title {
    font-size: 22px;
    color: #0a3a78;
    margin-bottom: 10px;
    font-weight: 600;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 14px;
}

.job-meta i {
    color: #0a3a78;
}

.job-type {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(10, 58, 120, 0.1);
    color: #0a3a78;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.job-card-body {
    padding: 25px;
    flex-grow: 1;
}

.job-description {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.job-requirements {
    margin-top: 20px;
}

.job-requirements h4 {
    font-size: 18px;
    color: #0a3a78;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.job-requirements li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.job-requirements li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: #0a3a78;
}

.job-card-footer {
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-card .btn-premium {
    padding: 10px 25px;
}

.job-date {
    color: #777;
    font-size: 14px;
}

/* نموذج التقديم */
.application-form-section {
    padding: 60px 0;
    background-color: #f9fafb;
}

.application-form-container {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.application-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.application-form-header h3 {
    font-size: 28px;
    color: #0a3a78;
    margin-bottom: 15px;
    font-weight: 600;
}

.application-form-header p {
    color: #555;
    font-size: 16px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.form-col {
    flex: 1;
    min-width: 250px;
    padding: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #0a3a78;
    box-shadow: 0 0 0 3px rgba(10, 58, 120, 0.1);
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.file-upload {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload:hover {
    border-color: #0a3a78;
    background-color: rgba(10, 58, 120, 0.05);
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 30px;
    color: #0a3a78;
    margin-bottom: 10px;
}

.file-upload-text {
    color: #555;
    font-size: 15px;
}

.file-upload-text span {
    color: #0a3a78;
    font-weight: 500;
}

.btn-submit {
    background: linear-gradient(135deg, #0a3a78 0%, #1a5baa 100%);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(10, 58, 120, 0.2);
    display: block;
    margin: 20px auto 0;
    min-width: 200px;
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 58, 120, 0.3);
}

/* تأثيرات الانتقال */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* تأخير الظهور بالتدريج */
.careers-grid .job-card:nth-child(1) {
    animation-delay: 0.1s;
}

.careers-grid .job-card:nth-child(2) {
    animation-delay: 0.2s;
}

.careers-grid .job-card:nth-child(3) {
    animation-delay: 0.3s;
}

.careers-grid .job-card:nth-child(4) {
    animation-delay: 0.4s;
}

.careers-grid .job-card:nth-child(5) {
    animation-delay: 0.5s;
}

.careers-grid .job-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .careers-grid {
        grid-template-columns: 1fr;
    }
    
    .job-card-header,
    .job-card-body,
    .job-card-footer {
        padding: 20px;
    }
    
    .application-form-container {
        padding: 25px;
    }
    
    .form-row {
        flex-direction: column;
    }
}
