Almost periodic solutions of differential equations with piecewise constant argument of generalized type

We consider the existence and stability of an almost periodic solution of the following hybrid system: