.our-jobs-container {
    margin: 0 auto;
    padding: 40px 0;
    font-family: "Barlow", sans-serif;
}

.jobs-section,
.spontaneous-section,
.application-form-section {
    padding-left: 10%;
    padding-right: 10%;
}

.spontaneous-section a {
    color: var(--green-text);
}

.application-form-section {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: var(--grey-200);
}

/* Jobs Section */
.jobs-section {
    margin-bottom: 40px;
}

.our-jobs-container h2 {
    font-size: var(--font-size-26);
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.job-item {
    margin-bottom: 20px;
}

/* Job Title Bar (same style as postuler-section) */
.job-title-bar {
    background-color: var(--yellow);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    transform: translateX(-20px);
    width: calc(100% + 20px + 10vw);
}
.job-title-bar.no-jobs {
    cursor: default;
}

.job-title-bar:hover {
    opacity: 0.9;
}

.job-title-text {
    font-size: var(--font-size-20);
    color: black;
    font-weight: normal;
}

.job-toggle-arrow {
    font-size: var(--font-size-18);
    color: black;
    transition: transform 0.3s ease-out;
}

.job-toggle-arrow.expanded {
    transform: rotate(180deg);
}

/* Job Content with proper height animation */
.job-content {
    background-color: var(--grey-100);
    font-size: var(--font-size-16);
    color: black;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
    opacity: 0;
    padding: 0;
}

.job-content.expanded {
    max-height: var(--content-height);
    /* Will be set dynamically */
    opacity: 1;
    padding: 20px 0;
}

.job-content-inner {
    padding: 0 20px;
}

.job-content p {
    margin-bottom: 15px;
}

.job-content p:last-child {
    margin-bottom: 0;
}

/* Application Section */
.application-section {
    background-color: var(--grey-100);
    padding: 30px 0px;
}

.spontaneous-section {
    margin-bottom: 30px;
}


.spontaneous-section h2 {
    margin-bottom: 10px;
}

.spontaneous-section p {
    font-size: var(--font-size-18);
    color: black;
}

.application-form-section h2 {
    margin-bottom: 20px;
}

#first-column-inputs>div,
#second-column-inputs>div {
    margin-bottom: 10px;
}

/* File Upload Styles (not covered by header.css) */
.file-upload-section {
    position: relative;
    margin-top: 30px;
}

.file-upload-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    background-color: var(--white);
    border: 1px solid var(--grey-300);
    border-radius: 4px;
    overflow: hidden;
}

.file-input {
    flex: 1;
    padding: 15px 15px;
    border: none;
    background: transparent;
    font-size: var(--font-size-12);
    color: var(--grey-400);
    outline: none;
}

.file-input::file-selector-button {
    display: none;
}

.file-input::-webkit-file-upload-button {
    display: none;
}

.file-upload-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--grey-200);
    border: none;
    border-left: 1px solid var(--grey-300);
    padding: 4px 20px;
    font-size: var(--font-size-14);
    color: black;
    cursor: pointer;
    text-transform: lowercase;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.file-upload-btn:hover {
    background-color: var(--grey-300);
}

.file-upload-btn:focus {
    outline: none;
    background-color: var(--grey-300);
}

/* Responsive Design */
@media (min-width: 768px) {
    .application-form-section {
        padding-left: 25%;
        padding-right: 25%;
    }
}

@media (min-width: 1024px) {
    #job-application-form {
        max-width: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10%;
        margin-left: 0;
        margin-right: 0;
        padding: 40px;
    }

    .jobs-section {
        margin-bottom: 0;
    }

    .our-jobs-container h2 {
        font-size: var(--font-size-32);
        font-weight: normal;
    }

    .application-form-section,
    .spontaneous-section {
        padding-left: 0;
        padding-right: 0;
        background-color: transparent;
    }

    #job-application-form .voir-plus-button-container {
        margin-bottom: 15px;
    }

    .job-title-bar {
        width: calc(100% + 20px);
    }

    #jobs-form-container input[type="checkbox"]:checked::before {
        position: relative;
        font-size: 14px;
        top: 2px;
    }
}