.services-grid-main {
    padding: 20px 20px;
    border: 1px solid #eeeeee;
    background-color: #ffffff;
    text-align: center;
    position: relative;
    -webkit-transition: color 0.25s;
    -moz-transition: color 0.25s;
    transition: color 0.25s;
}
.services-grid-main::before {
    top: 0;
    left: 0;
}
.service-on-top--hubdb {
  cursor:pointer;
}
.services-grid-img.logo img {
    object-fit: cover;
    height: 200px;
}

.services-grid-main::before, .services-grid-main::after { 
    width: 0;
    height: 0;
    content: "";
    position: absolute;
    z-index: 1;
}
.services-grid-content{
  position: relative;
  z-index: 999999;
}
.services-grid-main .services-grid-img {
    margin-bottom: 15px;
}
.services-two .services-grid-content h5 {
    padding-bottom: 10px;
}
.services-grid-main::after {
    bottom: 0;
    right: 0;
}
.services-grid-main::before, .services-grid-main::after { 
    width: 0;
    height: 0;
    content: "";
    position: absolute;
}
.border.services-grid-main:hover::before {
    border-top: 1px solid #F2A74B;
    transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    -webkit-transition: all 500ms ease;
}
.services-grid-main:hover::before,
.services-grid-main:hover::after {
    width: 100%;
    height: 100%;
}
.border.services-grid-main:hover::after {
    border-bottom: 1px solid #F2A74B;
    transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    -webkit-transition: all 500ms ease;
}
.services-grid-img img {
  max-width: 100%;
  height: auto;
}
@media(min-width:768px){
  .services-two.flexbx {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .services-two.flexbx .span4 {
    clear: unset;
    display: inline-block !important;
    margin: 10px !important;
    float: none !important;
    flex-basis: 30%;
  }
}


/*filter*/
.directory-filter .dropdown{
    box-sizing: border-box;
    position: relative;
    padding-left: 30px;
}

.directory-filter .select{
 background: #ffffff;
    color: #100f0f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #000;
    border-radius: 0.5rem;
    padding: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 38px;
    width: 300px;
}

.directory-filter .select-clicked{
    border: 1px #000;
    box-shadow: 0 0 0 8px #000;
}
.directory-filter .caret{
    width: 0;
    height: 0;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-top: 1px solid #fff;
    transition: 0.3s;
}

.directory-filter .caret-rotate{
    transform: rotate(180deg);
}

.directory-filter .menu{
       list-style: none;
    padding: 0.2em 0.5em;
    border: 1px #000 solid;
    background: #fff;
    box-shadow: 0 0.5em 1em rgb(0 0 0 / 20%);
    border-radius: 0.5em;
    color: #9fa5b5;
    position: absolute;
    top: 3em;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    opacity: 0;
    display: none;
    transition: 0.2s;
    z-index: 1;
}

.directory-filter .menu li{
        padding: 5px 0.5em;
    margin: 0;
    border-radius: 0.5em;
    cursor: pointer;
}
.directory-filter .menu-open{
    display: block;
    opacity: 1;
}
.services-grid-main {
      min-height: 300px;
}
.services-grid-img img {
    max-width: 150px;
    height: auto;
}
.services-grid-content h5 {
  font-size:18px;
}
.directory-filter .hide { /* You can play with the seconds to change the "animation" */
    animation: hide .3s ease 0s 1 normal forwards;
    transform-origin: center;
  }
  .directory-filter .show { /* You can play with the seconds to change the "animation" */
    animation: show .3s ease 0s 1 normal forwards;    
    transform-origin: center;
  }
  
  @keyframes hide {
    0%{
      transform: scale(1);        
    }
    100% {
      transform: scale(0);        
      width: 0;
      height: 0;
      margin: 0;
    }
  }
  @keyframes show {
    0%{
      transform: scale(0);     
      width: 0;
      height: 0;
      margin: 0;   
    }
    100% {
      transform: scale(1);    
    }
  }