/* الشريط الإخباري - يتحرك من اليسار إلى اليمين */
.news-ticker {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #112e4e;
  margin-bottom: 0;
  box-shadow: 0 0 10px rgba(17,46,78, 0.25);
  font-family: "Cairo", sans-serif;
}

.ticker-title {
  flex: 0 0 auto;
  font-weight: bold;
  margin-inline-start: 15px;
}

.ticker-title p {
  margin: 0;
  padding-inline-end: 15px;
  border-inline-end: 2px solid #c9962b;
  color: #112e4e;
  font-size: 20px;
}

.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  direction: ltr;
}

.ticker-list {
  display: flex;
  width: max-content;
  gap: 50px;
  padding: 0;
  margin: 0;
  list-style: none;
  white-space: nowrap;
  animation: ticker-ltr 30s linear infinite;
  will-change: transform;
}

.ticker-wrapper:hover .ticker-list {
  animation-play-state: paused;
}

.ticker-list li {
  direction: rtl;
}

.ticker-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #112e4e;
  font-weight: 600;
}

.ticker-list li a:hover {
  color: #c9962b;
}

.ticker-icon {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* حركة من اليسار إلى اليمين بدون فواصل (القائمة مكررة مرتين) */
@keyframes ticker-ltr {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (max-width: 768px) {
  .ticker-title p { font-size: 16px; }
  .ticker-list { gap: 30px; }
  .ticker-list li a { font-size: 0.85rem; }
  .ticker-icon { height: 28px; }
}

@media (max-width: 480px) {
  .news-ticker {
    flex-direction: column;
    align-items: stretch;
    padding: 5px;
  }
  .ticker-title { margin: 0; display: flex; justify-content: center; }
  .ticker-title p { padding: 0; border: none; }
  .ticker-wrapper { width: 100%; }
  .ticker-list { gap: 20px; }
  .ticker-list li a { font-size: 0.8rem; }
  .ticker-icon { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-list { animation-duration: 120s; }
}

/* الإنجليزية: اتجاه عناصر الشريط */
html[dir="ltr"] .ticker-list li{direction:ltr}

.ticker-title{margin-inline-end:18px}
