/* ============================================================
   NEWS + ГЛАВНАЯ
   ============================================================ */
.news-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.news-cat {
    padding: 6px 14px;
    background: #eef2f7;
    color: #2c5aa0;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
}
.news-cat:hover { background: #dfe8f2; text-decoration: none; }
.news-cat.active { background: #4a7fc7; color: #fff; }

.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
    background: #fff;
    border: 1px solid #e3edf9;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 1px 4px rgba(74,127,199,0.06);
}
.news-title {
    margin: 0 0 6px;
    font-size: 16px;
    color: #2c5aa0;
    font-weight: 600;
    line-height: 1.3;
}
.news-title a { color: #2c5aa0; text-decoration: none; }
.news-title a:hover { text-decoration: underline; }

.news-meta, .news-full-meta {
    font-size: 12px;
    color: #6a7a8f;
    margin-bottom: 6px;
}
.news-meta span { margin-right: 10px; }
.news-cat-label a { color: #4a7fc7; text-decoration: none; }
.news-cat-label a:hover { text-decoration: underline; }
.news-thumb { margin: 8px 0; }
.news-thumb img {
    max-width: 160px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}
.news-anons {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 8px;
}

/* ---------- Мета + «Читати далі» — в одной строке ---------- */
.news-footer-meta {
    font-size: 11.5px;
    color: #888;
    margin-top: 6px;
    margin-bottom: 0;
    padding-top: 6px;
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-footer-meta .nf-sep { color: #ccc; margin: 0 4px; }
.news-footer-meta .nf-reads { color: #6a7a8f; }
.news-footer-meta .nf-comments { color: #4a7fc7; }

.news-footer-meta a {
    color: #6a7a8f;
    text-decoration: none;
    transition: color 0.15s ease;
}
.news-footer-meta a:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

.news-more {
    text-align: right;
    margin: 0;
}

.btn-read-more {
    color: #4a7fc7;
    text-decoration: none;
    font-weight: 600;
    font-size: 12.5px;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.btn-read-more:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

/* ---------- Остальное ---------- */
.news-sticky {
    display: inline-block;
    background: #f39c12;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-full-image { margin: 15px 0; }
.news-full-image img { max-width: 100%; border-radius: 6px; }
.news-full-body {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 25px;
    word-wrap: break-word;
    overflow-x: hidden;
    overflow-wrap: break-word;
    max-width: 100%;
}
.news-full-body a { color: #1976d2; word-break: break-word; }
.news-full-body img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}
.news-full-body table { max-width: 100% !important; border-collapse: collapse; }
.news-full-body th, .news-full-body td { padding: 6px 10px; border: 1px solid #d8e0eb; }
.news-full-body p { font-size: 15px; line-height: 1.7; margin: 0 0 14px 0; color: #333; }
.news-full-body ul, .news-full-body ol { padding-left: 24px; margin: 10px 0 16px; font-size: 15px; line-height: 1.7; }
.news-full-body li { margin-bottom: 6px; }
.news-full-body h1, .news-full-body h2, .news-full-body h3 {
    color: #2c5aa0; font-weight: 600; margin: 20px 0 10px; line-height: 1.3;
}
.news-full-body h1 { font-size: 22px; }
.news-full-body h2 { font-size: 19px; }
.news-full-body h3 { font-size: 17px; }
.news-full-body > div { max-width: 100%; }
.news-full-body img.news-qr, .news-qr {
    max-width: 220px !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.news-back { margin-top: 20px; }
.btn-back { color: #4a7fc7; text-decoration: none; font-size: 14px; }
.btn-back:hover { text-decoration: underline; }

.news-pagination { margin-top: 25px; text-align: center; }
.news-pagination ul.pagination {
    display: inline-flex; gap: 4px;
    list-style: none; padding: 0; margin: 0;
}
.news-pagination ul.pagination > li { display: inline-block; }
.news-pagination ul.pagination > li > a,
.news-pagination ul.pagination > li > span {
    display: inline-block;
    padding: 6px 12px;
    min-width: 36px;
    text-align: center;
    background: #fff;
    color: #4a7fc7;
    border: 1px solid #d8e0eb;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.news-pagination ul.pagination > li > a:hover {
    background: #eef4fc;
    border-color: #4a7fc7;
    text-decoration: none;
}
.news-pagination ul.pagination > li.active > a,
.news-pagination ul.pagination > li.active > span {
    background: #4a7fc7;
    color: #fff;
    border-color: #4a7fc7;
    font-weight: 600;
}
.news-pagination ul.pagination > li.disabled > span,
.news-pagination ul.pagination > li.disabled > a {
    color: #b0bec5;
    background: #f5f7fa;
    border-color: #e8ecf1;
    cursor: not-allowed;
}

.news-comments-block {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e3edf9;
}
.news-comments-title { font-size: 18px; color: #2c5aa0; font-weight: 600; margin: 0 0 15px; }
.news-comments-list { display: flex; flex-direction: column; gap: 14px; }
.news-comment {
    background: #f8fafd;
    border-left: 3px solid #4a7fc7;
    border-radius: 4px;
    padding: 10px 14px;
}
.news-comment-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    font-size: 13px;
}
.news-comment-author { font-weight: 600; color: #2c5aa0; }
.news-comment-date { color: #999; font-size: 12px; }
.news-comment-body { font-size: 14px; line-height: 1.6; color: #333; word-wrap: break-word; }

.news-anons-links {
    margin-top: 8px;
    display: flex; flex-wrap: wrap; gap: 8px 16px;
    align-items: center;
}
.news-anons-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px;
    background: #eef4fc;
    color: #2c5aa0;
    border: 1px solid #cdd9e8;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.news-anons-link:hover {
    background: #dbe8f8;
    border-color: #4a7fc7;
    text-decoration: none;
}

/* Главная */
.site-index { padding: 10px 0 30px; }
.welcome-block {
    background: linear-gradient(135deg, #eef4fc 0%, #e3edf9 100%);
    border: 1px solid #d4e2f3;
    border-radius: 10px;
    padding: 16px 30px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(74,127,199,0.08);
    position: relative;
}
.welcome-block::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a7fc7, transparent);
    margin: 0 auto;
    width: 60%;
    position: absolute;
    bottom: -12px;
    left: 20%;
}
.welcome-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    color: #2c5aa0;
    margin: 0 0 6px;
    line-height: 1.25;
}
.welcome-text {
    font-size: 14px;
    line-height: 1.5;
    color: #455a64;
    margin: 0 auto;
    max-width: 640px;
}
@media (max-width: 600px) {
    .welcome-block { padding: 12px 15px; margin-bottom: 14px; }
    .welcome-title { font-size: 16px; margin-bottom: 4px; }
    .welcome-text { font-size: 13px; line-height: 1.4; }
}
.home-news { margin-top: 25px; }
.home-news-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3edf9;
}
.home-news-header h2 {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 22px;
    font-style: italic;
    color: #2c5aa0;
    margin: 0;
    font-weight: 600;
}
.home-news-all { color: #4a7fc7; font-size: 13px; text-decoration: none; }
.home-news-all:hover { text-decoration: underline; color: #2c5aa0; }
.home-news-empty {
    padding: 30px;
    text-align: center;
    color: #999;
    background: #f8fafd;
    border-radius: 6px;
}
