.listContainer { display: flex; justify-content: space-evenly; border-bottom: 1px solid #b9b9b9; margin: auto; width: 95%; @media screen and (min-width: 1920px) { width: 75%; } @media screen and (max-width: 1024px) { flex-direction: column; border-top: 1px solid #b9b9b9; } } .contentItem { display: flex; padding: 62px 52px 0; @media screen and (min-width: 1920px) { padding: 62px 360px; } @media screen and (max-width: 1024px) { flex-direction: column; padding: 16px 40px; border-bottom: 1px solid #b9b9b9; } }