/* Лента новостей */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--gap-base, 30px);
}

.news-item {
    background: var(--c-white, #fff);
    border-radius: var(--radius-base, 10px);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-item__date {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--c-text-light, #666);
}

.news-item__thumb {
    display: block;
    height: 240px;
    width: 100%;
    overflow: hidden;
}

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

.news-item:hover .news-item__thumb img:not(.news-placeholder) {
    transform: scale(1.05);
}

.news-item__body {
    padding: 20px;
    flex-grow: 1;
}

.news-item__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.25;
}

.news-item__title a:hover {
    color: var(--c-accent, #e1a249);
}

.news-item__excerpt {
    margin: 0;
    color: var(--c-text-light, #666);
    line-height: 1.5;
}

.news-item__footer {
    padding: 0 20px 20px;
}

.news-item__footer .btn-primary {
    display: block;
    width: 100%;
}

/* Фото-заглушка */

.news-placeholder {
    background: var(--c-white, #fff);
    object-fit: contain;
    padding: 40px;
}

.news-item__thumb .news-placeholder {
    object-fit: contain;
    padding: 40px;
}

.news-card__media .news-placeholder {
    object-fit: contain;
    max-height: 320px;
}

/* Пустая лента */

.news-archive__empty {
    text-align: center;
    color: var(--c-text-light, #666);
    font-size: 18px;
    margin: 40px 0;
}

/* Пагинация */

.news-archive .navigation.pagination {
    margin-top: 40px;
}

.news-archive .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.news-archive .page-numbers {
    min-width: 40px;
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--c-white, #fff);
    color: var(--c-brand-dark, #414348);
    font-weight: 700;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

.news-archive a.page-numbers:hover {
    background: var(--c-accent, #e1a249);
    color: #fff;
}

.news-archive .page-numbers.current {
    background: var(--c-accent, #e1a249);
    color: #fff;
}

/* Карточка новости */

.news-card .content-block__text a {
    color: var(--c-accent-hover, #e09626);
    text-decoration: underline;
}

.news-card .content-block__text a:hover {
    text-decoration: none;
}

.news-card__date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -20px 0 30px;
    font-size: 16px;
    font-weight: 500;
    color: var(--c-text-light, #666);
}

.news-card__date::before {
    content: '';
    width: 18px;
    height: 18px;
    flex: none;
    background-color: var(--c-accent, #e1a249);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}
