.dynamic-news-ticker {
    position: fixed;
    left: 0;
    width: 100%;
    background: var(--dticker-bg, #ff0000);
    color: var(--dticker-text, #ffffff);
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    overflow: hidden;
}

.ticker-top {
    top: 0;
}

.ticker-bottom {
    bottom: 0;
}

.dynamic-news-ticker .ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--dticker-label-bg, #cc0000);
    color: var(--dticker-label-text, #ffffff);
    padding: 0 20px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    z-index: 2;
    letter-spacing: 1px;
    white-space: nowrap;
    font-family: inherit;
}

.ticker-wrapper {
    margin-left: 140px;
    overflow: hidden;
    height: 50px;
    position: relative;
    background: inherit;
}

.ticker-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    position: absolute;
    white-space: nowrap;
    will-change: transform;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 25px;
    color: var(--dticker-text, #ffffff);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    height: 50px;
}

.ticker-item:hover {
    text-decoration: underline;
    opacity: 0.9;
    background: rgba(0,0,0,0.1);
}

.ticker-bullet {
    margin-right: 10px;
    color: #ffcc00;
    animation: pulse 1s infinite;
    display: inline-block;
    font-size: 12px;
    flex-shrink: 0;
}

.ticker-date {
    margin-left: 12px;
    font-size: 11px;
    background: rgba(0,0,0,0.25);
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: normal;
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.dynamic-news-ticker.paused .ticker-content {
    animation-play-state: paused !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .ticker-wrapper {
        margin-left: 95px;
        height: 42px;
    }
    .dynamic-news-ticker .ticker-label {
        padding: 0 12px;
        font-size: 11px;
    }
    .ticker-item {
        font-size: 12px;
        padding: 0 15px;
        height: 42px;
    }
    .ticker-date {
        font-size: 9px;
        margin-left: 8px;
        padding: 2px 6px;
    }
    .ticker-bullet {
        margin-right: 6px;
        font-size: 10px;
    }
}

/* Desktop large screens */
@media (min-width: 1200px) {
    .ticker-item {
        font-size: 16px;
        padding: 0 35px;
    }
    .ticker-wrapper {
        height: 55px;
    }
    .ticker-item {
        height: 55px;
    }
}

body {
    transition: padding-top 0.3s ease, padding-bottom 0.3s ease;
}



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