.news-container {
  position: relative;
  overflow: hidden;
  background: #fbfe1a;
  z-index: 1;
}

.news-container .title {
  position: absolute;
  background: #df2020;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: #fff;
  font-weight: bold;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.news-ticker {
  font-size: 18px;
  font-weight: 600;
  overflow: hidden;
  user-select: none;
  --gap: 100px;
  display: flex;
  gap: var(--gap);
  padding: 4px 0;
}

.news-ticker ul {
  list-style: none;
  flex-shrink: 0;
  min-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap);
  animation: scroll 50s linear infinite;
  margin: 0;
  color: #df2020;
}

.news-ticker ul li::before {
  content: "NEW";
  color: #fff;
  padding: 2px 7px;
  position: relative;
  top: -3px;
  background-color: #ff3a09;
  margin-right: 10px;
  border-radius: 4px;
  animation: blink 1s infinite;
  font-size: 12px;
  font-weight: bold;
  font-style: italic;
}

.news-ticker:hover ul {
  animation-play-state: paused;
}

@keyframes scroll {
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

@media screen and (max-width: 575px) {
  .news-container {
    top: 60px;
  }
  .news-ticker ul {
    animation: scroll 70s linear infinite;
  }
}


/* Blinking effect for the NEW label */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
