/* khabar-khan.css */
/* فونت وزیر از CDN لود می‌شود؛ در صورت نیاز، فایل Vazir.css را در assets قرار دهید */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@latest/dist/font-face/Vazir.css');

.wh-ticker{
  overflow:hidden;
  width:100%;
  border-radius:8px;
  padding:10px 15px;
  box-sizing:border-box;
  direction:rtl;
  font-family: 'Vazir', sans-serif;
}
.wh-track{ position:relative; min-height:2.2em; }

/* Blocks: each block contains item + sep (star) */
.wh-block{ display:block; position:relative; white-space:nowrap; }

/* Scroll mode: we animate each block absolutely across the container */
.wh-ticker.scroll .wh-block {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;       /* عرض بلوک برابر با والد */
  display: flex;     
  justify-content: center;  /* وسط چین افقی */
  align-items: center;      /* وسط چین عمودی */
  white-space: nowrap;      /* جلوگیری از شکستن متن */
}
/* Slide mode: show only item (sep hidden) */
.wh-ticker.slide .wh-block{ position:relative; display:block; }
.wh-ticker.slide .wh-item{ display:none; }
.wh-ticker.slide .wh-sep{ display:none; }

/* anchor style */
.wh-item a{ color:inherit; text-decoration:right; }

/* small screens */
@media (max-width:768px){
  .wh-ticker{ padding:8px 10px; }
}
