/* ====================================================
   NeuroPlanck Ticker Bar Widget — Elementor
   ==================================================== */

.np-ticker {
    background: #0a1628;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    padding: 14px 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Edge fades */
.np-ticker::before,
.np-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.np-ticker::before {
    left: 0;
    background: linear-gradient(90deg, #0a1628 0%, transparent 100%);
}
.np-ticker::after {
    right: 0;
    background: linear-gradient(270deg, #0a1628 0%, transparent 100%);
}

/* Track */
.np-ticker__track {
    display: flex;
    gap: 60px;
    align-items: center;
    animation: npTickerScroll 25s linear infinite;
    width: max-content;
}

/* Pause on hover */
.np-ticker--pause-hover:hover .np-ticker__track {
    animation-play-state: paused;
}

/* Items */
.np-ticker__item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}
.np-ticker__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
.np-ticker__icon i,
.np-ticker__item i {
    font-size: 18px;
    color: #60a5fa !important;
    flex-shrink: 0;
    line-height: 1;
}
.np-ticker__icon svg,
.np-ticker__item svg {
    width: 18px;
    height: 18px;
    color: #60a5fa !important;
    fill: #60a5fa !important;
    flex-shrink: 0;
}
.np-ticker__item span {
    font-family: 'Cabin', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.02em;
}

@keyframes npTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* ─── WordPress / Elementor Overrides ─── */
.elementor-widget-np_ticker {
    max-width: 100% !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.elementor-widget-np_ticker .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}
.elementor-section:has(.elementor-widget-np_ticker) {
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.elementor-section:has(.elementor-widget-np_ticker) > .elementor-container {
    max-width: 100% !important;
    padding: 0 !important;
}
.elementor-section:has(.elementor-widget-np_ticker) > .elementor-container > .elementor-column > .elementor-widget-wrap {
    padding: 0 !important;
}
/* Eliminate gap between hero and ticker */
.elementor-section:has(.elementor-widget-np_hero) + .elementor-section:has(.elementor-widget-np_ticker) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Woodmart overrides */
.wd-content-layout:has(.elementor-widget-np_ticker) {
    padding-top: 0 !important;
}
.content-layout-wrapper:has(.elementor-widget-np_ticker) {
    padding-top: 0 !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
    .np-ticker__track {
        gap: 40px;
    }
    .np-ticker__item span {
        font-size: 13px;
    }
    .np-ticker__item i {
        font-size: 14px;
    }
}
