Can we arrange the subcategories like this?

As ogulcan1787 stated, you can create a new component and insert the CSS there.

You can follow these instructions: