
/* Uniform 300x300 grid styles */
.apg-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-content: center;
}

.apg-card {
  width: 300px;
  height: 300px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.apg-img-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
}

.apg-title {
  font-size: 14px;
  margin: 6px 0 2px;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.apg-desc {
  font-size: 12px;
  margin: 0;
  max-height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
}

.apg-cta {
  font-size: 12px;
  padding: 6px 8px;
  background: #ff9900;
  color: #fff;
  border-radius: 3px;
  text-decoration: none;
}

/* Responsive tweak */
@media (max-width: 480px) {
  .apg-grid {
    grid-template-columns: repeat(1, 300px);
  }
}
