Shares to buy for long term: Analysts are positive on 14 largecap, 3 midcap, and 2 smallcap stocks as Nifty hits 25,000

As the 50-scrip basket index, Nifty 50, hit an all-time high of 25,078 after the US Fed rates remained unchanged at 5.23 per cent for eight times in a row, many investors are scouting for investment opportunities to book profit in the long term.