/* =====================================================================
   Large Content Card (image left / right / none) — Figma 6190:23941
   A bordered white card locked to the 1240 area. A text column (H2 32/45
   Medium + 16px Regular body + optional CTA) sits beside a media image.
   Default: image on the RIGHT. Modifier --image-left flips it; --image-none
   drops the image and centres a single text column.
   Desktop styles + a mobile block (<=767.98px) that stacks the columns,
   reduces type and centres the content. Tokens only — no raw hex where a
   token exists.
   ===================================================================== */

.large-content-card {
  background: var(--gray-0);
  padding-block: var(--home-sec-pad-y);
}

.large-content-card__inner {
  display: flex;
  flex-direction: column;
}

/* ---- The card: white, bordered, rounded; 40px inner padding ---- */
.large-content-card__card {
  display: flex;
  align-items: center;
  gap: var(--cb-block-gap); /* 40px */
  width: 100%;
  padding: var(--redeem-adv-card-pad); /* 40px */
  background: var(--gray-0);
  border: var(--redeem-rule-w) solid var(--color-border-soft);
  border-radius: var(--radius-8);
}

/* Default (Image=Right): media follows content in the DOM, so it already
   sits on the right. Image=Left flips the visual order. */
.large-content-card__card--image-left {
  flex-direction: row-reverse;
}

/* No image: single centred text column. */
.large-content-card__card--image-none {
  flex-direction: column;
  justify-content: center;
  gap: var(--cb-gap); /* 20px */
}

/* ---- Media: fixed 400x300 panel, gray placeholder behind the image ---- */
.large-content-card__media {
  flex: none;
  margin: 0;
  width: 400px;
  height: 300px;
  border-radius: var(--radius-4);
  overflow: hidden;
  background: var(--gray-7);
}

.large-content-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Text column ---- */
.large-content-card__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--cb-gap); /* 20px */
  align-items: flex-start;
}
.large-content-card__card--image-none .large-content-card__content {
  align-items: center;
  text-align: center;
}

/* Heading — OG Desktop H2 (Axiforma Medium 32/45) */
.large-content-card__heading {
  margin: 0;
  font-weight: var(--fw-medium);
  font-size: var(--fs-32);
  line-height: var(--lh-45);
  color: var(--gray-8);
  word-break: break-word;
}

/* Body — OG Desktop Normal Body (Axiforma Regular 16/normal) */
.large-content-card__body {
  margin: 0;
  font-weight: var(--fw-regular);
  font-size: var(--fs-16);
  line-height: normal;
  color: var(--gray-8);
  word-break: break-word;
}

/* CTA — reuses .btn / .btn--primary; only layout overrides here. */
.large-content-card__cta {
  flex: none;
}

/* ---- Tablet (768–1023px): stack columns (400px image no longer fits) ---- */
@media (max-width: 1023.98px) {
  .large-content-card__card,
  .large-content-card__card--image-left {
    flex-direction: column;
    gap: var(--cb-gap); /* 20px */
    text-align: center;
  }

  /* Media spans the column width, keeping a 4:3 ratio. */
  .large-content-card__media {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  /* All text centred when stacked. */
  .large-content-card__content {
    align-items: center;
    text-align: center;
  }
}

/* ---- Mobile (<=767.98px): stack columns, centre, reduce type ---- */
@media (max-width: 767.98px) {
  .large-content-card {
    padding-block: var(--ta-pad-y-mobile); /* 50px */
  }

  .large-content-card__card,
  .large-content-card__card--image-left {
    flex-direction: column;
    gap: var(--cb-gap); /* 20px */
    padding: var(--home-compare-pad); /* 20px */
    text-align: center;
  }

  /* Media spans the column width, keeping a 4:3 ratio. */
  .large-content-card__media {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  /* All text centred when stacked. */
  .large-content-card__content {
    align-items: center;
    text-align: center;
  }

  .large-content-card__heading {
    font-size: var(--fs-26);
    line-height: var(--lh-36);
  }
}
