.news-section {
    background: linear-gradient(to bottom, #86A8CB 0%, #FFF 73%);
    padding: 20px 0;
}

/* Сетка новостей — строго 3 колонки */
.news-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Умеренные отступы между карточками */
}

/* Карточка новости */
.news-card {
    text-align: center;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Выравнивание высоты в ряду */
}

.news-image {
    width: 100%;
    height: 300px;
    object-fit: contain; /* Сохраняем пропорции, не обрезаем */
    max-width: 100%;
    max-height: 100%;
}

.news-title {
    font-family: 'Alegreya', serif;
    font-weight: bold;
    font-size: 25px;
    margin: 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    height: 75px; /* Примерная высота для 3 строк */
}

.news-date {
    font-family: 'Alegreya', serif;
    font-style: italic;
    font-size: 10px;
    color: #666;
}

/* Мобильная версия — одна колонка */
@media (max-width: 768px) {
    .news-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 585px) {
    .news-megatitle {
        text-align: center;
        font-size: calc(13.5vw + 17px);
    }
}

/* Заголовок "НОВОСТИ" */
.news-megatitle {
    align-self: flex-start;
    font-size: 96px;
    font-family: 'Alegreya', serif;
    font-weight: 400;
    margin-bottom: 20px;
}

/* Скрытая админ-кнопка */
.admin-link {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 20px;
    height: 20px;
    opacity: 0;
    cursor: pointer;
    z-index: 1000;
}

/* Плейсхолдер, если нет изображения */
.news-image-placeholder {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 4px;
    margin-bottom: 15px;
}

.news-image-placeholder i {
    margin-bottom: 10px;
    color: #999;
}

.news-image-placeholder p {
    margin: 0;
    font-size: 0.9em;
}