<style>
  .cards-list {
  z-index: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.cards-list a{
  text-decoration: none;
}

.card {
  margin: 30px auto;
  width: 150px;
  height: 150px;
  border-radius: 5px;
  box-shadow: 5px 5px 30px 7px rgba(0,0,0,0.25), -5px -5px 30px 7px rgba(0,0,0,0.22);
  cursor: pointer;
  transition: 0.4s;
}

.card .card_image {
  width: inherit;
  height: inherit;
  border-radius: 40px;
}

.card .card_image img {
  width: inherit;
  height: inherit;
  /*border-radius: 40px;*/
  object-fit: contain;
}

.card .card_title {
  text-align: center;
  border-radius: 0px 0px 40px 40px;
  /*font-family: sans-serif;*/
  font-weight: bold;
  font-size: 20px;
  margin-top: -45px;
  height: 40px;

}

.card:hover {
  transform: scale(0.9, 0.9);
  box-shadow: 5px 5px 30px 15px rgba(0,0,0,0.25), 
    -5px -5px 30px 15px rgba(0,0,0,0.22);
}

.title-white {
  color: white;
}

.title-black {
  color: black;
}
.vm,
h2,
h2 strong,
h2 span {
  vertical-align: middle;
}
/*body {
  background: #24282f;
  font-family: 'Alegreya Sans';
}*/
.wrapper {
  padding: 15px;
}
h2 {
  padding: 10px;
  padding-left: 25px;
  /*color: #ccc;*/
  margin: 0;
}
h2 strong {
  z-index: 2;
  background: none;
  padding: 0 0;
  display: flex;
  justify-content:center;
}
h2 span {
  font-size: 0.7em;
  /*color: #fff;*/
  margin-left: 10px;
  margin-top: 10px;
}
h2:after {
  content: '';
  z-index: 1;
  bottom: 10%;
  /*margin-bottom: -25px;*/
  height: 1px;
  left: 0;
  right: 0;
  display: none;
  background: #ffffff;
}


@media all and (max-width: 500px) {
  .card-list {
    /* On small screens, we are no longer using row direction but column */
    flex-direction: column;
  }
}


/*
.card {
  margin: 30px auto;
  width: 300px;
  height: 300px;
  border-radius: 40px;
  background-image: url('https://i.redd.it/b3esnz5ra34y.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-repeat: no-repeat;
box-shadow: 5px 5px 30px 7px rgba(0,0,0,0.25), -5px -5px 30px 7px rgba(0,0,0,0.22);
  transition: 0.4s;
}
*/
</style>
<div class="wrapper">
  <h2><strong>Car Categories<span>( 5 )</span></strong></h2>
  <div class="cards-list">
    <a href="sedan.php">
      <div class="card 2 bg-dark">
        <div class="card_image">
          <img src="img/sedan-car.png"/>
        </div>
        <div class="card_title title-white">
          <p>Sedan</p>
        </div>
      </div>
    </a>
    <a href="budget.php">
      <div class="card 2 bg-dark">
        <div class="card_image">
          <img src="img/budget-car.png"/>
        </div>
        <div class="card_title title-white">
          <p>Budget</p>
        </div>
      </div>
    </a>
    <a href="luxury.php">
      <div class="card 2 bg-dark">
        <div class="card_image">
          <img src="img/luxury.png"/>
        </div>
        <div class="card_title title-white">
          <p>Luxury</p>
        </div>
      </div>
    </a>
    <a href="suv.php">
      <div class="card 2 bg-dark">
        <div class="card_image">
          <img src="img/suv-car.png"/>
        </div>
        <div class="card_title title-white">
          <p>SUV</p>
        </div>
      </div>
    </a>
    <a href="7seater.php">
      <div class="card 2 bg-dark">
        <div class="card_image">
          <img src="img/7-seater.png"/>
        </div>
        <div class="card_title title-white">
          <p>7 Seater</p>
        </div>
      </div>
    </a>  
  </div>
</div>