/* ==========================================================================
   NaKarnataka Theme — Latest News Scrolling Ticker CSS
   ========================================================================== */
.news-ticker-bar {
  display: block !important;
  width: 100% !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: 1px solid #f1f5f9 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 40;
  overflow: hidden;
  box-sizing: border-box;
}

.news-ticker-bar *,
.news-ticker-bar *::before,
.news-ticker-bar *::after {
  box-sizing: border-box;
}

.ticker-inner-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  height: 46px;
  max-width: var(--max-width, 1240px);
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  width: 100%;
}

.ticker-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem;
  background: var(--color-darkgreen, #06632f) !important;
  color: #ffffff !important;
  padding: 0 0.85rem;
  height: 30px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 1px 2px rgba(6, 99, 47, 0.25);
  line-height: 1;
}

.ticker-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #facc15;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
  animation: nk-ticker-pulse 2s infinite;
}

@keyframes nk-ticker-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(250, 204, 21, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

.ticker-badge-text {
  font-weight: 800;
  color: #ffffff;
}

.ticker-badge-kn {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  padding-left: 0.45rem;
  margin-left: 0.2rem;
}

.ticker-track-container {
  flex: 1 1 auto;
  overflow: hidden !important;
  position: relative;
  height: 100%;
  display: flex !important;
  align-items: center !important;
  margin: 0 0.75rem;
  mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
}

.ticker-track {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  white-space: nowrap !important;
  width: max-content !important;
  will-change: transform;
  animation: nk-ticker-scroll 32s linear infinite;
}

.ticker-track:hover,
.ticker-track-container:focus-within .ticker-track {
  animation-play-state: paused;
}

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

.ticker-item {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 0.85rem;
  flex-shrink: 0;
  white-space: nowrap !important;
}

.ticker-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem;
  text-decoration: none;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.ticker-link:hover,
.ticker-link:focus-visible {
  color: var(--color-darkgreen, #06632f);
  text-decoration: underline;
  outline: none;
}

.ticker-dot {
  color: var(--color-darkgreen, #06632f);
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 800;
  margin-right: 0.2rem;
}

.ticker-headline {
  max-width: 580px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-date {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  margin-left: 0.25rem;
}

.ticker-control {
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
}

.ticker-toggle-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  transition: all 0.15s ease;
}

.ticker-toggle-btn:hover,
.ticker-toggle-btn:focus-visible {
  background: var(--color-darkgreen, #06632f);
  color: #ffffff;
  border-color: var(--color-darkgreen, #06632f);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none !important;
    overflow-x: auto;
  }
}

@media (max-width: 767px) {
  .ticker-inner-wrap {
    height: 40px;
    padding: 0 0.5rem;
  }
  .ticker-badge {
    padding: 0 0.55rem;
    height: 26px;
    font-size: 0.68rem;
  }
  .ticker-badge-kn {
    display: none;
  }
  .ticker-link {
    font-size: 0.78rem;
  }
  .ticker-headline {
    max-width: 260px;
  }
  .ticker-toggle-btn {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
}

