.counter_section {
  padding: 50px 0;
  margin: 0;
}

.counter_section .counter-bg {
  width: 100%;
  min-height: 190px;
  background: #ffffff;
  border: 1px solid #e3f0fc;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(83, 157, 224, 0.1);
}

.counter_section .counter-bg::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: #eaf5ff;
  border-radius: 50%;
  left: -80px;
  top: -80px;
}

.counter_section .counter-bg::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: #f0f8ff;
  border-radius: 50%;
  right: -60px;
  bottom: -70px;
}

.counter_section .counter-bg .rowwidth {
  width: 100%;
  position: relative;
  z-index: 2;
}

.counter_section .counter-bg .counter-box {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  position: relative;
}

.counter_section .counter-bg .bd-right {
  border-right: 1px solid #d8eaf8;
}

.counter_section .counter-bg .counter-box .number {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  text-align: center;
  color: #1c3f68;
  margin: 0 0 10px;
  letter-spacing: -1px;
}

.counter_section .counter-bg .counter-box .text {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: #66819b;
  margin: 0;
  text-align: center;
}

.counter_section .counter-bg .counter-box {
  transition: 0.3s ease;
}

@media (max-width: 991.98px) {
  .counter_section {
    padding: 40px 0;
  }

  .counter_section .counter-bg {
    min-height: auto;
    padding: 20px 10px;
    border-radius: 20px;
  }

  .counter_section .counter-bg .counter-box {
    min-height: 100px;
  }

  .counter_section .counter-bg .counter-box .number {
    font-size: 36px;
  }

  .counter_section .counter-bg .counter-box .text {
    font-size: 15px;
  }

  .counter_section .counter-bg .bd-right {
    border-right: 1px solid #d8eaf8;
  }
}

@media (max-width: 767.98px) {
  .counter_section {
    padding: 30px 0;
  }

  .counter_section .counter-bg {
    padding: 0;
    border-radius: 12px;
  }

  .counter_section .counter-bg .counter-box {
    min-height: 85px;
    padding: 10px 5px;
  }

  .counter_section .counter-bg .counter-box .number {
    font-size: 26px;
    margin-bottom: 6px;
    letter-spacing: 0;
  }

  .counter_section .counter-bg .counter-box .text {
    font-size: 12px;
    line-height: 1.3;
  }

  .counter_section .counter-bg .bd-right {
    border-right: none;
  }
  .counter_section .counter-bg .col-6:nth-child(-n + 2) {
    border-bottom: 1px solid #e5f1fb;
  }

  .counter_section .counter-bg .col-6:nth-child(odd) {
    border-right: 1px solid #e5f1fb;
  }

  .counter_section .counter-bg .counter-box::after {
    display: none;
  }

  .counter_section .counter-bg .counter-box:hover {
    transform: none;
  }
}

@media (max-width: 400px) {
  .counter_section .counter-bg .counter-box .number {
    font-size: 23px;
  }

  .counter_section .counter-bg .counter-box .text {
    font-size: 11px;
  }
}
