.services {
  padding: 2rem 0;
  background: linear-gradient(125deg, #0D3544 0%, #0c5769 50%, #0D3544 100%);
  color: var(--l);

  h2 {
    font-size: 200%;
    text-align: center;
    padding-bottom: 1rem;
  }

  .subheading {
    text-align: center;
  }

  .content {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;

    .card {
      width: 70%;
      height: 350px;
      background-color: rgba(0, 0, 0, 0.548);
      backdrop-filter: blur(20px);
      border-top: 1px solid rgba(255, 255, 255, 0.534);
      border-left: 1px solid rgba(255, 255, 255, 0.534);

      padding: 0.5rem;
      border-radius: 10px;
      display: flex;
      align-items: center;
      flex-direction: column;
      transition: all 0.1s ease-in;
      position: relative;

      &:hover {
        translate: 0 -5px;
      }

      img {
        width: 100%;
        height: 120px;
        padding: 1rem;
        object-fit: contain;
        object-position: center;
      }

      p {
        padding: 0.5rem;
        color: var(--l);
        text-align: center;
      }

      a {
        display: block;
        width: fit-content;
        padding: 0.5rem 1rem;
        background-image: var(--y);
        color: var(--d);
        font-weight: 700;
        transition: all 0.1s ease-out;
        margin-left: auto;
        margin-right: auto;
        position: absolute;
        bottom: 1rem;
        
        &:hover {
          border-bottom: 5px solid var(--l);
          translate: 0 -5px;
        }
      }
    }
  }

  .cta {
    display: block;
    width: fit-content;
    padding: 0.5rem 1rem;
    background-image: var(--y);
    color: var(--d);
    font-weight: 700;
    transition: all 0.1s ease-out;
    margin-left: auto;
    margin-right: auto;
        
    &:hover {
      border-bottom: 5px solid var(--b);
      translate: 0 -5px;
    }
  }
}

@media (min-width: 768px) {
  .services {
    padding-bottom: 4rem;

    .subheading {
      width: 70%;
      font-size: 130%;
      margin-left: auto;
      margin-right: auto;

    }

    .content {
      display: flex;
      justify-content: space-evenly;
      flex-direction: row;
      
      .card {
        width: 20%;
        

      }
    }
  }
}