.agc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.agc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E3EAF0;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

a.agc-card:hover,
a.agc-card:focus-visible {
  box-shadow: 0 10px 28px rgba(11, 47, 74, .12);
  transform: translateY(-2px);
}

.agc-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #EEF3F7;
}

.agc-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agc-card-body {
  display: flex;
  flex: none;
  gap: 12px;
  padding: 18px 20px 22px;
}

.agc-card-icon {
  flex: none;
  display: inline-flex;
  margin-top: 2px;
  font-size: 22px;
  line-height: 1;
  color: #0B3A7E;
}

.agc-card-icon svg,
.agc-card-icon i {
  display: block;
  width: 1em;
  height: 1em;
}

/* only Elementor library icons (no own fill) need to follow the text color;
   uploaded SVGs keep their own fill/stroke untouched */
.agc-card-icon .e-font-icon-svg {
  fill: currentColor;
}

.agc-card-text {
  min-width: 0;
}

.agc-card-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #0B3A7E;
}

.agc-card-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #5b6b76;
}

/* the description is a WYSIWYG: paragraphs inside, no extra margin after the last one */
.agc-card-desc p {
  margin: 0 0 .6em;
}

.agc-card-desc p:last-child {
  margin-bottom: 0;
}

/* button: sits at the bottom of the card, aligned across cards of different height */
.agc-card-actions {
  display: flex;
  margin-top: auto;
  padding: 0 20px 20px;
}

.agc-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 11px 18px;
  border-radius: 6px;
  background-color: #E11B1B;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.agc-card-btn:hover,
.agc-card-btn:focus-visible {
  background-color: #C21414;
  color: #fff;
}

.agc-card-btn-icon {
  display: inline-flex;
  font-size: .95em;
  line-height: 1;
}

.agc-card-btn-icon svg,
.agc-card-btn-icon i {
  display: block;
  width: 1em;
  height: 1em;
}

.agc-card-btn-icon .e-font-icon-svg {
  fill: currentColor;
}

/* icon above the title */
.agc-cards-grid--icon-stacked .agc-card-body {
  flex-direction: column;
}

/* icon beside the title only; description runs full width underneath */
.agc-cards-grid--icon-title-inline .agc-card-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 6px;
  align-content: start;
  align-items: center;
}

.agc-cards-grid--icon-title-inline .agc-card-text {
  display: contents;
}

.agc-cards-grid--icon-title-inline .agc-card-icon {
  margin-top: 0;
}

.agc-cards-grid--icon-title-inline .agc-card-title {
  margin: 0;
}

.agc-cards-grid--icon-title-inline .agc-card-desc {
  grid-column: 1 / -1;
}

/* icon after the text instead of before it */
.agc-cards-grid--icon-right.agc-cards-grid--icon-inline .agc-card-icon {
  order: 1;
}

.agc-cards-grid--icon-right.agc-cards-grid--icon-title-inline .agc-card-body {
  grid-template-columns: minmax(0, 1fr) auto;
}

.agc-cards-grid--icon-right.agc-cards-grid--icon-title-inline .agc-card-icon {
  grid-column: 2;
  grid-row: 1;
}

.agc-cards-grid--icon-right.agc-cards-grid--icon-title-inline .agc-card-title {
  grid-column: 1;
  grid-row: 1;
}

/* number shown in the icon's place (01, 02...) */
.agc-card-number {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

/* checklist: one item per line, icon beside each */
.agc-card-list {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 1.45;
  color: #3d4b57;
  text-align: left;
}

.agc-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.agc-card-list-icon {
  flex: none;
  display: inline-flex;
  margin-top: .15em;
  font-size: 16px;
  line-height: 1;
  color: #E11B1B;
}

.agc-card-list-icon svg,
.agc-card-list-icon i {
  display: block;
  width: 1em;
  height: 1em;
}

.agc-card-list-icon .e-font-icon-svg {
  fill: currentColor;
}

.agc-cards-grid--icon-title-inline .agc-card-list {
  grid-column: 1 / -1;
}
