On 20 May, 2010, Japan launched IKAROS probe with primary propulsion by a solar sail. If the radiation pressure, that helps the sail to move, comes from the sun, then shouldn't it be pushed away from the sun? But the IKAROS probe actually passed by venus, which is nearer to sun as compared to earth by any means. Can someone please expalain that?
Light sails are generally reflective, so the impulse provided by the light depends on the difference of the momentum of the incoming light (directed radially outward), and that of the outgoing light (which can point in any direction, depending on how you tilt the sail, though your effective area drops significantly if you tilt too much).
The result is that the sail can be used, not only to push you outward but also to increase or decrease your orbital angular momentum, which will change the shape of your obit. (For that matter you can change the plane of your orbit as well.)
Reflect the light "forward" (i.e. in the direction of your orbital motion) and your orbital motion will slow and your path will bend more toward the primary. Reflect it "backward" and your orbit speed will increase and your path will bend away from the primary.
Getting into a lower orbit (as in going to the neighborhood of Venus from the neighborhood or Earth) means first slowing yourself so that you can fall in toward the primary, then speeding up again to match velocity with the target. Always keeping in mind that light sails provide little thrust so these evolutions are not at all fast.
That said, you can't get the sail to push you radially inward: you must rely on gravity to move you in.