/* Home categories — mobile 2-up; desktop 3-up at previous card scale */
.mfx-home-categories {
  padding: 8px 0 12px;
}

.mfx-home-categories__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 28px;
  padding: 0 12px;
}

.mfx-home-categories__intro .h1-map {
  margin: 0 0 12px;
}

.mfx-home-categories__intro .podnaslov {
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: #6b6b6b;
}

.mfx-home-categories__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.mfx-home-cat {
  min-width: 0;
}

/* Додатоци only on desktop — mobile uses hamburger */
.mfx-home-cat--desktop-only {
  display: none;
}

.mfx-home-cat__media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f3f1f0;
  aspect-ratio: 1 / 1;
  line-height: 0;
}

.mfx-home-cat__media img,
.mfx-home-cat__media picture,
.mfx-home-cat__media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mfx-home-cat__media img,
.mfx-home-cat__media picture img {
  transition: transform 0.45s ease;
}

.mfx-home-cat__title {
  margin: 14px 0 6px;
  font-family: Montserrat, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  color: #174860;
}

.mfx-home-cat__title a {
  color: inherit;
  text-decoration: none;
}

.mfx-home-cat__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Montserrat, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #8a8a8a;
  text-decoration: none;
}

.mfx-home-cat__cta i {
  font-size: 0.7em;
  transition: transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .mfx-home-cat:hover .mfx-home-cat__media img,
  .mfx-home-cat:focus-within .mfx-home-cat__media img {
    transform: scale(1.03);
  }

  .mfx-home-cat:hover .mfx-home-cat__cta,
  .mfx-home-cat:focus-within .mfx-home-cat__cta {
    color: #174860;
  }

  .mfx-home-cat:hover .mfx-home-cat__cta i,
  .mfx-home-cat:focus-within .mfx-home-cat__cta i {
    transform: translateX(3px);
  }
}

@media (min-width: 768px) {
  .mfx-home-categories {
    padding: 24px 0 28px;
  }

  .mfx-home-categories__intro {
    margin-bottom: 36px;
  }

  .mfx-home-categories__grid {
    gap: 20px;
    padding: 0 24px;
  }

  .mfx-home-cat__title {
    margin-top: 16px;
    font-size: 1.25rem;
  }
}

/* Desktop: 3 cards, capped width ≈ previous 4-col slick card scale */
@media (min-width: 992px) {
  .mfx-home-cat--desktop-only {
    display: block;
  }

  .mfx-home-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 280px));
    justify-content: center;
    gap: 22px;
    max-width: none;
    padding: 0 32px;
  }

  .mfx-home-cat__title {
    font-size: 1.25rem;
  }

  .mfx-home-cat__cta {
    font-size: 0.875rem;
  }
}

@media (min-width: 1200px) {
  .mfx-home-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 300px));
    gap: 28px;
    padding: 0 40px;
  }
}

@media (min-width: 1400px) {
  .mfx-home-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 320px));
    gap: 32px;
  }
}
