/* ============================================
   News List Page Styles (news_list.css)
   ============================================ */

/* ---------- Breadcrumb ---------- */
.nl-breadcrumb {
    background: linear-gradient(to right, #F9FAFB, #fff);
    border-bottom: 1px solid #F3F4F6;
    margin-top: 80px;
    padding: 0 24px;
}

.nl-breadcrumb-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
}

.nl-breadcrumb-inner a {
    color: #6B7280;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
}

.nl-breadcrumb-inner a:hover {
    color: #E85A24;
    background: rgba(232, 90, 36, 0.06);
}

.nl-breadcrumb-inner a:first-child::before {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.nl-breadcrumb-inner a:first-child:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E85A24' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

.nl-bc-sep {
    margin: 0 4px;
    color: #D1D5DB;
    font-size: 11px;
    user-select: none;
}

.nl-bc-current {
    color: #E85A24;
    font-weight: 600;
    padding: 4px 8px;
}

/* ---------- Page Header ---------- */
.nl-page-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 24px;
}

.nl-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1A2B4A;
    margin-bottom: 8px;
}

.nl-page-header p {
    font-size: 15px;
    color: #6B7280;
}

/* ---------- Main Layout ---------- */
.nl-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: flex;
    gap: 32px;
}

/* ---------- Left Sidebar ---------- */
.nl-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.nl-sidebar-section {
    margin-bottom: 24px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.nl-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A2B4A;
    padding: 14px 16px;
    background: #f5f6f8;
    border-bottom: 2px solid #E55D25;
}

/* Search */
.nl-search-box {
    padding: 12px 16px;
}

.nl-search-box input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.nl-search-box input:focus {
    outline: none;
    border-color: #E55D25;
}

.nl-search-btn {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    background: #E55D25;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.nl-search-btn:hover {
    background: #d4522a;
}

/* Categories */
.nl-cat-list {
    list-style: none;
    padding: 8px 0;
}

.nl-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nl-cat-list li a:hover,
.nl-cat-list li a.active {
    color: #E55D25;
    background: #fff5f0;
    border-left-color: #E55D25;
}

.nl-cat-count {
    color: #999;
    font-size: 12px;
}

/* Popular Posts */
.nl-popular-list {
    padding: 12px;
}

.nl-popular-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.2s;
}

.nl-popular-item:last-child {
    border-bottom: none;
}

.nl-popular-item:hover {
    background: #fafbfc;
    margin: 0 -12px;
    padding: 10px 12px;
}

.nl-popular-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.nl-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nl-popular-info {
    flex: 1;
    min-width: 0;
}

.nl-popular-title {
    font-size: 12px;
    color: #444;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.nl-popular-date {
    font-size: 11px;
    color: #999;
}

/* CTA Box */
.nl-cta-box {
    background: linear-gradient(135deg, #1A2B4A 0%, #2D4A75 100%);
    padding: 24px 16px;
    text-align: center;
    color: #fff;
}

.nl-cta-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.nl-cta-box p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
    line-height: 1.6;
}

.nl-cta-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #E55D25;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.nl-cta-btn:hover {
    background: #d4522a;
    transform: translateY(-2px);
}

/* ---------- News List ---------- */
.nl-content {
    flex: 1;
    min-width: 0;
}

.nl-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

/* News Card */
.nl-news-card {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.nl-news-card:hover {
    border-color: #E55D25;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.nl-news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f6f8;
}

.nl-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.nl-news-card:hover .nl-news-image img {
    transform: scale(1.05);
}

.nl-news-body {
    padding: 16px;
}

.nl-news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
}

.nl-news-category {
    color: #E55D25;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nl-news-date {
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nl-news-title {
    font-size: 15px;
    font-weight: 600;
    color: #1A2B4A;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl-news-excerpt {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl-news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #E55D25;
}

/* ---------- Pagination ---------- */
.nl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.nl-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.nl-page-btn:hover {
    border-color: #E55D25;
    color: #E55D25;
}

.nl-page-btn.active {
    background: #E55D25;
    border-color: #E55D25;
    color: #fff;
}

.nl-page-btn.prev,
.nl-page-btn.next {
    padding: 0 14px;
    gap: 4px;
}

.nl-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1100px) {
    .nl-main {
        flex-direction: column;
    }

    .nl-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .nl-sidebar-section {
        margin-bottom: 0;
    }

    .nl-cta-box {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nl-page-header {
        padding: 24px 16px 16px;
    }

    .nl-page-header h1 {
        font-size: 22px;
    }

    .nl-main {
        padding: 0 16px 40px;
    }

    .nl-sidebar {
        display: none;
    }

    .nl-news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nl-news-image {
        height: 200px;
    }

    .nl-pagination {
        flex-wrap: wrap;
    }
}
