/* News Page Styles - Dark Theme */
body.news-page-body {
    background-color: #222222 !important;
    color: #d2d2d2 !important;
}

.news-page {
    padding: 2rem 0;
    min-height: 70vh;
    background-color: #222222 !important;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: #d2d2d2 !important;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* News Filters */
.news-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #333333;
    color: #d2d2d2;
    border: 1px solid #555555;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.news-grid {
    display: grid;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.news-item {
    background: #333333 !important;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #444444;
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* News Image */
.news-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 5px;   
    margin-top: 10px;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.news-title {
    font-size: 1.4rem;
    color: #d2d2d2 !important;
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.3;
}

/* News Meta */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #555555;
}

.news-date {
    color: #b0b0b0 !important;
    font-size: 0.8rem;
    background: #2a2a2a !important;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    border: 1px solid #444444;
}

.news-author {
    color: #a0a0a0 !important;
    font-size: 0.8rem;
    font-style: italic;
}

.news-category {
    color: #667eea !important;
    font-size: 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.featured-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24) !important;
    color: white !important;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.6;
}

.news-preview {
    color: #d2d2d2 !important;
    margin-bottom: 1rem;
}

.news-full {
    color: #d2d2d2 !important;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.read-more-btn {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.read-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    background: linear-gradient(45deg, #7c8ff0, #8a5bb8) !important;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
      
    }
    
    .page-title {
    text-align: center;
    font-size: 1.5rem;
    }

    .news-filters {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .news-image {
        height: 150px;
    }
    
    .desktop-preview {
        display: none;
    }
    
    .mobile-preview {
        display: inline;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .desktop-preview {
        display: inline;
    }
    
    .mobile-preview {
        display: none;
    }
}

/* Animation for expanding content */
.news-item.expanded .news-full {
    display: block;
}

.news-item.expanded .news-preview {
    display: none;
}

/* Dark theme scrollbar */
.news-page::-webkit-scrollbar {
    width: 8px;
}

.news-page::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.news-page::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 4px;
}

.news-page::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

/* Override global styles with higher specificity */
html body.news-page-body {
    background-color: #222222 !important;
    color: #d2d2d2 !important;
}

/* Ensure container background matches */
body.news-page-body .container {
    background-color: transparent;
}

/* Override any inherited styles */
body.news-page-body * {
    color: inherit;
}

body.news-page-body .news-title,
body.news-page-body .news-preview,
body.news-page-body .news-full {
    color: #d2d2d2 !important;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin: 0 8px;
    color: #888;
}

.breadcrumb-list a {
    color: #d2d2d2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #fff;
}

.breadcrumb-list li[aria-current="page"] {
    color: #888;
}

/* Page Header Enhancement */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d2d2d2;
    margin-bottom: 10px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Enhanced News Item for SEO */
.news-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    scroll-margin-top: 100px; /* For anchor links */
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Image optimization for SEO */
.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.news-image img:hover {
    transform: scale(1.02);
}

/* Meta information styling */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.news-date {
    color: #888;
    font-weight: 500;
}

.news-author {
    color: #aaa;
}

.news-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #d2d2d2;
}

/* Featured badge enhancement */
.featured-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Read more button enhancement */
.read-more-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.read-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .breadcrumb {
        padding: 8px 0;
    }
    
    .breadcrumb-list {
        font-size: 13px;
    }
    
    .news-item {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .news-meta {
        gap: 8px;
    }
}

/* Print styles for SEO */
@media print {
    .breadcrumb,
    .read-more-btn {
        display: none;
    }
    
    .news-full {
        display: block !important;
    }
    
    .news-preview {
        display: none;
    }
}