/* ==============================
   FLASH NEWS SECTION ONLY
================================ */
.jpm-flash-news-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 50%, rgba(255, 77, 0, 0.14), transparent 28%),
        radial-gradient(circle at 85% 40%, rgba(0, 153, 255, 0.12), transparent 30%),
        linear-gradient(120deg, #010712 0%, #051426 48%, #010712 100%);
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

/* subtle moving glow */
.jpm-flash-news-section::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    top: -170px;
    left: 25%;
    border-radius: 50%;
    background: rgba(0, 174, 255, .13);
    filter: blur(50px);
    animation: jpmFlashGlow 7s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes jpmFlashGlow {
    from {
        transform: translateX(-80px);
    }
    to {
        transform: translateX(350px);
    }
}

.jpm-flash-wrapper {
    position: relative;
    z-index: 2;
    min-height: 58px;
    display: flex;
    align-items: stretch;
}

/* LEFT BADGE */
.jpm-flash-label {
    flex: 0 0 auto;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 22px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    white-space: nowrap;
    background:
        linear-gradient(135deg, #ff3515 0%, #ff6500 100%);
    box-shadow:
        8px 0 25px rgba(255, 72, 0, .18);
}

.jpm-flash-label::after {
    content: "";
    position: absolute;
    right: -18px;
    top: 0;
    width: 20px;
    height: 100%;
    background: #ff6500;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.jpm-flash-icon-box {
    width: 31px;
    height: 31px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 0 13px rgba(255,255,255,.14);
}

.jpm-flash-icon-box i {
    font-size: 15px;
    animation: jpmBellShake 1.8s ease-in-out infinite;
}

@keyframes jpmBellShake {
    0%, 70%, 100% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(15deg);
    }
    80% {
        transform: rotate(-14deg);
    }
    85% {
        transform: rotate(9deg);
    }
    90% {
        transform: rotate(-6deg);
    }
}

/* LIVE DOT */
.jpm-flash-live {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(255,255,255,.7);
    animation: jpmFlashPulse 1.4s infinite;
}

@keyframes jpmFlashPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,255,255,.65);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255,255,255,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0);
    }
}

/* NEWS AREA */
.jpm-flash-content {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-left: 32px;
}

/* fades at edges */
.jpm-flash-content::before,
.jpm-flash-content::after {
    content: "";
    position: absolute;
    top: 0;
    width: 45px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.jpm-flash-content::before {
    left: 0;
    background: linear-gradient(to right, #071323, transparent);
}

.jpm-flash-content::after {
    right: 0;
    background: linear-gradient(to left, #010712, transparent);
}

/* ticker */
.jpm-flash-track {
    display: flex;
    align-items: center;
    width: 100%;
    white-space: nowrap;
}

.jpm-flash-content:hover .jpm-flash-track {
    animation-play-state: paused;
}

@keyframes jpmFlashTicker {
    from {
        transform: translateX(100vw);
    }
    to {
        transform: translateX(-100%);
    }
}

.jpm-flash-news-item {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-right: 45px;
    color: #f5f8ff;
    font-size: 15px;
    font-weight: 500;
}

.jpm-flash-news-item i {
    color: #ffb800;
    font-size: 13px;
}

.jpm-flash-separator {
    width: 5px;
    height: 5px;
    margin-right: 45px;
    border-radius: 50%;
    background: #ff5a19;
    box-shadow: 0 0 9px #ff5a19;
}

/* RIGHT ICON */
.jpm-flash-right {
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb800;
    border-left: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.025);
}

.jpm-flash-right i {
    font-size: 18px;
}

/* TABLET */
@media (max-width: 991.98px) {
    .jpm-flash-wrapper {
        min-height: 54px;
    }

    .jpm-flash-label {
        padding: 0 18px;
        font-size: 13px;
    }

    .jpm-flash-content {
        padding-left: 27px;
    }

    .jpm-flash-news-item {
        font-size: 14px;
    }
}

/* MOBILE */
@media (max-width: 575.98px) {
    .jpm-flash-wrapper {
        min-height: 50px;
    }

    .jpm-flash-label {
        padding: 0 12px;
        gap: 6px;
        font-size: 11px;
        letter-spacing: .3px;
    }

    .jpm-flash-icon-box {
        width: 26px;
        height: 26px;
    }

    .jpm-flash-icon-box i {
        font-size: 12px;
    }

    .jpm-flash-live {
        display: none;
    }

    .jpm-flash-label::after {
        right: -13px;
        width: 15px;
    }

    .jpm-flash-content {
        padding-left: 20px;
    }

    .jpm-flash-news-item {
        font-size: 13px;
        margin-right: 30px;
    }

    .jpm-flash-separator {
        margin-right: 30px;
    }

    .jpm-flash-right {
        display: none;
    }

    .jpm-flash-track {
        animation-duration: 22s;
    }
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
    .jpm-flash-track,
    .jpm-flash-icon-box i,
    .jpm-flash-live,
    .jpm-flash-news-section::before {
        animation: none;
    }
}