/* pro1 news-list.css - Sky Blue Accent (#38bdf8), Dark BG (#0b1120) */

.news-page {
    padding: 30px 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-muted, #64748b);
}
.breadcrumb a {
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: var(--accent-color, #38bdf8);
}

/* Category Navigation */
.news-category-nav {
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--border-color, #334155);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}
.news-category-nav h2 {
    font-size: 16px;
    color: var(--accent-color, #38bdf8);
    margin: 0 0 15px;
}
.news-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.category-item a {
    display: block;
    padding: 8px 18px;
    background: var(--card-bg, #1e293b);
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid var(--border-color, #334155);
    transition: all 0.3s;
    font-size: 14px;
}
.category-item a:hover,
.category-item.active a {
    background: rgba(56,189,248,0.15);
    color: var(--accent-color, #38bdf8);
    border-color: var(--accent-color, #38bdf8);
}

/* Page Header */
.news-page-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color, #334155);
}
.news-page-header h1 {
    font-size: 22px;
    color: var(--text-primary, #f8fafc);
    margin: 0 0 10px;
}
.news-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted, #64748b);
}
.news-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-stats .stat-num {
    color: var(--accent-color, #38bdf8);
    font-weight: 600;
}

/* Two-Column Layout */
.news-layout {
    display: flex;
    gap: 30px;
}
.news-main {
    flex: 1;
    min-width: 0;
}
.news-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* News List Items */
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s;
}
.news-item:hover {
    border-color: var(--accent-color, #38bdf8);
    transform: translateX(4px);
    box-shadow: var(--glow-accent, 0 0 20px rgba(56,189,248,0.15));
}
.news-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-item:hover .news-thumb img {
    transform: scale(1.05);
}
.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}
.news-title a {
    color: var(--text-primary, #f8fafc);
    text-decoration: none;
    transition: color 0.3s;
}
.news-title a:hover {
    color: var(--accent-color, #38bdf8);
}
.news-summary {
    color: var(--text-secondary, #94a3b8);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted, #64748b);
    margin-top: 10px;
}
.news-category {
    background: rgba(56,189,248,0.15);
    color: var(--accent-color, #38bdf8);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.pagination a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--border-color, #334155);
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}
.pagination a:hover,
.pagination a.active {
    background: var(--accent-color, #38bdf8);
    border-color: var(--accent-color, #38bdf8);
    color: #0b1120;
}
.page-ellipsis {
    padding: 8px 12px;
    color: var(--text-muted, #64748b);
}

/* Sidebar */
.sidebar-block {
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-title {
    font-size: 16px;
    color: var(--accent-color, #38bdf8);
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(56,189,248,0.3);
}

/* Sidebar Style 1: Thumb + Info (80x55) */
.sidebar-block .news-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color, #334155);
    border-radius: 0;
    transform: none;
    box-shadow: none;
}
.sidebar-block .news-item:last-child {
    border-bottom: none;
}
.sidebar-block .news-item:hover {
    transform: none;
    box-shadow: none;
}
.sidebar-block .news-thumb {
    width: 80px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 4px;
}
.sidebar-block .news-title {
    font-size: 13px;
    margin: 0;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-block .news-summary {
    display: none;
}
.sidebar-block .news-meta {
    font-size: 11px;
    margin-top: 5px;
}

/* Sidebar Style 2: Rank Badge */
.sidebar-rank .news-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-rank .news-rank {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--border-color, #334155);
    color: var(--text-secondary, #94a3b8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.sidebar-rank .news-item:nth-child(1) .news-rank {
    background: var(--accent-color, #38bdf8);
    color: #0b1120;
}
.sidebar-rank .news-item:nth-child(2) .news-rank {
    background: rgba(56,189,248,0.6);
    color: #0b1120;
}
.sidebar-rank .news-item:nth-child(3) .news-rank {
    background: rgba(56,189,248,0.3);
    color: var(--text-primary, #f8fafc);
}
.sidebar-rank .news-text {
    flex: 1;
    min-width: 0;
}
.sidebar-rank .news-text .news-title {
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Style 3: Image + Content (80x55, hide extras) */
.sidebar-media .news-item {
    display: flex;
    gap: 10px;
}
.sidebar-media .news-image {
    width: 80px;
    height: 55px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-media .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-media .news-content {
    flex: 1;
    min-width: 0;
}
.sidebar-media .news-content .news-title {
    font-size: 13px;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-media .news-content .news-summary,
.sidebar-media .news-content .news-category {
    display: none;
}

/* No News */
.no-news {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted, #64748b);
}

/* Responsive */
@media (max-width: 992px) {
    .news-layout {
        flex-direction: column;
    }
    .news-sidebar {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    .news-thumb {
        width: 100%;
        height: 180px;
    }
    .news-title {
        font-size: 16px;
    }
    .news-stats {
        flex-wrap: wrap;
    }
}
