/* News Ticker */
.news-ticker {
  background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  border-top: 3px solid rgba(255, 255, 255, 0.1);
}

.ticker-wrapper {
  display: flex;
  animation: scroll 35s linear infinite;
}

/* Pause animation on hover */
.ticker-wrapper:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-content {
  display: flex;
  flex-shrink: 0;
  min-width: 100%;
}

.ticker-item {
  font-size: 0.95rem;
  padding: 0 3rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.ticker-item::before {
  content: '●';
  color: #00bfff;
  font-size: 0.6rem;
}

/* Styling untuk ticker yang bisa diklik */
.ticker-link {
  color: white;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.ticker-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00bfff;
  transition: width 0.3s ease;
}

.ticker-link:hover {
  color: #00bfff;
}

/* .ticker-link:hover::after {
  width: 100%;
} */

/* Icon untuk external link */
.ticker-link[target="_blank"]::before {
  content: '●';
  color: #00bfff;
  font-size: 0.6rem;
  margin-right: 0.5rem;
}

.ticker-link[target="_blank"]:hover::before {
  color: #00bfff;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Default ticker style */
.ticker-item.ticker-default {
  opacity: 0.7;
  font-style: italic;
}

.ticker-item.ticker-default::before {
  content: 'ℹ️';
  color: #60a5fa;
  font-size: 0.6rem;
  margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .ticker-item {
    font-size: 0.85rem;
    padding: 0 2rem;
  }
  
  .ticker-wrapper {
    animation: scroll 25s linear infinite;
  }
}

@media (max-width: 480px) {
  .ticker-item {
    font-size: 0.8rem;
    padding: 0 1.5rem;
  }
}