/* نوار اخبار متحرک */
.news-bar {
  background:#0dcaf0;
  color:#021018;
  overflow:hidden;
  white-space:nowrap;
  font-weight:600;
  height:50px; /* افزایش ارتفاع برای دسکتاپ */
  display:flex;
  align-items:center;
  padding:0 15px;
  z-index:1050;
}

.news-wrapper {
  display:inline-block;
  white-space:nowrap;
  will-change:transform;
  animation:moveNews 30s linear infinite;
}

.news-item {
  display:inline-block;
  margin-right:20px;
  font-size:16px;
}

/* انیمیشن دسکتاپ */
@keyframes moveNews {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-50%); }
}

/* موبایل */
@media (max-width:576px){
  .news-bar {
    height:auto; /* خودکار با محتوا تنظیم شود */
    min-height:50px; /* حداقل ارتفاع برای موبایل */
    padding:10px 15px; /* فضای داخلی کافی برای متن */
    font-size:16px; /* فونت خوانا */
    margin-top:70px; /* فاصله مناسب از بالای صفحه و هدر */
    position: relative;
  }
  .news-wrapper {
    display:flex;
    flex-wrap: nowrap;
    animation:moveNewsMobile 20s linear infinite;
  }
  .news-item {
    margin-right:15px;
  }
}

@keyframes moveNewsMobile {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
