/* Full-bleed artwork treatment for the service cards. */
.category-card {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 57% 43%;
}

.category-no {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  padding: 6px 9px;
  line-height: 1;
  background: var(--cream);
  border-radius: 999px;
}

.category-art {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.category-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12), transparent 42%, rgba(0, 0, 0, .22));
}

.category-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  mix-blend-mode: normal;
  transition: transform .55s cubic-bezier(.2, .75, .25, 1);
}

.category-card:hover .category-art img { transform: scale(1.07); }

.category-card > div:last-child {
  grid-row: 2;
  grid-column: 1;
  width: 100%;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.category-card p { line-height: 1.35; }
.category-card a { margin-top: auto; }

[dir="rtl"] .category-no { left: auto; right: 20px; }

@media (max-width: 800px) {
  .category-card { height: 410px; grid-template-rows: 55% 45%; }
  .category-card > div:last-child { padding: 18px; }
}
