
/* Карточки новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Изменил с 4 на 3 колонки */
    gap: 25px;
    margin: 30px 0;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
x    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.news-card-image {
    width: 100%;
    height: 220px; /* Чуть увеличил высоту для 3 колонок */
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

/* Заглушка для изображения */
.news-card-image::after {
    display: none;
}

.news-card-image img[src=""] {
    opacity: 0;
}

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: var(--secondary-color, #333);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 50px;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--primary-color, #D91656);
}

.news-card-date {
    font-size: 14px;
    color: var(--text-light, #666);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-date i {
    color: var(--primary-color, #D91656);
    font-size: 12px;
}

.news-card-anno {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-light, #666);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
}

/* Пагинация - КОПИРУЕМ СТИЛИ ИЗ FEEDBACK */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 40px 0 20px;
    padding: 0;
    list-style: none;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: white;
    border: 1px solid var(--border-color, #e0e0e0);
    color: var(--text-light, #666);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.pagination li a:hover {
    background: var(--primary-color, #D91656);
    color: white;
    border-color: var(--primary-color, #D91656);
}

.pagination li.active a {
    background: var(--primary-color, #D91656);
    color: white;
    border-color: var(--primary-color, #D91656);
}

/* Стрелки пагинации */
.pagination li:first-child a,
.pagination li:last-child a {
    font-size: 20px;
    line-height: 1;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr); /* На 1200px тоже 3 колонки */
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* На планшетах 2 колонки */
        gap: 20px;
    }
    
    .news-card-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr; /* На мобильных 1 колонка */
        gap: 15px;
    }
    
    .news-card-image {
        height: 180px;
    }
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-color, #F6F8FA);
    border-radius: 12px;
    color: var(--text-light, #666);
    font-size: 18px;
    margin: 30px 0;
}
