.asl-hafez-partner-ticker {
  --ticker-bg-top: #e8d8f0;
  --ticker-bg-bottom: #dcc3e9;
  --ticker-border: #8752aa;
  --ticker-copy: #351a49;
  --ticker-rule: #a773bd;
  position: relative;
  width: 100%;
  height: 80px;
  margin-top: 22px;
  overflow: hidden;
  border: 2px solid var(--ticker-border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--ticker-bg-top), var(--ticker-bg-bottom));
  color: var(--ticker-copy);
  isolation: isolate;
}

.asl-hafez-partner-ticker::before,
.asl-hafez-partner-ticker::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  z-index: 1;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #d2a456 18%, #efd087 50%, #d2a456 82%, transparent);
}

.asl-hafez-partner-ticker::before { top: 1px; }
.asl-hafez-partner-ticker::after { bottom: 1px; }

.asl-hafez-partner-ticker__track,
.asl-hafez-partner-ticker__sequence,
.asl-hafez-partner-ticker__unit {
  display: flex;
  align-items: center;
  flex: none;
}

.asl-hafez-partner-ticker__track {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  height: 100%;
  direction: ltr;
  animation: asl-hafez-partner-scroll 42s linear infinite;
  will-change: transform;
}

.asl-hafez-partner-ticker__sequence { height: 100%; }

.asl-hafez-partner-ticker__unit {
  width: 570px;
  height: 100%;
  justify-content: center;
  gap: 15px;
  direction: rtl;
  white-space: nowrap;
}

.asl-hafez-partner-ticker__asl {
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: contain;
}

.asl-hafez-partner-ticker__message {
  font-family: Vazirmatn, Estedad, Tahoma, sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.5px;
  color: var(--ticker-copy);
}

.asl-hafez-partner-ticker__rule {
  width: 1px;
  height: 26px;
  flex: none;
  background: var(--ticker-rule);
}

.asl-hafez-partner-ticker__hafez {
  width: 126px;
  height: 42px;
  flex: none;
  object-fit: contain;
}

.asl-hafez-partner-ticker__star {
  flex: none;
  font-size: 18px;
  line-height: 1;
  color: #a97526;
}

@keyframes asl-hafez-partner-scroll {
  to { transform: translateX(-50%); }
}

html.dark .asl-hafez-partner-ticker {
  --ticker-bg-top: #432854;
  --ticker-bg-bottom: #33203f;
  --ticker-border: #a371bd;
  --ticker-copy: #fff7e8;
  --ticker-rule: #b88dce;
}

html.dark .asl-hafez-partner-ticker__star { color: #f1c978; }

@media (max-width: 639px) {
  .asl-hafez-partner-ticker { height: 68px; margin-top: 18px; border-radius: 13px; }
  .asl-hafez-partner-ticker__track { animation-duration: 36s; }
  .asl-hafez-partner-ticker__unit { width: 378px; gap: 9px; }
  .asl-hafez-partner-ticker__asl { width: 32px; height: 32px; }
  .asl-hafez-partner-ticker__message { font-size: 14px; letter-spacing: -.35px; }
  .asl-hafez-partner-ticker__rule { height: 22px; }
  .asl-hafez-partner-ticker__hafez { width: 78px; height: 31px; }
  .asl-hafez-partner-ticker__star { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .asl-hafez-partner-ticker__track { animation: none; }
}
