Responsive Flexbox Layout
Use Flexbox with media queries to stack items vertically on small screens and horizontally on larger screens.
Set display: flex on the container.
Use flex-direction: column for mobile layouts.
Change flex-direction to row inside a media query for desktop.
Use gap to control spacing between items.