/* Breaking News Ticker - Simple Design with Animation */
.breaking-news-ticker {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    margin: 15px auto;
    max-width: 1200px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breaking-news-ticker .urgent-btn {
    background: #ff661f;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    margin-right: 12px;
    flex-shrink: 0;
    order: 1;
}

.breaking-news-ticker .news-content {
    flex: 1;
    overflow: hidden;
    margin: 0 12px;
    order: 2;
}

.breaking-news-ticker .news-scroll {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: scrollNews 30s linear infinite;
    transform: translateX(-100%);
    white-space: nowrap;
}

.breaking-news-ticker .news-scroll:hover {
    animation-play-state: paused;
}

.breaking-news-ticker .news-item {
    color: #495057;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.breaking-news-ticker .news-item:hover {
    color: #007bff;
}

.breaking-news-ticker .news-separator {
    background: #6c757d;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 10px;
    flex-shrink: 0;
}

.breaking-news-ticker .close-btn {
    background: transparent;
    color: #6c757d;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
    margin-left: 12px;
    order: 3;
}

.breaking-news-ticker .close-btn:hover {
    color: #ff661f;
}

/* Animation for News Scrolling */
@keyframes scrollNews {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .breaking-news-ticker {
        margin: 10px;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .breaking-news-ticker .news-scroll {
        animation-duration: 25s;
        gap: 20px;
    }
    
    .breaking-news-ticker .news-item {
        font-size: 13px;
    }
    
    .breaking-news-ticker .urgent-btn {
        padding: 4px 8px;
        font-size: 11px;
        margin-right: 10px;
    }
    
    .breaking-news-ticker .close-btn {
        width: 20px;
        height: 20px;
        font-size: 16px;
        margin-left: 10px;
    }
}

@media (max-width: 576px) {
    .breaking-news-ticker {
        padding: 6px 10px;
        font-size: 12px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .breaking-news-ticker .urgent-btn {
        order: 1;
        margin-right: 0;
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .breaking-news-ticker .news-content {
        order: 2;
        flex: 1;
        margin: 0;
        min-width: 0;
    }
    
    .breaking-news-ticker .close-btn {
        order: 1;
        margin-left: 8px;
        margin-right: 0;
        width: 18px;
        height: 18px;
        font-size: 14px;
    }
    
    .breaking-news-ticker .news-scroll {
        animation-duration: 20s;
        gap: 15px;
    }
    
    .breaking-news-ticker .news-item {
        font-size: 12px;
    }
    
    .breaking-news-ticker .news-separator {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
}

/* Show Ticker Button */
.show-ticker-btn {
    background: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.show-ticker-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.show-ticker-btn:hover {
    background: #5a6268;
    border-color: #5a6268;
} 

