I encountered an issue in Bootstrap 5 where I have a nested row inside a column that is itself nested in an outer row. The inner row has a padding of 5 and the column has a padding of 1, with added colors and borders for better visualization.
<div class="row p-5" style="background-color: #0F4C99; border: 3px solid black">
<div class="col-12 p-1" style="background-color: #E6005F; border: 3px solid black">
<div class="row p-5" style="background-color: #E6B625; border: 3px solid black">
</div>
</div>
</div>
https://i.sstatic.net/Cum9n.png
Upon inspecting the image, it's evident that the inner row extends beyond the boundaries of the outer row horizontally due to covering its parent column, while not overflowing vertically.
My query revolves around understanding why this behavior occurs and seeking possible solutions to rectify it.