/**
 * Стили блока разделов вакансий на главной странице
 * Файл: /local/templates/opk/include_areas/main_categories.css
 */

/* Categories Block */
.main-categories {
    margin-top: 30px;
    margin-bottom: 30px;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* Category Card */
.category-card {
    width: 295px;
    height: 162px;
    padding: 24px;
    background: #FFFFFF;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.category-card:hover .category-arrow svg path {
    fill: #E32125;
}

/* Category Title */
.category-title {
    width: 100%;
    color: #02254E;
    font-size: 18px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 600;
    word-wrap: break-word;
    line-height: 1.3;
}

/* Category Footer */
.category-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Category Salary */
.category-salary {
    color: rgba(2, 37, 78, 0.40);
    font-size: 15px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
}

.category-salary-empty {
    font-style: italic;
}

/* Category Arrow */
.category-arrow {
    width: 23px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-arrow svg {
    width: 100%;
    height: 100%;
}

.category-arrow svg path {
    transition: fill 0.2s ease;
}

/* Responsive */
@media (max-width: 1280px) {
    .categories-list {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .category-card {
        width: calc(50% - 10px);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .main-categories {
        margin-top: 20px;
    }

    .categories-list {
        gap: 15px;
    }

    .category-card {
        width: 100%;
        height: auto;
        min-height: 130px;
        padding: 20px;
    }

    .category-title {
        font-size: 16px;
    }

    .category-salary {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-card {
        min-height: 110px;
        padding: 16px;
        border-radius: 16px;
    }

    .category-title {
        font-size: 15px;
    }

    .category-salary {
        font-size: 13px;
    }
}
