/* =========================================
   BREAKING NEWS - TRENDING MARQUEE
========================================= */

.header-top-left-four {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

/* Breaking Label */
.header-top-left-four .trending-box {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

/* Marquee Container */
.trending-marquee {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
}

/* Scrolling Track */
.trending-track {
    display: flex;
    align-items: center;
    width: max-content;
    flex-shrink: 0;
    animation: trending-marquee-scroll 60s linear infinite;
    will-change: transform;
}

/* Each Group */
.trending-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: max-content;
    min-width: 100%;
}

/* Individual News */
.trending-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 65px;
}

.trending-item a {
    color: #c7d2e0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.trending-item a:hover {
    color: #ffffff;
}

/* Continuous Right-to-Left Animation */
@keyframes trending-marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause on Hover */
.trending-marquee:hover .trending-track {
    animation-play-state: paused;
}

/* Empty State */
.trending-empty {
    color: #c7d2e0;
    font-size: 13px;
}

/* Mobile */
@media (max-width: 767px) {
    .header-top-left-four {
        width: 100%;
    }

    .trending-marquee {
        height: 36px;
    }

    .trending-item {
        padding-right: 40px;
    }

    .trending-item a {
        font-size: 12px;
    }

    .trending-track {
        animation-duration: 28s;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .trending-track {
        animation: none;
    }
}