/* 3 → 2 → 1 layout */
.grid-3-2-1 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .grid-3-2-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 767px) {
  .grid-3-2-1 { grid-template-columns: 1fr; gap: 16px; }
}

/* Card styles */
.gridcards .card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; 
  /*border-radius: 12px;*/
  padding: 20px;
  /*box-shadow: 0 6px 18px rgba(0,0,0,.06);*/
  height: 100%; overflow: hidden;
}

/* Top image as background (reliable & consistent sizing) */
.gridcards .card__image-bg {
  width: 120px;
  margin: 0 auto;
  height: 120px;
  /*padding-top: 56.25%;*/                      /* 16:9 fallback */
  background-image: var(--card-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /*border-radius: 8px;*/
  margin-bottom: 12px;
}
@supports (aspect-ratio: 16 / 9) {
  .gridcards .card__image-bg { padding-top: 0; aspect-ratio: 16 / 9; }
}

/* Optional smaller icon */
.gridcards .card__icon { width: 56px; height: auto; }

/* Typography */
.gridcards .card__title {
  margin: 0;
  font-family: "Figtree", sans-serif !important; 
  font-weight: 600;
  font-size: 22px !important;
  line-height: 120% !important;
  text-align: center;
}
.gridcards .card__body {
  font-family: "Figtree", sans-serif !important; 
  color: #000000;
  text-align: center;
}

/* CTA */
.gridcards .card__cta {
  margin-top: auto; font-weight: 600; text-decoration: none;
  color: #0f172a; transition: color .2s ease;
}
.gridcards .card__cta:hover { color: #2563eb; }

/* Empty state */
.gridcards .card--empty {
  text-align: center; color: #64748b;
  background: #f8fafc; border: 1px dashed #cbd5e1;
}
