/* Modern News Reel Styles - Matching Website Aesthetic */
.news-reel-container {
    height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background: transparent;
    margin-top: 20px;
    scroll-behavior: smooth;
}

/* Modern Custom Scrollbar */
.news-reel-container::-webkit-scrollbar {
    width: 6px;
}

.news-reel-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.news-reel-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #03cc85, #03bb7a);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.news-reel-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #04d894, #04c885);
}

/* Firefox scrollbar */
.news-reel-container {
    scrollbar-width: thin;
    scrollbar-color: #03cc85 rgba(255, 255, 255, 0.1);
}

.news-reel {
    position: relative;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.3s ease;
}

/* Auto-scrolling animation - very fast and smooth */
.news-reel.scrolling {
    animation: scroll-news-smooth 4s linear infinite;
}

@keyframes scroll-news-smooth {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.news-reel:hover {
    animation-play-state: paused;
}

/* Match original ul-dates styling but enhanced */
.news-reel > li {
    list-style: none;
    margin-bottom: 15px;
    position: relative;
    min-height: 70px;
    padding: 0;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.news-reel > li:hover {
    opacity: 1;
    transform: translateX(3px);
}

.news-reel > li:last-child {
    margin-bottom: 15px;
}

/* Dates styling to match original design */
.news-reel .dates {
    float: left;
    width: 75px;
    position: relative;
}

.news-reel .dates span {
    background-color: #03cc85;
    padding: 6px;
    display: block;
    text-align: center;
    color: #fff;
    position: relative;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-reel .dates span:first-child {
    -webkit-box-shadow: 0px 2px 6px -3px rgba(68, 68, 68, 0.5);
    box-shadow: 0px 2px 6px -3px rgba(68, 68, 68, 0.5);
    z-index: 3;
    position: relative;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.news-reel .dates span:last-child {
    background-color: #03bb7a;
    font-weight: bold;
    font-size: 16px;
}

.news-reel li:hover .dates span {
    background-color: #04d894;
}

.news-reel li:hover .dates span:last-child {
    background-color: #04c885;
}

/* Content styling to match original */
.news-reel .content {
    margin-left: 90px;
    min-height: 70px;
    padding-top: 10px;
    padding-right: 10px;
}

.news-reel .content h4 {
    font-weight: 400;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.news-reel .content p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Subtle hover effects */
.news-reel .content h4:hover {
    color: #03cc85;
    transition: color 0.3s ease;
}

/* Progress indicator */
.scroll-progress {
    position: absolute;
    right: 2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(3, 204, 133, 0.2);
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #03cc85, #03bb7a);
    border-radius: 1px;
    animation: progress-indicator 4s linear infinite;
}

@keyframes progress-indicator {
    0% { height: 0%; }
    100% { height: 100%; }
}

.news-reel-container:hover .scroll-progress {
    opacity: 1;
}

/* Smooth fade effects at edges */
.news-reel-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 6px;
    height: 20px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%);
    z-index: 10;
    pointer-events: none;
}

.news-reel-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 6px;
    height: 20px;
    background: linear-gradient(to top,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%);
    z-index: 10;
    pointer-events: none;
}

/* End marker styling */
.news-reel > li.updates-end-marker {
    text-align: center;
    min-height: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.news-reel > li.updates-end-marker:hover {
    transform: none;
    opacity: 0.7;
}

.end-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
}

.end-indicator i {
    color: #03cc85;
    font-size: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-reel-container {
        height: 300px;
    }

    .news-reel .dates {
        width: 60px;
    }

    .news-reel .content {
        margin-left: 75px;
    }

    .news-reel .content h4 {
        font-size: 14px;
    }

    .news-reel .content p {
        font-size: 12px;
    }
}