/* ===================================
   SECTION 4 — SITUATION TILES
   Image tiles leading to the target-group pages (home/situations.ejs): four columns, two on
   tablets, two narrow ones on phones.
   =================================== */

.home-situations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.home-situation {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-r-md);
  background: var(--tp-paper);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.home-situation:hover {
  border-color: var(--tp-line-accent);
  transform: translateY(-2px);
  box-shadow: var(--tp-shadow-hover);
}
.home-situation__pic {
  display: block;
  overflow: hidden;
}
.home-situation__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--tp-grey-tile);
  transition: transform 0.4s var(--tp-ease);
}
.home-situation:hover .home-situation__img {
  transform: scale(1.03);
}
.home-situation__body {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 40px 14px 16px;
}
.home-situation strong {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.25;
}
.home-situation__body > span:not(.home-situation__arrow) {
  font-size: 13px;
  line-height: 1.4;
  color: var(--tp-ink-2);
}
.home-situation__arrow {
  position: absolute;
  right: 12px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tp-mint);
  color: var(--tp-accent-hover);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.home-situation__arrow svg {
  width: 12px;
  height: 12px;
}
.home-situation:hover .home-situation__arrow {
  background: var(--tp-accent);
  color: #fff;
}

@media (max-width: 980px) {
  .home-situations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .home-situations {
    gap: 10px;
  }
  .home-situation__body {
    gap: 2px;
    padding: 11px 32px 12px 12px;
  }
  .home-situation strong {
    font-size: 14px;
  }
  .home-situation__body > span:not(.home-situation__arrow) {
    font-size: 12px;
  }
  .home-situation__arrow {
    right: 8px;
    top: 11px;
    width: 22px;
    height: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-situation,
  .home-situation__img,
  .home-situation__arrow {
    transition: none;
  }
}
