/* =========================
   HERO
========================= */

#jobs-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5em 6em;
    text-align: center;
    background-color: #12609d;
    color: white;
    gap: 1.8em;
}

#jobs-hero p {
    text-wrap: balance;
}


/* =========================
   FILTERS
========================= */

#filters {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 2em;
    padding: 2em 10em;
    background-color: #f4f8fc;
    color: #12609d;
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7em;
    max-width: 320px;
}

.filter-title {
    font-weight: 600;
    color: white;

}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    justify-content: center;
}

.filter-buttons button {
    border: none;
    background: white;
    color: #4f94cd;
    padding: 0.5em 1.1em;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.filter-buttons button:hover {
    transform: translateY(-1px);
    background: #e2eaf5;
}

.filter-buttons button.active {
    background: #4f94cd;
    color: white;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
}


/* =========================
   JOB GRID
========================= */

#jobs {
    padding: 3em 6em 5em 6em;
}

.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 320px);
    justify-content: center;
    gap: 2em;
}


/* =========================
   JOB CARD
========================= */

.job-link {
    text-decoration: none;
    color: inherit;
}

.job-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 22px rgba(0,0,0,0.15);
}

.job-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.job-content {
    padding: 1.4em;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.8em;
}

.job-content h3 {
    color: #0b385e;
    font-size: 0.85em;
}

.description {
    font-size: 0.9em;
    line-height: 1.4;
    min-height: 2.8em;
    color: #0b385e;
}


/* =========================
   JOB DETAILS
========================= */

.job-details {
    display: flex;
    align-items: center;
    gap: 0.8em;
    font-size: 0.9em;
    color: #12609d;
}


/* =========================
   BENEFITS BADGES
========================= */

.job-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2em;
    margin-top: 0.3em;
}

.job-actions-en {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2em;
    margin-top: 0.3em;
    justify-content: space-between;
}

.relocation-btn,
.flight-btn,
.accommodation-btn,
.DK-btn,
.NO-btn {
    padding: 0.35em 0.7em;
    border-radius: 6px;
    font-size: 0.68em;
    font-weight: 500;
}

.relocation-btn {
    background: #fad02c;
    color: white;
}

.flight-btn {
    background: #cc50bd;
    color: white;
}

.accommodation-btn {
    background: #70cc50;
    color: white;
}

.DK-btn {
    background: #ff6b6b;
    color: white;
}

.NO-btn {
    background: #4f94cd;
    color: white;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    #jobs-hero {
        padding: 2.5em 2em;
    }

    #filters {
        padding: 2em;
        flex-direction: column;
        font-size: 0.85em;
        align-items: center;
    }

    .filter-buttons button {
    font-size: 0.85em;
}

    #jobs {
        padding: 2em;
    }

    .job-image img {
        height: 150px;
    }
}


@media (min-width: 1920px) {

.filter-group {
    max-width: 420px;
}

.job-list {
    grid-template-columns: repeat(auto-fill, 420px);
    gap: 2.5em;
}

}


