/* Container principal */
.materiais {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffff;
  width: 100%;
  min-height: calc(100vh - 200px);
  position: relative;
  z-index: 1;
}

/* Lista de cards */
.materiais-cards__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  padding: 90px 2rem 0;
}

/* Item da lista */
.cards__list {
  width: calc(50% - 1rem);
  min-width: 300px;
  max-width: 450px;
  margin-bottom: 2rem;
}

/* Card individual */
.materiais-cards__list--card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f2f2f2;
  width: 100%;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
}

/* Container da imagem */
.card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Imagem */

.card-title {
  margin-top: 10px;
  width: 100%;
}

.card-title__text {
  font-size: 1.9rem;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 5px;
}

.card-body {
  padding: 0 0.5rem 0.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body__text {
  text-align: justify;
  padding-top: 0;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .cards__list {
    width: 100%;
    flex-direction: column;
  }
}
