/* ============================================================
   pacy-section-card-grid.css
   4-column image card grid (ad types, service types, etc.)
   ============================================================ */


.pacy-adtypes__header {
  margin-bottom: 3rem;
}

.pacy-adtypes__intro {
  max-width: 680px;
  margin-bottom: 0;
}

.pacy-adtypes__grid {
  align-items: stretch;
}

.pacy-adtypes__card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}


/* ─── Image container ─────────────────────────────────────── */

.pacy-adtypes__card-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: var(--pacy-radius-md) var(--pacy-radius-md) 0 0;
  background: var(--pacy-base-1);
  flex-shrink: 0;
}

.pacy-adtypes__card-img {
  width: 100%;
  height: auto;
  display: block;
}


/* ─── Text area ───────────────────────────────────────────── */

.pacy-adtypes__card-title,
.pacy-adtypes__card-text {
  padding-inline: 1.5rem;
}

.pacy-adtypes__card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  /* color intentionally not set here — inherits from .pacy-heading
     and the active theme modifier (e.g. .dark-blue-bg .pacy-card .pacy-heading) */
  padding-top: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.pacy-adtypes__card-text {
  padding-bottom: 1.5rem;
  margin-bottom: 0;
}


/* ─── Responsive ──────────────────────────────────────────── */

@media (min-width: 600px) and (max-width: 900px) {
  .pacy-adtypes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .pacy-adtypes__grid {
    grid-template-columns: 1fr;
  }
}
