/* ---------- Category grid ---------- */

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;   /* pins the text to the bottom of the image */
    gap: 10px;
    padding: 18px;
    border-radius: var(--ms-radius);
    overflow: hidden;
    text-decoration: none;
    background-color: var(--ms-charcoal);   /* fallback shown while the image loads */
    background-size: cover;
    background-position: center;
    transition: transform var(--ms-transition);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center,
              var(--ms-accent-soft) 0%,
              transparent 70%);
  opacity: 0;
  transition: var(--ms-transition);
  pointer-events: none;
  z-index: -1;
}

.category-card:hover,
.category-card:focus-visible {
    /* NOTE: I personally detest these type of mouse over effects, but it seems
     *       that the world at large believes this is 'modern'. This apparently
     *       originates from 'Material Design' framework and has been hailed as
     *       being a normal visual cue derived from a deck of cards that a card
     *       has been 'lifted up'.  Balderdash but what do I know.
     */
    transform: translateY(-3px);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card > img {
    width: 48px;
}

.card-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
}

.card-description {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
}


