The REAL reason z-index fails:
A parent has position + z-index
→ it creates a new stacking context.
✔ Fix
Remove z-index from parent OR apply a higher z-index to the parent itself.
💡 Debug Trick
Apply:
outline: 2px solid red;
To visualize stacking contexts.


