﻿/* ==========================================================================
   СТИЛИ СТРАНИЦ НОВОСТЕЙ
   ========================================================================== */

/* ---------- Хлебные крошки в hero ---------- */
.breadcrumbs--news {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.breadcrumbs--news a {
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.breadcrumbs--news a:hover { color: #fbbf24; }
.breadcrumbs--news a i { font-size: 0.85rem; }

.breadcrumbs-sep { color: #94a3b8; user-select: none; }
.breadcrumbs-current { color: #cbd5e1; }

/* ---------- Мета новости (дата, категория) ---------- */
.hero-section .hero-description p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #f1f5f9;
    font-size: 1rem;
}

.hero-section .hero-description p a {
    color: #fbbf24;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hero-section .hero-description p a:hover { color: #fff; }
.hero-section .hero-description p i { color: #94a3b8; }

/* ---------- Блок «Другие новости» ---------- */
.news-others {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.news-others .section-title { margin-bottom: 40px; }

/* ---------- Сетка новостей ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.news-grid .service-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-grid .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-grid .service-content {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-grid .service-content h3 {
    color: var(--secondary);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* ---------- Дата в карточке новости ---------- */
.item-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.item-category i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* ---------- Мобильная адаптация ---------- */
@media (max-width: 768px) {
    .breadcrumbs--news { font-size: 0.88rem; gap: 6px; }
    .hero-section .hero-description p { font-size: 0.92rem; }
    .news-others { margin-top: 40px; padding-top: 30px; }
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
}
/* ==========================================================================
   СТРАНИЦА СПИСКА НОВОСТЕЙ (news.html)
   ========================================================================== */

/* ---------- Секция со списком ---------- */
.news-list {
    padding: 60px 0 80px;
}

/* ---------- Сетка карточек ---------- */
.news-list .news-grid {
    margin-top: 0;
}

/* Карточка новости на этой странице */
.news-list .service-card {
    display: flex;
    flex-direction: column;
}

.news-list .service-content {
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.news-list .service-content h3 {
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 1.15rem;
    line-height: 1.4;
}

.news-list .service-content p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ---------- Кнопка «Читать подробнее» в карточке ---------- */
.news-card-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ---------- Пагинация ---------- */
.news-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.news-pagination .btn {
    min-width: 50px;
    padding: 10px 18px;
    font-size: 0.95rem;
}

/* ---------- Мобильная адаптация ---------- */
@media (max-width: 768px) {
    .news-list {
        padding: 40px 0 60px;
    }

    .news-list .service-content {
        padding: 20px;
    }

    .news-pagination {
        margin-top: 40px;
        padding-top: 25px;
        gap: 8px;
    }

    .news-pagination .btn {
        min-width: 44px;
        padding: 9px 15px;
        font-size: 0.9rem;
    }
}