/* our other service styles */

.img-container {
  width: 80%;
  border: 1px solid black;
  border-radius: 20px;
  overflow: hidden;
}

.our_service_img {
  width: 100%;
  transition: transform 0.3s ease;
}

.our_service_img:hover {
  transform: scale(1.1);
}

/* service section and service cards */
.service_layout {
  width: 85%;
}

.service-section-right {
  background: #f5e8dd;
  background-size: cover;
  border-right: none;
  width: 100%;
}

.service-item {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0px;
}

.service-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.service-item:hover img {
  transform: scale(1.5);
}

.service-item .overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 20px;
  height: 100%;
  background: rgba(0, 0, 0, 0)
    linear-gradient(0deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%) repeat
    scroll 0 0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: top 0.6s;
}

.service-item:hover .overlay {
  top: 0;
}

.service-item .title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  transition: opacity 0.5s;
}

.service-item:hover .title {
  opacity: 0;
}

.overlay h5,
.overlay h4,
.overlay h6 {
  margin-bottom: 10px;
  color: #fff;
}

.overlay p {
  font-size: small;
}

.overlay hr {
  border: 0;
  border-top: 1px solid #fff;
  margin: 10px 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 1000px) {
  .service-section-left,
  .service-section-right,
  .service_layout {
    border-radius: 0px;
    width: 100%;
  }

  .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px !important;
  }

  .service-item {
    margin-bottom: 20px !important;
  }

  .service-item {
    margin-bottom: 20px !important;
  }
}

@media (max-width: 576px) {
  .service-section-left,
  .service-section-right {
    border-radius: 0px;
    width: 100%;
  }

  .overlay p {
    font-size: smaller;
  }

  .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px !important;
  }

  .overlay {
    padding: 10px;
  }
}
