/* Service-card icons: Tabler Icons (MIT); see icons/LICENSE.txt. */
#yh-landing .yh-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

#yh-landing .yh-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 320px;
  overflow: hidden;
  padding: 37px 34px 36px;
  border: 1px solid #e1e9f4;
  border-radius: 13px;
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

#yh-landing .yh-service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: #13ccbf;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

#yh-landing .yh-service-card .yh-service-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 70px;
  height: 70px;
  margin-bottom: 24px;
  border-radius: 13px;
  background: #e9faf7;
  color: #08bdb4;
  font-size: 0;
  line-height: 0;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

#yh-landing .yh-service-icon > span {
  display: none;
}

#yh-landing .yh-service-icon::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  background: currentColor;
  -webkit-mask: var(--yh-service-icon) center / contain no-repeat;
  mask: var(--yh-service-icon) center / contain no-repeat;
}

#yh-landing .yh-service-icon-flask { --yh-service-icon: url(icons/flask.svg); }
#yh-landing .yh-service-icon-leaf { --yh-service-icon: url(icons/leaf.svg); }
#yh-landing .yh-service-icon-atom { --yh-service-icon: url(icons/atom.svg); }
#yh-landing .yh-service-icon-cube { --yh-service-icon: url(icons/cube.svg); }

#yh-landing .yh-service-card .yh-service-title {
  margin-bottom: 12px;
  color: #0b1e45;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

#yh-landing .yh-service-card .yh-service-description {
  margin-bottom: 25px;
  color: #5c7095;
  font-size: 15.5px;
  line-height: 1.8;
}

#yh-landing .yh-service-card .yh-service-actions {
  margin-top: auto;
}

#yh-landing .yh-service-link .wp-block-button__link {
  gap: 12px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #087e79;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  white-space: normal;
  box-shadow: none;
  transform: none;
  transition: color .25s ease;
}

#yh-landing .yh-service-arrow {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  transition: transform .3s ease;
}

#yh-landing .yh-service-link .wp-block-button__link:hover {
  color: #05635f;
  background: transparent;
  box-shadow: none;
  transform: none;
}

#yh-landing .yh-service-card:focus-within {
  border-color: #cfebe7;
  box-shadow: 0 20px 40px -20px rgba(11, 30, 69, .28);
  transform: translateY(-8px);
}

#yh-landing .yh-service-card:focus-within::after {
  transform: scaleX(1);
}

#yh-landing .yh-service-card:focus-within .yh-service-icon {
  color: #fff;
  background: #13ccbf;
  transform: translateY(-2px) rotate(-4deg);
}

#yh-landing .yh-service-card:focus-within .yh-service-arrow {
  transform: translateX(5px);
}

@media (hover: hover) and (pointer: fine) {
  #yh-landing .yh-service-card:hover {
    border-color: #cfebe7;
    box-shadow: 0 20px 40px -20px rgba(11, 30, 69, .28);
    transform: translateY(-8px);
  }

  #yh-landing .yh-service-card:hover::after {
    transform: scaleX(1);
  }

  #yh-landing .yh-service-card:hover .yh-service-icon {
    color: #fff;
    background: #13ccbf;
    transform: translateY(-2px) rotate(-4deg);
  }

  #yh-landing .yh-service-card:hover .yh-service-arrow {
    transform: translateX(5px);
  }
}

@media (max-width: 680px) {
  #yh-landing .yh-service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  #yh-landing .yh-service-card {
    min-height: 300px;
    padding: 30px 26px;
  }

  #yh-landing .yh-service-card .yh-service-title {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #yh-landing .yh-service-card,
  #yh-landing .yh-service-card::after,
  #yh-landing .yh-service-card .yh-service-icon,
  #yh-landing .yh-service-arrow {
    transition: none;
  }

  #yh-landing .yh-service-card:hover,
  #yh-landing .yh-service-card:focus-within,
  #yh-landing .yh-service-card:hover .yh-service-icon,
  #yh-landing .yh-service-card:focus-within .yh-service-icon,
  #yh-landing .yh-service-card:hover .yh-service-arrow,
  #yh-landing .yh-service-card:focus-within .yh-service-arrow {
    transform: none;
  }
}
