/* News Ticker Styling */
.news-ticker-container {
    background: linear-gradient(45deg, var(--everfast-blue) 0%, #0066cc 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 82, 155, 0.3);
    display: flex;
    align-items: center;
    height: 60px;
    position: relative;
    border: 2px solid var(--text-gold);
}

.ticker-label {
    background: var(--text-gold);
    color: var(--everfast-blue);
    font-family: 'Roboto', 'sans-serif';
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-text {
    color: white;
    font-family: 'Roboto', 'sans-serif';
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    padding-left: 30px;
    animation: scroll-ticker 15s linear 1;
    line-height: 1.2;
}

.ticker-highlight {
    color: var(--text-gold);
    font-weight: 700;
}

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

.news-ticker-container:hover .ticker-text {
    animation-play-state: paused;
}

.news-ticker-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to left, var(--everfast-blue), transparent);
    z-index: 5;
    pointer-events: none;
}

.news-ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, var(--everfast-blue), transparent);
    z-index: 5;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-ticker-container {
        height: 50px;
    }
    
    .ticker-label {
        font-size: 0.8rem;
        padding: 0 15px;
    }
    
    .ticker-text {
        font-size: 0.9rem;
        animation-duration: 26s;
        padding-left: 15px;
    }
}

.ticker-pause-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--text-gold);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 15;
}

.ticker-pause-btn:hover {
    background: var(--text-gold);
    color: var(--everfast-blue);
    transform: translateY(-50%) scale(1.1);
}

.ticker-paused .ticker-text {
    animation-play-state: paused;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .ticker-text {
        animation: none;
        transform: translateX(0);
        text-align: center;
        padding: 0 20px;
    }
    
    .ticker-pause-btn {
        display: none;
    }
}

@media (max-width: 576px) {
    .news-ticker-container {
        height: 45px;
    }
    
    .ticker-label {
        font-size: 0.75rem;
        padding: 0 12px;
    }
    
    .ticker-text {
        font-size: 0.85rem;
        animation-duration: 24s;
        padding-left: 12px;
    }
    
    .ticker-pause-btn {
        width: 30px;
        height: 30px;
        right: 8px;
    }
}