/* ===== ПЕРЕОПРЕДЕЛЕНИЕ СТИЛЕЙ DLE ДЛЯ БЛОКОВ НОВОСТЕЙ ===== */

/* === Общий блок "Новости соседей" === */
.col-right .neighbors-news,
#sidebar .neighbors-news {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    padding: 16px 20px !important;
    margin-bottom: 24px !important;
}
.col-right .neighbors-news h3,
#sidebar .neighbors-news h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    border-bottom: 2px solid #eee !important;
    padding-bottom: 8px !important;
    font-family: inherit !important;
}

/* === Региональные блоки (внутри "Новости соседей") === */
.col-right .region-news,
.col-right .federal-news,
#sidebar .region-news,
#sidebar .federal-news {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
}
.col-right .region-news h4,
.col-right .federal-news h4,
#sidebar .region-news h4,
#sidebar .federal-news h4 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin: 0 0 10px 0 !important;
    border-bottom: 1px dashed #ddd !important;
    padding-bottom: 4px !important;
    font-family: inherit !important;
}
.col-right .region-news ul,
.col-right .federal-news ul,
#sidebar .region-news ul,
#sidebar .federal-news ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.col-right .region-news li,
.col-right .federal-news li,
#sidebar .region-news li,
#sidebar .federal-news li {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f5f5f5 !important;
}
.col-right .region-news li:last-child,
.col-right .federal-news li:last-child,
#sidebar .region-news li:last-child,
#sidebar .federal-news li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* === Дата в блоках === */
.col-right .news-date,
#sidebar .news-date {
    font-size: 12px !important;
    color: #999 !important;
    display: inline-block !important;
    background: #f0f0f0 !important;
    padding: 1px 8px !important;
    border-radius: 12px !important;
    margin-right: 8px !important;
    font-weight: normal !important;
    font-family: inherit !important;
}

/* === Ссылки в блоках (чёрные, при наведении красные) === */
.col-right .region-news a,
.col-right .federal-news a,
#sidebar .region-news a,
#sidebar .federal-news a {
    color: #000000 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}
.col-right .region-news a:hover,
.col-right .federal-news a:hover,
#sidebar .region-news a:hover,
#sidebar .federal-news a:hover {
    color: #cc0000 !important;
    text-decoration: underline !important;
}

/* === Город в скобках === */
.col-right .region-news small,
.col-right .federal-news small,
#sidebar .region-news small,
#sidebar .federal-news small {
    font-size: 11px !important;
    color: #888 !important;
    font-weight: normal !important;
}

/* === Блок "Интересно" (карточки) === */
.col-right .interesting-block,
#sidebar .interesting-block {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    padding: 16px 20px !important;
    margin-top: 30px !important;
    margin-bottom: 24px !important;
}
.col-right .interesting-block h2,
#sidebar .interesting-block h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    border-bottom: 2px solid #eee !important;
    padding-bottom: 8px !important;
}
.col-right .interesting-block ul,
#sidebar .interesting-block ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.col-right .interesting-block li,
#sidebar .interesting-block li {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f5f5f5 !important;
}
.col-right .interesting-block li:last-child,
#sidebar .interesting-block li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.col-right .interesting-block .news-date,
#sidebar .interesting-block .news-date {
    font-size: 12px !important;
    color: #999 !important;
    display: inline-block !important;
    background: #f0f0f0 !important;
    padding: 1px 8px !important;
    border-radius: 12px !important;
    margin-right: 8px !important;
}
.col-right .interesting-block a,
#sidebar .interesting-block a {
    color: #000000 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}
.col-right .interesting-block a:hover,
#sidebar .interesting-block a:hover {
    color: #cc0000 !important;
    text-decoration: underline !important;
}

/* === Переопределение h1 на странице новости === */
.article .sect-title h1,
.sect-title h1 {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #000000 !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
}

/* === Лента новостей на главной === */
.news-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}
.news-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
}
.news-item h3 a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}
.news-item h3 a:hover {
    color: #cc0000;
}
.news-item .news-date {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-item .news-date .far {
    margin-right: 5px;
}

/* === Пагинация === */
.pagination-container {
    margin-top: 30px;
    text-align: center;
}
.pagination {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 16px;
}
.pagination a {
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 6px;
    color: #000;
    text-decoration: none;
    transition: background 0.2s;
}
.pagination a:hover {
    background: #e0e0e0;
}
.pagination span.current {
    padding: 6px 12px;
    background: #cc0000;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
}
.pagination span.dots {
    padding: 6px 12px;
}

/* === Новая компактная шапка === */
.header .header-in {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 15px;
}
.header .logo img {
    height: 40px;
    width: auto;
}
.header .header-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: flex-end;
}
.header .header-menu a {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.header .header-menu a:hover {
    background: #f0f0f0;
    color: #cc0000;
}
@media (max-width: 768px) {
    .header .header-in {
        flex-direction: column;
        align-items: center;
    }
    .header .header-menu {
        justify-content: center;
    }
}
/* Стили для выпадающего меню "Ещё" */
.header-menu .submenu:hover .hidden-menu {
    display: block !important;
}
.header-menu .submenu .hidden-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 160px;
    z-index: 100;
    list-style: none;
}
.header-menu .submenu .hidden-menu li {
    margin: 0;
}
.header-menu .submenu .hidden-menu a {
    display: block;
    padding: 6px 16px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.header-menu .submenu .hidden-menu a:hover {
    background: #f0f0f0;
    color: #cc0000;
}
@media (max-width: 768px) {
    .header-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-in {
        flex-wrap: wrap;
    }
    .ioubfa {
        margin: 5px 0;
    }
}
/* Выпадающее меню "Ещё" */
.header-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 140px;
    z-index: 100;
    flex-direction: column;
}
.header-menu .dropdown-menu a {
    display: block;
    padding: 6px 16px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.header-menu .dropdown-menu a:hover {
    background: #f0f0f0;
    color: #cc0000;
}
.header-menu > div:hover .dropdown-menu {
    display: flex !important;
}
/* === Пагинация === */
.pagination-container {
    margin-top: 30px;
    text-align: center;
}
.pagination {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 16px;
}
.pagination a {
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 6px;
    color: #000;
    text-decoration: none;
    transition: background 0.2s;
}
.pagination a:hover {
    background: #e0e0e0;
}
.pagination span.current {
    padding: 6px 12px;
    background: #cc0000;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
}
.pagination span.dots {
    padding: 6px 12px;
}