.custom-news-box {
  background-color: #229cf9; /* Blue shade */
  color: #fff;
  padding: 14px 24px;   
  border-radius: 12px;
  margin: 20px auto;
  max-width: 80%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.news-line-container {
  position: relative;
  height: 24px;
  font-size: 16px;
  font-weight: 500;
}

.news-line {
  position: absolute;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(100%);
  animation: slideLine 6s ease-in-out forwards;
}

@keyframes slideLine {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  10% {
    transform: translateX(0%);
    opacity: 1;
  }
  70% {
    transform: translateX(0%);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .custom-news-box {
    font-size: 14px;
    padding: 10px 16px;
  }

  .news-line-container {
    height: 22px;
  }
}
