.heading {
  margin: 3.8rem 0;
  text-align: center;
}

.heading img {
  height: auto;
  width: 100%;
  max-width: 643px;
}

section {
  padding: 3.5rem;
  margin-bottom: 3.5rem;
  background-color: rgb(25, 50, 84);
}

.headh2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  color: white;
  margin-bottom: 4rem;
  letter-spacing: 1px;
}

.card1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  justify-items: center;
}

.box1 {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
  box-shadow: rgba(9, 36, 133, 0.11) 0px 6px 20px -6px;
  border-radius: 20px;
  border: 2px solid white;
}

.img {
  width: 100%;
  height: 50%;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.desc {
  width: 100%;
  height: 50%;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
  padding-top: 1.6rem;
}

.img img {
  width: 100%;
}

.box1:hover {
  transform: scale(1.03);
  transition-duration: 150ms;
}

.card1 .box1 ul li {
  list-style: none;
}

.resource {
  font-size: 1.2rem;
  height: 4.5rem;
  font-weight: 500;
  line-height: 1.6rem;
}

.publisher {
  height: 3.5rem;
  font-size: 1.1rem;
}

.desc a {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  font-size: 15px;
  border: 2px solid rgb(18, 38, 64);
  transition: all 0.3s;
  color: white;
  border-radius: 5px;
  letter-spacing: 0.5px;
  background-color: rgb(18, 38, 64);
}

.desc a:hover {
  background-color: white;
  color: black;
}

#dynamic-contribution {
  padding-bottom: 20px;
}

@media (max-width: 950px) {
  .heading img {
    width: 90%;
    height: auto;
  }
}

@media (max-width: 768px) {
  section {
    padding: 0 1rem;
  }

  .card1 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 450px) {
  .card1 {
    grid-template-columns: 1fr;
  }

  .heading img {
    width: 90%;
    height: auto;
  }

  .headh2 {
    font-size: 1.2rem;
  }

  .box1 {
    min-height: 10rem;
    padding: 15px;
  }

  .box1 li {
    margin: 2px;
  }

  .resource {
    font-size: 0.9rem;
  }
}