.aiers-page .aiers-related {
  padding: 120px 0;
  overflow: hidden;
  background: #faf9f5;
}

.aiers-page .aiers-related,
.aiers-page .aiers-related * {
  box-sizing: border-box;
}

.aiers-page .aiers-related h2,
.aiers-page .aiers-related h3,
.aiers-page .aiers-related p,
.aiers-page .aiers-related s,
.aiers-page .aiers-related b {
  margin: 0;
  padding: 0;
}

.aiers-page .aiers-related__inner {
  width: min(1296px, calc(100% - 40px));
  margin: 0 auto;
}

.aiers-page .aiers-related__group + .aiers-related__group {
  margin-top: 80px;
}

.aiers-page .aiers-related h2 {
  color: #141413;
  font-size: 24px;
  line-height: 2;
  font-weight: 700;
  letter-spacing: 0;
}

.aiers-page .aiers-related h2 span {
  color: #141413;
}

.aiers-page .aiers-related h2 em {
  color: #ff5b00;
  font-style: normal;
}

.aiers-page .aiers-related__viewport {
  width: 100%;
  margin-top: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.aiers-page .aiers-related__viewport::-webkit-scrollbar {
  display: none;
}

.aiers-page .aiers-related__track {
  display: flex;
  gap: 24px;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
}

.aiers-page .aiers-related-card {
  display: grid;
  flex: 0 0 280px;
  width: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  color: #141413;
  text-decoration: none;
  cursor: pointer;
}

.aiers-page .aiers-related-card--current {
  grid-template-rows: 158px 138px 66px;
  height: 362px;
}

.aiers-page .aiers-related-card--notify {
  grid-template-rows: 158px 140px 66px;
  height: 364px;
}

.aiers-page .aiers-related-card__media {
  position: relative;
  overflow: hidden;
}

.aiers-page .aiers-related-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  background: #ddd;
}

.aiers-page .aiers-related-card__media > span {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ff5b00;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.aiers-page .aiers-related-card__media > span img {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.aiers-page .aiers-related-card__body {
  overflow: hidden;
  min-height: 0;
  padding: 16px 18px 0;
}

.aiers-page .aiers-related-card__instructor {
  overflow: hidden;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.aiers-page .aiers-related-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  color: #141413;
  font-size: 16px;
  line-height: 1.36;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.aiers-page .aiers-related-card--current h3 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.aiers-page .aiers-related .aiers-related-card__summary {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.aiers-page .aiers-related .aiers-related-card--current .aiers-related-card__summary {
  margin-top: 8px;
}

.aiers-page .aiers-related-card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 16px 22px;
}

.aiers-page .aiers-related-card__price s {
  display: block;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
}

.aiers-page .aiers-related-card__price b {
  display: block;
  color: #ff5b00;
  font-size: 20px;
  line-height: 20px;
  font-weight: 800;
}

.aiers-page .aiers-related-card__button {
  display: inline-flex;
  width: calc(100% - 32px);
  height: 45px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px 16px 18px;
  border-radius: 6px;
  background: #ff5b00;
  color: #fff;
  font-size: 13px;
  line-height: 17px;
  font-weight: 800;
}

.aiers-page .aiers-related-card__button img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

@media (max-width: 860px) {
  .aiers-page .aiers-section.aiers-related {
    padding: 60px 0 60px;
  }

  .aiers-page .aiers-related__inner {
    width: 100%;
  }

  .aiers-page .aiers-related__group + .aiers-related__group {
    margin-top: 40px;
  }

  .aiers-page .aiers-related h2 {
    width: calc(100% - 32px);
    margin: 0 16px;
    font-size: 24px;
    line-height: 33px;
  }

  .aiers-page .aiers-related h2 span,
  .aiers-page .aiers-related h2 em {
    display: inline;
  }

  .aiers-page .aiers-related__viewport {
    width: 100%;
    margin-top: 20px;
    padding-left: 16px;
  }

  .aiers-page .aiers-related__track {
    gap: 10px;
    min-width: 0;
    padding-right: 16px;
  }

  .aiers-page .aiers-related-card,
  .aiers-page .aiers-related-card--current,
  .aiers-page .aiers-related-card--notify {
    grid-template-rows: 128px 128px 61px;
    flex-basis: 227px;
    width: 227px;
    height: 317px;
  }

  .aiers-page .aiers-related-card__body {
    padding: 14px 14px 0;
  }

  .aiers-page .aiers-related-card__instructor {
    font-size: 11px;
    line-height: 13px;
  }

  .aiers-page .aiers-related-card h3 {
    margin-top: 4px;
    font-size: 14px;
    line-height: 19px;
  }

  .aiers-page .aiers-related .aiers-related-card__summary {
    margin-top: 8px;
    font-size: 12px;
    line-height: 16.5px;
  }

  .aiers-page .aiers-related-card__price {
    padding: 0 14px 16px;
  }

  .aiers-page .aiers-related-card__price b {
    font-size: 20px;
    line-height: 20px;
  }

  .aiers-page .aiers-related-card__media > span {
    left: 12px;
    top: 12px;
    min-height: 30px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .aiers-page .aiers-related-card__button {
    width: calc(100% - 28px);
    height: 38px;
    margin: 9px 14px 14px;
    font-size: 12px;
    line-height: 14px;
  }

  .aiers-page .aiers-related-card__button img {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }
}
