Summer is hotter than winter for two reasons
Daylight lasts longer ˇ the Sun is above the horizon longer each day in summer than in winter, so it has more time to heat the Earth.
The Sun is higher in the sky, so more sunlight is concentrated into any given area on the EarthÝs surface.
Seasons have nothing to do with when the Earth is closer to or farther from the Sun. This should be obvious, because the northern and southern hemispheres have opposite seasons: for example, southern summer and northern winter cannot simultaneously be explained by how far the Earth is from the Sun. In fact, the Earth is closest to the Sun on about January 4, during northern hemisphere winter. But the extra heat (about 6 % compared to July 4) is much less important than the two reasons above.