/**
 * Process Steps (How It Works) Block CSS
 */

.how-it-work {
  padding: 50px 0 100px 0;
}

.how-it-work h2 {
  margin-bottom: 30px;
}

.how-it-work .row > div {
  margin-top: 25px;
}

.how-it-work .text {
  height: 100%;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
  padding: 50px 30px 25px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 390px;
  overflow: hidden;
}

.how-it-work .text.has-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
    
}

@media (max-width: 768px) {
  .how-it-work .text {
    height: 460px;
  }
}

.how-it-work .row > div:last-child .text {
  background: #545F7F;
}

.how-it-work .text p {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
  color: #fff;
}

.how-it-work .text p + p {
  font-size: 18px;
  margin-top: 20px;
}

.how-it-work .text p span {
  font-weight: 800;
  text-transform: uppercase;
}

.how-it-work .text h6 {
  align-self: flex-end;
  font-size: 90px;
  color: #fff;
  line-height: 0.8;
  margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 1400px) {
  .how-it-work {
    padding: 100px 0;
  }
}

@media (max-width: 1199px) {
  .how-it-work .text {
    padding: 40px 20px 25px;
  }
  .how-it-work .text p {
    font-size: 20px;
  }
  .how-it-work .text h6 {
    font-size: 70px;
  }
}

@media (max-width: 991px) {
  .how-it-work {
    padding: 70px 0;
  }
  .how-it-work .text {
    min-height: 360px;
  }
  .how-it-work .text p {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .how-it-work .text p {
    font-size: 18px;
  }
}

@media (max-width: 575px) {
  .how-it-work .text {
    min-height: 300px;
    padding: 30px 20px 25px;
  }
}
