Answered here
A Ildar stated, your code will help. The method to realign the text is based on how the card is used in your dashboard.
An example to start with ![]()
type: heading
heading: Example Heading
heading_style: subtitle
card_mod:
style: |
.container {
justify-content: end !important;
}