/* =========================================================
   TechESteel Header Ticker / Marquee
   Shortcode: [techesteel_ticker]
   ========================================================= */

.techesteel-ticker-bar {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--techesteel-ticker-bg, #0b2540);
    color: var(--techesteel-ticker-color, #ffffff);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    white-space: nowrap;
}

.techesteel-ticker-bar .techesteel-ticker-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: rgba(0, 0, 0, 0.12);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.techesteel-ticker-viewport {
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
    padding: 9px 0;
}

.techesteel-ticker-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    animation: techesteel-ticker-scroll var(--techesteel-ticker-speed, 25s) linear infinite;
    will-change: transform;
}

.techesteel-ticker-bar:hover .techesteel-ticker-track {
    animation-play-state: paused;
}

.techesteel-ticker-track .techesteel-ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 28px;
    white-space: nowrap;
}

.techesteel-ticker-track .techesteel-ticker-item::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 28px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.techesteel-ticker-track a.techesteel-ticker-item {
    color: inherit;
    text-decoration: none;
}

.techesteel-ticker-track a.techesteel-ticker-item:hover {
    text-decoration: underline;
}

.techesteel-ticker-close {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    color: inherit;
    opacity: 0.75;
    cursor: pointer;
    padding: 8px 16px;
    font-size: 16px;
    line-height: 1;
}

.techesteel-ticker-close:hover {
    opacity: 1;
}

@keyframes techesteel-ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .techesteel-ticker-track {
        animation: none;
        overflow-x: auto;
    }
}

@media (max-width: 767px) {
    .techesteel-ticker-bar .techesteel-ticker-label {
        display: none;
    }

    .techesteel-ticker-bar {
        font-size: 13px;
    }
}