/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== CARD ===============*/
.card_slider {
  max-width: 100%;
  background-color: black;
  padding-bottom: 30px;
}
.container {
  display: grid;
  place-items: center;
  margin-inline: 1.5rem;
  padding-block: 2rem;
}

.card__container {
  display: grid;
  row-gap: 3.5rem;
}

.card__article {
  position: relative;
}

.card__img {
  width: 328px;
  border-radius: 1.5rem;
}

.card__data {
  width: 65%;
  max-width: 65%;
  background-color: black;
  padding: 10px 5px;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.15);
  border-radius: 1rem;
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 1;
  transition: opacity 1s 1s;
  text-align: center;
}

.card__description {
  display: block;
  font-size: 12px;
  margin-bottom: 0.25rem;
  color: #fff;
}

.card__title {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.75rem;
}

.card__button {
  background: transparent;
  color: #14ff72cb;
  border: 2px solid #fff;
  transition: 0.3s;
  padding: 5px;
  text-decoration: none;
}

.card__button:hover {
  background-color: #14ff72cb;
  color: #fff;
  border-color: #14ff72cb;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .card__data {
    width: 250px;
    padding: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 768px) {
  .card__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1120px) {
  .card__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .card__img {
    width: 348px;
  }
  .card__data {
    width: 316px;
  }
}
