.services {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  width: 100%;
  margin-left: auto;margin-right: auto;
  border-top: 4px solid var(--dp);
  border-bottom: 4px solid var(--dp);
  background-color: var(--p);

  h2 {
    text-align: center;
  }

  .subtext {
    text-align: center;
    padding-bottom: 1rem;
  }

  .box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;

    .card {
      width: 90%;
      border: 1px solid var(--dp);
      background-color: var(--l);
      padding: 0.5rem;
      border-radius: 20px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      .img-box {
        width: 70px;
        height: 70px;

        img {
          object-fit: contain;
          width: 100%;
          height: 100%;
        }
      }

      h3 {
        padding: 5px 0;
      }

      p {
        text-align: center;
        width: 90%;
      }

      a {
        color: var(--dp);
        font-weight: bold;
        padding-top: 10px;
      }
    }
  }
}

@media (min-width: 768px) {
  .services {

    .box {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;

      .card {
        width: 200px;
        border: 1px solid var(--dp);
        padding: 0.5rem;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        .img-box {
          width: 70px;
          height: 70px;
        }

        h3 {
          padding: 5px 0;
        }

        p {
          text-align: center;
          width: 90%;
        }

        a {
          color: var(--dp);
          font-weight: bold;
          padding-top: 10px;
        }
      }
    }
  }
}
