/* * Version: 1.2.0 
 * Task: Seamless Loop Ticker (No Gap, Instant Start) 
 */

.ticker-container {
    background-color: #333;
    line-height: 1;
}

.breaking-news-ticker-wrap {
    max-width: 1055px;
    margin: 0 auto;
    position: relative;
}

.ticker-label {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-title {
    text-transform: uppercase;
    font-size: small;
    font-weight: bold;
    color: #fff;
    padding: 0 15px;
}

.ticker-content {
    overflow: hidden; 
    display: flex;
    align-items: center;
    height: 33px;
    position: relative;
}

.ticker-content-inner {
    display: flex; 
    width: max-content;
    white-space: nowrap;
    animation: ticker-seamless 25s linear infinite; /* Kecepatan bisa diatur */
    will-change: transform;
}

/* Memastikan blok duplikat sejajar */
.ticker-block {
    display: flex;
}

/* Pause saat hover */
.ticker-content:hover .ticker-content-inner {
    animation-play-state: paused;
}

.ticker-item-span {
    padding-right: 100px; 
    display: inline-block;
}

.ticker-item-span a {
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

/* ANIMASI SEAMLESS */
@keyframes ticker-seamless {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Geser hanya setengah karena konten diduplikasi */
    }
}