/**
 * @file view--suport-grid.css
 * Graella de cards d'entitats col·laboradores.
 */

/* ── Graella ── */
.view-id-suport_grid .view-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .view-id-suport_grid .view-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .view-id-suport_grid .view-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* La fila de Views no interfereixin amb la graella */
.view-id-suport_grid .views-row {
  display: contents;
}

/* ── Card ── */
.suport-card {
  display: flex;
  flex-direction: column;
}

.suport-card__inner {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  flex: 1;
  min-height: 0;
}

.suport-card__inner:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Zona del logo */
.suport-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  min-height: 130px;
  background: #fff;
  flex: 1;
}

.suport-card__logo img {
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

