/* News Section Styles - Enhanced Design */

/* Base Styles */
.news-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, var(--background-primary) 0%, rgba(var(--accent-rgb), 0.02) 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative Background Elements */
.news-page::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.news-page::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.03) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

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

/* Enhanced Typography */
.page-title {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    animation: fadeInDown 0.6s ease-out;
}

.news-intro {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    text-align: center;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Visual Separator */
.news-intro::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    margin: 2rem auto 0;
    border-radius: 2px;
}

/* News List - Enhanced */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.news-item {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.news-item:hover::before {
    opacity: 1;
}

/* News Title with Hover Effect */
.news-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.news-link {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.news-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.news-link:hover {
    color: var(--accent-color);
}

.news-link:hover::after {
    width: 100%;
}

/* Enhanced Meta Information */
.news-meta {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-date::before {
    content: '📅';
    font-size: 1rem;
    opacity: 0.7;
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Enhanced Read More Link */
.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.5rem 1rem;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover {
    background: rgba(var(--accent-rgb), 0.2);
    transform: translateX(3px);
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Enhanced Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    position: relative;
}

.pagination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
}

.pagination-prev,
.pagination-next {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination-prev::before,
.pagination-next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.pagination-prev:hover::before,
.pagination-next:hover::before {
    width: 120%;
    height: 120%;
}

.pagination-prev:hover,
.pagination-next:hover {
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.pagination-prev:hover span,
.pagination-next:hover span {
    position: relative;
    z-index: 1;
}

.pagination-info {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(var(--text-secondary-rgb), 0.05);
    border-radius: 20px;
}

/* Individual Article Page - Enhanced */
.news-article-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
    background: linear-gradient(180deg, var(--background-primary) 0%, rgba(var(--accent-rgb), 0.01) 100%);
}

.news-article {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

.news-article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
    position: relative;
}

.news-article-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.article-title {
    color: var(--text-color);
    margin: 0 0 1.5rem 0;
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.article-meta {
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date::before {
    content: '📅';
    opacity: 0.7;
}

/* Article Content - Enhanced Typography */
.article-content {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.125rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content p:first-of-type {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
}

.article-content h2 {
    color: var(--text-color);
    margin: 3rem 0 1.5rem;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 2px;
}

.article-content h3 {
    color: var(--text-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(var(--accent-rgb), 0.05);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content a {
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-content a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.article-content a:hover {
    color: var(--accent-dark);
}

.article-content a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Enhanced Article Footer */
.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link::before {
    content: '←';
    transition: transform 0.3s ease;
}

.back-link:hover {
    background: rgba(var(--accent-rgb), 0.2);
    transform: translateX(-3px);
}

.back-link:hover::before {
    transform: translateX(-3px);
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .news-item {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .news-item:hover {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(var(--accent-rgb), 0.4);
    }
    
    .article-content blockquote {
        background: rgba(var(--accent-rgb), 0.08);
    }
    
    .pagination-prev,
    .pagination-next {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .read-more {
        background: rgba(var(--accent-rgb), 0.15);
    }
    
    .read-more:hover {
        background: rgba(var(--accent-rgb), 0.25);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation for Future Use */
.news-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.news-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility Enhancements */
.news-item:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.news-link:focus,
.read-more:focus,
.pagination-prev:focus,
.pagination-next:focus,
.back-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip Link for Screen Readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Mobile Responsive Design - Enhanced */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 2.25rem;
    }
    
    .news-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .news-item {
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .news-title {
        font-size: 1.25rem;
    }
    
    .news-excerpt {
        font-size: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .pagination-prev,
    .pagination-next {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1.05rem;
    }
    
    .article-content h2 {
        font-size: 1.75rem;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .news-page::before,
    .news-page::after {
        display: none;
    }
    
    .page-title {
        font-size: 1.875rem;
    }
    
    .news-item {
        padding: 1.25rem;
    }
    
    .news-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .read-more {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .news-page::before,
    .news-page::after,
    .pagination,
    .back-link {
        display: none;
    }
    
    .news-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .news-item {
        border-width: 2px;
    }
    
    .news-link::after,
    .article-content a::after {
        height: 2px;
    }
    
    .pagination-prev,
    .pagination-next {
        border-width: 2px;
    }
}