Questions and answers

<!-- Each question and answer item -->
<div class="container">
<!-- Heading -->
<div class="container__heading">
<!-- Question -->
...
<!-- The toggle icon sticks to the right -->
...
</div>
<!-- Answer -->
</div>
.container {
border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
.container__heading {
display: flex;
align-items: center;
justify-content: space-between;
}

See also

Accordion