/* ===== Existing styles (giữ nguyên) ===== */
.news-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto; /* scroll ngang nếu nhiều tab */
    -webkit-overflow-scrolling: touch;
}

.news-tab {
    padding: 10px 40px;
    border-radius: 30px;
    background: #F1F1F1;
    cursor: pointer;
    text-decoration: none;
    color: #567BB1;
    font-weight: 700;
    white-space: nowrap; /* tránh xuống dòng */
}

.news-tab.active {
    background: linear-gradient(95.01deg, #38A46F 0%, #386B7C 97.48%);
    color: #fff;
}

.news-search-box {
    margin: 20px 0;
}

.news-search-box input {
    width: 100% !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    box-shadow: 0 0 14px 0 #0000001A !important;
    height: 56px !important;
}

.featured-post {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.featured-post img {
    width: 400px;
    height: auto;
    object-fit: cover;
}

.featured-info {
    padding: 20px;
    flex: 1;
}

.news-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
}

.news-card img {
    width: 100%;
    height: 244px;
    object-fit: cover;
    margin-bottom: 25px;
}

.news-card .cats span.category-item {
    color: #6941C6;
    font-size: 14px;
    margin-right: 8px;
    background-color: #e0e0e0;
    border-radius: 16px;
    padding: 2px 10px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .featured-post {
        flex-direction: column;
        align-items: center;
    }

    .featured-post img {
        width: 100%;
        height: auto;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-tab {
        padding: 10px 12px;
        font-size: 12px;
    }

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

    .featured-info {
        padding: 15px;
    }

    .news-search-box input {
        padding: 12px 15px !important;
        font-size: 14px !important;
        height: 48px !important;
    }
}

@media (max-width: 480px) {
    .news-tab {
        font-size: 11px;
        padding: 8px 10px;
    }

    .news-search-box input {
        padding: 10px 12px !important;
        font-size: 13px !important;
        height: 42px !important;
    }

    .news-card img {
        height: 200px;
    }
}
