.counter_section {
    margin: 3% 0% 5% 0%;
}

.counter_section .counter-bg {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 5px;
  /* Ensures the pseudo-element stays inside the container boundaries */
}

.counter_section .counter-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/assets/images/about_us/counter/bg2.avif");
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  opacity: 0.3;
  /* Adjust this value (0.1 to 0.9) to make it lighter or darker */
  z-index: 1;
  border-radius: 5px;
}

/* Ensure content stays above the semi-transparent background */
.counter_section .counter-bg>* {
  position: relative;
  z-index: 2;
}

.counter_section .counter-bg .counter-box {
  /* padding-left: 50px; */
}

.counter_section .counter-bg .counter-box .number {
    font-weight: 700;
    font-size: 47px;
    text-align: left;
    color: #820802;
    text-align: center;
}

.counter_section .counter-bg .rowwidth {
  width: 100%;
}

.counter_section .counter-bg .counter-box .text {
    font-weight: normal;
    font-size: 20px;
    line-height: 24px;
    color: #000;
    margin-bottom: 0px;
    font-weight: 600;
    text-align: center;
}

.counter_section .counter-bg .bd-right {
  /* border-right: 2px solid #ea2031; */
}

@media (min-width: 0px) and (max-width: 767.98px) {
  .counter_section .counter-bg {
    height: auto;
  }

  .counter_section .counter-bg .counter-box .number {
    font-size: 32px;
  }

  .counter_section .counter-bg .counter-box .text {
    font-size: 15px;
  }

  .counter_section .counter-bg .counter-box {
    padding-left: 20px;
  }

  .counter_section .counter-bg .bd-right {
    border-right: 0px solid #ef6100;
  }

  .counter_section .counter-bg .rowwidth {
    margin: 10px 0;
  }

  .counter_section .counter-bg .counter-box .number {
    font-size: 24px;
    margin-bottom: 4px;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .counter_section .counter-bg {
    height: auto;
  }

  .counter_section .counter-bg .rowwidth {
    margin: 10px 0;
  }

  .counter_section .counter-bg .counter-box .number {
    font-size: 40px;
  }

  .counter_section .counter-bg .counter-box .text {
    font-size: 17px;
  }

  .counter_section .counter-bg .bd-right {
    border-right: 0px solid #ef6100;
  }
}

@media (min-width: 991px) and (max-width: 1200px) {
  .counter_section .counter-bg .counter-box .number {
    font-size: 40px;
  }

  .counter_section .counter-bg .counter-box .text {
    font-size: 18px;
  }
}