.mgj-jobs-grid {
    --mgj-columns: 3;
    display: grid;
    grid-template-columns: repeat(var(--mgj-columns), minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.mgj-jobs-grid.mgj-cols-1 { --mgj-columns: 1; }
.mgj-jobs-grid.mgj-cols-2 { --mgj-columns: 2; }
.mgj-jobs-grid.mgj-cols-3 { --mgj-columns: 3; }
.mgj-jobs-grid.mgj-cols-4 { --mgj-columns: 4; }

.mgj-job-card {
    display: flex;
    min-width: 0;
    min-height: 245px;
    flex-direction: column;
    gap: 21px;
    padding: 30px;
    border: 1px solid #e9edf0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px -16px rgba(3, 26, 45, 0.34);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mgj-job-card:hover {
    transform: translateY(-6px);
    border-color: #e6bd71;
    box-shadow: 0 22px 46px -18px rgba(3, 26, 45, 0.42);
}

.mgj-job-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

.mgj-job-image {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    place-items: center;
}

.mgj-job-image img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.mgj-job-image svg {
    width: 54px;
    height: 54px;
    stroke: #031a2d;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mgj-job-heading h3 {
    margin: 0 0 7px;
    color: #031a2d;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.mgj-job-heading p {
    margin: 0;
    color: #71808d;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.mgj-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.mgj-job-tags span {
    padding: 7px 10px;
    border-radius: 3px;
    background: #f4f6f7;
    color: #233443;
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.mgj-job-button {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: auto;
    padding: 13px 17px;
    border: 1px solid #031a2d;
    border-radius: 3px;
    color: #031a2d;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease, background-color .2s ease;
}

.mgj-job-button:hover {
    background: #031a2d;
    color: #fff;
}

.mgj-jobs-empty {
    padding: 35px;
    border: 1px solid #e9edf0;
    border-radius: 8px;
    background: #fff;
    color: #465563;
    text-align: center;
}

.mgj-job-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.mgj-job-details > div {
    padding: 18px;
    border-left: 3px solid #e6bd71;
    background: #f6f7f8;
}

.mgj-job-details dt {
    margin-bottom: 5px;
    color: #71808d;
    font-size: 12px;
    text-transform: uppercase;
}

.mgj-job-details dd {
    margin: 0;
    color: #031a2d;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .mgj-jobs-grid,
    .mgj-jobs-grid.mgj-cols-3,
    .mgj-jobs-grid.mgj-cols-4 {
        --mgj-columns: 2;
    }
}

@media (max-width: 767px) {
    .mgj-jobs-grid,
    .mgj-jobs-grid.mgj-cols-2,
    .mgj-jobs-grid.mgj-cols-3,
    .mgj-jobs-grid.mgj-cols-4 {
        --mgj-columns: 1;
    }

    .mgj-job-card {
        min-height: 0;
        padding: 24px;
    }

    .mgj-job-details {
        grid-template-columns: 1fr;
    }
}
