/* ویجت اصلی */
.news-ticker-widget {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  background: #ee641e;
  color: #fdfdfd;
  font-family: Tahoma, sans-serif;
  font-size: 16px;
  border-radius: 1px;
  overflow: hidden;
  padding: 0 12px;

  box-sizing: border-box;

  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}


/* خط جداکننده بعد از متن "اخبار سایت" */
.ticker-separator {
  display: inline-block;
  width: 1px;             /* ضخامت خط */
  height: 24px;           /* ارتفاع خط */
  background-color: #ddd; /* رنگ خط */
  margin-left: 0px; 
  margin-right: 10px; 
  vertical-align: middle;
}


/* بخش عنوان و لوگو/آیکون */
.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: #ee641e;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  flex: 0 0 auto;
  font-size: 16px;
  white-space: nowrap;
}

.ticker-icon {
  font-size: 16px;
}

/* بخش خبرها */
.ticker-content {
  flex: 1;
  position: relative;  /* برای absolute شدن news-item */
  display: flex;
  justify-content:right;
  align-items: center;
  height: 100%;
  overflow: hidden;
}

.news-item {
      font-family: Tahoma, sans-serif;

  position: absolute;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
   font-size: 16px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  text-align: center;
  padding: 50 0px;
  box-sizing: border-box;
  font-weight: 500;
}

/* تایپ‌نویسی */
.typing-box {
  display: inline-block;
  border-right: 2px solid #eece1e; /* خط چشمک‌زن */
  padding-right: 12px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #eece1e; }
}



/* ریسپانسیو */
@media (max-width: 768px) {
  .news-ticker-widget { height: 45px; font-size: 14px; padding: 0 8px; }
  .ticker-label { font-size: 14px; padding: 4px 10px; }
  .news-item::before { border-left-width: 8px; border-top:5px; border-bottom:5px; }
}

@media (max-width: 480px) {
  .news-ticker-widget { height: 40px; font-size: 13px; padding: 0 5px; }
  .ticker-label { font-size: 13px; padding: 3px 8px; }
  .news-item::before { border-left-width: 6px; border-top:4px; border-bottom:4px; }
}