.monx-student-marquee {
  --monx-student-gap: clamp(12px, 1.25vw, 22px);
  --monx-student-row-gap: clamp(12px, 1.6vw, 24px);
  display: grid;
  gap: var(--monx-student-row-gap);
  width: 100%;
}

.monx-student-marquee__row {
  width: 100%;
  overflow: hidden;
}

.monx-student-marquee__track {
  display: flex;
  align-items: stretch;
  gap: var(--monx-student-gap);
}

.monx-student-marquee__card {
  position: relative;
  width: clamp(210px, 22vw, 330px);
  min-width: clamp(210px, 22vw, 330px);
  aspect-ratio: 0.76;
  border-radius: clamp(18px, 1.8vw, 28px);
  overflow: hidden;
  background-color: #d9dee7;
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 22px rgba(10, 23, 46, 0.18);
}

.monx-student-marquee__card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  background: linear-gradient(180deg, rgba(7, 20, 45, 0) 0%, rgba(7, 20, 45, 0.58) 100%);
  pointer-events: none;
}

.monx-student-marquee__bottom {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.monx-student-marquee__name,
.monx-student-marquee__score {
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.monx-student-marquee__name {
  background: #ffffff;
  color: #213b7d;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.monx-student-marquee__score {
  background: linear-gradient(145deg, #0f7dff, #0a5fd8);
  color: #fff;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .monx-student-marquee__card {
    width: min(66vw, 260px);
    min-width: min(66vw, 260px);
  }

  .monx-student-marquee__name,
  .monx-student-marquee__score {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 13px;
  }
}
