body { 
    font-family: 'Nunito', sans-serif; 
    background: #f9f9f9; 
    margin: 0; 
    padding: 0; 
    color: #333;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
}

/* --- HEADER & FILTER --- */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-title {
    color: #2196F3;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: #555;
    background: white;
    border: 1px solid #ddd;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.filter-btn:hover, .filter-btn.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

/* --- LAYOUT CHÍNH (2 CỘT) --- */
.main-layout {
    display: grid;
    grid-template-columns: 65% 32%; /* Cột trái 65%, Cột phải 32%, khoảng trống 3% */
    gap: 3%;
    align-items: start;
}

/* --- CỘT TRÁI: DANH SÁCH BÀI VIẾT --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #eee;
}
.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.news-thumb-link {
    width: 35%; /* Ảnh chiếm 35% chiều rộng thẻ */
    flex-shrink: 0;
    overflow: hidden;
}
.news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}
.news-item:hover .news-thumb { transform: scale(1.05); }

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 65%;
}

.news-cat {
    font-size: 0.8rem;
    font-weight: bold;
    color: #FF9800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.news-title a { text-decoration: none; color: #333; transition: 0.2s; }
.news-title a:hover { color: #2196F3; }

.news-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: auto;
}
.meta-icon { margin-right: 4px; }

/* --- CỘT PHẢI: BANNER --- */
.sidebar-banner {
    position: sticky;
    top: 90px; /* Dính khi cuộn (cách top 90px để tránh menu) */
}
.banner-placeholder {
    background-color: #E3F2FD;
    border: 2px dashed #90CAF9;
    border-radius: 12px;
    height: 500px; /* Chiều cao cố định cho banner dọc */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1565C0;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr; /* Về 1 cột */
    }
    
    /* Banner chuyển xuống dưới hoặc ẩn tùy ý */
    .sidebar-banner { 
        margin-top: 30px; 
        position: static; 
    }
    .banner-placeholder { height: 200px; } /* Banner ngang trên mobile */
}

@media (max-width: 600px) {
    .news-item {
        flex-direction: column; /* Ảnh lên trên, chữ xuống dưới */
    }
    .news-thumb-link {
        width: 100%;
        height: 200px;
    }
    .news-content {
        width: 100%;
    }
    .news-title { font-size: 1.2rem; }
}
