section {
    background: #fefefe;
}

.box-front.height-300px {
  height: 150px;
  width: 150px;
}

.box-back.height-300px {
  height: 150px;
  width: 150px;
}

.service-box-style-01 .content-wrap.industry-page {
  position: absolute;
  width: 100%;
  display: block;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-perspective: inherit;
  perspective: inherit;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  padding: 0px 0px;
  z-index: 2;
  top: 50%;
  left: 0;
  -webkit-transform: translate3d(0, -50%, 50px) scale(0.9);
  transform: translate3d(0, -50%, 50px) scale(0.9);
}

.service-box-style-01 .main-box .box-front.industry,
.service-box-style-01 .main-box .box-back.industry {
  border-radius: 50%;
  text-align: center;
  background-size: cover;
  z-index: 1;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: inherit;
  perspective: inherit;
  -webkit-transition: -webkit-transform 0.8s cubic-bezier(0.5, 0.2, 0.2, 0.8);
  transition: -webkit-transform 0.8s cubic-bezier(0.5, 0.2, 0.2, 0.8);
  transition: transform 0.8s cubic-bezier(0.5, 0.2, 0.2, 0.8);
  transition: transform 0.8s cubic-bezier(0.5, 0.2, 0.2, 0.8),
    -webkit-transform 0.8s cubic-bezier(0.5, 0.2, 0.2, 0.8);
}

/* Ensure all blocks have the same height */
.service-box-style-01 .main-box {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-wrap.industry-page h3 {
  font-size: 18px;
}

/* Custom mobile view for three blocks in a row */
@media (max-width: 767px) {
  .service-box-style-01 .col-xs-4 {
    width: 33.33%;
    /* 3 items per row */
    padding: 10px;
    /* Space between blocks */
  }

  .service-box-style-01 .col-xs-12 {
    width: 100%;
    /* Ensure full width on smaller screens */
  }

  .flipper {
    height: 100%;
  }

  /* Additional custom styles for better mobile view */
  .box-front,
  .box-back {
        height: 150px !important;
        width: 150px !important;
  }

  .box-front.height-300px {
    height: 125px;
    width: 125px;
  }

  .content-wrap.industry-page h3 {
    font-size: 14px !important;
    font-weight: 500 !important;
  }
}

.custom-box {
  background-color: #0389a8;
  padding: 0px;
  border-radius: 50px;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 265px;
  box-shadow: 0px 4px 8px rgb(0 0 0 / 50%);
  margin-bottom: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-box:hover {
  transform: scale(1.05);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
  background-color: hsla(260 97% 61% / 0.75);
  background-image: linear-gradient(90deg, #01677c, #054dc1);
}

.custom-icon {
  margin: 10px;
  color: white;
}

.custom-heading {
  font-size: 18px;
  color: white;
  margin: 0;
}

i#icons_size {
  font-size: 20px;
}

.post-img.image-industry {
  border-radius: 15px;
}

@media (max-width: 767px) {
  .widget-btns .row.custom-background {
    display: flex;
    flex-wrap: wrap;
  }

  .widget-btns .col-6 {
    width: 48%;
    margin-bottom: 10px;
  }

  .custom-icon {
    font-size: 24px;
  }

  .custom-heading {
    font-size: 13px;
  }

  i#icons_size {
    font-size: 15px;
  }

  .custom-box {
    max-width: 100%;
  }
  .row.custom-background {
    justify-content: center;
  }
}

.double-gradient-background {
  background: linear-gradient(159deg, #007793, #05c1ed, #1f4378);
  padding: 50px 0;
  color: white;
  z-index: 100;
}

.widget-btns .section-heading h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: capitalize;
  color: #ffffff;
  text-align: center;
}
