/* BOXES */
.helping-housands-content .groups,
.resources-categories .groups {
  display: flex;
  justify-content: space-evenly;
  margin-top: 25px;
  min-height: 230px;
}

.helping-housands-content .groups div,
.resources-categories .groups div {
  text-align: center;
}

.helping-housands-content .groups div img,
.resources-categories .groups div img {
  height: 100px;
  max-width: 100px;
  margin-top: 30px;
}

.helping-housands-content .groups div p,
.resources-categories .groups div p {
  color: #272367;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 0.16px;
  line-height: 38px;
}

/* CARDS */
.grid-cards {
  margin-top: 100px;
  margin-left: auto;
  margin-right: auto;
  max-width: 90vw;
  display: grid;
  /*grid-template-columns: repeat(3, 1fr);*/
  grid-template-columns: repeat(3, 324px);
  justify-content: space-between;
}

.grid-cards .card {
  height: 595px;
  max-width: 100%;
  width: 320px;
  margin-left: 5px;
  margin-right: 5px;
  margin-bottom: 40px;
  border-radius: 10px;
}

.grid-cards .card:first-child {
  margin-left: 0px;
}

.grid-cards .card:last-child {
  margin-right: 0px;
}

.grid-cards img {
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 245px;
  object-fit: cover;
}

.grid-cards .card .text-content {
  padding-left: 35px;
  padding-right: 35px;
  margin-top: 25px;
  height: 287px;
  display: flex;
  flex-direction: column;
}

.grid-cards .card h1 {
  color: #272367;
  font-weight: bold;
  font-size: 22px;
  line-height: 30px;
  text-align: left;
  margin-top: 0px;
}
.grid-cards .card h2 {
  height: 28px;
  width: 242.25px;
  color: #272367;
  font-family: 'Geomanist Bold';
  font-size: 14px;
  letter-spacing: 0.14px;
  line-height: 20px;
  margin-bottom: 0px;
}

.grid-cards .card .text-content p {
  overflow: hidden;
  word-wrap: break-word;
  -webkit-mask-image: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(rgba(0, 0, 0, 1)),
    to(rgba(0, 0, 0, 0))
  );
  mask-image: gradient(
    linear,
    left top,
    left bottom,
    from(rgba(0, 0, 0, 1)),
    to(rgba(0, 0, 0, 0))
  );
}

.grid-cards .card .card-bottom {
  height: 40px !important;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 2;
  color: white;
  display: flex;
  /* flex-direction: column; */
  justify-content: space-between;
  padding-left: 20px;
  padding-right: 20px;
}

.grid-cards .card .card-bottom span {
  line-height: 40px;
  font-size: 14px;
  letter-spacing: 0.15px;
  font-weight: bold;
}

.grid-cards .card .card-bottom img {
  width: 34px;
  height: 34px;
  object-fit: scale-down;
}
.lp-box {
  margin: 30px auto 80px;
  border-radius: 6px;
}
.lp-box .blocks .blue {
  border-top-left-radius: 6px;
}
.lp-box .blocks .orange {
  border-top-right-radius: 6px;
}

@media only screen and (max-width: 1000px) {
  .helping-housands-box .helping-housands-content .groups,
  .resources-categories .groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
  }

  .helping-housands-box .helping-housands-content .groups div,
  .resources-categories .groups div {
    justify-self: center;
  }

  .helping-housands-box .helping-housands-content .groups div p,
  .resources-categories .groups div p {
    line-height: 20px;
  }

  .grid-cards {
    margin-top: 100px;
    margin-left: auto;
    margin-right: auto;
    max-width: 90vw;
    display: grid;
    grid-template-columns: repeat(2, 324px);
    justify-content: space-between;
  }

  @media only screen and (max-width: 800px) {
    .grid-cards {
      display: flex;
      flex-direction: column;
    }

    .grid-cards .card {
      height: 100%;
      background-color: #fff;
      margin-left: auto !important;
      margin-right: auto !important;
      max-width: 90vw;
    }
    .lp-box {
      margin-top: 95px;
    }
    .remove-data-modal .sign-up-box {
      max-height: max-content;
    }
  }

  @media only screen and (max-width: 400px) {
    .resources-categories .groups {
      width: auto;
      column-gap: 8px;
    }

    .grid-cards {
      padding-left: 5px;
      padding-right: 5px;
    }
  }

  @media only screen and (max-width: 340px) {
    .resources-categories .groups {
      justify-content: center !important;
    }
  }
}
