/* news banner design */

/* News Ticker Container */
.news-ticker-container {
    width: 100%;
    background: #088dcf;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Scrolling Effect */
.news-ticker {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.news-ticker-scroll {
    display: inline-flex;
    gap: 100px; /* Adjusted gap between news items */
    white-space: nowrap;
    will-change: transform;
    width: 90%;
}

.news-close-btn {
    background-color: #088dcf;
    z-index: 1;
    cursor: pointer;
}

.news-item {
    display: inline-block;
    font-size: 18px;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    white-space: nowrap;
}

/* Animation class added dynamically */
.scroll-animate {
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-name: tickerScroll;
}

/* this wil fetch the start and end position 
of the news feed to make smooth animation  */
@keyframes tickerScroll {
    0% {
        transform: translateX(var(--start-pos));
    }
    100% {
        transform: translateX(var(--end-pos));
    }
}

/* Optional: pause on hover */
.news-ticker:hover .news-ticker-scroll {
    animation-play-state: paused;
}

