/* =====================================================
   OP3 Template - News List Page Styles
   Theme: Light (Cyan #00d4ff)
   Author: BossV Team
   ===================================================== */

/* ===== Page Layout ===== */
.news-page {
    padding: 30px 0 50px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-sec, #666666);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #00d4ff;
}

/* ===== Category Navigation ===== */
.news-category-nav {
    background: rgba(0, 212, 255, 0.04);
    padding: 20px;
    border-radius: var(--radius-md, 10px);
    margin-bottom: 25px;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.news-category-nav .category-title {
    margin: 0 0 15px;
    font-size: 16px;
    color: #00d4ff;
    font-weight: 600;
}

.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: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.category-item a:hover,
.category-item.active a {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.3);
}

/* ===== Page Header ===== */
.page-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.page-header h1 {
    font-size: 22px;
    color: #333333;
    margin: 0 0 12px;
    font-weight: 700;
}

.page-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888888;
}

.page-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-stats .stat-value {
    color: #00d4ff;
    font-weight: 600;
}

/* ===== Two Column Layout ===== */
.news-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.news-main {
    flex: 1;
    min-width: 0;
}

.news-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ===== News List Items ===== */
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: var(--radius-md, 10px);
    margin-bottom: 15px;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.news-item:hover {
    background: rgba(0, 212, 255, 0.04);
    border-color: rgba(0, 212, 255, 0.15);
    transform: translateX(4px);
}

.news-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.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;
    min-width: 0;
}

.news-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.news-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #00d4ff;
}

.news-summary {
    color: #888888;
    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: #999;
    margin-top: 12px;
    flex-wrap: wrap;
}

.news-category {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* ===== Pagination ===== */
.pagination,
.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: #f8f9fa;
    color: #888;
    text-decoration: none;
    border-radius: var(--radius-sm, 6px);
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.pagination a:hover,
.pagination a.active,
.pagination span.current,
.pagination-wrapper a:hover,
.pagination-wrapper a.active,
.pagination-wrapper span.current {
    background: #00d4ff;
    color: #ffffff;
    border-color: #00d4ff;
}

.page-ellipsis {
    background: transparent !important;
    border: none !important;
    color: #999;
}

/* ===== Sidebar ===== */
.sidebar-block {
    background: #ffffff;
    border-radius: var(--radius-md, 10px);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.sidebar-title {
    font-size: 16px;
    color: #00d4ff;
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    font-weight: 600;
}

/* Sidebar Type 1: .news-thumb + .news-info (80x55) */
.sidebar-block .news-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
}

.sidebar-block .news-item:last-child {
    border-bottom: none;
}

.sidebar-block .news-item:hover {
    transform: none;
    background: transparent;
}

.sidebar-block .news-thumb {
    width: 80px;
    height: 55px;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-block .news-info {
    flex: 1;
    min-width: 0;
}

.sidebar-block .news-title {
    font-size: 14px;
    margin: 0 0 4px;
    line-height: 1.4;
}

.sidebar-block .news-title a {
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-block .news-title a:hover {
    color: #00d4ff;
}

.sidebar-block .news-summary {
    display: none;
}

.sidebar-block .news-meta {
    font-size: 11px;
    margin-top: 4px;
    gap: 10px;
}

/* Sidebar Type 2: .news-rank + .news-text (badge+text) */
.sidebar-block .news-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-block .news-item:nth-child(1) .news-rank,
.sidebar-block .news-item:nth-child(2) .news-rank,
.sidebar-block .news-item:nth-child(3) .news-rank {
    background: #00d4ff;
    color: #ffffff;
}

.sidebar-block .news-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.sidebar-block .news-text a {
    color: #555;
    text-decoration: none;
}

.sidebar-block .news-text a:hover {
    color: #00d4ff;
}

/* Sidebar Type 3: .news-image + .news-content (80x55, hide extras) */
.sidebar-block .news-image {
    width: 80px;
    height: 55px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-block .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-block .news-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sidebar-block .news-content a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.sidebar-block .news-content a:hover {
    color: #00d4ff;
}

.sidebar-block .news-content .news-date,
.sidebar-block .news-content .news-extra {
    display: none;
}

/* ===== News Categories (op3 specific) ===== */
.news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.news-categories a {
    padding: 8px 18px;
    background: #f8f9fa;
    color: #555;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.news-categories a:hover,
.news-categories a.active {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.3);
}

/* ===== No Results ===== */
.no-news {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .news-sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .news-layout {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
    }

    .news-item {
        flex-direction: column;
    }

    .news-thumb {
        width: 100%;
        height: 180px;
    }

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

    .page-stats {
        flex-wrap: wrap;
        gap: 10px;
    }

    .news-category-nav {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .news-page {
        padding: 15px 0 30px;
    }

    .pagination a,
    .pagination span,
    .pagination-wrapper a,
    .pagination-wrapper span {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }
}
