/*
* איצאב מתכות - עיצוב דף המשרות
* גרסה: 1.0
* תאריך: 06/04/2025
*/

/* === למה לעבוד אצלנו === */
.why-work-with-us {
    background-color: var(--light-text);
}

/* === משרות פתוחות === */
.jobs-container {
    margin-top: 4rem;
}

.job-card {
    background-color: var(--light-text);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
    overflow: hidden;
}

.job-header {
    padding: 2rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-header h3 {
    margin: 0;
}

.job-type {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 1.4rem;
}

.full-time {
    background-color: var(--success-color);
}

.part-time {
    background-color: var(--warning-color);
}

.job-details {
    padding: 2rem;
    background-color: #f5f5f5;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.job-detail {
    margin-left: 3rem;
    display: flex;
    align-items: center;
}

.ltr .job-detail {
    margin-left: 0;
    margin-right: 3rem;
}

.job-detail i {
    margin-left: 0.8rem;
    color: var(--primary-color);
}

.ltr .job-detail i {
    margin-left: 0;
    margin-right: 0.8rem;
}

.job-description {
    padding: 2rem;
}

.job-description h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.job-description ul {
    list-style: disc;
    padding-right: 2rem;
}

.ltr .job-description ul {
    padding-right: 0;
    padding-left: 2rem;
}

.job-apply {
    padding: 0 2rem 2rem;
}

.apply-button {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.apply-button:hover {
    background-color: #d35400;
}

/* === טופס הגשת מועמדות === */
.application-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow: auto;
}

.application-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    background-color: var(--light-text);
    padding: 3rem;
    border-radius: 8px;
}

.file-upload {
    position: relative;
    display: flex;
    align-items: center;
}

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

.file-upload-label {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 1rem;
}

.ltr .file-upload-label {
    margin-left: 0;
    margin-right: 1rem;
}

/* === Responsive === */
@media screen and (max-width: 768px) {
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-type {
        margin-top: 1rem;
    }

    .job-details {
        flex-direction: column;
    }

    .job-detail {
        margin-left: 0;
        margin-bottom: 1rem;
    }

    .ltr .job-detail {
        margin-right: 0;
    }

    .application-content {
        padding: 2rem;
    }

    .file-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-upload-label {
        margin: 1rem 0;
    }

    .ltr .file-upload-label {
        margin: 1rem 0;
    }
}

/* === סביבת העבודה === */
.work-environment {
    background-color: var(--light-text);
    padding: 8rem 0;
}

.environment-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-top: 3rem;
}

.environment-text {
    flex: 1;
}

.environment-text h3 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    font-size: 2rem;
}

.environment-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.environment-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.environment-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* === מקטע CTA בדף המשרות === */
.jobs-cta {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 6rem 0;
    text-align: center;
}

.jobs-cta .section-title,
.jobs-cta .section-subtitle {
    color: var(--light-text);
}

.jobs-cta .section-title::after {
    background-color: var(--secondary-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.cta-buttons .cta-button,
.cta-buttons .cta-button-secondary {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
}

.cta-buttons .cta-button-secondary {
    background-color: transparent;
    border: 2px solid var(--light-text);
    color: var(--light-text);
}

.cta-buttons .cta-button-secondary:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

.cta-buttons i {
    font-size: 1.8rem;
}

/* תצוגה במובייל */
@media screen and (max-width: 992px) {
    .environment-content {
        flex-direction: column-reverse;
    }

    .environment-image {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .cta-button,
    .cta-buttons .cta-button-secondary {
        width: 100%;
        max-width: 300px;
    }
}