/**
 * Стили блока "Популярные вакансии" на главной странице
 * Файл: /local/templates/opk/include_areas/main_vacancies.css
 */

/* Vacancies Block */
.main-vacancies {
    margin-top: 50px;
    margin-bottom: 30px;
}

/* Title */
.vacancies-title {
    color: #02254E;
    font-size: 36px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 600;
    margin: 0 0 30px 0;
    word-wrap: break-word;
}

/* Grid */
.vacancies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* Vacancy Card */
.vacancy-card {
    width: 295px;
    padding: 24px;
    background: #FFFFFF;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vacancy-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Vacancy Header */
.vacancy-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

.company-logo-placeholder {
    width: 40px;
    height: 40px;
    background: #D9D9D9;
    border-radius: 9999px;
    flex-shrink: 0;
}

.company-name {
    color: #02254E;
    font-size: 15px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Vacancy Content */
.vacancy-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.vacancy-name {
    color: #02254E;
    font-size: 16px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 600;
    word-wrap: break-word;
    line-height: 1.3;
}

.vacancy-salary {
    color: rgba(2, 37, 78, 0.40);
    font-size: 15px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
}

/* Responsive */
@media (max-width: 1280px) {
    .vacancies-grid {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .vacancy-card {
        width: calc(50% - 10px);
        min-width: 280px;
    }

    .vacancies-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .main-vacancies {
        margin-top: 30px;
    }

    .vacancies-grid {
        gap: 15px;
    }

    .vacancy-card {
        width: 100%;
        min-width: 100%;
        gap: 24px;
        padding: 20px;
    }

    .vacancies-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .vacancy-card {
        padding: 16px;
        border-radius: 16px;
        gap: 20px;
    }

    .company-logo,
    .company-logo-placeholder {
        width: 36px;
        height: 36px;
    }

    .company-name {
        font-size: 14px;
    }

    .vacancy-name {
        font-size: 15px;
    }

    .vacancy-salary {
        font-size: 14px;
    }
}
