﻿.main-title {
    margin-top: 50px;
    font-size: 3.5rem;
    font-weight: 800;
    color: #003c96;
}

.vacancies-container {
    max-width: 100%;
    margin: 0 auto;
}

.form-control, .form-select-filter, .btn {
    font-size: 1.2rem !important;
}

.vacancy-card-wide {
    border: 3px solid #ffba00;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: white;
    max-height: max-content;
}

    .vacancy-card-wide:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px #ffba00;
    }

.vacancy-image-container {
    height: 100%;
    min-height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.vacancy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    max-height: 350px;
}

.vacancy-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vacancy-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #003c96;
    margin-bottom: 0px;
}

.city {
    background: #2067d1 !important;
    font-size: 1.2rem;
    font-weight: 600;
}

.vacancy-salary {
    font-size: 2rem;
    font-weight: 600;
    color: #FFD700;
}

.vacancy-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 1.2rem;
}

.vacancy-location {
    color: #003789;
    font-size: 1.2rem;
}

.vacancy-responsibilities {
    flex-grow: 1;
    font-size: 1.2rem;
}

.text-truncate-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.details {
    background: #2067d1 !important;
    border-color: #003789;
    font-size: 1.2rem;
    font-weight: 600;
}

    .details:hover {
        background: #003c96;
        padding: 5px 11px 5px 11px;
        border: 2px solid #ffba00;
    }

.apply {
    background: #ffba00;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
    font-size: 1.2rem;
    font-weight: 600;
}

    .apply:hover {
        background: #ffed4a !important;
        box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5);
    }

.search-btn {
    background: #003c96 !important;
}
    .search-btn:hover {
        border-color: #FFD700 !important;
        border-width: 1px;
        padding: 5px 12px 5px 12px;
    }

.pagination {
    margin: 2rem 0;
}

.page-item.active .page-link {
    background-color: #003c96;
    border-color: #003c96;
}

.page-link {
    color: #003c96;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    font-weight: 400;
}

    .page-link:hover {
        color: #FFD700;
    }

/* Адаптивность */
@media (max-width: 1200px) and (min-width: 769px) {
    .filters-row {
        flex-wrap: wrap;
        gap: 10px;
    }

        .filters-row .col-md-4,
        .filters-row .col-md-3 {
            flex: 1 1 45%; /* поля ввода и селекты по 2 в ряд */
            max-width: 45%;
        }

        .filters-row .buttons-col {
            flex: 1 1 100%; /* блок кнопок на всю ширину */
            max-width: 100%;
        }

            .filters-row .buttons-col .d-flex {
                flex-direction: column; /* кнопки одна под другой */
            }

            .filters-row .buttons-col .btn {
                width: 100%;
                font-size: 1.1rem;
                padding: 10px;
            }
}


@media (max-width: 768px) {
    .vacancy-card-wide .row {
        flex-direction: column;
    }

    .vacancy-image-container {
        min-height: 150px;
        height: 250px;
    }

    .vacancy-image {
        max-height: 350px;
    }

    .vacancy-content {
        padding: 15px;
    }

    .vacancy-title {
        font-size: 1.2rem;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-item {
        margin: 0.25rem;
    }
}
