
.company-news-section {
    padding: 60px 0;
    background-color: #fff; /* Если фон страницы отличается */
}

.section-title-news {
    font-size: 2.4em; /* Крупный заголовок */
    font-weight: bold;
    color: #212529;
    text-align: left; /* Выравнивание по левому краю */
    margin-top: 0;
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    /* 3 колонки, как на скриншоте */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Отступы между карточками */
    margin-bottom: 50px;
}

.news-card {
    background-color: #f8f9fa; /* Очень светлый фон карточки */
    border-radius: 8px;
    overflow: hidden; /* Чтобы скругление работало для изображения */
    display: flex; /* Чтобы ссылка .news-card-link заняла всю высоту */
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}
.news-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.news-card-link {
    text-decoration: none;
    color: inherit; /* Наследуем цвет текста */
    display: flex;
    flex-direction: column;
    height: 100%; /* Растягиваем ссылку на всю высоту карточки */
}


.news-card-image-wrapper {
    position: relative; /* Для позиционирования тегов */
    width: 100%;
    height: 70px;
    padding-top: 56.25%; /* Соотношение сторон 16:9 для изображения (height/width * 100%) */
    /* Если картинки другого соотношения, подберите значение или задайте фиксированную высоту */
    overflow: hidden;
}

.news-card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Масштабирует и обрезает изображение */
    transition: transform 0.3s ease;
}
.news-card:hover .news-card-image-wrapper img {
    transform: scale(1.05); /* Легкий зум при наведении */
}


.news-card-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-card-tags .tag {
    background-color: rgba(0, 0, 0, 0.6); /* Полупрозрачный темный фон для тегов */
    color: #fff;
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Чтобы контент занимал оставшееся место */
}

.news-card-date {
    display: block;
    font-size: 0.8em;
    color: #6c757d; /* Серый цвет даты */
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #212529;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 15px;
    /* Ограничение количества строк для заголовка (опционально) */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Показать 3 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.1em * 1.4 * 3); /* Минимальная высота для 3х строк */
}

.news-card-details {
    font-size: 0.9em;
    color: #f0a078; /* Оранжево-персиковый цвет, как у кнопки поиска */
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #f0a078;
    padding: 6px 12px;
    border-radius: 20px;
    align-self: flex-start; /* Кнопка слева */
    margin-top: auto; /* Прижимаем кнопку к низу, если контент выше короткий */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.news-card:hover .news-card-details {
    background-color: #f0a078;
    color: #fff;
}

.load-more-news-wrapper {
    text-align: center; /* Центрируем кнопку "Загрузить еще" */
}

.btn-load-more {
    padding: 12px 35px;
    background-color: #f0a078; /* Тот же цвет, что и кнопка поиска */
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.btn-load-more:hover {
    background-color: #e9895c; /* Темнее при наведении */
}

/* Адаптивность */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
        gap: 25px;
    }
    .section-title-news {
        font-size: 2em;
    }
}

@media (max-width: 600px) { /* Переход на одну колонку раньше, чем 768px, т.к. карточки могут стать узкими */
    .news-grid {
        grid-template-columns: 1fr; /* 1 колонка */
        gap: 20px;
    }
    .news-card-image-wrapper {
        padding-top: 60%; /* Можно сделать картинки чуть выше на мобильных */
    }
    .section-title-news {
        font-size: 1.8em;
        text-align: center; /* На мобильных заголовок можно по центру */
    }
}