/* Coudy Scrolling News Ticker */
.coudy-news-ticker {
  --coudy-navy: #06152f;
  --coudy-blue: #0b3d91;
  --coudy-gold: #f5b700;
  --coudy-white: #ffffff;
  --coudy-border: rgba(255,255,255,0.24);
  width: 100%;
  margin: 0;
  background: linear-gradient(135deg, #06152f 0%, #0b3d91 68%, #075985 100%);
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 16px 40px rgba(6, 21, 47, 0.18);
}

.coudy-news-ticker,
.coudy-news-ticker * {
  box-sizing: border-box;
}

.coudy-news-ticker__inner {
  width: min(1180px, calc(100% - 34px));
  min-height: 58px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.coudy-news-ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(245, 183, 0, 0.16);
  border: 1px solid rgba(245, 183, 0, 0.42);
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.coudy-news-ticker__pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--coudy-gold);
  box-shadow: 0 0 0 5px rgba(245, 183, 0, 0.2);
}

.coudy-news-ticker__viewport {
  overflow: hidden;
  min-width: 0;
  position: relative;
}

.coudy-news-ticker__viewport::before,
.coudy-news-ticker__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  z-index: 2;
  pointer-events: none;
}

.coudy-news-ticker__viewport::before {
  left: 0;
  background: linear-gradient(90deg, #06152f, rgba(6,21,47,0));
}

.coudy-news-ticker__viewport::after {
  right: 0;
  background: linear-gradient(270deg, #0b3d91, rgba(11,61,145,0));
}

.coudy-news-ticker__track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 28px;
  padding: 14px 0;
  animation: coudyTickerMove var(--coudy-ticker-speed, 38s) linear infinite;
  will-change: transform;
}

.coudy-news-ticker.is-paused .coudy-news-ticker__track,
.coudy-news-ticker:hover .coudy-news-ticker__track,
.coudy-news-ticker:focus-within .coudy-news-ticker__track {
  animation-play-state: paused;
}

.coudy-news-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  white-space: nowrap;
  color: #ffffff;
  font-size: 0.98rem;
}

.coudy-news-ticker__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--coudy-gold);
  flex: 0 0 auto;
}

.coudy-news-ticker__headline {
  color: #ffffff;
  font-weight: 1000;
}

.coudy-news-ticker__summary {
  color: #e9f2ff;
  font-weight: 650;
}

.coudy-news-ticker__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #06152f !important;
  font-weight: 1000;
  text-decoration: none;
}

.coudy-news-ticker__link:hover,
.coudy-news-ticker__link:focus {
  background: var(--coudy-gold);
  color: #06152f !important;
}

.coudy-news-ticker__pause {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.coudy-news-ticker__pause:hover,
.coudy-news-ticker__pause:focus {
  background: #ffffff;
  color: #06152f;
}

.coudy-news-ticker a:focus-visible,
.coudy-news-ticker button:focus-visible {
  outline: 4px solid #ffbf00;
  outline-offset: 3px;
}


/* Hero-integrated style: use [coudy_scrolling_news variant="hero"] inside the homepage hero. */
.cbh-hero .coudy-news-ticker,
.coudy-news-ticker.coudy-news-ticker--hero {
  width: min(980px, 100%);
  margin: 22px 0 0;
  background: rgba(255,255,255,0.115);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 24px;
  box-shadow: 0 22px 44px rgba(0,0,0,0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.cbh-hero .coudy-news-ticker__inner,
.coudy-news-ticker.coudy-news-ticker--hero .coudy-news-ticker__inner {
  width: 100%;
  min-height: 64px;
  padding: 0 14px;
  gap: 14px;
}

.cbh-hero .coudy-news-ticker__label,
.coudy-news-ticker.coudy-news-ticker--hero .coudy-news-ticker__label {
  background: rgba(245, 183, 0, 0.18);
  border-color: rgba(245, 183, 0, 0.50);
  font-size: 0.88rem;
}

.cbh-hero .coudy-news-ticker__item,
.coudy-news-ticker.coudy-news-ticker--hero .coudy-news-ticker__item {
  font-size: clamp(1.05rem, 1.45vw, 1.18rem);
}

.cbh-hero .coudy-news-ticker__headline,
.coudy-news-ticker.coudy-news-ticker--hero .coudy-news-ticker__headline {
  color: #ffffff;
  letter-spacing: -0.015em;
}

.cbh-hero .coudy-news-ticker__summary,
.coudy-news-ticker.coudy-news-ticker--hero .coudy-news-ticker__summary {
  color: #f4f8ff;
  font-size: 1.02em;
}

.cbh-hero .coudy-news-ticker__link,
.coudy-news-ticker.coudy-news-ticker--hero .coudy-news-ticker__link {
  min-height: 38px;
  padding: 8px 14px;
}

.cbh-hero .coudy-news-ticker__pause,
.coudy-news-ticker.coudy-news-ticker--hero .coudy-news-ticker__pause {
  min-height: 40px;
  background: rgba(255,255,255,0.14);
}

.cbh-hero .coudy-news-ticker__viewport::before,
.coudy-news-ticker.coudy-news-ticker--hero .coudy-news-ticker__viewport::before {
  background: linear-gradient(90deg, rgba(6,21,47,0.95), rgba(6,21,47,0));
}

.cbh-hero .coudy-news-ticker__viewport::after,
.coudy-news-ticker.coudy-news-ticker--hero .coudy-news-ticker__viewport::after {
  background: linear-gradient(270deg, rgba(11,61,145,0.95), rgba(11,61,145,0));
}

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

@media (max-width: 720px) {
  .coudy-news-ticker__inner {
    width: min(100% - 24px, 1180px);
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 0;
  }

  .coudy-news-ticker__label {
    grid-column: 1 / 2;
  }

  .coudy-news-ticker__pause {
    grid-column: 2 / 3;
  }

  .coudy-news-ticker__viewport {
    grid-column: 1 / -1;
  }

  .coudy-news-ticker__item {
    font-size: 0.93rem;
  }

  .coudy-news-ticker__summary {
    display: none;
  }

  .cbh-hero .coudy-news-ticker,
  .coudy-news-ticker.coudy-news-ticker--hero {
    margin-top: 18px;
    border-radius: 22px;
  }

  .cbh-hero .coudy-news-ticker__inner,
  .coudy-news-ticker.coudy-news-ticker--hero .coudy-news-ticker__inner {
    padding: 10px 12px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .coudy-news-ticker__track {
    animation: none !important;
    transform: none !important;
    flex-wrap: wrap;
    width: auto;
  }

  .coudy-news-ticker__viewport {
    overflow: visible;
  }

  .coudy-news-ticker__viewport::before,
  .coudy-news-ticker__viewport::after {
    display: none;
  }
}

@media print {
  .coudy-news-ticker {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: 1px solid #000000 !important;
  }

  .coudy-news-ticker__inner,
  .coudy-news-ticker__track,
  .coudy-news-ticker__item {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    animation: none !important;
    transform: none !important;
  }

  .coudy-news-ticker__label,
  .coudy-news-ticker__headline,
  .coudy-news-ticker__summary {
    color: #000000 !important;
  }

  .coudy-news-ticker__pause,
  .coudy-news-ticker__viewport::before,
  .coudy-news-ticker__viewport::after,
  .coudy-news-ticker__track article[aria-hidden="true"] {
    display: none !important;
  }
}
