.customer-needs-block {
  padding: 40px 0 19px;
  margin: 0px auto;
  background-color: #f3f6f8;
}
.customer-needs-container {
  max-width: 1472px;
  padding-left: 44px;
  padding-right: 44px;
  margin: 0 auto;
}
.customer-needs-text {
  max-width: 1100px;
  text-align: center;
  margin: 0 auto;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 28px;
  line-height: 24px;
  color: #112336;
}

.customer-needs-text-header {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 600;
  font-size: 44px;
  line-height: 56px;
  text-align: center;
  letter-spacing: 0;
  color: #112336;
  padding-bottom: 25px;
}

.customer-needs-list {
  display: flex;
  justify-content: space-between;
  margin-top: 100px;
}
.customer-needs-item {
  flex-basis: 24%;
  text-align: left;
}
.customer-needs-img {
  display: block;
  margin-bottom: 20px;
}
.customer-needs-item:nth-child(1) .customer-needs-img {
  border-radius: 0px 100px 100px 0px;
  background-image: url(/wp-content/themes/mightycall2021/img/front-page/images/feature-1-hover.png);
  filter: grayscale(100%);
  background-repeat: no-repeat;
  height: 460px;
  width: 322px;
  transition: all 0.7s ease;
}
.customer-needs-item:nth-child(1) .customer-needs-img:hover {
  filter: grayscale(0%);
  transition: all 0.7s ease;
}
.customer-needs-item:nth-child(2) .customer-needs-img {
  border-radius: 100px 0px;
  background-image: url(/wp-content/themes/mightycall2021/img/front-page/images/feature-2-hover.png);
  filter: grayscale(100%);
  background-repeat: no-repeat;
  height: 460px;
  width: 322px;
  transition: all 0.7s ease;
}
.customer-needs-item:nth-child(2) .customer-needs-img:hover {
  filter: grayscale(0%);
  transition: all 0.7s ease;
}
.customer-needs-item:nth-child(3) .customer-needs-img {
  border-radius: 100px 0px 0px 100px;
  background-image: url(/wp-content/themes/mightycall2021/img/front-page/images/feature-3-hover.png);
  filter: grayscale(100%);
  background-repeat: no-repeat;
  height: 460px;
  width: 322px;
  transition: all 0.7s ease;
}
.customer-needs-item:nth-child(3) .customer-needs-img:hover {
  transition: all 0.7s ease;
  filter: grayscale(0%);
}
.customer-needs-item:nth-child(4) .customer-needs-img {
  border-radius: 0px 100px 0px 0px;
  background-image: url(/wp-content/themes/mightycall2021/img/front-page/images/feature-4-hover.png);
  filter: grayscale(100%);
  background-repeat: no-repeat;
  height: 460px;
  width: 322px;
  transition: all 0.7s ease;
}
.customer-needs-item:nth-child(4) .customer-needs-img:hover {
  transition: all 0.7s ease;
  filter: grayscale(0%);
}

.customer-needs-item-wrapper {
  background-color: #fff;
  border-radius: 20px;
  padding: 54px 30px 26px;
  min-height: 306px;
}
.customer-needs-item__header {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 500;
  font-size: 36px;
  line-height: 35px;
  text-align: center;
  color: #112336;
  margin: 0 auto 23px;
  width: fit-content;
  position: relative;
  z-index: 1;
}

.customer-needs-item__header::before {
  content: "";
  position: absolute;
  width: 145px;
  height: 35px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #cdfb3e;
  z-index: -1;
  animation-name: appear;
  animation-duration: 4s;
  animation-iteration-count: 1;
  animation-timing-function: steps(13, end);
}
/*
.customer-needs-item__header span {
  position: absolute;
  top: 0;
  right: -2px;
  bottom: 0;
  width: 0;
  background: #fff;
  border-left: 2px solid #112336;

  animation-duration: 4s, 1s;
  animation-iteration-count: 1, infinite;
  animation-timing-function: steps(13, end), steps(1, end);
} */
.customer-needs-item__header span.animation {
  animation-name: typing, blinking;
}

