/* News Ticker Styles */
:root {
    --ticker-bg: #e50914; /* Brand Red */
    --ticker-text: #ffffff;
    --ticker-height: 90px;
    --ticker-speed: 30s;
}

.ticker-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--ticker-height);
    background: var(--ticker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--ticker-text);
    z-index: 2000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    pointer-events: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}



.ticker-wrapper {
    width: 100%;
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--ticker-border, rgba(255,255,255,0.1));
}

.ticker-wrapper:last-child {
    border-bottom: none;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll linear infinite;
    width: fit-content;
}

.ticker-track:hover {
    animation-play-state: var(--ticker-hover-animation, paused);
}

.ticker-content {
    display: flex;
    flex-shrink: 0;
    min-width: 100%;
    align-items: center;
    justify-content: flex-start;
}

/* Differentiate the 3 lines */
#ticker-wrapper-1 {
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

#ticker-wrapper-2 {
    background-color: transparent;
    color: #f1f1f1;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#ticker-wrapper-3 {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffdddd;
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
}

.ticker-item {
    display: inline-block;
    padding: 0 var(--ticker-gap, 20px);
}

.ticker-item a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ticker-item a:hover {
    opacity: 0.8;
}

.ticker-item::after {
    content: '•';
    margin-left: calc(var(--ticker-gap, 20px) * 1.5);
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Adjustments for the swiper container so it doesn't overlap the ticker */
body {
    margin-bottom: var(--ticker-height);
}
