I imagine that one of my students asks me this very interesting question. This is how I would try to explain it to her/him, without the use of complex mathematics and concepts involving ‘screening currents’ and Higgs mechanisms etc.
It is known that in most part matter is empty space (vacuum) between the atoms. Therefore, although photons can be subjected to various 'obstacles' inside any tansparent solid, as they travel through the solid, from atom to atom, they do so at the normal speed of light as we know it $c=3\times 10^8 ms^{-1}$. However there are processes (the obstacles) the photons are subjected to as they travel. They are of quantum mechanical origin and these can be:
(i) absorption by an atom, and subsequent reemission by that atom
(ii) Compton scattering by electrons in the material.
(iii) Photoelectric effect
(iv) Excitation of vibrational modes in the solid which implies phonon excitation, hence energy conversion into heat.
The processes that involve absorption and reemission are the ones that propagate the photon that travels in the solid, and these may not change its frequency. However, these processes are characterised by their excitation and relaxation time. They are not taking place instantly. Therefore, although the photon travels at the normal speed of light when it is reemitted, it is delayed because these transitions take time to occur. This results in an effective speed of light inside the material which is macroscopically represented by the dielectric constant of the material, i.e. we can write $\epsilon=\epsilon_0\epsilon_r$. It is as if these processes change the electric permitivity of space, but in actual fact it is a collective phenomenon of the condensed matter. Therefore, the frequency of light does not change, as one would expect. In extremely dense materials such as some boson condensates, the effective speed of light is so slow that you can ‘watch’ the light diffusing through the material in a similar way you watch the milk diffusing in your tea (or coffee), so to speak.
Here is a practical analogy, which I hope will make my student understand something about processes in materials, and the effects these can have on their optical properties:
Practical Example
Imagine two chains of people, chain 1 has 1000 people and chain 2 has also 1000. Now imagine you give one tennis ball (this the 'photon') to the first person of each chain, and instruct them to pass the ball to the next person and so on. Once the ball leaves any person in either chain it goes at the same speed c. However, imagine the people in chain 2 are slower in the passing of the ball than people in chain 1. The result will be that the ball will reach the other end slower in chain 2. Effectively the speed of 'light' is slower in chain 2 compared to chain 1.
Conclusion: The photons travel at the speed of light c between atoms inside the material , but the processes of propagation (absorption reemission etc ) make it appear as if it slows down.