/* NEWS Section Styles */
.news-section {
    min-height: 100vh;
    padding: var(--section-padding);
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.news-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('public/news-section.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 11, 0.85) 0%,
        rgba(26, 26, 27, 0.75) 50%,
        rgba(10, 10, 11, 0.85) 100%
    );
    z-index: 1;
}

.news-section .container {
    position: relative;
    z-index: 2;
}

.news-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Force visibility for news elements - Override any animation systems */
#featured-article,
#news-articles,
.news-grid,
.news-sidebar,
.news-article-card,
.featured-article,
.news-articles,
.news-section .featured-article,
.news-section .news-grid,
.news-section .news-articles,
.news-section .news-sidebar,
.news-section .news-article-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Featured Article */
.featured-article {
    background: linear-gradient(
        145deg,
        rgba(26, 26, 26, 0.8) 0%,
        rgba(40, 40, 45, 0.8) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
    backdrop-filter: blur(20px) saturate(120%);
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    margin-bottom: 4rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.featured-article:hover {
    transform: translateY(-8px);
    border-color: rgba(2, 113, 252, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.featured-article-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
}

.featured-article-content {
    padding: 2.5rem;
}

.featured-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.featured-article-category {
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-article-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-article-read-more:hover {
    color: #4a9eff;
    transform: translateX(5px);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    opacity: 1;
    visibility: visible;
}

.news-articles {
    display: grid;
    gap: 2rem;
    opacity: 1;
    visibility: visible;
}

/* News Article Cards */
.news-article-card {
    background: linear-gradient(
        145deg,
        rgba(26, 26, 26, 0.6) 0%,
        rgba(40, 40, 45, 0.6) 50%,
        rgba(26, 26, 26, 0.6) 100%
    );
    backdrop-filter: blur(15px) saturate(120%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
}

.news-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.news-article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(2, 113, 252, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.news-article-card:hover::before {
    transform: scaleX(1);
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.news-article-category {
    background: rgba(2, 113, 252, 0.2);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.7rem;
    font-weight: 600;
}

.news-article-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-article-excerpt {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-article-read-more {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.news-article-read-more:hover {
    color: #4a9eff;
    transform: translateX(3px);
}

/* News Sidebar */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 1;
    visibility: visible;
}

.news-filter h3,
.latest-updates h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-btn {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.latest-updates {
    background: linear-gradient(
        145deg,
        rgba(26, 26, 26, 0.6) 0%,
        rgba(40, 40, 45, 0.6) 50%,
        rgba(26, 26, 26, 0.6) 100%
    );
    backdrop-filter: blur(15px) saturate(120%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.update-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.update-item:last-child {
    border-bottom: none;
}

.update-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.update-item p {
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* News Actions */
.news-actions {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.archive-btn {
    background: linear-gradient(135deg, rgba(2, 113, 252, 0.2), rgba(2, 86, 214, 0.3));
    border: 1px solid rgba(2, 113, 252, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.archive-btn:hover {
    background: linear-gradient(135deg, rgba(2, 113, 252, 0.3), rgba(2, 86, 214, 0.4));
    border-color: rgba(2, 113, 252, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 113, 252, 0.2);
}

/* News Modal */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.news-modal.active {
    opacity: 1;
    visibility: visible;
}

.news-modal-content {
    background: linear-gradient(
        145deg,
        rgba(26, 26, 26, 0.95) 0%,
        rgba(40, 40, 45, 0.95) 50%,
        rgba(26, 26, 26, 0.95) 100%
    );
    backdrop-filter: blur(20px) saturate(120%);
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.news-modal.active .news-modal-content {
    transform: scale(1);
}

.news-modal-header {
    position: sticky;
    top: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.news-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.news-modal-body {
    padding: 2rem;
}

.news-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.news-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-modal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.news-modal-category {
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.news-modal-content-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

.news-modal-content-text p {
    margin-bottom: 1.5rem;
}

/* Loading state */
.news-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Error state */
.news-error {
    text-align: center;
    padding: 3rem;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

/* Info state */
.news-info {
    text-align: center;
    padding: 3rem;
    color: var(--primary-color);
    background: rgba(2, 113, 252, 0.1);
    border: 1px solid rgba(2, 113, 252, 0.2);
    border-radius: var(--border-radius);
    margin: 2rem 0;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-sidebar {
        order: -1;
    }
    
    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .featured-article-title {
        font-size: 1.5rem;
    }
    
    .featured-article-content {
        padding: 1.5rem;
    }
    
    /* Improved modal responsiveness for tablets */
    .news-modal {
        padding: 1.5rem;
    }
    
    .news-modal-content {
        margin: 0;
        max-width: 100%;
        max-height: calc(100vh - 3rem);
        width: 100%;
    }
    
    .news-modal-body {
        padding: 1.5rem;
    }
    
    .news-modal-title {
        font-size: 1.5rem;
    }
    
    .news-modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .news-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .featured-article-image {
        height: 200px;
    }
    
    .featured-article-content {
        padding: 1rem;
    }
    
    .news-article-card {
        padding: 1rem;
    }
    
    .latest-updates {
        padding: 1rem;
    }
    
    .archive-section {
        padding: 5rem 0 2rem;
    }
    
    .archive-controls {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .archive-articles .news-articles {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Enhanced mobile modal responsiveness */
    .news-modal {
        padding: 0.75rem;
    }
    
    .news-modal-content {
        margin: 0;
        max-width: 100%;
        width: 100%;
        max-height: calc(100vh - 1.5rem);
        border-radius: 12px;
    }
    
    .news-modal-header {
        padding: 1rem 1.25rem;
        border-radius: 12px 12px 0 0;
    }
    
    .news-modal-body {
        padding: 1.25rem;
    }
    
    .news-modal-title {
        font-size: 1.4rem;
        line-height: 1.4;
    }
    
    .news-modal-image {
        height: 200px;
        margin-bottom: 1.5rem;
    }
    
    .news-modal-content-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .news-modal-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
}

/* Archive Page Specific Styles */
.archive-section {
    min-height: 100vh;
    padding: 6rem 0 4rem;
}

.archive-controls {
    background: linear-gradient(
        145deg,
        rgba(26, 26, 26, 0.8) 0%,
        rgba(40, 40, 45, 0.8) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
    backdrop-filter: blur(20px) saturate(120%);
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.archive-stats {
    text-align: center;
    margin-bottom: 2rem;
}

.archive-stats span {
    font-size: 1.1rem;
    color: var(--text-secondary);
    background: rgba(2, 113, 252, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(2, 113, 252, 0.2);
}

.archive-filters {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.filter-section h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.archive-sort-select {
    width: 100%;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.archive-sort-select:hover,
.archive-sort-select:focus {
    border-color: rgba(2, 113, 252, 0.3);
    background: rgba(26, 26, 26, 0.9);
    outline: none;
}

.archive-sort-select option {
    background: var(--background-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
}

.archive-grid {
    display: grid;
    gap: 3rem;
}

.archive-featured {
    margin-bottom: 2rem;
}

.archive-articles .news-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.archive-actions {
    text-align: center;
    margin-top: 3rem;
}

/* Mobile Responsiveness for Archive */
@media (max-width: 768px) {
    .archive-filters {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .archive-articles .news-articles {
        grid-template-columns: 1fr;
    }
    
    .archive-controls {
        padding: 1.5rem;
    }
} 