/* NSG Categories */

.nsg-categories {
  padding: 2rem 0 2.5rem;
  background: #fff;
}

.nsg-categories__heading {
  font-family: var(--nsg-font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.5rem;
  color: #111;
  letter-spacing: -0.01em;
}

.nsg-categories__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  max-width: 90%;
  margin: 0 auto;
}

.nsg-categories__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #111;
  padding: 0.5rem;
}

.nsg-categories__img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.nsg-categories__card:hover .nsg-categories__img {
  filter: grayscale(100%);
  opacity: 0.85;
}

.nsg-categories__title {
  display: block;
  font-family: var(--nsg-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: #111;
}

@media (max-width: 900px) {
  .nsg-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .nsg-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
