/* Section 2 (News list with red background) */
.think-news-section {
    background-color: #550000; /* Fallback red */
    padding: 60px 0;
}

/* Container */
.think-news-container {
    max-width: 1000px;
    margin: 0 auto;
    color: #fff; /* Chữ màu trắng trên nền đỏ đậm */
    padding: 0 20px;
}

/* Filter Bar */
.think-news-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 20px;
    margin-bottom: 40px;
    gap: 30px;
    flex-wrap: wrap;
}
.filter-label {
    font-size: 14px;
    color: #e0e0e0;
}
.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.filter-list li {
    margin: 0;
}
.filter-list a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    padding: 5px 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.filter-list a:hover,
.filter-list a.active {
    border-color: rgba(255,255,255,0.5);
}

/* News List */
.think-news-list {
    display: flex;
    flex-direction: column;
}

/* Single News Item */
.think-news-item {
    display: flex;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    gap: 30px;
}
.tni-image {
    flex: 0 0 200px;
    width: 200px;
    height: 150px;
    background-color: #334455; /* Màu placeholder nếu không có ảnh */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.tni-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tni-placeholder {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}
.tni-placeholder .red-t {
    position: relative;
}
.tni-placeholder .red-t::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 8px;
    height: 8px;
    background-color: #e60000;
    z-index: -1;
}

/* Content Area */
.tni-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.tni-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 500;
}
.tni-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.tni-title a:hover {
    color: #ffcccc;
}
.tni-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
}
.tni-cat {
    background-color: #990000;
    padding: 2px 10px;
    border-radius: 2px;
}
.tni-excerpt {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Pagination */
.think-news-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}
.think-news-pagination a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s;
}
.think-news-pagination a:hover,
.think-news-pagination a.active {
    background-color: #e60000;
    border-color: #e60000;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .think-news-item {
        flex-direction: column;
    }
    .tni-image {
        width: 100%;
        flex: 0 0 auto;
    }
}
