<style>
   @import url('https://fonts.googleapis.com/css?family=Montserrat:400,600&display=swap');

.card-circle{
    text-align:center;
     margin-top:50px;
     background:transparent;    
     border:10px solid transparent;
     color:#ffffff;
     Font-family: Montserrat;
     padding:0 30 0 30;
     border-radius:3%;
}
 .card-circle .card-title{
    font-weight:400;
     font-size:12px;
     color: white;
}
 .card-circle .card-text{
    font-weight:400;
}
 .card-circle .card-icon i{
     font-size:60px;
     display:block;
}
 .card-circle:nth-child(2){
    background:#142850;
}
 .card-circle .btn{
    Font-family: Montserrat;
    background:transparent;
     border:1px solid #fff;
     text-transform:uppercase;
     padding:5px 30px;    
     border-radius:0px;
     Font-weight:600;
}
.card-circle .btn,.card-circle .card-icon i,.card-circle{
   transition: all ease-in-out 0.2s;
}
 .card-circle:hover .btn{
    background:#00A8CC;
     color:#fff;
   border: 10px solid transparent;
}
 .card-circle .btn:hover{
    transform: scale(1.1);
}
 .card-circle:hover{
    border:3px solid #ffffff;
}
 .card-circle:hover i {
   text-shadow: 0px -1px 10px #00A8CC;
    transform:scale(1.2)rotate(20deg);
}
@media only screen and (min-width: 2560px) {
    }
    .car-car-main{
      margin-left:
    }
    }
}

 @media only screen and (min-width: 1200px) {
     .card-circle:nth-child(3){
         margin-left:-40px;
         z-index:0;
    }
     .card-circle{
         width:209px;
         height:200px;
    }
     .card-circle:nth-child(2){
         margin-left:-20px;
         box-shadow: 1px 2px 20px 8px rgba(241, 235, 235, 0.12);
         transform: scale(1.2);
         z-index:1;
    }
   .card-circle .card-icon i{
      margin-top: 20px;
     }
}
}
@media only screen and (min-width: 991px) and (max-width: 1200px) {
   .card-circle{
         width:200px;
         height:200px;
    }
  .card-circle .card-icon i{
     font-size:50px;
   }
  .card-circle .card-icon i{
      margin-top: -25px;
     }
   .card-circle:nth-child(3){
         margin-left:-50px;
         z-index:0;
    }
   .card-circle:nth-child(2){
         margin-left:-20px;
         z-index:1;
    }
}
/*custom css start*/
.car-car-main{
   display: flex;
   justify-content: center!important;
   /*margin-left: 100px;*/
   /*gap: 10px;*/
   /*columns:50px 5;*/
}
.card-car{
  max-width: fit-content;
}
.car-car-main a{
   color: none;
   text-decoration: none;
}
..car-car-main a:hover{
   color: none;
   text-decoration: none;
}
</style>






<div class="container">
   <div class="row" style="margin: auto;">
     <div class="car-car-main">
        <!-- card1 -->
         <div class="col-sm-12 col-md-2 col-lg-2">
            <a href="sedan.php">
               <div class="card card-circle">
                  <div class="card-icon">
                     <i class="fas fa-car-alt"></i>
                  </div>
                  <div class="card-body">
                     <p class="card-title">Sedan</p>
                  </div>
               </div>
            </a>
         </div>
         
            <!-- card2 -->
         <div class="col-sm-12 col-md-2 col-lg-2">
            <a href="suv.php">
               <div class="card card-circle">
                  <div class="card-icon">
                     <i class="fas fa-truck-pickup"></i>
                  </div>
                  <div class="card-body">
                     <p class="card-title">SUV</p>
                  </div>
               </div>
            </a>
         </div>
            <!-- card3 -->
         <div class="col-sm-12 col-md-2 col-lg-2">
            <a href="budget.php">
               <div class="card card-circle">
                  <div class="card-icon">
                     <i class="fas fa-car-side"></i>
                  </div>
                  <div class="card-body">
                     <p class="card-title">Budget</p>
                  </div>
               </div>
            </a>
         </div>
            <!-- card4 -->
         <div class="col-sm-12 col-md-2 col-lg-2">
            <a href="luxury.php">
              <div class="card card-circle ">
               <div class="card-icon">
                  <i class="fas fa-car-alt"></i>
               </div>
               <div class="card-body">
                  <p class="card-title">Luxury</p>
               </div>
            </div>
            </a>
         </div>
            <!-- card5 -->
         <div class="col-sm-12 col-md-2 col-lg-2">
            <a href="7seater.php">
              <div class="card card-circle ">
               <div class="card-icon">
                  <i class="fas fa-car-alt"></i>
               </div>
               <div class="card-body">
                  <p class="card-title">7 Seater</p>
               </div>
            </div>
            </a>
         </div>
     </div>
   </div>
