Red Giant Star

When the star runs out of hydrogen fuel to fuse into helium within its core, the core will begin to collapse and heat some more. To counter the cores collapse the outer envelope exponds causing the temperature to drop at the surface but also increasing surface area and thereby the luminosity of the war. Within the core temperatures will rise to begin fusion of helium into carbon.