/* === Modern News Ticker (pengganti <marquee> yang deprecated) ===
   - Label "Information" tetap di kiri (sticky), tidak ikut scroll
   - Smooth continuous scroll via CSS @keyframes translateX
   - Pause on hover, click membuka detail
   - Dipakai di content.jsp (landing page sebelum login) */

.news-ticker {
    display: flex;
    align-items: stretch;
    background: linear-gradient(90deg, #f0f9ff 0%, #fefce8 100%);
    border-top: 1px solid #e0f2fe;
    border-bottom: 1px solid #e0f2fe;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.04);
}

.news-ticker-label {
    flex-shrink: 0;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 22px 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    z-index: 2;
    box-shadow: 0 0 6px rgba(37, 99, 235, 0.25);
}

.news-ticker-label .nt-icon {
    font-size: 14px;
    animation: ntPulse 1.6s ease-in-out infinite;
}

@keyframes ntPulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(1.18); opacity: 0.85; }
}

.news-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.news-ticker-content {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: ntScroll 90s linear infinite;
    will-change: transform;
}

.news-ticker:hover .news-ticker-content {
    animation-play-state: paused;
}

@keyframes ntScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.news-ticker-item {
    display: inline-flex;
    align-items: center;
    color: #1e3a5f;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    padding: 0 18px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.news-ticker-item:hover {
    color: #2563eb;
    text-decoration: underline;
}

.news-ticker-sep {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    margin: 0 4px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .news-ticker-label {
        font-size: 10.5px;
        padding: 7px 18px 7px 12px;
    }
    .news-ticker-label .nt-text-en { display: none; }
    .news-ticker-item { font-size: 12.5px; padding: 0 12px; }
    .news-ticker-content { animation-duration: 70s; }
}
