.service-item {
    display: inline-flex; /* Enable flexbox */
  flex-direction: column; /* Stack items vertically */
  justify-content: center; /* Center items vertically */
  align-items: center; /* Center items horizontally */
  text-align: center; /* Center-align text */

  width: 49%;
  height: 190px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 5px 5px;
  text-align: center;
  /* Add a transition effect */
  transition: background-color 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow */
  cursor: pointer;
}

.section-title {
  text-align: center;
  margin-top:30px!important;
  margin-bottom: 30px!important;
  margin:0 auto;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: bold;
  color: #282828;
}


.service-item img {
  max-width: 100%; /* Ensure the image doesn't exceed container width */
  margin-bottom: 10px; /* Add spacing between image and h3 */
  object-fit: contain; /* Ensure the image scales proportionally */
}

.service-item:nth-child(1) {
  background-color: #722DAE; /* Example color */
}

.service-item:nth-child(2) {
  background-color: #A415A8; /* Example color */
}

.service-item:nth-child(3) {
  background-color: #4C1E96; /* Example color */
}

.service-item:nth-child(4) {
  background-color: #3526C6; /* Example color */
}

.service-item:hover {
  background-color: #13ACB7; /* Change to any color you like */
}

.modal-backdrop.show {
    display: none;
}

.service-item p {
    color:#000;
    font-size: 1.1rem;
}

.service-item .modal.fade.show {

}

.service-item.additionalfix {
  width:99%;
}


@media (max-width: 1399px) {
  .service-item.additionalfix {
      width:97.2%;
  }
}

@media (max-width: 1199px) {
  .service-item.additionalfix {
      width:97.5%;
  }
}

@media (max-width: 780px) {
  .service-item.additionalfix {
      width:98%;
  }
}

@media (max-width: 610px) {
  .service-item.additionalfix {
      width:96.3%;
  }
}

@media (max-width: 1399px) {
  .service-item {
    width: 48%;
  }
}
@media (max-width: 618px) {
    .service-item {
      width: 47%;
    }
  }
  @media (max-width: 580px) {
    .service-item {
      width: 95%;
      justify-content: center;
    }

    .service-item p {
        text-align: left!important;
        font-size: 1rem;
    }
  }