/* ==========================================================================
   NEWS TICKER - Continuous Scrolling Banner (Above Hero)
   ========================================================================== */

.news-ticker {
    position: relative;
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-ticker-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}


.news-ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 100s linear infinite !important;
    position: relative;
    z-index: 1;
}

/* Pause on hover */
.news-ticker:hover .news-ticker-content {
    animation-play-state: paused;
}

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

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    color: rgb(8, 8, 8);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ticker-item:hover {
    color: #667eea;
    transform: scale(1.05);
}

/* Priority badges */
.ticker-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.ticker-badge.urgent {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
    animation: pulse-urgent 2s infinite;
}

.ticker-badge.high {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.ticker-badge.normal {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.ticker-badge.low {
    background: #6b7280;
}

@keyframes pulse-urgent {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.1);
    }
}

.ticker-text {
    display: inline-block;
}

/* Separator between items */
.ticker-separator {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin: 0 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-ticker {
        height: 50px;
    }
    
    .ticker-item {
        font-size: 13px;
        padding: 0 15px;
    }
    
    .ticker-separator {
        margin: 0 15px;
    }
    
    .news-ticker-content {
        animation-duration: 60s; /* Faster on mobile */
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 45px;
    }
    
    .news-ticker-label {
        padding: 5px 12px;
        font-size: 10px;
        margin-right: 10px;
    }
    
    .ticker-item {
        font-size: 12px;
        padding: 0 12px;
    }
    
    .ticker-badge {
        width: 6px;
        height: 6px;
        margin-right: 8px;
    }
    
    .ticker-separator {
        width: 4px;
        height: 4px;
        margin: 0 12px;
    }
    
    .news-ticker-content {
        animation-duration: 45s; /* Even faster on small mobile */
    }
}

/* Accessibility - Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .news-ticker-content {
        animation: none;
    }
    
    .ticker-badge.urgent {
        animation: none;
    }
}

/* Print - Hide news ticker */
@media print {
    .news-ticker {
        display: none;
    }
}