.cm-hero-cards {
  margin-top: -170px;
  position: relative;
  z-index: 3;
  padding-bottom: 64px;
}

.cm-hero-cards .row-fluid {
  margin-bottom: 30px;
  min-height: 480px;
}

.cards-item {
  padding-right: 12px;
  padding-left: 12px;
}

.cards-item .bordered-card {
  position: relative;
  background: #000;
  border-radius: 0;
  border: 3px solid #000;
  padding: 40px;
  text-decoration: none;
  color: #fff;
  transition: all .5s;
  min-height: 100%;
  border-color: #fff;
  display: flex;
  overflow: hidden;
}

.cards-item {}

.cards-item .hover-up-slide-cover {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%), -40.165px -354.563px / 148.867% 188.194% no-repeat;
  transition: all .3s;
}

.cards-item .bg-img {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.cards-item .bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cards-item .holder {
  position: relative;
  z-index: 9;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.cards-item .holder .subtitle {
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: .2em;
  font-weight: 800;
  font-size: 12px;
  margin: 0 0 16px;
}

.cards-item .holder .heading .h4 {
  margin: 0 0 16px;
  color: #fff;
}

.cards-item .holder .content {
  opacity: 0;
  transition: opacity .5s;
  margin: 0 0 16px;
  color: #000;
}

.cm-hero-cards .row-fluid {}

.cards-item .links {
  margin-top: auto;
  margin-right: -10px;
}

.cards-item .links>div:first-child {
  margin: 0;
}

.cards-item .links>div {
  margin-top: 16px;
  position: relative;
}

.cards-item .links .arrow-circle {
  display: block;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8e9e9;
  cursor: pointer;
  transition: all .3s;
  transition: all .25s .25s;
  position: absolute;
  left: 0;
  bottom: 0;
}

.cards-item .links .arrow-circle:after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  margin: -7px 0 0 -14px;
  width: 28px;
  height: 14px;
  transition: background .3s;
  transform: rotate(-45deg);
  background: url("data:image/svg+xml,%3Csvg width='41' height='17' viewBox='0 0 41 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.39985 8.28999H39.4202M39.4202 8.28999L32.2381 1.02881M39.4202 8.28999L32.2381 15.4998' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") 100% 50% no-repeat;url(
  data:image/svg+xml,%3Csvg width='41' height='17' viewBox='0 0 41 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.39985 8.28999H39.4202M39.4202 8.28999L32.2381 1.02881M39.4202 8.28999L32.2381 15.4998' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A) 100% 50% no-repeat;
}

.cards-item .links .btn-link {
  color: #000;
  text-decoration: none;
  display: inline-block;
  vertical-align: top;
  position: relative;
  font-size: 16px;
  font-weight: 600;
  transition: color .3s;
  transition: all .3s;
  opacity: 0;
}

.cards-item .links .btn-link:after {
  content: "";
  display: inline-block;
  vertical-align: top;
  width: 28px;
  height: 17px;
  transition: all .3s;
  margin: 4px -16px 0 12px;
  background: url("data:image/svg+xml,%3Csvg width='41' height='17' viewBox='0 0 41 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.39985 8.28999H39.4202M39.4202 8.28999L32.2381 1.02881M39.4202 8.28999L32.2381 15.4998' stroke='%230077B5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") 100% 50% no-repeat;url(
  data:image/svg+xml,%3Csvg width='41' height='17' viewBox='0 0 41 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.39985 8.28999H39.4202M39.4202 8.28999L32.2381 1.02881M39.4202 8.28999L32.2381 15.4998' stroke='%230077B5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A) 100% 50% no-repeat;
  filter: hue-rotate(495deg) brightness(110%) saturate(145%) contrast(100%);
}

.cards-item .bordered-card:hover .hover-up-slide-cover {
  background: #fff;
}

.cards-item .bordered-card:hover {
  color: #000;
}

.cards-item .bordered-card:hover .heading .h4 {
  color: #000;
}

.cards-item .bordered-card:hover .holder .content {
  opacity: 1;
}

.cards-item .bordered-card .holder .content {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

.cards-item .bordered-card:hover .links .arrow-circle {
  transform: rotate(45deg);
  opacity: 0;
  transition: all .25s 0s;
}

.cards-item .bordered-card:hover .links .btn-link {
  opacity: 1;
}

.cards-item .bordered-card:hover {
  border-color: #000;
}

@media (min-width: 1024px) and (max-height: 950px) {
  .cm-hero-cards {
    margin-top: -100px;
    padding-bottom: 32px;
  }

  .cards-item .bordered-card{
    padding: 24px;
  }

  .cards-item .holder .subtitle{
    font-size: 12px;
    margin: 0 0 8px;
  }

  .cards-item .links>div{
    margin-top: 8px;
  }

  .cards-item .links .btn-link{
    font-size: 14px;
  }

  .cards-item .links .btn-link:after{
    width: 24px;
    height: 14px;
    margin: 4px -16px 0 8px;
  }

  .cards-item .links .btn-link{
    font-size: 14px;
  }

}


@media (min-width: 1920px) and (max-height: 950px) {
  .cm-hero-cards .row-fluid {
    min-height: 300px;
  }
}

@media (min-width: 1600px) and (max-height: 950px) {
  .cm-hero-cards .row-fluid {
    min-height: 350px;
  }

}




@media (min-width: 768px){

  .cm-hero-cards .row-fluid {
    --bs-gutter-x: 24px;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1* var(--bs-gutter-y));
    width: auto;
  }

}


@media (max-width: 1919.98px){
  .cm-hero-cards .row-fluid {
    margin-left:-12px;
    margin-right:-12px;
  }
}

@media (max-width: 1599.98px){
  .cm-hero-cards .row-fluid {
    min-height: 0;
    margin-left:-8px;
    margin-right:-8px;
  }

  .cm-hero-cards .cards-item{
    padding-right: 8px;
    padding-left:  8px;  
  }

}

@media (max-width: 1024px){

  .cards-item .bordered-card {
    padding: 24px;
    padding-right: 10px;
  }

  .cards-item .holder .heading .h4 {
    font-size: 24px;
  }

  .cards-item .holder .subtitle {
    margin: 0 0 8px;
  }

  .cards-item .links .btn-link {
    font-size: 14px;
  }

  .cm-hero-cards {
    margin-top: -100px;
    padding-bottom: 32px;
  }

  .cm-hero-cards .row-fluid {
    margin-bottom: 0;
  }

  .cards-item .bordered-card .holder .content p {
    margin: 0 0 16px;
  }

  .cards-item .bordered-card {
    border-width: 2px;
  }

}

@media (max-width:767px) {


  .cm-hero-cards {
    margin-top: -46px;
    padding-bottom: 24px;
  }

  .cm-hero-cards .cards-item {
    padding-bottom: 24px;
  }

  .cards-item .bordered-card {
    border-color: #000;
    padding-top: 205px;
    padding-right: 24px;
    border-radius: 8px;
    background: #fff;
  }

  .cards-item .bg-img {
  }

  .cards-item .bg-img img {
    height: 50%;
  }

  .cards-item .hover-up-slide-cover {
    height: 50%;
  }

  .cards-item .holder .heading {
    margin-top: -185px;
    height: 185px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    margin-bottom: 24px;
  }

  .cards-item .holder .content {
    opacity: 1;
  }

  .cards-item .links .arrow-circle {
    opacity: 0;
  }

  .cards-item .links .btn-link {
    opacity: 1;
  }

  .cards-item .links .btn-link:after {
    width: 24px;
    height: 14px;
    margin: 4px -16px 0 8px;
  }

  .cm-hero-cards .row-fluid {
    width: auto;
  }

  .cards-item .bordered-card:hover .hover-up-slide-cover {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%), -40.165px -354.563px / 148.867% 188.194% no-repeat;
  }

  .cards-item .holder .heading .h4, .cards-item .bordered-card:hover .heading .h4 {
    color: #fff;
  }
}
