/* Starwalk Vacancies 1.2.2: standalone Careers cards.
   All rules are scoped to the shortcode; no Elementor widget CSS is needed. */
.swv-vacancies,
.swv-vacancies * {
    box-sizing: border-box;
}

.swv-vacancies {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 24px;
    width: 100%;
    font-family: inherit;
}

/* Keep a single vacancy in the left column. Center the final odd card
   only when there are 3, 5, etc. vacancies. */
@media (min-width: 768px) {
    .swv-vacancies > .swv-card:last-child:nth-child(odd):not(:first-child) {
        grid-column: 1 / -1;
        width: calc((100% - 24px) / 2);
        justify-self: center;
    }
}


/* Friendly message when no vacancy is currently published. */
.swv-empty {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin: 0;
    padding: 24px;
    background: #F3F5F7;
    border: 1px solid #E2E6EB;
    border-radius: 6px;
    color: #475569;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
}

.swv-vacancies .swv-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 24px;
    background: #F3F5F7;
    border: 1px solid #E2E6EB;
    border-radius: 6px;
    box-shadow: none;
    color: #0A0F1A;
    font-family: inherit;
}

.swv-vacancies .swv-card-title {
    margin: 0 0 12px;
    padding: 0;
    color: #000000;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

.swv-vacancies .swv-card-meta {
    margin: 0 0 16px;
    padding: 0;
    color: #475569;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

.swv-vacancies .swv-card-requirements {
    margin: 0 0 20px;
    padding-left: 22px;
    list-style: disc outside;
    color: #000000;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

.swv-vacancies .swv-card-requirements li {
    padding: 0;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    list-style: inherit;
}

.swv-vacancies .swv-card-action {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.swv-vacancies .swv-apply,
.swv-vacancies .swv-apply:visited {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    min-height: 0;
    border: none;
    border-radius: 6px;
    box-shadow: none;
    color: #FFFFFF;
    background-color: #D9861C;
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    transition: background-color .3s ease, color .3s ease;
}

.swv-vacancies .swv-apply:hover,
.swv-vacancies .swv-apply:focus-visible {
    background-color: #B86F17;
    color: #FFFFFF;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

.swv-vacancies .swv-apply:focus-visible {
    outline: 2px solid #0A0F1A;
    outline-offset: 2px;
}

/* Tablet: keep both cards side-by-side and stretch both buttons. */
@media (min-width: 768px) and (max-width: 1024px) {
    .swv-vacancies .swv-card { padding: 20px; }
    .swv-vacancies .swv-card-title { font-size: 19px; }
    .swv-vacancies .swv-card-requirements { font-size: 15px; }
    .swv-vacancies .swv-card-action { justify-content: stretch; }
    .swv-vacancies .swv-apply { width: 100%; }
}

/* Mobile: a single card per row and full-width buttons. */
@media (max-width: 767px) {
    .swv-vacancies {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 18px;
    }
    .swv-vacancies .swv-card { padding: 18px; }
    .swv-vacancies .swv-card-title { font-size: 18px; }
    .swv-vacancies .swv-card-meta { font-size: 13px; }
    .swv-vacancies .swv-card-requirements { font-size: 15px; }
    .swv-vacancies .swv-card-action { justify-content: stretch; }
    .swv-vacancies .swv-apply {
        width: 100%;
        font-size: 14px;
        padding: 12px 20px;
    }
}
