/* =========================================================
   Two Column Image + Gradient Card
   Layout: one column is a solid colour with content,
   the other column is a full-bleed image.
   - Column ratio (content:image) is editor-controlled.
   - Columns can be reversed.
   - Static rules live here; per-instance values (colours,
     ratio, radius, sizes) are injected from module.html.
   ========================================================= */

.tcig-card {
  width: 100%;
}

/* ---------- Card shell ---------- */

.tcig-card__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;              /* clips image to the rounded corners */
  isolation: isolate;
}

/* ---------- Image side ---------- */

.tcig-card__media {
  position: relative;
  min-height: 260px;
}

.tcig-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- Content side ---------- */

.tcig-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.tcig-card__heading {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.tcig-card__description,
.tcig-card__description p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.2px;
}

.tcig-card__description {
  margin: 0 0 15px;
}

.tcig-card__description p {
  margin: 0 0 15px;
}

.tcig-card__description p:last-child {
  margin-bottom: 0;
}

/* ---------- Stat ---------- */

.tcig-card__stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}

.tcig-card__stat-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.tcig-card__stat-connector {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.1;
}

.tcig-card__stat-value {
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.tcig-card__stat-prefix,
.tcig-card__stat-suffix {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.1;
}

.tcig-card__caption {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
}
.tcig-card__caption p {
  margin-bottom: 15px;
}

/* ---------- Buttons ---------- */

.tcig-card__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 15px;
}

.tcig-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 25.5px 32px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 9px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tcig-card__button:hover,
.tcig-card__button:focus-visible {
  text-decoration: none;
  background-color: #2a1470 !important;
  font-weight: 600 !important;
}

/* Secondary (outline) style — colours injected per-instance */
.tcig-card__button--secondary {
  background: transparent;
}

/* =========================================================
   Responsive — stack the columns
   ========================================================= */

@media (max-width: 1024px) {
  .tcig-card__button {
  padding: 20px 26px;
}

@media (max-width: 991px) {
  .tcig-card__stat-value {
  font-size: clamp(56px, 7vw, 88px)!important;
  }
  .tcig-card__image{
    object-position: top;
  }
  .tcig-card__inner {
    grid-template-columns: 1fr !important;
  }

  /* Image sits on top when stacked, regardless of reverse setting */
  .tcig-card__media {
    order: 1;
    min-height: 320px;
  }

  .tcig-card__content {
    order: 2;
  }
}

@media (max-width: 767px) {
  .tcig-card__media {
    min-height: 240px;
  }

  .tcig-card.tcig-card .tcig-card__heading {
    font-size: 22px;
  }

  .tcig-card__description,
  .tcig-card__description p,
  .tcig-card__caption {
    font-size: 15px;
  }

  .tcig-card__buttons {
    width: 100%;
    margin-top: 20px;
  }

  .tcig-card__button {
    width: 100%;
    text-align: center;
  }
}
