/* News CSS - стили для блока новостей */

/* Основные стили для контейнера новостей */
.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Стили для карточки новости */
.news-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Заголовок новости */
.news-item h3 {
    font: bold 16px 'tt_squares_condensedregular', sans-serif;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.news-item h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.25s ease;
}

.news-item h3 a:hover {
    color: #7C288F;
}

/* Описание новости */
.news-item p {
    font: 14px/1.5 'pf_dintext_proregular', sans-serif;
    color: #666;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

/* Кнопка "подробнее" */
.news-item .btn-more {
    display: inline-block;
    padding: 8px 16px;
    font: 12px/1.4 'tt_squares_condensedregular', sans-serif;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    background: #7C288F;
    border: none;
    border-radius: 4px;
    text-align: center;
    transition: all 0.25s ease;
    align-self: flex-start;
}

.news-item .btn-more:hover {
    background: #9F29BA;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Адаптивность для CSS Grid */
@media (max-width: 992px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .news-item {
        padding: 16px;
    }
    
    .news-item h3 {
        font-size: 15px;
    }
    
    .news-item p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-container {
        gap: 10px;
    }
    
    .news-item {
        padding: 12px;
    }
    
    .news-item h3 {
        font-size: 14px;
    }
    
    .news-item p {
        font-size: 12px;
    }
    
    .news-item .btn-more {
        padding: 6px 12px;
        font-size: 11px;
    }
}
