Change li last child's bottom margin to the height of :after element. It allows the last child of li not to be a block element.