/* ═══════════════════════════════════════════════════════════════
   News Ticker — Pale-blue info-band, Metronic v8 compatible
   RTL Arabic label on the right. Scroll driven by AcmeTicker.
═══════════════════════════════════════════════════════════════ */

/* ── Container ─────────────────────────────────────────────── */
.news-ticker {
    display: flex;
    align-items: stretch;
    height: 44px;
    overflow: hidden;
    direction: ltr;
    position: relative;
    flex-shrink: 0;
    z-index: 10;

    background: #eef6fd;
    border-top: 2px solid #009ef7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 6px rgba(10, 40, 90, 0.08);
}

/* ── Right-side badge ───────────────────────────────────────── */
.news-ticker__label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 0 20px 0 28px;
    height: 100%;
    position: relative;
    z-index: 2;
    font-family: 'Segoe UI', 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.73rem;
    letter-spacing: 1px;
    color: #fff;

    background: linear-gradient(135deg, #0078d4 0%, #009ef7 100%);
    clip-path: polygon(0% 0%, calc(100% - 14px) 0%, 100% 50%, calc(100% - 14px) 100%, 0% 100%);
}

/* ── Pulsing dot ────────────────────────────────────────────── */
.news-ticker__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    flex-shrink: 0;
    position: relative;
}

.news-ticker__dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
    0%   { transform: scale(0.8); opacity: 0.9; }
    70%  { transform: scale(2.4); opacity: 0;   }
    100% { transform: scale(0.8); opacity: 0;   }
}

/* ── Scrolling viewport ──────────────────────────────────────── */
/* AcmeTicker animates `left`/`right` via jQuery on an absolutely-positioned
   <ul>. Force viewport to LTR so the plugin's coordinate math is predictable.
   Arabic text in items still renders correctly via the Unicode BiDi algo. */
.news-ticker__viewport {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
    direction: ltr;
}

.news-ticker__viewport::before {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 50px;
    background: linear-gradient(to left, #eef6fd, transparent);
    z-index: 1;
    pointer-events: none;
}

.news-ticker__viewport::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 50px;
    background: linear-gradient(to right, #eef6fd, transparent);
    z-index: 1;
    pointer-events: none;
}

/* AcmeTicker wraps <ul> in <div class="acmeticker-wrap"> + sets <ul>
   to position:absolute. Make the wrap fill the viewport, vertically
   center the absolute <ul>. */
.news-ticker__viewport .acmeticker-wrap {
    height: 100%;
    width: 100%;
}

.news-ticker__list {
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    top: 50%;
    transform: translateY(-50%);
}

/* ── Items ──────────────────────────────────────────────────── */
.news-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    font-family: 'Segoe UI', 'Cairo', sans-serif;
    font-weight: 500;
    font-size: 0.84rem;
    color: #1e2a4a;
    letter-spacing: 0.1px;
    cursor: default;
    transition: color 0.2s ease;
}

.news-ticker__item:hover {
    color: #0078d4;
}

.news-ticker__item-icon {
    color: #009ef7;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ── Separators (as <li> between items) ─────────────────────── */
.news-ticker__separator {
    color: rgba(0, 158, 247, 0.4);
    font-size: 0.5rem;
    margin: 0 2px;
    list-style: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .news-ticker {
        height: 38px;
    }

    .news-ticker__label {
        font-size: 0.65rem;
        padding: 0 14px 0 20px;
        letter-spacing: 0.5px;
    }

    .news-ticker__item {
        font-size: 0.76rem;
        padding: 0 18px;
    }
}

@media (max-width: 480px) {
    .news-ticker__label span:not(.news-ticker__dot) {
        display: none;
    }

    .news-ticker__label {
        padding: 0 10px;
        clip-path: polygon(0% 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 0% 100%);
    }
}
