/* Современные стили для страницы новостей */
.news-page {
    padding: 2rem 0;
}

.news-page__header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.news-page__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.news-page__description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid для новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Карточка новости */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card--featured {
    grid-column: span 2;
}

.news-card--featured .news-card__image-wrapper {
    height: 250px;
}

/* Изображение новости */
.news-card__image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card__image-link {
    display: block;
    height: 100%;
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f4ce47;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Контент карточки */
.news-card__content {
    padding: 1.5rem;
}

.news-card__header {
    margin-bottom: 1rem;
}

.news-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card__title:hover {
    color: #f4ce47;
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.news-card__date,
.news-card__reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-card__excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Футер карточки */
.news-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f4ce47;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-card__read-more:hover {
    color: #d4b037;
}

.news-card__category {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.news-card__category:hover {
    background: #f4ce47;
    color: #000;
}

/* Пагинация */
.news-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.news-pagination__inner {
    display: flex;
    justify-content: center;
}

.news-pagination__list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.news-pagination__item {
    display: flex;
}

.news-pagination__item a,
.news-pagination__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.news-pagination__item a:hover,
.news-pagination__item--current span {
    background: #f4ce47;
    color: #000;
    border-color: #f4ce47;
}

/* Пустое состояние */
.news-empty {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.news-empty__icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.news-empty__icon i {
    display: block;
}

.news-empty__title {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.news-empty__text {
    color: #888;
    font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-page__title {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-card--featured {
        grid-column: span 1;
    }

    .news-card__title {
        font-size: 1.1rem;
    }

    .news-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .news-pagination__item a,
    .news-pagination__item span {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news-page {
        padding: 1rem 0;
    }

    .news-page__header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .news-page__title {
        font-size: 1.75rem;
    }

    .news-page__description {
        font-size: 1rem;
    }

    .news-card__content {
        padding: 1rem;
    }

    .news-card__image-wrapper {
        height: 150px;
    }

    .news-card--featured .news-card__image-wrapper {
        height: 180px;
    }
}