[data-component-id="tec_prepa:article_card_grid_home"] {
  border-radius: 20px;
  overflow: hidden;
  background-color: #ffffff;

  .card-wrapper {
    .media--type-image {
      height: 192px;
      background-color: #212121;
      width: 100%;

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

    .minutes {
      position: absolute;
      top: 0;
      right: 0;
      border-radius: 0 2px 0 0;
      background: var(--Base-Verde-Claro, #cfe253);
      overflow: hidden;
      color: var(--Base-Midnight, #030219);
      text-align: center;
      text-overflow: ellipsis;
      font-family: "DM Sans";
      font-size: 12px;
      font-style: normal;
      font-weight: 700;
      line-height: 18px;
      text-transform: uppercase;
      padding: 8px;
    }
  }

  .card-content {
    padding: 16px;
    height: 100%;
    background: #ffffff;

    .contains-content {
      display: flex;
      flex-direction: column;
      gap: 16px;
      height: 100%;

      .category {
        align-items: flex-start;
        border-bottom: 2px solid #122cde;
        flex-wrap: wrap;
        gap: 4px;

        .categoria {
          color: var(--Base-Midnight, #030219);
          font-family: "DM Sans";
          font-size: 12px;
          font-style: normal;
          font-weight: 900;
          line-height: 18px;
        }
      }

      .title-link {
        color: #030219;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        align-self: stretch;
        overflow: hidden;
      }
    }
  }
}

@media screen and (min-width: 1280px) {
  [data-component-id="tec_prepa:article_card_grid_home"] {
    .card-content {
      padding: 16px 32px 32px 32px;

      contains-content {
        .category {
          display: flex;
          align-items: center;
          flex-direction: row;

          .details-divider {
            display: block;

            + .article-details {
              margin-top: 0;
            }
          }
        }
      }
    }
  }
}
