In the process of designing, I am faced with the challenge of overlaying one section on top of another while maintaining a curved shape like shown in this design.
I have divided the sections into first (blue) and second (gray), and the current layout looks like this Pre CSS.
My attempt to use the translateY property to elevate the second section above the first has resulted in the second section covering the first, causing the loss of the desired curve as seen in Post CSS.
Although I have tried using the z-index property, it does not seem to resolve the issue. I am hesitant to use the position: absolute/relative property as the sections are distinct. Any suggestions?