/* =========================
   4-Card Grid (Equal Height)
   ========================= */

.cards-section {
  padding: 56px 0;
}

.cards-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Each card is a vertical flex layout so the CTA can sit at the bottom */
.card-item {
  display: flex;
  flex-direction: column;
  height: 100%;

  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.card-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex: 1; /* makes all cards match height */
}

.card-title {
  margin: 0;
  font-size: 18px;
}

.card-text {
  margin: 0;
  color: rgba(0,0,0,0.85);
}

/* Push button to bottom of card */
.card-cta {
  margin-top: auto;
  align-self: flex-start;
}

/* Responsive */
@media (max-width: 1000px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .card-cta {
    width: 100%;
    justify-content: center;
    align-self: stretch;
  }

  .cards-section {
    padding: 20px 0;
  }
}
