﻿ 
:root {
    --ticker-bg: #f8f9fa;
    --label-bg: #d9534f;
    --text-color: #333;
    --link-color: #0056b3;
    --new-color: #ffc107;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    background: var(--ticker-bg);
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 10px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ticker-label {
    background: var(--label-bg);
    color: white;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    z-index: 2;
    position: relative;
    text-transform: uppercase;
}

    /* त्रिकोण वाला हिस्सा (Design arrow) */
    .ticker-label::after {
        content: '';
        position: absolute;
        right: -15px;
        top: 0;
        border-width: 20px 0 20px 15px;
        border-style: solid;
        border-color: transparent transparent transparent var(--label-bg);
    }

.ticker-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: inline-block;
    white-space: nowrap;
    padding-left:  0%; /* शुरुआत बाहर से होगी */
    animation: tickerMove 30s linear infinite;
}

.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 50px;
    color: var(--text-color);
    font-size: 14px;
}

    .ticker-item a {
        color: var(--link-color);
        text-decoration: none;
        font-weight: 500;
        margin: 0 8px;
    }

        .ticker-item a:hover {
            text-decoration: underline;
            color: #003d80;
        }

.new-tag {
    background: #ffc107;
    color: #000;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 5px;
    animation: pulse 1.5s infinite;
}

.date-span {
    color: #666;
    font-weight: bold;
    font-size: 13px;
}

@keyframes tickerMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}
 
