.asl-hafez-partner-ticker {
  --ticker-surface: #573573;
  --ticker-brand-surface: #392049;
  --ticker-border: #a779bc;
  --ticker-text: #fff9f1;
  --ticker-separator: rgba(246, 208, 143, .56);
  position: relative;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  direction: rtl;
  width: 100%;
  height: 72px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--ticker-border);
  border-radius: 18px;
  background: radial-gradient(ellipse at 28% -45%, rgba(245, 202, 130, .26), transparent 47%), linear-gradient(105deg, #4b2b66, var(--ticker-surface) 48%, #674384);
  color: var(--ticker-text);
  isolation: isolate;
}

.asl-hafez-partner-ticker::after {
  position: absolute;
  z-index: 2;
  inset: 4px;
  border: 1px solid rgba(248, 214, 157, .28);
  border-radius: 13px;
  content: "";
  pointer-events: none;
}

.asl-hafez-partner-ticker__brand {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  border-inline-end: 1px solid var(--ticker-separator);
  background: linear-gradient(130deg, #46295b, var(--ticker-brand-surface));
}

.asl-hafez-partner-ticker__asl,
.asl-hafez-partner-ticker__hafez {
  display: block;
  flex: none;
  object-fit: contain;
}

.asl-hafez-partner-ticker__asl { width: 41px; height: 41px; }
.asl-hafez-partner-ticker__hafez { width: 145px; height: 45px; }

.asl-hafez-partner-ticker__viewport {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.asl-hafez-partner-ticker__viewport::before,
.asl-hafez-partner-ticker__viewport::after {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 36px;
  content: "";
  pointer-events: none;
}

.asl-hafez-partner-ticker__viewport::before {
  right: 0;
  background: linear-gradient(to left, var(--ticker-surface), transparent);
}

.asl-hafez-partner-ticker__viewport::after {
  left: 0;
  background: linear-gradient(to right, var(--ticker-surface), transparent);
}

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

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

.asl-hafez-partner-ticker__unit {
  box-sizing: border-box;
  width: 620px;
  justify-content: center;
  gap: 42px;
  padding-inline: 32px;
  direction: rtl;
  white-space: nowrap;
}

.asl-hafez-partner-ticker__message {
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.25px;
  color: var(--ticker-text);
}

.asl-hafez-partner-ticker__spark {
  flex: none;
  width: 7px;
  height: 7px;
  border: 1px solid #f9d594;
  background: #d9a35a;
  transform: rotate(45deg);
}

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

@media (hover: hover) {
  .asl-hafez-partner-ticker:hover .asl-hafez-partner-ticker__track { animation-play-state: paused; }
}

html.dark .asl-hafez-partner-ticker {
  --ticker-surface: #3d2752;
  --ticker-brand-surface: #2c1b3b;
  --ticker-border: #8e68a5;
  --ticker-text: #fff7ee;
  --ticker-separator: rgba(246, 208, 143, .46);
  background: radial-gradient(ellipse at 28% -45%, rgba(223, 179, 103, .2), transparent 47%), linear-gradient(105deg, #321f45, var(--ticker-surface) 48%, #503268);
}

@media (max-width: 639px) {
  .asl-hafez-partner-ticker {
    grid-template-columns: 145px minmax(0, 1fr);
    height: 62px;
    margin-top: 16px;
    border-radius: 14px;
  }
  .asl-hafez-partner-ticker__brand { gap: 5px; }
  .asl-hafez-partner-ticker__asl { width: 30px; height: 30px; }
  .asl-hafez-partner-ticker__hafez { width: 101px; height: 33px; }
  .asl-hafez-partner-ticker__unit { width: 480px; gap: 30px; padding-inline: 18px; }
  .asl-hafez-partner-ticker__message { font-size: 15px; }
  .asl-hafez-partner-ticker__viewport::before,
  .asl-hafez-partner-ticker__viewport::after { width: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .asl-hafez-partner-ticker__track { animation: none; }
  .asl-hafez-partner-ticker__unit { justify-content: flex-start; width: auto; min-width: 100%; gap: 0; }
  .asl-hafez-partner-ticker__spark { display: none; }
  .asl-hafez-partner-ticker__message { font-size: clamp(11px, 2.9vw, 16px); }
}
