.head {
  display: flex;
  justify-content: center;
}

h1 {
  width: fit-content;
  text-align: center;
  font-size: 2.1rem;
  font-weight: 700;
  color: #79a148;
  position: relative;
}

.line {
  background-color: #79a148;
  height: 3px;
  width: 277px;
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translate(50%, 50%);
  margin-top: 0.5rem;
}

.row {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}

.card {
  width: calc((100% - 2rem) / 3);
  height: 300px;
  border-radius: 7px 7px 0px 0px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  gap: 2rem;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  left: 0;
  bottom: -100%;
  background: #79a148;
  transition: .4s;
}
.card:hover .card-info {
  bottom: 0;
}
.card-info a {
  width: fit-content;
  padding: 0.3rem 0.7rem;
  font-size: 1rem;
  color: #79a148;
  background-color: #fff;
  border: none;
  cursor: pointer;
}

.card-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
}

.card-info p {
  font-size: 13px;
  font-weight: 300;
  color: #fff;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 0.5rem;
}

.card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .card {
    width: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 600px) {
  .card {
    width: 100%;
  }
}
