* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a237e;
    --primary-dark: #0d1442;
    --accent: #c62828;
    --accent-dark: #a51f1f;
    --text: #2c2c2c;
    --text-light: #6b7280;
    --border: #e5e7eb;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f0f2f5;
    color: var(--text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-header {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 18px;
    border-bottom: 3px solid var(--primary);
}

.page-header h1 {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header h1 i {
    color: var(--accent);
    font-size: 1.3rem;
}

.page-header .breadcrumb {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

.page-header .breadcrumb a:hover {
    color: var(--primary);
}

.toolbar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 16px;
    margin-bottom: 16px;
}

.toolbar-search {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.toolbar-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    outline: none;
    font-family: inherit;
}

.toolbar-search input:focus {
    border-color: var(--primary);
}

.toolbar-search button {
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .2s;
}

.toolbar-search button:hover {
    background: var(--primary-dark);
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chips a {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f0f2f5;
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: all .2s;
}

.filter-chips a:hover {
    background: #e8eaf6;
    color: var(--primary);
    border-color: var(--primary);
}

.filter-chips a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
}

.result-info .count {
    font-size: 0.82rem;
    color: var(--text-light);
}

.result-info .clear-filter {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
}

.result-info .clear-filter:hover {
    text-decoration: underline;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.news-item {
    display: flex;
    gap: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 10px;
    transition: box-shadow .2s, transform .2s;
}

.news-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.news-thumb {
    position: relative;
    flex: 0 0 180px;
    height: 112px;
    border-radius: 6px;
    overflow: hidden;
    background: #e0e0e0;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-thumb span {
    position: absolute;
    top: 7px;
    left: 7px;
    background: var(--primary);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
}

.news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2px 4px;
}

.news-content h4 {
    font-size: 0.98rem;
    line-height: 1.32;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content h4 a:hover {
    color: var(--primary);
}

.news-content .meta {
    font-size: 0.74rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.news-content .meta i {
    color: var(--accent);
}

.news-content p {
    color: #666;
    font-size: 0.82rem;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

mark {
    background: #fff2a8;
    color: inherit;
    border-radius: 2px;
    padding: 0 2px;
}

@media(max-width:600px) {
    .news-item {
        padding: 7px;
        gap: 10px;
    }

    .news-thumb {
        flex: 0 0 100px;
        height: 100px;
    }

    .news-content {
        padding: 2px;
    }

    .news-content h4 {
        font-size: 0.88rem;
        -webkit-line-clamp: 3;
    }

    .news-content p {
        display: none;
    }

    .toolbar-search button span {
        display: none;
    }
}

.empty {
    text-align: center;
    padding: 60px 20px;
    color: #777;
    background: #fff;
    border-radius: 10px;
}

.empty i {
    font-size: 2.4rem;
    color: var(--border);
    margin-bottom: 14px;
}

.empty a {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 18px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
}

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 40px;
}

.pagination-nav .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all .2s;
}

.pagination-nav .page-btn:hover:not(.disabled):not(.active) {
    background: var(--primary);
    color: #fff;
}

.pagination-nav .page-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: none;
}

.pagination-nav .page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination-nav .page-nav {
    color: var(--text-light);
}

.pagination-nav .page-ellipsis {
    padding: 0 6px;
    color: var(--text-light);
    font-size: 0.85rem;
}