.elementor-7 .elementor-element.elementor-element-0a753ac{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}:root{--page-title-display:none;}@media(min-width:768px){.elementor-7 .elementor-element.elementor-element-0a753ac{--content-width:1920px;}}/* Start custom CSS for container, class: .elementor-element-0a753ac */.services-section {
  display: flex;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  flex-wrap: nowrap;
}

.service {
  flex: 1;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: flex 0.6s ease;
  cursor: pointer;
  overflow: hidden;
  min-width: 0;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: background 0.4s ease;
}

.service:hover {
  flex: 3;
}

.service:hover::before {
  background: rgba(0, 0, 0, 0.6);
}

/* Overlay (text container) */
.overlays {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 40px 20px;
  transition: all 0.6s ease;
}

.overlays h3 {
  font-size: 22px;
  margin: 0;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
  color:white;
}

.overlays p,
.overlays .btn {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.overlays .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  color: #fff;
  background: #0277E4;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.overlays .btn:hover {
  background: #033EA5;
}

.service:hover .overlays {
  justify-content: center;
}

.service:hover .overlays h3 {
  transform: translateY(-10px);
}

.service:hover .overlays p,
.service:hover .overlays .btn {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1336px) {
  .overlays h3 {
    font-size: 18px;
  }
}

@media (max-width: 1024px) {
  .services-section {
    flex-wrap: wrap;
    height: auto;
  }
  .service {
    flex: 1 1 50%;
    height: 300px;
  }
  .service:hover {
    flex: 1 1 50%; /* prevent full width hover */
  }
}

/* ✅ FIXED SECTION */
@media (max-width: 768px) {
  .services-section {
    flex-wrap: wrap;          /* allow wrapping */
    flex-direction: row;      /* ✅ fixed */
    height: 88vh;
  }
  .service {
    flex: 1 1 50%;            /* two per row */
    height: 250px;
  }
  .service:hover {
    flex: 1 1 50%;            /* same hover behavior */
  }
  
  .overlays .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 5px 15px;
  color: #fff;
  background: #0277E4;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease;
}
}/* End custom CSS */