

/* Start:/bitrix/templates/cdnitt/components/bitrix/news.list/cdnitt_news/style.css?17938855724274*/
/* Общий фон раздела */
.news-section,
.news-detail-section {
    background: #e8f5f1;
    padding: 40px 0 60px;
}

.news-container,
.news-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Заголовок страницы новостей */
.news-page-title {
    color: #00634f;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 32px;
    text-align: center;
}

/* Сетка списка новостей */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Карточка новости */
.news-item {

display: flex;
    flex-direction: column;
    height: 100%; /* если карточки в grid, это важно */

    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 99, 79, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 99, 79, 0.14);
}

.news-item-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.news-item-content {
    padding: 20px;

 display: flex;
    flex-direction: column;
    flex: 1;

}

.news-item-date {
    color: #00634f;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-item-title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
}

.news-item-title a {
    color: #00634f;
    text-decoration: none;
}

.news-item-title a:hover {
    text-decoration: underline;
}

.news-item-preview {
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px;

flex: 1;
    margin-bottom: 16px;

}

.news-item-link {
    display: inline-block;
    color: #ffffff;
    background: #00634f;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;

 margin-top: auto; /* ключевая строка */
    align-self: flex-start; /* если хотите, чтобы кнопка была слева */

}

.news-item-link:hover {
    background: #004f3f;
}

/* Пагинация */
.news-pagination {
    margin-top: 32px;
    text-align: center;
}

.news-pagination .nav-pages,
.news-pagination .page-navigation {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    background: #ffffff;
    color: #00634f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(0, 99, 79, 0.2);
}

.news-pagination .current,
.news-pagination .selected {
    background: #00634f;
    color: #ffffff;
    border-color: #00634f;
}

.news-pagination a:hover {
    background: #e8f5f1;
}

/* Детальная страница */
.news-detail {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 99, 79, 0.08);
}

.news-detail-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

.news-detail-header {
    margin-bottom: 24px;
}

.news-detail-date {
    color: #00634f;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-detail-title {
    color: #00634f;
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
}

.news-detail-text {
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
}

.news-detail-text p {
    margin: 0 0 16px;
}

.news-detail-back {
    margin-top: 32px;
}

.news-back-link {
    display: inline-block;
    color: #ffffff;
    background: #00634f;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.news-back-link:hover {
    background: #004f3f;
}

/* Адаптив */
@media (max-width: 768px) {
    .news-page-title {
        font-size: 26px;
    }

    .news-list {
        grid-template-columns: 1fr;
    }

    .news-detail {
        padding: 20px;
    }

    .news-detail-title {
        font-size: 22px;
    }
}
/* End */


/* Start:/bitrix/components/bitrix/system.pagenavigation/templates/modern/style.min.css?1786350636675*/
div.modern-page-navigation{padding:.5em 0}div.modern-page-navigation a,span.modern-page-current,span.modern-page-dots{border-left-width:1px;border-left-style:solid;padding-left:.75em;padding-right:.5em;text-decoration:none}div.modern-page-navigation a.modern-page-previous{border-right-width:1px;border-right-style:solid;border-left:0}div.modern-page-navigation a.modern-page-first,div.modern-page-navigation span.modern-page-first{border-left:0;padding-left:.5em}span.modern-page-current{font-weight:var(--ui-font-weight-bold)}div.modern-page-navigation a,span.modern-page-current,div.modern-page-navigation a.modern-page-previous,span.modern-page-dots{border-color:#cdcdcd}
/* End */
/* /bitrix/templates/cdnitt/components/bitrix/news.list/cdnitt_news/style.css?17938855724274 */
/* /bitrix/components/bitrix/system.pagenavigation/templates/modern/style.min.css?1786350636675 */
