/* Dobcross Vacancies - lower-page presentation alignment
   Keeps the existing hero and CMS behaviour. */

.vacancies-content,
.vacancies-contact {
    box-sizing: border-box;
}

.vacancies-content > .container,
.vacancies-contact > .container {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}

/* Current vacancy area */
.vacancies-content {
    padding: 58px 0 68px;
    background: #f6f3ed;
}

.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.vacancy-card,
.vacancies-empty {
    border-top: 3px solid #e31b23;
    background: #fff;
    box-shadow: 0 10px 30px rgba(6, 27, 51, .06);
}

.vacancy-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 32px 34px 34px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.vacancy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 36px rgba(6, 27, 51, .10);
}

.vacancy-card__label {
    margin: 0 0 12px;
    color: #e31b23;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.vacancy-card h3,
.vacancies-empty h3,
.vacancies-contact h2 {
    margin: 0;
    color: #061b33;
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400;
    letter-spacing: -.025em;
}

.vacancy-card h3 {
    font-size: clamp(1.9rem, 2.7vw, 2.55rem);
    line-height: 1.06;
}

.vacancy-card__instrument,
.vacancy-card__closing {
    margin: 13px 0 0;
    color: #68717d;
}

.vacancy-card__closing {
    color: #e31b23;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.vacancy-card__body {
    margin-top: 21px;
    color: #344252;
    line-height: 1.7;
}

.vacancy-card__body p {
    margin: 0 0 15px;
}

.vacancy-card__body p:last-child {
    margin-bottom: 0;
}

.vacancy-card__link {
    margin-top: auto;
    padding-top: 22px;
}

/* Empty state: treat this like one of the site's content cards, not a giant section */
.vacancies-empty {
    max-width: 820px;
    padding: 32px 36px 34px;
}

.vacancies-empty h3 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.05;
}

.vacancies-empty p {
    max-width: 680px;
    margin: 14px 0 0;
    color: #596775;
    font-size: 1rem;
    line-height: 1.65;
}

.vacancies-empty .text-link,
.vacancy-card .text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    color: #e31b23;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

.vacancies-empty .text-link:hover,
.vacancy-card .text-link:hover {
    text-decoration: underline;
}

/* Rehearsal / enquiry panel */
.vacancies-contact {
    padding: 62px 0 68px;
    background: #fff;
}

.vacancies-contact__inner {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 72px;
    align-items: start;
    padding-top: 30px;
    border-top: 1px solid rgba(6, 27, 51, .16);
}

.vacancies-contact .eyebrow {
    position: relative;
    display: inline-block;
    margin: 0 0 20px;
    padding-bottom: 14px;
    color: #e31b23;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vacancies-contact .eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 3px;
    background: #e31b23;
}

.vacancies-contact h2 {
    max-width: 520px;
    font-size: clamp(2.6rem, 4vw, 3.75rem);
    line-height: .98;
}

.vacancies-contact__inner > div:last-child {
    max-width: 620px;
    padding-top: 3px;
}

.vacancies-contact p:not(.eyebrow) {
    margin: 0 0 18px;
    color: #4f5d6a;
    font-size: 1rem;
    line-height: 1.68;
}

.vacancies-contact p strong {
    color: #344252;
}

.vacancies-contact .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 8px;
    padding: 0 20px;
    border: 1px solid #e31b23;
    background: #e31b23;
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .03em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .18s ease, background .18s ease;
}

.vacancies-contact .button:hover {
    transform: translateY(-2px);
    background: #c9151d;
}

/* Keep the existing hero image/rotation styling from the site's standard hero stylesheet. */
.vacancies-hero__media,
.vacancies-hero__slide,
.vacancies-hero__shade {
    position: absolute;
    inset: 0;
}

.vacancies-hero__slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.2s ease;
}

.vacancies-hero__slide.is-active {
    opacity: 1;
}

.vacancies-hero__shade {
    z-index: 1;
}

.vacancies-hero__content {
    position: relative;
    z-index: 2;
}

@media (max-width: 860px) {
    .vacancies-content > .container,
    .vacancies-contact > .container {
        width: min(100% - 32px, 1180px);
    }

    .vacancies-grid,
    .vacancies-contact__inner {
        grid-template-columns: 1fr;
    }

    .vacancies-contact__inner {
        gap: 30px;
    }

    .vacancies-contact__inner > div:last-child {
        max-width: none;
    }
}

@media (max-width: 620px) {
    .vacancies-content,
    .vacancies-contact {
        padding-top: 46px;
        padding-bottom: 54px;
    }

    .vacancy-card,
    .vacancies-empty {
        padding: 27px 26px 29px;
    }
}
