.filter-bar {
    text-align: center;
    margin-bottom: 30px;
}

.news-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--tni-blue);
    background: transparent;
    color: var(--tni-blue);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--tni-blue);
    color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.news-thumb {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #333;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(253, 185, 49, 0.4);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
    margin-bottom: 15px;
}

.news-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}

.news-content h3 a:hover {
    color: #0056b3;
}

.news-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1; 
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0056b3;
    text-decoration: none;
    font-size: 0.95rem;
    transition: gap 0.3s;
    margin-top: auto;
}

.read-more:hover {
    gap: 12px;
    text-decoration: underline;
}

.news-date i {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .news-filters {
        gap: 10px;
        margin-bottom: 35px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

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

    .news-thumb {
        height: 200px;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 1.1rem;
    }

    .news-content p {
        font-size: 0.9rem;
        -webkit-line-clamp: 4;
                line-clamp: 4;
    }

    .read-more {
        font-size: 0.9rem;
    }
}