/* Scrolling News and Answer Keys Styles */
.news-items-scroll,
.answer-items-scroll {
    overflow: hidden;
    position: relative;
    height: 330px; /* Adjusted to avoid half-cut last item */
}

.news-items-scroll .news-item,
.answer-items-scroll .answer-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-items-scroll .news-item:hover,
.answer-items-scroll .answer-item:hover {
    background-color: rgba(0, 122, 194, 0.05);
    transform: translateX(5px);
    border-left: 3px solid #007ac2;
    padding-left: 15px;
}

/* Enhanced Answer Sheet Design */
.answer-items-scroll .answer-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.answer-items-scroll .answer-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Enhanced News Design */
.news-items-scroll .news-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-items-scroll .news-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* News Date Styling */
.news-date {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* News Content Styling */
.news-content {
    margin-top: 8px;
}

.news-title {
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-details {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
}

/* Download Button Styling */
.download-btn {
    background: linear-gradient(135deg, #007ac2, #005a8b);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,122,194,0.3);
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #005a8b, #004a7a);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,122,194,0.4);
}

.download-btn i {
    margin-right: 5px;
    font-size: 14px;
}

/* Answer Date Styling */
.answer-date {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* Answer Title Styling */
.answer-title {
    margin-top: 8px;
}

.answer-title span {
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
}

/* Animation for scrolling */
@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.news-items-scroll.scrolling,
.answer-items-scroll.scrolling {
    animation: scrollUp 20s linear infinite;
}

/* Pause animation on hover */
.news-items-scroll:hover.scrolling,
.answer-items-scroll:hover.scrolling {
    animation-play-state: paused;
}

/* Ensure smooth scrolling */
.news-items-scroll,
.answer-items-scroll {
    will-change: transform;
}

/* Smooth transitions for all elements */
.news-items-scroll *,
.answer-items-scroll * {
    transition: all 0.3s ease;
}

/* Enhanced button styles */
.readmore-btn {
    transition: all 0.3s ease;
}

.readmore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-items-scroll,
    .answer-items-scroll {
        height: 270px; /* keep full items visible on small screens */
    }
    
    .news-items-scroll .news-item:hover,
    .answer-items-scroll .answer-item:hover {
        transform: translateX(3px);
        padding-left: 10px;
    }
    
    .download-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .answer-date,
    .news-date {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Loading state */
.news-items-scroll.loading,
.answer-items-scroll.loading {
    opacity: 0.7;
}

/* Smooth entrance animation */
.news-items-scroll,
.answer-items-scroll {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional scrolling optimizations */
.news-items-scroll .news-item:last-child,
.answer-items-scroll .answer-item:last-child {
    border-bottom: none !important;
}

/* Ensure proper spacing for duplicated items */
.news-items-scroll .news-item:nth-child(n+4),
.answer-items-scroll .answer-item:nth-child(n+4) {
    margin-top: 5px;
}

/* Smooth scrolling for webkit browsers */
.news-items-scroll,
.answer-items-scroll {
    -webkit-overflow-scrolling: touch;
}

/* Prevent text selection during scrolling */
.news-items-scroll.scrolling,
.answer-items-scroll.scrolling {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


.staticRight {
    display:none;

}

    @media screen and (max-width:720px) {

        .super30 {
            position: fixed;
            bottom: 0px;
            left: 0px;
            width: 70px;
            height: 70px;
            z-index: 999;
            display: block !important;
        }

        .staticRight {
            position: fixed;
            bottom: 0px;
            right: 0px;
            width: 80px;
            height: 80px;
            z-index: 999;
            display: block !important;
        }
    }