@layer modules {
  .resource {
    display: flex;
    padding: 1.5rem;
    flex-direction: column;
    align-items: start;
    gap: .5rem;
    text-decoration: none;
    color: black;
    border-radius: .5rem;
    transition: .2s;
    .thumbnail {
      aspect-ratio: 12 / 5;
      width: 100%;
      overflow: hidden;
      border-radius: 0.5rem;
    }
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .3s;
    }
    .tag {
      padding: 0 .6rem;
      margin: .5rem 0 0;
      color: #656a75;
      background: #f0f1f5;
      font-size: .9em;
      line-height: 1.5;
      border-radius: 4px;
    }
    .header {
      margin: .5rem 0 0;
      font-size: 1.3em;
      font-weight: 600;
    }
    .description {
      margin: 0;
    }
    .learn-more {
      display: flex;
      align-items: center;
      gap: .5rem;
      margin-top: .5rem;
      font-weight: 600;
      opacity: .55;
      transition: gap .3s;
      svg { height: 1rem; }
    }
    &:hover {
      img { transform: scale(1.06); }
      .learn-more { gap: 1rem; }
    }
  }
}
