.service {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 2px solid var(--box-outline);
  box-shadow: 6px 6px 0 var(--box-outline);
  background: var(--accent-fg);
  border-radius: var(--curve-sm);
  position: relative;
  overflow: hidden;

  .service-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    h4 {
      margin: 0;
      font-size: 1.4rem;
      color: var(--foreground);
    }
    p {
      margin: 0;
      font-size: 1rem;
      opacity: 0.7;
    }
    a {
      text-decoration: none;
    }
    h4 {
      text-decoration: none;
      position: relative;
      &:after {    
        background: none repeat scroll 0 0 transparent;
        bottom: 0;
        content: "";
        display: block;
        height: 3px;
        left: 50%;
        position: absolute;
        background: var(--accent-3);
        transition: width 0.2s ease 0s, left 0.2s ease 0s;
        width: 0;
      }
      &:hover:after { 
        width: 100%; 
        left: 0; 
      }
    }
  }

  .save-listing {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
  }

  .service-body {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    img {
      border-radius: var(--curve-sm);
      font-size: 0.6rem;
      color: var(--accent);
    }
    :global(p) {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;  
      overflow: hidden;
      margin: 0.5rem 0;
      width: calc(100% - 2rem);
      overflow-x: hidden;
    }
  }

  .service-links {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    a {
      color: var(--accent-3);
      font-size: 0.8rem;
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      opacity: 0.85;
      text-decoration: none;
      max-width: 50%;
      min-width: 25%;
      &:not(:last-child) {
        margin-right: 0.5rem;
      }
      &:hover {
        text-decoration: underline;
        opacity: 1;
      }
      :global(svg) {
        width: 1rem;
        height: 1rem;
      }
      span {
        max-width: calc(100% - 1rem);
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
      }
    }
  }
}
