﻿body {
    font-family: Bahnschrift, sans-serif;
    font-size: 1.4rem;
}

.breadcrumb {
    margin-top: 50px;
}

.vacancy-image-card {
    border: none !important;
}

.vacancy-image-container {
    max-width: 500px;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* сохранит пропорции */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.vacancy-image {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #003c96;
    color: white;
    font-size: 2rem;
    border-radius: 9px 9px 0 0 !important;
}

    .card-header h5 {
        font-size: 1.6rem;
    }

.vacancy-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #003c96;
    padding-left: 8px;
}

.city {
    background: #003c96 !important;
    font-size: 1.4rem;
    font-weight: 600;
    white-space: normal; /* позволяет переносить */
    word-wrap: break-word; /* перенос длинных слов */
    max-width: 100%; /* ограничиваем ширину */
    text-align: center;
    display: inline-block; /* чтобы влезало */
}

.vacancy-salary {
    font-size: 2rem;
    font-weight: 600;
    color: #FFD700;
}

.card {
    border: 3px solid #ffba00;
    border-radius: 12px;
}

/* Кнопки */
.apply-btn,
.return-btn {
    display: inline-block;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    min-width: 140px;
    margin: 10px 5px;
    box-sizing: border-box;
}

.apply-btn {
    background: #ffba00;
    color: white;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

    .apply-btn:hover {
        background: #ffed4a;
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5);
    }

.return-btn {
    background: #003c96;
    color: white;
}

    .return-btn:hover {
        background: #ffba00;
        color: #000;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 186, 0, 0.3);
    }

/* --- Адаптация под разные экраны --- */
@media (max-width: 992px) {
    .vacancy-title {
        font-size: 2rem;
    }

    .vacancy-salary {
        font-size: 1.6rem;
    }

    .city {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .city {
        margin-top: 10px;
    }

    .apply-btn,
    .return-btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 1.2rem;
    }

    .vacancy-title {
        font-size: 1.6rem;
    }

    .vacancy-salary {
        font-size: 1.4rem;
    }
}
