/* Extracted from PHP template; preserve original cascade position. */
/* Основные стили для страницы новостей */
.news-section {
    padding: 80px 0;
    background: #ffffff;
}

.news-header {
    margin-bottom: 50px;
    text-align: center;
}

.news-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
}

.news-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #2a9d8f;
}

.news-subtitle {
    color: #666;
    font-size: 1rem;
    margin-top: 20px;
}

/* Важные новости (баннер) */
.featured-news {
    margin-bottom: 60px;
}

.featured-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-item {
    position: relative;
    height: 400px;
    display: none;
}

.featured-item.active {
    display: block;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px;
    color: white;
}

.featured-badge {
    display: inline-block;
    background: #2a9d8f;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.featured-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.featured-slider-controls button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.featured-slider-controls button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Сетка новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #1a4b8c;
}

.news-card-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.05);
}

.news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.news-card-date {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-views {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-readmore {
    color: #1a4b8c;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.news-card-readmore:hover {
    color: #2a9d8f;
    gap: 10px;
}

/* Отдельная новость */
.single-news-section {
    padding: 80px 0;
    background: #ffffff;
}

.news-article {
    max-width: 800px;
    margin: 0 auto;
}

.news-article-header {
    margin-bottom: 40px;
}

.news-article-title {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.news-article-author,
.news-article-date,
.news-article-views {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.news-article-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.news-article-content h2,
.news-article-content h3 {
    font-family: 'Georgia', serif;
    color: #1a4b8c;
    margin: 30px 0 15px;
}

.news-article-content p {
    margin-bottom: 20px;
}

.news-article-content ul,
.news-article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.news-article-content li {
    margin-bottom: 8px;
}

/* Похожие новости */
.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.related-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.related-image {
    height: 160px;
    width: 100%;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-item-date {
    font-size: 0.85rem;
    color: #888;
}

/* Пагинация */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: white;
    color: #1a4b8c;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background: #1a4b8c;
    color: white;
    border-color: #1a4b8c;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Сайдбар */
.news-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.sidebar-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #2a9d8f;
}

.recent-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-news-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-news-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.recent-news-content {
    flex-grow: 1;
}

.recent-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
    line-height: 1.3;
}

.recent-news-date {
    font-size: 0.8rem;
    color: #888;
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1a4b8c;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-to-news:hover {
    color: #2a9d8f;
    gap: 15px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    .news-article-title {
        font-size: 2rem;
    }

    .news-article-image {
        height: 350px;
    }

    .featured-item {
        height: 350px;
    }

    .featured-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-section,
    .single-news-section {
        padding: 60px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .featured-item {
        height: 300px;
    }

    .featured-overlay {
        padding: 25px;
    }

    .featured-title {
        font-size: 1.3rem;
    }

    .news-article-title {
        font-size: 1.8rem;
    }

    .news-article-image {
        height: 280px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .news-title {
        font-size: 1.8rem;
    }

    .news-article-title {
        font-size: 1.5rem;
    }

    .news-article-image {
        height: 220px;
    }

    .news-article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .featured-item {
        height: 250px;
    }

    .featured-overlay {
        padding: 20px;
    }

    .featured-title {
        font-size: 1.1rem;
    }

    .news-card-image {
        height: 180px;
    }
}
