/* ============================================================
   News Marquee — NeUIM-2026
   Sticky scrolling ticker bar for announcements
   ============================================================ */

.neuim-marquee {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    /* background: linear-gradient(90deg, #ff5a3d, #ff9a3d); */
    color: #ffffff;
    height: 42px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    border: 1px solid #25394d;
}

.neuim-marquee-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 18px;
    background: rgba(0, 0, 0, 0.22);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.neuim-marquee-badge i,
.neuim-marquee-badge svg {
    width: 14px;
    height: 14px;
}

.neuim-marquee-track {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.neuim-marquee-content {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: neuim-marquee-scroll linear infinite;
    animation-duration: 22s;
    /* overridden inline by JS based on content width */
    will-change: transform;
}

.neuim-marquee:hover .neuim-marquee-content,
.neuim-marquee-content.paused {
    animation-play-state: paused;
}

.neuim-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    padding-right: 60px;
}

.neuim-marquee-item strong {
    font-weight: 800;
}

.neuim-marquee-item a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
}

.neuim-marquee-item a:hover {
    color: #c7d2e6;
}

.neuim-marquee-gif {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
}

@keyframes neuim-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .neuim-marquee {
        height: 38px;
    }

    .neuim-marquee-badge {
        padding: 0 12px;
        font-size: 11px;
    }

    .neuim-marquee-item {
        font-size: 12px;
        padding-right: 40px;
    }
}