.loyalty-earning-cards {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  justify-content: center;
  align-items: center;
  margin-top: var(--gw-section-spacing-fluid-xl);
  margin-bottom: var(--gw-section-spacing-fluid-xl);

  .loyalty-earning-cards--title {
    text-align: center;

    .title__heading {
      font-family: var(--hh-font-canela-light);
      font-size: clamp(2.8rem, 0.49383vw + 2.60741rem, 3.2rem);
      margin-bottom: 15px;
      line-height: 1;

      &:last-child {
        margin-bottom: 0;
      }
    }

    > * {
      margin: 0;
    }
  }

  .loyalty-earning-cards--content {
    display: grid;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    grid-gap: 10px;
    gap: 10px;
    max-width: 960px;
    padding: 0 50px;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));

    .earning-point__card {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      text-align: center;
      gap: 12px;
      padding: var(--gw-section-spacing-fluid-xl) 40px;
      background-color: var(--hh-bg-color, transparent);
      width: 100%;
      height: 100%;

      @media screen and (max-width: 649.9px) {
        gap: 2.5rem;
      }

      &:hover {
        background-color: #d8d9de;
      }

      .earning-point__card--top {
        max-width: max(5rem, 30%);
      }

      .earning-point__card--title {
        font-family: var(--hh-font-gotham-book);
        font-size: clamp(1.4rem, 0.12346vw + 1.35185rem, 1.5rem);
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.5rem;
        line-height: 1.3;
        max-width: 15em;
        text-wrap-style: balance;
      }

      .earning-point__card--description p {
        font-size: 12px;
        line-height: 1.3;
        margin: 0 0 10px 0;
        max-width: 250px;
        font-family: var(--hh-font-avenir-book);

        &:last-child {
          margin-bottom: 0;
        }
      }

      .earning-point__card--cta a {
        font-family: var(--hh-font-gotham-medium);
        letter-spacing: 0.2rem;
        position: relative;
        font-size: 10px;
        font-weight: 600;

        &::after {
          content: '';
          border-bottom: 2px solid #000;
          position: absolute;
          width: 100%;
          left: 0;
          bottom: -5px;
        }
      }

      @media screen and (max-width: 749.9px) {
        width: 100%;
      }
    }

    @media screen and (max-width: 649.9px) {
      display: flex;
      gap: 35px;
      max-width: 100vw;
      flex-direction: column;
      align-items: center;
    }
  }
}
