Hitung elemen dengan CSS jika Anda hanya memiliki 2 - tidak lebih atau kurang
.cards-row:first-child:nth-last-child(2),
.cards-row:first-child:nth-last-child(2) ~ .cards-row{
margin-bottom: 2.2rem;
}
Matt Miller