.counter-block-one {
  position: relative;
  margin-bottom: 50px;
}
.counter-block-one .inner {
  position: relative;
  padding: 0 15px 15px;
  transition: all 300ms ease;
}
.counter-block-one .inner:before {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to top, #fff, transparent);
  top: auto;
  bottom: 0;
  content: "";
  transition: all 300ms ease;
}
.counter-block-one .inner:after {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  top: auto;
  bottom: 0;
  height: 0;
  background: linear-gradient(to top, var(--theme-color1), transparent);
  content: "";
  transition: all 300ms ease;
}
.counter-block-one .inner:hover::before {
  height: 0;
}
.counter-block-one .inner:hover:after {
  height: 100%;
}
.counter-block-one .content {
  position: relative;
  width: 100%;
  transition: all 300ms ease;
  background-color: #ffffff;
  padding: 65px 20px 25px;
  text-align: center;
  margin: 77px auto 0;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.1);
  z-index: 9;
}
.counter-block-one .content:hover .counter-icon {
  transform: scale(-1) rotate(180deg);
}
.counter-block-one .counter-icon {
  position: absolute;
  top: -77px;
  left: 50%;
  margin-left: -58px;
  height: 116px;
  width: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--theme-color1);
  color: #ffffff;
  border-radius: 50%;
  font-size: 62px;
  z-index: 1;
  transition: all 300ms ease;
}
.counter-block-one .count-box {
  position: relative;
  font-size: 60px;
  font-weight: 700;
  color: var(--theme-color2);
  line-height: 1em;
  display: block;
  margin-bottom: 10px;
}
.counter-block-one .count-box .counter {
  font-size: 60px;
  font-weight: 700;
  line-height: 1em;
  margin-top: 0;
}
.counter-block-one .title {
  display: block;
  margin-bottom: 0;
  letter-spacing: 0;
}

.counter-block-two {
  position: relative;
  margin-bottom: 50px !important;
}
.counter-block-two .inner {
  position: relative;
  width: 100%;
  transition: all 300ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .counter-block-two .inner {
    transition: none;
  }
}
.counter-block-two .counter-icon {
  position: relative;
  display: block;
  font-size: 30px;
  color: #00e4ff;
  z-index: 1;
  margin-bottom: 0;
  transition: all 300ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .counter-block-two .counter-icon {
    transition: none;
  }
}
.counter-block-two .count-box {
  position: absolute;
  left: -30px;
  top: -40px;
  font-size: 150px;
  font-weight: 700;
  line-height: 1em;
  color: #0e1e2a;
  text-shadow: 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff;
  opacity: 0.3;
}
.counter-block-two .count-box .counter {
  font-size: 150px;
  color: #0e1e2a;
  text-shadow: 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff;
  font-weight: 700;
  line-height: 1em;
}
.counter-block-two .title {
  position: relative;
  display: block;
  font-size: 24px;
  line-height: 35px;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0;
}

.tm-counter-icon-top .inner {
  flex-direction: column;
}

.tm-counter-icon-right .inner {
  flex-direction: row-reverse;
  display: inline-flex;
}

.tm-counter-icon-right .inner .counter-icon {
  margin-right: 0;
  margin-left: 20px;
}