I made this card to display an image and info but there is a gap I can't remove using css
Here is the style and html
.card-container>* {
  width: auto;
  height: auto;
  margin: 0;
}
.ratings {
  display: flex;
  align-items: center;
  background-color: aqua;
  width: auto;
  height: fit-content;
}
.card-container img {
  width: 240px;
  height: 350px;
  object-fit: cover;
}
.card-container .stausbg {
  background-color: aqua;
}<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<div class="card-container">
  <img src='https://dummyimage.com/600x400/000/fff' alt='card' />
  <span class="stausbg">Sold Out</span>
  <div class="ratings">
    <i class="fa-solid fa-star"></i>
    <p class="no-star">5</p>
    <p class="no-pp">(40)</p>
    <i class="fa-solid fa-circle"></i>
    <p class="country">Usa</p>
  </div>
  <h5 class="title">Life lessons with jake</h5>
  <h6>From $200 / person</h6>
</div>Here I have used aqua color as the background color of .ratings class. I want to remove the undefined space (margin padding) and apply my own style

 
     
    