</div>






<!-- cards 2 -->
<style>

  .abs,
h2:after,
.cards .card figcaption,
.cards .card:after,
.news .card figcaption,
.news .card:after,
.news .article figcaption {
  position: absolute;
}
.rel,
h2,
h2 strong,
.cards .card,
.news .card,
.news .article {
  position: relative;
}
.fix {
  position: fixed;
}
.dfix {
  display: inline;
}
.dib {
  display: inline-block;
}
.db {
  display: block;
}
.dn {
  display: none;
}
.df,
.cards,
.news {
  display: flex;
}
.dif {
  display: inline-flex;
}
.dg {
  display: grid;
}
.dig {
  display: inline-grid;
}
.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;
}
.cards,
.news {
  flex-flow: row wrap;
}
.cards .card,
.news .card {
  margin: 20px;
  width: 180px;
  height: 200px;
  overflow: hidden;
  /*box-shadow: 0 5px 10px rgba(0,0,0,0.8);*/
  transform-origin: center top;
  transform-style: preserve-3d;
  transform: translateZ(0);
  transition: 0.3s;
  border:none;
}
.cards .card img,
.news .card img {
  width: 100%;
  min-height: 100%;
}
.cards .card figcaption,
.news .card figcaption {
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  padding-bottom: 10px;
  font-size: 20px;
  background: none;
  color: #fff;
  transform: translateY(100%);
  transition: 0.3s;
}
.cards .card:after,
.news .card:after {
  content: '';
  z-index: 10;
  width: 200%;
  height: 100%;
  top: -90%;
  left: -20px;
  opacity: 0.1;
  transform: rotate(45deg);
  background: linear-gradient(to top, transparent, #fff 15%, rgba(255,255,255,0.5));
  transition: 0.3s;
}
.cards .card:hover,
.news .card:hover,
.cards .card:focus,
.news .card:focus,
.cards .card:active,
.news .card:active {
  box-shadow: 0 8px 16px 3px rgba(0,0,0,0.6);
  transform: translateY(-3px) scale(1.05) rotateX(15deg);
}
.cards .card:hover figcaption,
.news .card:hover figcaption,
.cards .card:focus figcaption,
.news .card:focus figcaption,
.cards .card:active figcaption,
.news .card:active figcaption {
  transform: none;
}
.cards .card:hover:after,
.news .card:hover:after,
.cards .card:focus:after,
.news .card:focus:after,
.cards .card:active:after,
.news .card:active:after {
  transform: rotate(25deg);
  top: -40%;
  opacity: 0.15;
}
.news .article {
  overflow: hidden;
  width: 350px;
  height: 235px;
  margin: 20px;
}
.news .article img {
  width: 100%;
  min-height: 100%;
  transition: 0.2s;
}
.news .article figcaption {
  font-size: 14px;
  text-shadow: 0 1px 0 rgba(51,51,51,0.3);
  color: #fff;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 40px;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
  background: rgba(6,18,53,0.6);
  opacity: 0;
  transform: scale(1.15);
  transition: 0.2s;
}
.news .article figcaption h3 {
  color: #3792e3;
  font-size: 16px;
  margin-bottom: 0;
  font-weight: bold;
}
.news .article:hover img,
.news .article:focus img,
.news .article:active img {
  filter: blur(3px);
  transform: scale(0.97);
}
.news .article:hover figcaption,
.news .article:focus figcaption,
.news .article:active figcaption {
  opacity: 1;
  transform: none;
}

  

</style>







<div class="wrapper">

  <h2><strong>Car Categories<span>( 5 )</span></strong></h2>

  <div class="row d-flex" style="justify-content: center;">
      <div class="cards">
    <figure class="card">
      <img src="img/sedan1.png"/>
      <figcaption></figcaption>
    </figure>
  </div>
  <div class="cards">
    <figure class="card">
      <img src="img/sedan1.png"/>
      <figcaption></figcaption>
    </figure>
  </div>
  <div class="cards">
    <figure class="card">
      <img src="img/sedan1.png"/>
      <figcaption></figcaption>
    </figure>
  </div>
  <div class="cards">
    <figure class="card">
      <img src="img/sedan1.png"/>
      <figcaption></figcaption>
    </figure>
  </div>
  <div class="cards">
    <figure class="card">
      <img src="img/sedan1.png"/>
      <figcaption></figcaption>
    </figure>
  </div>
  </div>
</div>
















