Please check the below code. First style is perfectly applied but not the second one for "regular 1". I have to apply blue color on the first element with class "regular".
.plan-list .basic:first-child {
background: red;
}
.plan-list .regular:first-child {
background: blue;
}
<ul class="plan-list">
<li class="plan basic">basic 1</li>
<li class="plan regular">regular 1</li>
<li class="plan regular">regular 2</li>
<li class="plan basic">basic 2</li>
</ul>