/* Предполагаем, что body и .container уже стилизованы */
/* body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa; /* Или другой фон страницы */
/*    color: #333;
    margin: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1140px; /* или ваша стандартная ширина */
/*    margin: 0 auto;
} */

.work-conditions-section {
    padding: 60px 0;
    background-color: #fff; /* Белый фон для всей секции */
}

.section-header-with-widget {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Выравниваем по верху, т.к. виджет может быть выше */
    margin-bottom: 50px;
    flex-wrap: wrap; /* Для переноса виджета на мобильных */
}

.section-title-conditions {
    font-size: 2.4em;
    font-weight: bold;
    color: #212529;
    text-align: left;
    margin-top: 0;
    margin-bottom: 0; /* Убираем нижний отступ, т.к. есть общий у хедера */
    flex-grow: 1; /* Чтобы заголовок занимал доступное место */
}

.whatsapp-widget {
    display: flex;
    align-items: center;
    background-color: #f0f0f0; /* Светло-серый фон виджета */
    padding: 8px 12px;
    border-radius: 20px; /* Сильное скругление */
    text-decoration: none;
    color: #333;
    font-size: 0.85em;
    white-space: nowrap; /* Чтобы текст не переносился */
    margin-left: 20px; /* Отступ от заголовка */
    transition: background-color 0.3s ease;
}
.whatsapp-widget:hover {
    background-color: #e0e0e0;
}

.whatsapp-widget .widget-text {
    margin-right: 8px;
}
.whatsapp-widget .widget-text strong {
    font-weight: bold;
}

.whatsapp-widget .widget-icon {
    width: 28px; /* Размер иконки WhatsApp */
    height: 28px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 40px;
    margin-bottom: 60px;
    text-align: center; /* Центрируем контент в .benefit-item */
}

.benefit-item {
    /* text-align: center; уже задано у родителя */
}

.benefit-item .benefit-icon {
    margin-bottom: 20px;
}

.benefit-item .benefit-icon img { /* Если используете img для иконок */
    height: 100px; /* Размер иконок */
    width: auto;
}
.benefit-item .benefit-icon i { /* Если используете Font Awesome */
    font-size: 3em; /* Размер иконок Font Awesome */
    color: #555; /* Цвет иконок */
}


.benefit-item h3 {
    font-size: 1.4em;
    font-weight: bold;
    color: #212529;
    margin-top: 0;
    margin-bottom: 15px;
}

.benefit-item p {
    font-size: 0.95em;
    color: #495057;
    line-height: 1.65;
    max-width: 300px; /* Ограничиваем ширину текста для лучшей читаемости */
    margin-left: auto;
    margin-right: auto;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    gap: 30px;
    margin-bottom: 50px;
}

.link-card {
    display: flex;
    align-items: center; /* Центрируем контент по вертикали */
    justify-content: center; /* Центрируем контент по горизонтали */
    min-height: 220px; /* Минимальная высота карточек */
    border-radius: 20px; /* Сильное скругление */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden; /* Для псевдоэлемента затемнения */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.link-card:hover {
    transform: translateY(-5px);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.link-card::before { /* Псевдоэлемент для затемнения фона */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Полупрозрачный черный */
    border-radius: 20px; /* Чтобы затемнение повторяло скругление */
    z-index: 1;
    transition: background-color 0.3s ease;
}
.link-card:hover::before {
    background-color: rgba(0, 0, 0, 0.55);
}


/* Задаем фоновые изображения */
.vacancies-card {
    background-image: url('/images/webp/vacancies-bg.webp'); /* Замените на свое изображение */
}

.internships-card {
    background-image: url('/images/webp/internships-bg.webp'); /* Замените на свое изображение */
}


.link-card-content {
    text-align: center;
    position: relative; /* Чтобы быть поверх псевдоэлемента */
    z-index: 2;
}

.link-card h4 {
    font-size: 2.2em; /* Крупный текст */
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px; /* Меньший отступ, если есть .link-card-subtitle */
}

.link-card .link-card-subtitle {
    font-size: 0.9em;
    font-weight: 500;
    opacity: 0.9;
}

.special-assessment-link-wrapper {
    text-align: center;
}

.special-assessment-link {
    display: inline-flex; /* Чтобы иконка и текст были в строку и можно было центрировать */
    align-items: center;
    padding: 10px 20px;
    border: 1px solid #adb5bd; /* Серая рамка */
    border-radius: 25px; /* Сильное скругление */
    text-decoration: none;
    color: #495057;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.special-assessment-link:hover {
    background-color: #f0f0f0;
    border-color: #6c757d;
    color: #212529;
}

.special-assessment-link i { /* Если используете Font Awesome для звезды */
    margin-right: 8px;
    font-size: 1.1em; /* Размер звезды */
    color: #6c757d; /* Цвет звезды */
    transition: color 0.3s ease;
}
.special-assessment-link:hover i {
    color: #f0a078; /* Оранжевый цвет звезды при наведении */
}


/* Адаптивность */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: 1fr; /* Преимущества в одну колонку */
        gap: 30px;
    }
    .benefit-item p {
        max-width: 100%; /* Убираем ограничение ширины для текста в одной колонке */
    }
    .links-grid {
        grid-template-columns: 1fr; /* Карточки Вакансии/Стажировки в одну колонку */
    }
    .section-title-conditions {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .section-header-with-widget {
        flex-direction: column;
        align-items: flex-start; /* На мобильных выравниваем по левому краю */
    }
    .whatsapp-widget {
        margin-left: 0;
        margin-top: 15px; /* Отступ от заголовка, когда виджет под ним */
    }
    .section-title-conditions {
        font-size: 1.8em;
    }
    .benefit-item h3 { font-size: 1.3em;}
    .link-card h4 { font-size: 2em; }
}

@media (max-width: 480px) {
    .section-title-conditions {
        font-size: 1.6em;
    }
    .benefit-item h3 { font-size: 1.2em;}
    .link-card h4 { font-size: 1.8em; }
    .special-assessment-link {
        font-size: 0.85em;
        padding: 8px 15px;
    }
}