/* ===========================
   Careers Section Styles
   =========================== */

.careers-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Job Positions Card */
.job-positions-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: sticky;
    top: 20px;
}

.job-positions-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #9f7756;
}

.job-positions-list {
    max-height: 600px;
    overflow-y: auto;
}

.job-position-item {
    padding: 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-position-item:hover {
    background: #e9ecef;
    border-color: #9f7756;
    transform: translateX(5px);
}

.job-position-item.active {
    background: #fff3e0;
    border-color: #9f7756;
    box-shadow: 0 2px 8px rgba(159, 119, 86, 0.2);
}

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

.job-position-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.job-position-type {
    background: #9f7756;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.job-position-location {
    color: #6c757d;
    font-size: 14px;
    margin: 8px 0;
}

.job-position-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0 0 0;
}

/* Career Form Card */
.career-form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

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

.career-form-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.career-form-subtitle {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

/* Form Styles */
.career-application-form .form-group {
    margin-bottom: 20px;
}

.career-application-form .form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.career-application-form .form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.career-application-form .form-control:focus {
    border-color: #9f7756;
    box-shadow: 0 0 0 0.2rem rgba(159, 119, 86, 0.25);
    outline: none;
}

.career-application-form select.form-control {
    cursor: pointer;
}

.career-application-form .file-upload-wrapper {
    position: relative;
}

.career-application-form .file-upload-wrapper input[type="file"] {
    padding: 10px;
}

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

/* Submit Button */
.form-submit-wrapper {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.form-submit-wrapper .btn {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background: #9f7756;
    border: none;
    transition: all 0.3s ease;
}

.form-submit-wrapper .btn:hover {
    background: #7d5d42;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(159, 119, 86, 0.3);
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* RTL Support */
[dir="rtl"] .job-position-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .career-form-header {
    text-align: right;
}

[dir="rtl"] .form-submit-wrapper {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 991px) {
    .job-positions-card {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .career-form-card {
        padding: 30px 20px;
    }

    .career-form-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .careers-section {
        padding: 40px 0;
    }

    .job-positions-card {
        padding: 20px;
    }

    .career-form-card {
        padding: 25px 15px;
    }

    .career-form-title {
        font-size: 20px;
    }

    .job-position-header {
        flex-direction: column;
        gap: 10px;
    }

    .job-position-type {
        align-self: flex-start;
    }
}

/* Scrollbar for job positions list */
.job-positions-list::-webkit-scrollbar {
    width: 6px;
}

.job-positions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.job-positions-list::-webkit-scrollbar-thumb {
    background: #9f7756;
    border-radius: 10px;
}

.job-positions-list::-webkit-scrollbar-thumb:hover {
    background: #7d5d42;
}
