What causes the outer layers of a star to swell outward dramatically during the red giant phase?

Answer

Shell burning of hydrogen surrounding the core generates far more energy

Once the core hydrogen is gone, the surrounding shell of hydrogen begins fusing fiercely, producing much higher energy output that pushes the star's outer layers outward, causing them to swell and cool.

What causes the outer layers of a star to swell outward dramatically during the red giant phase?
astronomystarsFusionred giantshelium