/* News Sidebar Styles */

.content-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
}

.news-sidebar {
    width: 380px !important;
    flex-shrink: 0;
    margin-top: 0;
    padding-top: 20px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.news-sidebar-inner {
    position: sticky;
    top: 90px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-height: calc(100vh - 110px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-sidebar h3 {
    color: #1a1f71;
    font-size: 1.5rem;
    margin: 0;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.news-feed {
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 20px 25px;
    flex: 1;
}

.news-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.news-item h4 {
    color: #1a1f71;
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-item h4 a {
    color: inherit;
    text-decoration: none;
}

.news-item h4 a:hover {
    color: #4c5fd5;
}

.news-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
}

.news-source {
    font-style: italic;
}

.news-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.news-error {
    background: #fee;
    color: #c00;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* Custom scrollbar for news feed */
.news-feed::-webkit-scrollbar {
    width: 6px;
}

.news-feed::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.news-feed::-webkit-scrollbar-thumb {
    background: #4c5fd5;
    border-radius: 3px;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .news-sidebar {
        width: 100% !important;
        margin-top: 40px;
    }
    
    .news-sidebar-inner {
        position: static;
        max-height: none;
    }
}