The key is the star's size (radius):
* Luminosity is the total amount of light energy a star emits per second. It's directly related to the star's surface area and temperature.
* Hot stars have higher temperatures, meaning their surface emits more energy per unit area.
* Cool stars have lower temperatures, meaning their surface emits less energy per unit area.
The catch: Cool stars can have a significantly larger radius than hot stars. This larger surface area means they can still emit a higher total amount of light even though each unit of their surface emits less energy.
Think of it like this:
* Imagine a small, hot stove burner. It's very hot and emits a lot of heat from a small area.
* Now imagine a large, cool campfire. While each burning log is cooler than the stove burner, the overall size of the fire means it emits more total heat.
Red giants are a great example of this. They are relatively cool stars, but they are incredibly large, giving them high luminosities.
In summary: A cool star can be more luminous than a hot star if it is significantly larger in size. It's all about the balance between temperature and surface area.