/*
 * PSBM Careers — city cards (Revolution Slider replacement) and job page bits.
 * Typography follows the original slider layers: Syne for the city name,
 * OPEN POSITIONS and buttons; Poppins light for the address block.
 * Syne is self-hosted (no third-party font request).
 */

@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/syne-700-latin.woff2') format('woff2');
}

.psbm-careers-cards {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 20px 40px;
    box-sizing: border-box;
    gap: 30px 30px;
    justify-content: center;
}

.psbm-careers-card {
    flex: 1 1 0;
    min-width: 230px;
    background-size: cover;
    background-position: center top;
    background-color: #111;
    position: relative;
    overflow: hidden;
}
/* Keep the original 2:3 card proportion as a minimum; grow if a city has
   more openings than fit. */
.psbm-careers-card::before {
    content: "";
    float: left;
    padding-top: 150%;
}
.psbm-careers-card::after {
    content: "";
    display: table;
    clear: both;
}

.psbm-careers-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 58px 18px 40px;
}

.psbm-careers-card-icon {
    width: 64px;
    height: auto;
    margin: 0 0 20px;
}

.psbm-careers-card-city {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 24px;
}

.psbm-careers-card-address {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 24px;
    color: #ffffff;
    margin: 0 0 24px;
}

.psbm-careers-card-phone {
    margin: 0 0 46px;
}
.psbm-careers-card-phone a {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 17px;
    color: #ffffff;
    text-decoration: underline;
}
.psbm-careers-card-phone a:hover {
    color: #ffcc00;
}

.psbm-careers-card-open {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: #ffcc00;
    margin: 0 0 30px;
}

.psbm-careers-card-jobs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.psbm-careers-card-job {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 300px;
    padding: 13px 18px;
    border: 2px solid #ffffff;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff !important;
    background: transparent;
    transition: background-color .25s ease, color .25s ease;
}
.psbm-careers-card-job:hover {
    background: #ffffff;
    color: #000000 !important;
}

/* Tablet: two cards per row instead of four cramped columns. */
@media (max-width: 1000px) {
    .psbm-careers-card {
        flex: 1 1 44%;
        min-width: 44%;
    }
}

/* Mobile: cards stacked, full-bleed, flush against each other — matching the
   current mobile treatment of the Careers page. */
@media (max-width: 767px) {
    .psbm-careers-cards {
        padding: 0;
        gap: 0;
    }
    .psbm-careers-card {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .psbm-careers-card::before {
        padding-top: 150%;
    }
    .psbm-careers-card-content {
        padding: 64px 20px 48px;
    }
}
