// new running
/* =========================================================
   RUNNING TEXT / KILAS BERITA
========================================================= */

.news-ticker {
    position: relative;

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e5eaf0;

    box-shadow: 0 3px 12px rgba(15, 61, 94, 0.08);

    overflow: hidden;

    z-index: 10;
}

/* =========================================================
   WRAPPER
========================================================= */

.news-ticker-wrapper {
    display: flex;

    align-items: center;

    width: 100%;

    min-height: 52px;
}

/* =========================================================
   LABEL KILAS BERITA
========================================================= */

.news-ticker-label {
    position: relative;

    z-index: 5;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    gap: 8px;

    height: 52px;

    padding: 0 22px;

    background: linear-gradient(135deg, #0f3d5e, #075985);

    color: #ffffff;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    white-space: nowrap;

    box-shadow: 8px 0 20px rgba(15, 61, 94, 0.1);
}

/* Bentuk ujung kanan */

.news-ticker-label::after {
    content: "";

    position: absolute;

    top: 0;
    right: -18px;

    width: 25px;
    height: 100%;

    background: #075985;

    clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%, 35% 50%);
}

/* Icon */

.news-ticker-label i {
    color: #ffc107;

    font-size: 13px;
}

/* Dot */

.ticker-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #20b8e6;

    box-shadow: 0 0 0 4px rgba(32, 184, 230, 0.15);

    animation: tickerPulse 1.8s infinite;
}

/* =========================================================
   AREA CONTENT
========================================================= */

.news-ticker-content {
    position: relative;

    flex: 1;

    overflow: hidden;

    height: 52px;

    display: flex;

    align-items: center;
}

/* =========================================================
   TRACK
========================================================= */

.news-ticker-track {
    display: flex;

    align-items: center;

    width: max-content;

    white-space: nowrap;

    animation: newsTickerMove 45s linear infinite;
}

/* Pause ketika mouse diarahkan */

.news-ticker:hover .news-ticker-track {
    animation-play-state: paused;
}

/* =========================================================
   ITEM
========================================================= */

.ticker-item {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #34495e;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    transition: color 0.25s ease;
}

.ticker-item:hover {
    color: #075985;
}

/* =========================================================
   CATEGORY
========================================================= */

.ticker-category {
    display: inline-flex;

    align-items: center;

    padding: 4px 9px;

    border-radius: 20px;

    background: rgba(32, 184, 230, 0.1);

    color: #075985;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.7px;
}

/* =========================================================
   SEPARATOR
========================================================= */

.ticker-separator {
    display: inline-block;

    margin: 0 28px;

    color: #20b8e6;

    font-size: 15px;
}

/* =========================================================
   ANIMASI
========================================================= */

@keyframes newsTickerMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes tickerPulse {
    0% {
        transform: scale(1);

        opacity: 1;
    }

    50% {
        transform: scale(1.3);

        opacity: 0.65;
    }

    100% {
        transform: scale(1);

        opacity: 1;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991.98px) {
    .news-ticker-wrapper {
        min-height: 46px;
    }

    .news-ticker-label {
        height: 46px;

        padding: 0 14px;

        font-size: 9px;
    }

    .news-ticker-content {
        height: 46px;
    }

    .ticker-item {
        font-size: 11px;
    }

    .ticker-category {
        font-size: 8px;

        padding: 3px 7px;
    }

    .ticker-separator {
        margin: 0 18px;
    }
}

@media (max-width: 575.98px) {
    .news-ticker-label {
        padding: 0 12px;

        gap: 6px;
    }

    .news-ticker-label i {
        font-size: 11px;
    }

    .ticker-dot {
        width: 5px;
        height: 5px;
    }

    .ticker-item {
        font-size: 10px;
    }

    .ticker-separator {
        margin: 0 14px;
    }
}
