/* News Page Styles */
.news-page {
    background: var(--background-dark);
    min-height: 100vh;
    padding-top: 80px;
}

/* News Header */
.news-header {
    text-align: center;
    padding: 3rem 2rem;
}

.news-header h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.news-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-btn i {
    margin-right: 0.5rem;
}

.category-btn:hover, .category-btn.active {
    background: var(--gradient-2);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Featured News */
.featured-news {
    margin: 2rem;
    padding: 2rem;
    border-radius: 24px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.main-story {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.main-story:hover {
    transform: translateY(-5px);
}

.story-image {
    position: relative;
    width: 100%;
    height: 400px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 1;
}

.category-tag.campus {
    background: linear-gradient(45deg, #4361ee, #4cc9f0);
}

.category-tag.international {
    background: linear-gradient(45deg, #f72585, #7209b7);
}

.category-tag.sports {
    background: linear-gradient(45deg, #4cc9f0, #06d6a0);
}

.category-tag.local {
    background: linear-gradient(45deg, #ffd60a, #fca311);
}

.story-content {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
}

.story-content h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
}

.story-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.story-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.side-stories {
    display: grid;
    gap: 1rem;
}

.story-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-card .story-image {
    height: 200px;
}

.story-card h3 {
    padding: 1rem;
    color: white;
    font-size: 1.2rem;
}

.story-card p {
    padding: 0 1rem 1rem;
    color: var(--text-secondary);
}

/* News Grid */
.news-grid {
    padding: 2rem;
}

.news-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title i {
    font-size: 1.8rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    max-height: 4.8em;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.card-content p.expanded {
    max-height: none;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
}

.news-card.hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .side-stories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-header h1 {
        font-size: 2.5rem;
    }

    .featured-news {
        margin: 1rem;
        padding: 1rem;
    }

    .side-stories {
        grid-template-columns: 1fr;
    }

    .story-image {
        height: 300px;
    }

    .news-grid {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading-skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        background-position: -200% 0;
    }
} 