/* News Page Styles */

/* 1. Filter Tabs */
.news-filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* ... News Grid ... */

/* 3. Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 80px;
}

.news-filter {
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    background: white;
    font-size: 1.05rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.news-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 114, 66, 0.2);
}

/* 2. News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Thumbnail */
.news-thumb {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.05);
}

/* Badge */
.news-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    /* Fallback */
    backdrop-filter: blur(5px);
}

.badge-notice {
    background: var(--primary);
}

.badge-event {
    background: #FF6B6B;
    /* Accent color */
}

.badge-press {
    background: #333;
}

/* Info */
.news-info {
    padding: 30px;
    flex: 1;
    /* Pushes footer down if needed, but here structure is simple */
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Meta Data */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    margin-top: auto;
}

.news-stats-group {
    display: flex;
    gap: 15px;
}

.news-date {
    font-weight: 500;
}

.news-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* 3. Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    color: #555;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .news-content {
        padding-top: 70px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-thumb {
        height: 200px;
    }

    .news-info {
        padding: 20px;
    }

    .news-filter-container {
        gap: 10px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .news-filter {
        padding: 8px 16px;
        font-size: 0.95rem;
    }

    .pagination {
        margin-bottom: 40px;
    }
}