/* Обертка */
.news-wrapper {
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
}

/* Заголовок (Flex строка) */
.news-header {
    display: flex;
    justify-content: space-between; /* Разносим табы влево, ссылку вправо */
    align-items: baseline; /* Выравнивание по базовой линии текста */
    margin-bottom: 24px;
}

/* Группа табов */
.news-tabs-group {
    display: flex;
    align-items: baseline; /* Или center, если разделитель по центру высоты букв */
    gap: 20px; /* Отступы между табами и разделителем */
}

/* Кнопки табов */
.news-tab-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 40px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #B3B8BB; /* Серый неактивный */
    transition: color 0.2s;
    line-height: 1;
}

.news-tab-btn.active {
    color: #292A2A; /* Черный активный */
}

.news-tab-btn:hover {
    color: #292A2A;
}

/* Разделитель между табами */
.news-tab-separator {
    width: 0px;
    height: 28px; /* h-7 из фигмы */
    /* Эмуляция outline через border, так как width 0 */
    border-left: 1px solid #B3B8BB; 
    /* Или можно использовать outline: 1px solid #B3B8BB; при width: 0 */
}

/* Ссылка "Перейти в блог" (Справа в той же строке) */
.news-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00B1BA;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap; /* Чтобы не переносилась */
}

.news-blog-link:hover {
    opacity: 0.8;
}

/* Сетка новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Карточка */
.news-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #CACCD0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Картинка */
.news-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контент */
.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.news-date {
    color: #878D91;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

.news-title {
    color: #292A2A;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.news-desc {
    color: #292A2A;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    max-height: 66px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-link {
    color: #00B1BA;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
    width: fit-content;
}

.news-link:hover {
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-card:nth-child(3) {
        display: none;
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-card:nth-child(3) {
        display: flex;
    }
    .news-tab-btn {
        font-size: 28px;
    }
    /* На мобильных ссылку можно перенести вниз или уменьшить шрифт */
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}