.category-hero {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 30%),
                linear-gradient(90deg, rgba(0,0,0,0) 70%, rgba(0,0,0,1) 100%),
                linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
}

.category-hero-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 400px;
    padding: 40px 15px;
}

.category-hero-content {
    max-width: 800px;
    padding-bottom: 20px;
}

.category-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-main {
    padding: 30px 0 60px;
    background: #f5f5f5;
}

[data-theme="dark"] .category-main {
    background: #121212;
}

.news-list-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-list-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

[data-theme="dark"] .news-list-item {
    background: #1e1e1e;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

[data-theme="dark"] .news-list-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.news-list-image {
    position: relative;
    width: 280px;
    min-width: 280px;
    height: 180px;
    overflow: hidden;
}

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

.news-list-item:hover .news-list-image img {
    transform: scale(1.05);
}

.news-list-image .card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.news-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-list-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.news-list-item:hover .news-list-title {
    color: #1a1a1a;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
}

[data-theme="dark"] .news-list-title {
    color: #e0e0e0;
}

[data-theme="dark"] .news-list-item:hover .news-list-title {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.news-list-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

[data-theme="dark"] .news-list-desc {
    color: #aaa;
}

.news-list-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.card-category {
    padding: 5px 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* Цвета категорий - только для меток, не для меню */
.category-society { color: #cad4d4; }
.category-city { color: #0d3b3b; }
.category-incidents { color: #c62828; }
.category-politics { color: #1565c0; }
.category-economy { color: #2e7d32; }
.category-culture { color: #7b1fa2; }
.category-sport { color: #f57c00; }
.category-education { color: #00796b; }
.category-health { color: #d32f2f; }

.sidebar-dark {
    background: #1e1e1e;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    position: sticky;
    top: 80px;
}

[data-theme="dark"] .sidebar-dark {
    background: #1e1e1e;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: #cad4d4;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

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

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.category-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-menu-item {
    display: block;
    padding: 14px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #333;
    transition: all 0.2s ease;
}

.category-menu-item:hover {
    color: #cad4d4;
    padding-left: 20px;
    background: rgba(202, 212, 212, 0.1);
}

.category-menu-item.active {
    color: #cad4d4;
    border-left: 3px solid #cad4d4;
    padding-left: 12px;
}

.category-menu-item:last-child {
    border-bottom: none;
}

.sidebar-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

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

.news-item-category {
    display: inline-block;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    border-radius: 3px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.sidebar-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.sidebar-item-title:hover {
    color: #cad4d4;
}

.news-item-date {
    font-size: 11px;
    color: #888;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

[data-theme="dark"] .pagination {
    border-color: #333;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

[data-theme="dark"] .pagination-btn {
    background: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

[data-theme="dark"] .pagination-btn:hover:not(.disabled) {
    background: #cad4d4;
    border-color: #cad4d4;
    color: #1a1a1a;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-page {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    background: transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination-page:hover {
    background: rgba(26,26,26,0.1);
}

.pagination-page.active {
    background: #1a1a1a;
    color: #fff;
}

.pagination-dots {
    width: 40px;
    text-align: center;
    color: #999;
}

[data-theme="dark"] .pagination-page {
    color: #e0e0e0;
}

[data-theme="dark"] .pagination-page:hover {
    background: rgba(224,224,224,0.1);
}

[data-theme="dark"] .pagination-page.active {
    background: #cad4d4;
    color: #1a1a1a;
}

@media (max-width: 991px) {
    .news-list-item {
        flex-direction: column;
    }

    .news-list-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .sidebar-dark {
        position: static;
    }
}

@media (max-width: 768px) {
    .category-hero-title {
        font-size: 32px;
    }

    .category-hero {
        min-height: 300px;
    }

    .category-hero-container {
        min-height: 300px;
    }

    .news-list-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .category-hero-title {
        font-size: 24px;
    }

    .news-list-image {
        height: 160px;
    }

    .pagination-pages {
        display: none;
    }
}