/* ============================================================
   TOP NEWS / BREAKING NEWS TICKER BAR
   Clean, responsive, no layout interference
   ============================================================ */

/* ---- Reset & box-sizing safety ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ---- Ticker wrapper ---- */
.news-ticker-bar {
    width: 100%;
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    height: 34px;
    overflow: hidden;
    position: relative;
    z-index: 10000;
    flex-shrink: 0;
}

/* ---- "BREAKING NEWS" label ---- */
.news-ticker-label {
    flex: 0 0 auto;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

/* Arrow after label */
.news-ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 10px solid #e63946;
    z-index: 2;
}

/* ---- Scrolling track ---- */
.news-ticker-track {
    flex: 1 1 auto;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 20px;
    position: relative;
}

/* ---- Marquee inner ---- */
.news-ticker-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    will-change: transform;
}

.news-ticker-inner:hover {
    animation-play-state: paused;
}

/* ---- Individual news items ---- */
.news-ticker-item {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 400;
    color: #f0f0f0;
    padding-right: 60px;
}

.news-ticker-item a {
    color: #f0f0f0 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.news-ticker-item a:hover {
    color: #ffd166 !important;
    text-decoration: underline;
}

/* Separator dot */
.news-ticker-item::after {
    content: '●';
    color: #e63946;
    font-size: 8px;
    margin-left: 60px;
    margin-right: 0;
}

.news-ticker-item:last-child::after {
    display: none;
}

/* ---- Scroll animation ---- */
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Close button ---- */
.news-ticker-close {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    padding: 0 12px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.news-ticker-close:hover {
    color: #fff;
}

/* ---- Mobile: slightly smaller ---- */
@media (max-width: 767px) {
    .news-ticker-bar {
        height: 30px;
    }
    .news-ticker-label {
        font-size: 10px;
        padding: 0 10px;
    }
    .news-ticker-label::after {
        border-top-width: 15px;
        border-bottom-width: 15px;
    }
    .news-ticker-item {
        font-size: 12px;
    }
}
