Funds according to Investment horizon


For the goal that are long term say >7 years equity funds are well suited. So, I have invested in some equity funds. But the confusion is that these goal are long term now but when they come closer say exactly 7 years away they no longer remain “Long term”. For investments less than 3 years I like to invest 100% in debt funds but what to do for the time between 3 to 7 years when the goal is approaching closer ? @ArthikDisha