main .block.cards-generic .wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: var(--page-width-md);
}

main .block.cards-generic .heading-container {
  text-align: center;
  max-width: 580px;
}

main .block.cards-generic .heading-container .preheading {
  margin-bottom: 8px;
  text-transform: uppercase;
}

main .block.cards-generic .heading-container h2 {
  text-align: center;
}

main .block.cards-generic .heading-container .desc {
  margin-top: 16px;
}

main .block.cards-generic .cards {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 40px 24px;
  width: 100%;
  list-style-type: none;
  margin-top: 40px;
  margin-bottom: 0;
  padding-inline-start: 0;
}

main .block.cards-generic .cards li {
  margin-top: 0;
}

main .block.cards-generic.cards-align-start .cards {
  justify-content: start;
}
main .block.cards-generic.cards-align-center .cards {
  justify-content: center;
}
main .block.cards-generic.cards-align-end .cards {
  justify-content: end;
}
main .block.cards-generic.cards-align-between .cards {
  justify-content: space-between;
}
main .block.cards-generic.cards-align-around .cards {
  justify-content: space-around;
}
main .block.cards-generic.cards-align-even .cards {
  justify-content: space-evenly;
}

main .block.cards-generic .button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 48px;
    gap: 24px;
}

main .block.cards-generic .cards .card {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:32px;
    
    flex-grow: 0;
    flex-basis: fit-content;
    /* max-width: 360px; */
    max-width: calc(33.3% - 24px);
}

main .block.cards-generic .card > img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
}

main .block.cards-generic .card .card-content {
    color: var(--text-color-default);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap:8px;
}

main .block.cards-generic .card .card-content .preheading {
    color: var(--color-accent-500);
}

main .block.cards-generic:is(.text-theme-light, .bg-color-primary-dark, .bg-color-secondary-dark, .bg-color-accent-dark, .bg-color-black) .card .card-content .preheading {
    color: var(--color-accent-200);
}

main .block.cards-generic .card .card-content ul {
    list-style-type: disc;
    padding-inline-start: 24px;
}

main .block.cards-generic .card a {
    margin-top:24px;
}
 
@media (max-width: 1024px) {
  main .block.cards-generic .cards {
    flex-wrap: wrap;
  }

  main .block.cards-generic .cards .card {
    max-width: calc(50% - 24px);
  }
}

@media (max-width: 600px) {
  main .block.cards-generic .cards {
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    gap: 40px;
    margin-top: 40px;
  }

  main .block.cards-generic .cards .card {
    max-width: 400px;
    margin: 0 auto;
  }
}
