Why the sun’s corona is hotter than its surface: laws of physics still stand

One of the biggest mysteries in solar physics is how is it possible that the sun’s surface is colder than its atmosphere. At first glance, it seems that the sun’s atmosphere, called the corona, is hotter than the heat source which is preposterous given the second law of thermodynamics. So, either the sun doesn’t care of the laws of physics