/* pro2 news-list.css - Green Accent (#00cc4c), Dark BG */

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

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    font-size: 14px;
    color: #999;
}
.breadcrumb a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: #00cc4c;
}

/* Category Navigation */
.news-category-nav {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.news-category-nav h2 {
    font-size: 16px;
    color: #00cc4c;
    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: rgba(255,255,255,0.04);
    color: #ccc;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s;
    font-size: 14px;
}
.category-item a:hover,
.category-item.active a {
    background: #00cc4c;
    color: #fff;
    border-color: #00cc4c;
}

/* Page Header */
.news-page-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.news-page-header h1 {
    font-size: 22px;
    color: #f8f8f8;
    margin: 0 0 10px;
}
.news-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888;
}
.news-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-stats .stat-num {
    color: #00cc4c;
    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: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.news-item:hover {
    border-color: #00cc4c;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,204,76,0.12);
}
.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: #f8f8f8;
    text-decoration: none;
    transition: color 0.3s;
}
.news-title a:hover {
    color: #00cc4c;
}
.news-summary {
    color: #999;
    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: #777;
    margin-top: 10px;
}
.news-category {
    background: rgba(0,204,76,0.12);
    color: #00cc4c;
    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: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ccc;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}
.pagination a:hover,
.pagination a.active {
    background: #00cc4c;
    border-color: #00cc4c;
    color: #fff;
}
.page-ellipsis {
    padding: 8px 12px;
    color: #777;
}

/* Sidebar */
.sidebar-block {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sidebar-title {
    font-size: 16px;
    color: #00cc4c;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,204,76,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 rgba(255,255,255,0.06);
    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: 60px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 4px;
}

/* Attribute selector for class prefix compatibility */
[class~="sidebar-block"] .news-thumb {
    width: 60px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 4px;
}

[class~="sidebar-block"] .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.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-title a {
    color: #d4d4d4;
}
.sidebar-block .news-title a:hover {
    color: #00cc4c;
}
.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: rgba(255,255,255,0.08);
    color: #999;
    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: #00cc4c;
    color: #fff;
}
.sidebar-rank .news-item:nth-child(2) .news-rank {
    background: rgba(0,204,76,0.6);
    color: #fff;
}
.sidebar-rank .news-item:nth-child(3) .news-rank {
    background: rgba(0,204,76,0.3);
    color: #d4d4d4;
}
.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: #777;
}

/* 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;
    }
}
