.news-section {
    padding: 2rem 0;
}

.section-title {
    margin-bottom: 2rem;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}
/* Анимации при наведении на карточку */
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


.news-image-container{
    aspect-ratio: 1;
    overflow: hidden;
}
.news-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}




/* Анимация изображения при наведении */
.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-info {
    padding: 1rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

/* Анимация информационного блока при наведении */
.news-card:hover .news-info {
    background-color: #f8f8f8;
}

.news-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.news-info p {
    margin: 0;
    color: #666;
    transition: color 0.3s ease;
}

/* Анимация текста при наведении */
.news-card:hover .news-info h3 {
    color: #2c5282;
}

.news-card:hover .news-info p {
    color: #4a5568;
}


@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}



/* Ваши существующие стили ... */

.description-container {
    position: relative;
    overflow: hidden;
}

.description-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 4.5em; /* примерно 3 строки */
}

.news-card:hover .description-text {
    -webkit-line-clamp: unset;
    max-height: none;
}

/* Стили для форматирования даты и места */
.news-info h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.news-info .date {
    font-weight: bold;
    color: #333;
}

.news-info .event-type {
    font-style: italic;
    margin: 0.25rem 0;
}

/* Для текста с датами и местом проведения можно добавить специальные классы */
.event-location {
    font-weight: bold;
    margin-top: 1rem;
    color: #2c5282;
}

/* Для выделения важной информации */
.highlight {
    color: #2c5282;
    font-weight: bold;
}
.news-detail {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.news-article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.news-header {
    margin-bottom: 2rem;
    text-align: center;
}

.news-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.news-meta {
    color: #666;
    font-size: 0.9rem;
}

.news-tag {
    background: #f0f0f0;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    margin-left: 1rem;
}


.news-content {
    line-height: 1.8;
    color: #333;
}

/* Навигация между новостями */
.news-navigation {
    margin-top: 3rem;
}

.news-nav-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.news-nav {
    flex: 1;
    padding: 0.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.news-nav:hover {
    transform: translateY(-3px);
    color: #333;
    text-decoration: none;
}

.news-nav-prev {
    text-align: left;
}

.news-nav-next {
    text-align: right;
}

.news-nav-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.news-nav-title {
    display: block;
    font-weight: bold;
    font-size: 1rem;
}


/* Контейнер для изображения */
.news-main-image {
    width: 100%;
    height: 100%;
    object-fit:cover;
    transition: transform 0.5s ease;
}


/* Эффект сжатия при наведении */
.news-main-image:hover img {
    transform: scale(1.05);
    /*filter: brightness(0.95);*/
}

/*!* Добавляем псевдоэлемент для дополнительного эффекта *!*/
/*.news-main-image::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    bottom: 0;*/
/*    background: rgba(0, 0, 0, 0);*/
/*    transition: all 0.5s ease;*/
/*    pointer-events: none;*/
/*}*/

/*.news-main-image:hover::after {*/
/*    background: rgba(0, 0, 0, 0.1);*/
/*}*/

/*!* Адаптивность для разных экранов *!*/
/*@media (max-width: 768px) {*/
/*    .news-main-image {*/
/*        height: 40vh;*/
/*    }*/
/*}*/

/*@media (max-width: 576px) {*/
/*    .news-main-image {*/
/*        height: 30vh;*/
/*        margin: 1rem 0;*/
/*    }*/
/*}*/

/*!* Для очень высоких экранов *!*/
/*@media (min-height: 1200px) {*/
/*    .news-main-image {*/
/*        height: 40vh;*/
/*    }*/
/*}*/