/* i News Ticker Stylesheet */

.i-ticker-wrap {
  background: var(--i-ticker-bg, #F8FAFC);
  border-bottom: 1px solid var(--i-ticker-border, #E2E8F0);
  border-top: 1px solid var(--i-ticker-border, #E2E8F0);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 42px;
  box-sizing: border-box;
  width: 100%;
  font-family: 'Hind', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.i-ticker-label {
  background: var(--i-ticker-label-bg, #FF5A3C);
  color: var(--i-ticker-label-text, #FFFFFF);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 6px 0 15px rgba(255, 90, 60, 0.15);
  z-index: 10;
}

.i-ticker-content {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.i-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  padding-left: 20px;
  animation: i-scroll-left var(--i-ticker-duration, 20s) linear infinite;
}

/* Pause scroll animation on hover */
.i-ticker-track:hover {
  animation-play-state: paused;
}

.i-ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 48px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.i-ticker-item a {
  color: var(--i-ticker-text, #475569);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.i-ticker-item a:hover {
  color: var(--i-ticker-hover, #2F5FE8);
  text-decoration: underline;
}

/* Blinking New Badge */
.i-badge-new {
  background: linear-gradient(135deg, var(--i-ticker-badge-start, #FF5A3C) 0%, var(--i-ticker-badge-end, #FF8A75) 100%);
  color: var(--i-ticker-badge-text, #FFFFFF);
  font-size: 9px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255, 90, 60, 0.15);
  animation: i-blink-pulse 1.2s infinite alternate;
}

@keyframes i-blink-pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 90, 60, 0.4);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 8px 3px rgba(255, 90, 60, 0.2);
  }
}

@keyframes i-scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
