.nahleh-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 1.6rem;
}

.nahleh-category {
  position: relative;
  display: block;
  min-height: 22rem;
  border-radius: var(--nh-radius-xl);
  padding: 2.6rem 2.8rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.nahleh-category__body {
  position: relative;
  z-index: 1;
  max-width: 75%;
  text-align: start;
}

.nahleh-category__heading {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 0.8rem;
  color: var(--nh-charcoal);
}

.nahleh-category__subtext {
  margin: 0 0 1.4rem;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--nh-body);
  line-height: 1.6;
}

.nahleh-category__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: rgb(var(--color-button));
}

.nahleh-category__icon {
  position: absolute;
  bottom: 2.4rem;
  inset-inline-end: 2.8rem;
  width: 8.4rem;
  height: 9.7rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgb(var(--color-button));
  display: flex;
  align-items: center;
  justify-content: center;
}

.nahleh-category__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 749px) {
  .nahleh-category {
    min-height: 19rem;
    padding: 2.2rem 2.2rem;
  }

  .nahleh-category__icon {
    width: 6.8rem;
    height: 7.9rem;
    bottom: 2rem;
  }

  .nahleh-category__body {
    max-width: 68%;
  }
}
