.services-card-widget {
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0 auto 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  align-self: stretch;
}

.services-card-widget .services-card {
  flex: 1 1 33%;
  max-width: calc(33% - 30px);
  box-sizing: border-box;
  padding: 0;
  transition: all 0.4s ease-in-out;
  position: relative;
  overflow: hidden;
  background-color: #FFF;
  height: 188px;
  background-size: cover;
}

.services-card-widget .services-card img {
  width: 100%;
}

.services-overlay-hover {
  position: absolute;
  width: 894px;
  height: 809px;
  flex-shrink: 0;
  transform: rotate(-39.108deg) translate(0, -1000px);
  background: linear-gradient(180deg, rgba(103, 3, 3, 0.50) 79.33%, rgba(103, 3, 3, 0.00) 100%);
  backdrop-filter: blur(1.5px);
  z-index: 99;
  transition: transform 300ms ease-in-out, background 300ms ease-in-out;
  pointer-events: none;
}

.services-card:hover .services-overlay-hover {
  transform: rotate(-39.108deg) translate(0, -200px);
}

.services-card:hover .services-overlay-hover.services-overlay-hover-last {
  background: linear-gradient(180deg, rgba(129, 4, 4, 1) 79.33%, rgba(129, 4, 4, 0) 100%);
}

.services-overlay-grey {
  background: rgba(0, 0, 0, 0.20);
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  width: 100%;
  height: 100%;
}

.services-overlay-white {
  background: #FFF;
}

.services-overlay {
  display: flex;
  justify-content: end;
  align-items: start;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  padding: 15px 20px;
  opacity: 1;
  visibility: visible;
  position: absolute;
  z-index: 999;
  flex-direction: column;
}

.services-card-widget .services-overlay p {
  overflow: hidden;
  color: #FFF;
  text-overflow: ellipsis;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.51px;
  text-align: left;
  z-index: 999;
}

.service-learn-more {
  color: #FFF;
  font-size: 15.469px;
  font-style: normal;
  font-weight: 400;
  line-height: 13.125px;
  letter-spacing: 0.464px;
}

.services-card-widget a.services-card:hover {}

.services-card-widget .services-card h3 {
  margin-bottom: 12px;
  color: #FAFAFA;
  font-family: "Alata", sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
  /* 71.437% */
  letter-spacing: -1.015px;
}

.services-card-widget .services-card .services-overlay-last .service-learn-more,
.services-card-widget .services-card .services-overlay-last h3 {
  color: #212427;
  transition: color 300ms ease-in-out;
}

.services-card:hover .services-overlay-last .service-learn-more,
.services-card:hover .services-overlay-last h3 {
  color: #fff;
}

.services-card-widget .services-card p {
  overflow: hidden;
  color: #FFF;
  text-overflow: ellipsis;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  /* 164.706% */
  letter-spacing: 0.51px;
  text-align: left;
}

@media only screen and (max-width: 1200px) {
  .services-card-widget .services-card h3 {
    font-size: 24px;
  }
}

@media only screen and (max-width: 960px) {
  .services-card-widget .services-card {
    flex: 0 0 calc(50% - 15px); /* fix wrapping and spacing */
    max-width: calc(50% - 15px);
    min-width: unset;           /* in case min-width was set elsewhere */
    width: auto;                /* reset if needed */
  }

  .services-card-widget .services-card h3 {
    font-size: 32px;
  }
}


@media only screen and (max-width: 560px) {
  .services-card-widget .services-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
