/* ── THE CRITICAL CHANGE:
     overflow-x:hidden goes on the body/page wrapper, NOT on .ticker-section.
     This stops horizontal scroll site-wide but lets the ribbon
     visually escape the dark bg rectangle on both ends.
  ── */
body {
    overflow-x: hidden;
}

.ticker-section {
    position: relative;
    width: 100%;
    /* NO overflow:hidden — ribbon must escape freely */
}

/* ── Dark BG rectangle — flat, contained, no rotation ── */
.ticker-bg {
    width: 100%;
    background: #FFFFFF;
    height: 72px;
    position: relative;
    z-index: 0;
}

/* ── Red ribbon — escapes the bg rect on both sides ── */
.ribbon-band {
    position: absolute;
    top: 50%;
    left: -120px;
    /* bleeds beyond left edge */
    width: calc(100% + 240px);
    /* bleeds beyond right edge */
    transform: translateY(-50%) rotate(-3deg);
    background: #FF0000;
    padding: 23px 0;
    z-index: 2;
    box-shadow: 0 4px 28px rgba(200, 0, 0, 0.45);
}

/* ── Marquee clips only the scrolling text, not the ribbon shape ── */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    flex-shrink: 0;
    color: #0a0a0a;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sep {
    opacity: 0.65;
    font-size: 11px;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .ticker-bg {
        height: 56px;
    }

    .ribbon-band {
        left: -100px;
        width: calc(100% + 200px);
        transform: translateY(-50%) rotate(-2deg);
        padding: 9px 0;
    }

    .marquee-group {
        font-size: 10px;
        gap: 16px;
        padding-right: 16px;
        letter-spacing: 0.12em;
    }
}