/* Блок новостей — картинка сверху, заголовок, анонс, дата внизу */

.news-block {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    padding-bottom: 50px;
}

.news-block__title {
    font-size: 34px;
    margin: 20px;
    color: #333;
    text-align: center;
}

/* Сетка: 3 колонки, разделены светло-голубыми промежутками */
.news-block__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 992px) {
    .news-block__items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-block__items {
        grid-template-columns: 1fr;
    }
}

/* Карточка новости */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    min-height: 715px;
    justify-content: space-between;
}

/* Картинка */
.news-card__picture {
    display: block;
    margin-bottom: 20px;
    overflow: hidden;
}

.news-card__picture img {
    display: block;
    width: 100%;
    height: 185px;
    object-fit: cover;
}

.news-card__description {
    padding: 32px 40px 23px;
}

/* Заголовок — жирный, темно-синий */
.news-card__title {
    font-family: "Gilroy";
    font-weight: 700;
    color: #333;
    font-size: 20px;
    line-height: 28px;
}


/* Анонс */
.news-card__text {
    margin-top: 16px;
    font-family: "Gilroy";
    font-weight: 500;
    font-size: 15px;
    line-height: 28px;
    color: #999999;
}

/* Дата */
.news-card__date {
    font-family: "Gilroy";
    font-weight: 500;
    font-size: 15px;
    line-height: 28px;
    color: #999999;
    min-height: 28px;
}

.news-card__bottom {
    font-family: "Gilroy";
    font-weight: 500;
    color: #333;
    font-size: 15px;
    line-height: 28px;
    padding: 20px 40px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    border-top: 1px solid #f0f6fb;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

/* Пустое состояние */
.news-block__empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 16px;
}

/* Пейджер */
.news-block__pager {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

/* Кнопка "Ещё" */
.news-block__more {
    margin-top: 36px;
    text-align: center;
}

.news-block__more-btn {
    display: inline-block;
    min-width: 180px;
    padding: 12px 32px;
    font-size: 16px;
    font-family: inherit;
    color: #2196f3;
    background: #ffffff;
    border: 1px solid #2196f3;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-block__more-btn:hover {
    color: #ffffff;
    background: #2196f3;
}

.news-block__more-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.news-block__more-btn.is-loading {
    position: relative;
    color: transparent;
}

.news-block__more-btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid #2196f3;
    border-top-color: transparent;
    border-radius: 50%;
    animation: news-more-spin 0.7s linear infinite;
}

@keyframes news-more-spin {
    to { transform: rotate(360deg); }
}
