/*
 * TECHED.TV Ticker
 * Theme-neutral: colours inherit from the surrounding theme except the accent,
 * which comes from the --techedtv-accent custom property set inline.
 */

.techedtv-ticker {
  --techedtv-accent: #01e0af;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid rgba(128, 128, 128, 0.25);
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
  font-size: 15px;
  line-height: 1.3;
  box-sizing: border-box;
}

.techedtv-ticker *,
.techedtv-ticker *:before,
.techedtv-ticker *:after {
  box-sizing: inherit;
}

.techedtv-ticker-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: inherit;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background-color: rgba(20, 20, 24, 0.92);
  color: #f2f2f4;
}

.techedtv-ticker-label {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  height: 74px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--techedtv-accent);
  z-index: 2;
}

.techedtv-ticker-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  -webkit-animation: techedtv-pulse 2s ease-in-out infinite;
  animation: techedtv-pulse 2s ease-in-out infinite;
}

@-webkit-keyframes techedtv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes techedtv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.techedtv-ticker-viewport {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.techedtv-ticker-track {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: -webkit-max-content;
  width: max-content;
}

.techedtv-ticker.is-ready .techedtv-ticker-track {
  -webkit-animation-name: techedtv-scroll;
  animation-name: techedtv-scroll;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

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

@-webkit-keyframes techedtv-scroll {
  from { -webkit-transform: translate3d(0, 0, 0); }
  to { -webkit-transform: translate3d(-50%, 0, 0); }
}

@keyframes techedtv-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.techedtv-ticker-item {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.techedtv-ticker-item:before {
  content: none;
}

.techedtv-ticker-link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 14px;
  height: 74px;
  padding: 0 28px 0 0;
  margin-right: 28px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid rgba(128, 128, 128, 0.25);
}

.techedtv-ticker-thumb {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: rgba(128, 128, 128, 0.2);
}

.techedtv-ticker-text {
  display: block;
  min-width: 0;
}

.techedtv-ticker-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 460px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.techedtv-ticker-date {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.65;
}

.techedtv-ticker-link:hover .techedtv-ticker-title,
.techedtv-ticker-link:focus .techedtv-ticker-title {
  text-decoration: underline;
}

.techedtv-ticker.is-static .techedtv-ticker-viewport {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.techedtv-ticker.is-static .techedtv-ticker-track {
  -webkit-animation: none;
  animation: none;
}

@media screen and (max-width: 767px) {
  .techedtv-ticker-label {
    padding: 0 14px;
    font-size: 11px;
  }

  .techedtv-ticker-label-text {
    display: none;
  }

  .techedtv-ticker-title {
    max-width: 260px;
  }
}

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

  .techedtv-ticker-pulse {
    -webkit-animation: none;
    animation: none;
  }
}
