/* =========================================================
   Two Column Video Card
   One side = heading + inline video (plays in place).
   Other side = content blocks (text / stat) + buttons.
   Static rules live here; per-instance values (colours,
   ratio, radius, sizes) are injected from module.html.
   ========================================================= */

.tcvc-card {
  width: 100%;
}

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

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

/* ---------- Media (video) side ---------- */

.tcvc-card__media {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tcvc-card__heading {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.tcvc-card__video {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}

/* Force any embedded player to be responsive 16:9 */
.tcvc-card__video iframe,
.tcvc-card__video video,
.tcvc-card__video embed,
.tcvc-card__video object {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.tcvc-card__video-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: #ece6f5;
  color: #7a6f90;
  font-size: 14px;
  border-radius: 6px;
}

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

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

.tcvc-card__text,
.tcvc-card__text p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

.tcvc-card__text {
  margin: 0 0 6px;
}

.tcvc-card__text p {
  margin: 0 0 0.4em;
}

.tcvc-card__text p:last-child {
  margin-bottom: 0;
}

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

.tcvc-card__stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 10px;
  flex-wrap: wrap;
}

.tcvc-card__stat-value {
  font-size: clamp(48px, 6vw, 74px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.tcvc-card__stat-suffix {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.1;
}

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

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

.tcvc-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;
}

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

.tcvc-card__button--secondary {
  background: transparent;
}

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

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

@media (max-width: 991px) {
  .tcvc-card__inner {
    grid-template-columns: 1fr !important;
  }

  .tcvc-card__media {
    order: 1;
  }

  .tcvc-card__content {
    order: 2;
  }
}

@media (max-width: 767px) {
  .tcvc-card.tcvc-card .tcvc-card__heading {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .tcvc-card__text,
  .tcvc-card__text p {
    font-size: 15px;
  }

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

  .tcvc-card__button {
    width: 100%;
  }
}
