The speed of light (c) is 299,792,458 m/s, in a vacuum, or in a solid.
The idea that light travels at different speeds in different substances is incorrect.
The misunderstanding arises from the behavior of photons in a solid/liquid/gas, and/or gravitational field.
In a vacuum, light travels in a straight line unless influenced by gravity. If there is no net gravitational influence, the time it takes for a photon to travel from a point A to a point B 299,792,458 m distant will be exactly 1 sec.
If there is an object directly between points A and B the photon cannot travel in a straight line, but will instead be absorbed and emitted by the object.
If the object is massive enough the photon will initially have to be travelling in a direction that would miss point B, a trajectory that will pass close to the edge of the object. When the photon approaches the object it will noticeably begin to change direction toward the object, and if the initial trajectory is just right the photon will miss the object but curve around the object and intersect point B. (This phenomenon is the basis for the idea of curved space) Since the photon has to travel a greater distance than if it had traveled in a straight line, the time it takes to travel from point A to point B will therefor take more than 1 sec.
When a photon enters a body of water it does not travel in a straight line, but instead curves around the atoms and molecules, affected by the gravitational pull of the atoms.
It is also absorbed-emitted by atoms (the number of times in proportion to the thickness of the water layer) usually being emitted in a direction other than the one it entered the water with. The absorption-emission process (ie the absorbing-emitting electrons jumping from lower-to-higher-to-lower energy states) takes time to occur.
The accumulation of increased distance due to the gravitational effects of the atoms/molecules, and the time the multiple absorption-emission process takes, increases the time it takes for the photon to travel from point A to point B.
Hence you have the APPEARANCE of the speed of light being slower in water than in vacuum.
Think of it like a Roomba traveling to the other side of a very large room, across an uneven floor (ie gravity/curved space), bouncing off of furniture and changing direction (ie absorbing-emitting), but eventually reaching the opposite side. If the speed of the Roomba is .25 mph and the straight-line distance from point A to B is .25 mile, the distance traveled will be significantly greater than .25 mile, and the time taken will be significantly greater than 1 hour.