/* Service Boxes CSS */
.brxy-service-boxes {
  margin-bottom: 30px;
}

.brxy-service-boxes .row {
  margin-left: -15px;
  margin-right: -15px;
}

.brxy-service-boxes [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px; /* Equal bottom margin for multi-row layouts */
}

/* Card service style */
.brxy-service-boxes .service-1 {
  position: relative;
  display: flex;
  flex-direction: column;
  /* No default height - will be set by inline styles */
  box-shadow: 0 21px 29px rgba(0, 0, 0, 0.06);
  overflow: hidden; /* Ensures the scaled image doesn't overflow */
}

.brxy-service-boxes .service-1--has-image:hover .service-1__thumb {
  opacity: 1;
  transform: scale(1.2, 1.2);
}

.brxy-service-boxes .service-1--has-image:hover .service-1__read-more,
.brxy-service-boxes .service-1--has-image:hover .service-1__text,
.brxy-service-boxes .service-1--has-image:hover .service-1__title {
  color: #fff;
}

.brxy-service-boxes .service-1__thumb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: 0.3s cubic-bezier(0.43, 0.07, 0.61, 0.95);
  z-index: 1;
}

.brxy-service-boxes .service-1__url {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden; /* Ensures the scaled image doesn't overflow */
  height: 100%;
  width: 100%;
}

.brxy-service-boxes .card {
  display: flex;
  flex-direction: column;
  border: none; /* Remove borders */
  border-radius: 0; /* Remove border radius */
  height: 100%;
}

.brxy-service-boxes .service-1 .service-1__read-more,
.brxy-service-boxes .service-1 .service-1__text,
.brxy-service-boxes .service-1 .service-1__title {
  transition: color 0.3s cubic-bezier(0.43, 0.07, 0.61, 0.95);
}

.brxy-service-boxes .service-1__info {
  position: relative;
  padding: 60px 50px 30px;
  flex-grow: 1;
  z-index: 2;
}

.brxy-service-boxes .service-1__title {
  font-size: 21px;
  color: #333;
  margin-top: 0;
}

.brxy-service-boxes .service-1__text {
  color: #868686;
  margin-bottom: 0;
}

.brxy-service-boxes .service-1__footer {
  position: relative;
  padding: 30px 50px 60px;
  z-index: 2;
}

.brxy-service-boxes .service-1__read-more {
  display: block;
  color: #333;
}

.brxy-service-boxes .read-more {
  display: flex;
  align-items: center;
}

.brxy-service-boxes .read-more__text {
  display: inline-block;
}

.brxy-service-boxes .read-more__icon {
  margin-left: 8px;
  transition: transform 0.3s ease;
  display: inline-block;
  font-style: normal;
}

.brxy-service-boxes .service-1:hover .read-more__icon {
  transform: translateX(5px);
}

.brxy-service-boxes .bg-dark-overlay--50:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: background-color 0.3s ease;
}

/* Media Queries */
@media only screen and (max-width: 767px) {
  .brxy-service-boxes .service-1__info {
    padding: 30px 20px 15px;
  }

  .brxy-service-boxes .service-1__footer {
    padding: 15px 20px 30px;
  }
}

@media only screen and (max-width: 480px) {
  .brxy-service-boxes [class*="col-"] {
    width: 100%;
  }
}
