Did you thought about making villagers grow in experience for the job they do? It’d make a player to treasure all ppl in village, since experienced worker could lets say make the work faster than normal/new worker.
It’d solve at least the issue with not really taking care of villagers during the raids and honestly at all other death related times too
RIght now anyone can take place of the dead worker and do the same thing without any drawbacks, so there is not really a point in keeping them alive to the best of your abilities.
That could also be a thing for soldiers in barracks, they could be provided with some paid training, making them cost you some real money, but allow you to grow an experienced soldiers as an alternative for them getting expierenced through real battles.
The paid expierience actually could be done through the school for all kind of jobs.
You already have ui and logic for choosing a specific worker, it just needs some improvements