@keyframes appear {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}
@keyframes typing {
  0% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

@keyframes blinking {
  0% {
    border-color: #cdfb3e;
  }
  50% {
    border-color: #112336;
  }
  100% {
    border-color: #cdfb3e;
  }
}

.customer-needs-item__text {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 38px;
  color: #112336;
  margin-top: 16px;
  margin-bottom: 16px;
  text-align: left;
}

.customer-needs-item__link {
  font-family: "Kanit", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 19px;
  line-height: 32px;
  text-align: center;
  color: #4c75e6;
  text-decoration: none;
  margin-top: 16px;
  transition: all 0.7s ease;
  position: relative;
}

.customer-needs-item__link:hover {
  color: #4C75E6;
  background-color: #CDFB3E;
}
.customer-needs-footer {
  padding-bottom: 20px;
}
.customer-needs-sign-block {
  display: flex;
  height: 105px;
  justify-content: flex-end;
  border-bottom: 1px solid #d9d9d9;
}

.customer-needs-sign {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
  color: #314b93;
  margin: 80px 8.7% 0px auto;
  height: 50px;
  width: 362px;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f3f6f8;
  text-decoration: none;
}
.customer-needs-sign a {
  text-decoration: none;
  font-family: "Kanit";
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 24px;
  color: #4c75e6;
  background: linear-gradient(
    to right,
    midnightblue,
    midnightblue 50%,
    #4c75e6 50%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  background-position: 100%;
  transition: background-position 275ms ease;
}
.customer-needs-sign a:hover {
  background-position: 0 100%;
}

@media (max-width: 1499px) {
  .customer-needs-text-header {
    font-size: 30px;
    line-height: 56px;
    text-transform: capitalize;
    padding-bottom: 5px;
  }
  .customer-needs-text {
    font-size: 18px;
    line-height: 24px;
  }
  .customer-needs-container {
    max-width: 1076px;
    padding-left: 44px;
    padding-right: 44px;
    margin: 0 auto;
  }
  .customer-needs-list {
    margin-top: 64px;
  }

  .customer-needs-item:nth-child(1) .customer-needs-img {
    height: 316px;
    width: 222px;
    border-radius: 0px 70px 70px 0px;
  }
  .customer-needs-item:nth-child(2) .customer-needs-img {
    height: 316px;
    width: 222px;
    border-radius: 70px 0px;
  }
  .customer-needs-item:nth-child(3) .customer-needs-img {
    border-radius: 70px 0px 0px 70px;
    height: 316px;
    width: 222px;
  }
  .customer-needs-item:nth-child(4) .customer-needs-img {
    border-radius: 0px 70px 0px 0px;
    height: 316px;
    width: 222px;
  }
  .customer-needs-item {
    flex-basis: 23%;
  }
  .customer-needs-img {
    display: block;
    margin-bottom: 13px;
    background-size: contain;
  }
  .customer-needs-item__header {
    font-size: 24px;
    line-height: 24px;
    margin: 0 auto 16px;
  }
  .customer-needs-item-wrapper {
    background-color: #fff;
    border-radius: 20px;
    padding: 28px 14px 26px;
    min-height: 213px;
  }
  .customer-needs-item__header::before {
    width: 114px;
    height: 25px;
  }
  .customer-needs-item__text {
    font-size: 14px;
    line-height: 26px;
  }
  .customer-needs-sign-block {
    height: 67px;
  }
  .customer-needs-sign {
    font-size: 24px;
    line-height: 24px;
    margin: 41px 9.6% 0px auto;
    height: 50px;
    width: 252px;
    letter-spacing: 0;
  }
  .customer-needs-sign a {
    font-size: 16px;
    line-height: 24px;
  }
}
@media (max-width: 1279px) {
  .customer-needs-text-header {
    font-size: 32px;
    padding-bottom: 17px;
  }
  .customer-needs-text {
    font-size: 24px;
    line-height: 44px;
  }
  .customer-needs-container {
    max-width: 1076px;
    padding-left: 44px;
    padding-right: 44px;
    margin: 0 auto;
  }
  .customer-needs-list {
    flex-wrap: wrap;
    max-width: 580px;
    margin: 46px auto 0;
  }

  .customer-needs-item:nth-child(1) .customer-needs-img {
    height: 391px;
    width: 274px;
    border-radius: 0px 100px 100px 0px;
  }
  .customer-needs-item:nth-child(2) .customer-needs-img {
    height: 391px;
    width: 274px;
    border-radius: 100px 0px;
  }
  .customer-needs-item:nth-child(3) .customer-needs-img {
    border-radius: 100px 0px 0px 100px;
    height: 391px;
    width: 274px;
  }
  .customer-needs-item:nth-child(4) .customer-needs-img {
    border-radius: 0px 100px 0px 0px;
    height: 391px;
    width: 274px;
  }
  .customer-needs-item {
    flex-basis: 47%;
  }
  .customer-needs-img {
    margin-bottom: 22px;
  }
  .customer-needs-item__header {
    font-size: 28px;
    line-height: 27px;
    margin: 0 auto 25px;
  }
  .customer-needs-item-wrapper {
    background-color: #fff;
    border-radius: 20px;
    padding: 36px 31px 26px;
    min-height: 249px;
    margin-bottom: 25px;
  }
  .customer-needs-item__header::before {
    width: 144px;
    height: 33px;
    top: -4px;
  }
  .customer-needs-item__text {
    font-size: 16px;
    line-height: 30px;
  }
  .customer-needs-sign-block {
    height: 33px;
  }
  .customer-needs-sign {
    margin: 8px 9.6% 0px auto;
    height: 50px;
    width: 252px;
    letter-spacing: 0;
  }
  .customer-needs-sign a {
    font-size: 18px;
  }
}
@media (max-width: 799px) {
  .customer-needs-text-header {
    font-size: 20px;
    line-height: 30px;
    padding-bottom: 17px;
  }
  .customer-needs-text {
    font-size: 15px;
    line-height: 30px;
  }
  .customer-needs-container {
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
  }
  .customer-needs-list {
    flex-wrap: wrap;
    max-width: 360px;
    margin: 46px auto 0;
    justify-content: center;
    align-items: center;
  }

  .customer-needs-item:nth-child(1) .customer-needs-img {
    height: 391px;
    width: 274px;
    border-radius: 0px 100px 100px 0px;
  }
  .customer-needs-item:nth-child(2) .customer-needs-img {
    height: 391px;
    width: 274px;
    border-radius: 100px 0px;
  }
  .customer-needs-item:nth-child(3) .customer-needs-img {
    border-radius: 100px 0px 0px 100px;
    height: 391px;
    width: 274px;
  }
  .customer-needs-item:nth-child(4) .customer-needs-img {
    border-radius: 0px 100px 0px 0px;
    height: 391px;
    width: 274px;
  }
  .customer-needs-item {
    flex-basis: 100%;
  }
  .customer-needs-img {
    margin: 0 auto 20px;
  }

  .customer-needs-item-wrapper {
    background-color: transparent;
  }
  .customer-needs-footer {
    padding-bottom: 10px;
  }

  .customer-needs-sign-block {
    height: 10px;
  }
  .customer-needs-sign {
    margin: -5px 9.6% 0px auto;
    height: 30px;
    width: 192px;
    letter-spacing: 0;
  }
  .customer-needs-sign a {
    font-size: 14px;
  }
}
