/* RSS Feed Rotator Styles */
#rssGrid {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.rss-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    margin-bottom: 20px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    flex-wrap: nowrap;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.rss-grid::-webkit-scrollbar {
    display: none;
}

/* Navigation arrows */
.rss-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease;
    font-size: 20px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#rssGrid:hover .rss-nav-arrow {
    opacity: 1;
}

.rss-nav-arrow:hover {
    background: #c8102e;
    border-color: #c8102e;
    color: white;
}

.rss-nav-arrow.left {
    left: 10px;
}

.rss-nav-arrow.right {
    right: 10px;
}

.rss-article {
    background: #ffffff;
    border-radius: 6px;
    padding: 15px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

.rss-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.article-source {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.article-title {
    font-size: 14px;
    line-height: 1.3;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.article-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #c8102e;
}

.article-meta {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.article-excerpt {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RSS Controls */
.rss-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.rss-nav-btn {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rss-nav-btn:hover {
    background: #c8102e;
    border-color: #c8102e;
    color: #ffffff;
}

.rss-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rss-dots {
    display: flex;
    gap: 8px;
}

.rss-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.rss-dot:hover {
    background: #999;
}

.rss-dot.active {
    background: #c8102e;
    width: 24px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .rss-grid {
        grid-template-columns: 1fr;
    }

    .rss-controls {
        flex-direction: column;
        gap: 15px;
    }

    .rss-nav-btn {
        width: 100%;
    }
}
