:root {
  --ticker-speed: 80; /* px per second — change this to control speed */
}

/* Ticker Strip Styles */
.ticker-strip {
  width: 100%;
  max-width: 1200px; /* Match banner width */
  margin: 0 auto;
  background-color: var(--color-primary);
  color: white;
  padding: 5px 0;
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid #8b0000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

  /* Animation duration controlled by JS */
  --ticker-duration: 20s;
}

/* Animation wrapper */
.ticker-content {
  display: inline-flex; /* Important for seamless infinite scroll */
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll var(--ticker-duration) linear infinite;
}

/* Desktop hover pause */
.ticker-strip:hover .ticker-content {
  animation-play-state: paused;
}

/* Content styling */
.ticker-content span {
  padding: 0 20px;
  margin-right: 40px;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
  display: inline-block;
}

/* Highlight styles */
.ticker-highlight {
  color: #ffd700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  font-weight: bold;
}

/* Smooth infinite scroll keyframes */
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* Move exactly half of duplicated content */
  }
}

/* Responsive design */
@media (max-width: 480px) {
  .ticker-content span {
    font-size: 0.95rem;
    margin-right: 15px;
  }
}
