/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0 40px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header .header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-tab:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-dark);
    color: var(--white);
}

.filter-tab i {
    font-size: 1rem;
}

/* News Container */
.news-container {
    display: grid;
    gap: 24px;
    margin-bottom: 60px;
}

/* News Card */
.news-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.news-card.archived {
    opacity: 0.7;
    border-left-color: var(--text-light);
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.05), transparent);
    transition: right 0.6s ease;
}

.news-card:hover::after {
    right: 100%;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* News Header */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.news-title-section {
    flex: 1;
}

.news-card h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.news-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-date i {
    color: var(--primary-color);
}

/* Category Badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.general {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
}

.category-badge.urgent {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
}

.category-badge.exam {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #7b1fa2;
}

.category-badge.assignment {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #388e3c;
}

.category-badge.archived {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #616161;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: #f57f17;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.featured-badge i {
    animation: pulse 2s ease-in-out infinite;
}

/* News Content */
.news-content {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

.news-content p {
    margin-bottom: 16px;
}

.news-content ul,
.news-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.news-content li {
    margin-bottom: 8px;
}

.news-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.news-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.news-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.loading-state i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.loading-state p {
    font-size: 1.1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
        flex-direction: column;
    }

    .page-header p {
        font-size: 1rem;
    }

    .filter-tabs {
        gap: 8px;
    }

    .filter-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .news-card {
        padding: 24px;
    }

    .news-card h2 {
        font-size: 1.3rem;
    }

    .news-header {
        flex-direction: column;
    }

    .featured-badge {
        position: static;
        align-self: flex-start;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .news-card h2 {
        font-size: 1.2rem;
    }

    .news-content {
        font-size: 0.95rem;
    }
}
