I've designed a header section, but I'm facing an issue.
It looks good on devices with resolutions greater than 1020:
https://i.sstatic.net/VlgmR.png https://i.sstatic.net/x3V15.png
The problem arises on smaller resolutions: https://i.sstatic.net/zDJaZ.png https://i.sstatic.net/YYohp.png
In the second section, I want the title to appear above the list.
I attempted to switch the order of .title and .subcategories, but it caused alignment issues for larger resolutions where .title needs to be aligned to the right.
I am using display: table-cell because I need to vertically align the content and automatically set the width for .title.
Here's my code:
(CSS code block here)