/* News Page Specific Styles */

/* Active nav link */
.nav-link.active {
    color: var(--accent-primary);
    background: var(--accent-light);
}

/* News Hero */
.news-hero {
    padding: 120px 0 48px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.news-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.news-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-light);
    border-radius: 100px;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.news-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.news-hero p {
    font-size: 1.05em;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Featured News */
.featured-news {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-primary);
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.featured-article {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.15s ease;
}

.featured-article:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.featured-article.main {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.featured-article.main .featured-image {
    height: 100%;
    min-height: 320px;
}

.featured-image {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(168, 85, 247, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.featured-image[style*="background-image"] {
    background-color: transparent;
}

.featured-icon {
    font-size: 5em;
}

.featured-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.featured-article.main .featured-content h2 {
    font-size: 1.75em;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.featured-article.main .featured-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    flex: 1;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.featured-article.small {
    flex: 1;
}

.featured-article.small .featured-content {
    padding: 24px;
}

.featured-article.small h3 {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.featured-article.small p {
    color: var(--text-muted);
    font-size: 0.9em;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.article-meta .category {
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-secondary);
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-meta .date {
    color: var(--text-muted);
    font-size: 0.85em;
}

.read-article {
    display: inline-flex;
    align-items: center;
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.read-article:hover {
    color: var(--accent-primary);
}

/* News Categories */
.news-categories {
    padding: 40px 0;
    position: sticky;
    top: 72px;
    background: var(--bg-primary);
    z-index: 50;
    border-bottom: 1px solid var(--border-subtle);
}

.category-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.category-tab {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.category-tab.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

/* News List */
.news-list {
    padding: 60px 0;
}

.news-articles {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-article {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-article:hover {
    border-color: var(--border-accent);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.article-image {
    width: 200px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.article-image.has-image {
    font-size: 0;
}

.article-image.gradient-1 {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
}

.article-image.gradient-2 {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.article-image.gradient-3 {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.article-content {
    padding: 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-article h3 {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.news-article p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.read-time {
    color: var(--text-muted);
    font-size: 0.85em;
}

.read-more {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: var(--accent-primary);
}

/* Load More */
.load-more-container {
    display: flex;
    justify-content: center;
    padding: 48px 0;
}

.btn-load-more {
    padding: 16px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-article.main {
        grid-template-columns: 1fr;
    }
    
    .featured-article.main .featured-image {
        min-height: 200px;
    }
    
    .featured-sidebar {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 140px 0 60px;
    }
    
    .news-hero h1 {
        font-size: 2rem;
    }
    
    .featured-sidebar {
        flex-direction: column;
    }
    
    .news-article {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        min-height: 140px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .category-tabs {
        gap: 8px;
    }
    
    .category-tab {
        padding: 10px 18px;
        font-size: 0.85em;
    }
}

