.slide-success-story {

  height: 440px;

  padding-left: 32px;

  display: flex;

  align-items: flex-end;

  transition: 1s all ease-in-out;

  background-size: cover;

  position: relative;
  border-radius: 8px !important;

}

.story-link.d-lg-flex img,
.story-link.story-link-grad img {
  width: 32px;
  filter: brightness(0) invert(1);
}

.card-story {

  z-index: 9;

}



.card-story * {

  color: #fff;

  transition: 1s all ease-in-out;

}



.card-story h4 {

  font-weight: 600;

  border-bottom: 2px solid rgb(255 255 255 / 32%);

  padding-bottom: 16px;

  font-size: 28px;

  line-height: 40px;

  margin-bottom: 16px;

}



.story-stats--number {

  font-size: 28px;

}



.story-stats--text {

  font-size: 16px;

  line-height: 20px;

}



.story-footer {

  padding-bottom: 16px;

}



.story-category {

  position: absolute;

  top: 32px;

  right: 32px;

  background-color: #fff;

  color: #000;

  padding: 8px 16px !important;

  border-radius: 8px !important;

  font-size: 14px;

  font-weight: 400;

}



.story-link {

  background-color: #5e64ef;

  border-radius: 30px;

  padding: 8px;

  cursor: pointer;

}



.story-testimonial--thumb img {

  width: 40px;

  height: 40px;

  object-fit: cover;

  border-radius: 50%;

}



.btn-outline {

  display: inline-block;

  height: 42px;

  line-height: 42px;

  padding: 0 24px;

  text-transform: uppercase;

  border: 1px solid #5e64ef;

}



.btn-outline span {

  color: #5e64ef;

}



.btn-outline:hover {

  border-color: #5e64ef !important;

}



.story-testimonial {

  max-height: 0;

}



/* .slide-success-story:hover .story-testimonial {

  max-height: 350px;

} */



/* .slide-success-story:hover .story-footer .story-link {

  opacity: 0;

} */



/* .slide-success-story:hover .story-category {

  opacity: 0;

} */



.swiper-slide.slide-success-story:before {

  content: "";

  position: absolute;

  width: 100%;

  height: 100%;
  border-radius: 8px;
  /* background: linear-gradient(180deg,

      rgba(0, 0, 0, 0) -8.1%,

      rgba(0, 0, 0, 0.8) 100%); */

  left: 0;

}



/* .slide-success-story:hover:before {

  background: transparent;

  backdrop-filter: blur(4px);

  background-color: rgb(0 0 0 / 30%);

  -webkit-backdrop-filter: blur(10px);

} */



.slide-success-story a {

  text-decoration: none;

}

.story-link img {
  transition: transform 0.3s ease;
}

.slide-success-story:hover .story-link.d-lg-flex img,
.story-link.story-link-grad img {
  transform: rotate(45deg) !important;
}

@media (max-width: 480px) {

  .slide-success-story {

    height: 400px;

  }



  /* .all-casestudies-btn a {

            padding: 0px 10px;

        } */

}



@media (max-width: 480px) {

  .story-stats--text {

    width: min-content;

  }

}



@media (max-width: 767px) {

  .story-logo {

    max-width: 120px;

  }

  .card-story h4 {

    font-size: 20px;
    line-height: 28px;
  }


  .items-counter {

    flex-direction: row;

    text-align: center;

    flex-wrap: wrap;

  }



  .counter-item {

    flex: auto;

    width: 50%;

  }

  .slide-success-story {

    padding-right: 32px;

  }

  /* .story-logo {

    display: none;

  } */
  .story-stats {
    display: none !important;
  }
  .story-stats--text {

    font-size: 16px;

    line-height: 20px;

    width: 100%;

  }

  /* .slide-success-story:hover .story-footer {

    display: none !important;

  } */


 

  .story-link.d-lg-flex img:hover,
  .story-link.story-link-grad img:hover {
    transform: rotate(45deg) !important;
  }

  .slide-success-story .card-story h4 {
    margin-bottom: 12px;
  }

  .slide-success-story {
    padding: 0;
  }

  .slide-success-story .card-story h4 {
    padding: 0 24px 12px;
  }

  .slide-success-story .story-footer {
    padding: 0px 24px 26px 24px;
  }

  .slide-success-story .story-testimonial {
    padding: 0 24px;
  }

}

.carousel-stories {

  width: 100%;

  overflow: hidden;

}



.carousel-stories .swiper-wrapper {

  width: 100%;

}



.carousel-stories .swiper-slide {

  box-sizing: border-box;

}

#downloadCasestudy .modal-content {
  max-width: 900px;
}

.popup-btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  opacity: 0.8;
  transition: all 0.3s ease;
  background-color: white;
}

#downloadCasestudy .btn-close:hover {
  opacity: 1 !important;
  transform: scale(1.1);
}

#downloadCasestudy .form-casestudy {
  margin-top: 20px;
}

#downloadCasestudy .form-casestudy input[type="text"],
#downloadCasestudy .form-casestudy input[type="email"] {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #000000;
  border-radius: 12px;
  padding: 15px 20px;
  color: black;
  font-size: 16px;
  width: 100%;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.form-casestudy input[type="text"]::placeholder {
  color: #000000;
}

#downloadCasestudy .form-casestudy input[type="submit"],
#downloadCasestudy .form-casestudy button[type="submit"] {
  background-color: #5e64ef;
  border: none;
  border-radius: 12px;
  padding: 0;
  color: white;
  line-height: 48px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  transition: all 0.3s ease;
}

/* #downloadCasestudy .form-casestudy input[type="submit"]:hover,
#downloadCasestudy .form-casestudy button[type="submit"]:hover {
  transform: translateY(-2px);
} */

#downloadCasestudy .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 0;
}

#downloadCasestudy .wpcf7-response-output {
  margin-top: 15px !important;
  padding: 4px 7px;
  border-radius: 8px;
  color: red;
  font-size: 14px;
}

#downloadCasestudy .wpcf7-form .btn-primary:focus span {
  color: white;
}

@media (max-width: 768px) {
  #downloadCasestudy .modal-dialog {
    margin: 20px;
  }

  #downloadCasestudy .col-md-6 {
    padding: 30px 25px !important;
  }

  #downloadCasestudy .popup-image {
    min-height: 200px !important;
  }

  #downloadCasestudy h3 {
    font-size: 24px !important;
  }

  .popup-image {
    display: none;
  }
}

.w-fit {
  width: fit-content;
}