.group {
  /* ... */
  will-change: transform; /* We should be nice to the browser - let it know what we're going to animate. */
  animation: scrolling 10s linear infinite;
}

@keyframes scrolling {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
.carousel {
  /* ... */
  &:hover .group {
    animation-play-state: paused;
  }
}
.carousel {
  /* ... */
  > * {
    flex: 0 0 100%;
  }
}

/* Group the cards for better structure. */
.group {
  display: flex;
  gap: 20px;
  /* Add padding to the right to create a gap between the last and first card. */
  padding-right: 20px;
}
.carousel {
  margin: 0 auto;
  padding: 20px 0;

  overflow: hidden;
  display: flex;
  background: #f3d70012;
  border-image-source: linear-gradient(to left, #f3d701, #e04c0a, #f3d701);
  border-image-slice: 1;
  /* border: 10px solid; */
  /*border-image-slice: 1; */
  border-width: 2px;
  border-style: solid;
  border-right: 0;
  border-left: 0;
}

.card {
  width: 100%;
  color: white;
  /*border-radius: 24px;
  box-shadow: rgba(0, 0, 0, 10%) 5px 5px 20px 0; */
  padding: 20px;
  font-size: xx-large;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  display: flex;

  &:nth-child(1) {
    background: transparent;
  }

  &:nth-child(2) {
    background: transparent;
  }

  &:nth-child(3) {
    background: transparent;
  }
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .brand-item img {
    height: 50px;
  }
  .brands-track {
    gap: 30px;
    animation-duration: 25s;
  }
}

@media (max-width: 768px) {
  .brand-item img {
    height: 40px;
  }
  .brands-track {
    gap: 20px;
    animation-duration: 20s;
  }
}
.brands-heading {
  justify-self: anchor-center;
  font-size: 40px;
  font-weight: 400;
  padding-bottom: 25px;
}
