/* ==========================================================================
   One Large, Two Small Cards
   Desktop: 1 large left + 2 stacked right
   Mobile:  stacked vertical cards
   Figma: 1916:2190
   ========================================================================== */

.lg-olts-cards__heading {
  margin: 0 0 2.25rem;
  color: var(--wp--preset--color--supersonic, #070819);
  font-family: var(--wp--preset--font-family--archivo, "Archivo", sans-serif);
  font-size: 2.875rem;
  font-weight: 500;
  line-height: 1.174;
  text-align: center;
}

.lg-olts-cards__grid {
  display: grid;
  grid-template-columns: minmax(0, 580fr) minmax(0, 590fr);
  grid-template-rows: 1fr 1fr;
  align-items: stretch;
  gap: 1.875rem;
}

/* Card shell */
.lg-olts-cards__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--wp--preset--color--spacegrey, #dfe1ef);
  border-radius: 0.5rem;
  box-sizing: border-box;
}

.lg-olts-cards__card--large {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.lg-olts-cards__media {
  margin: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f3f4f8;
}

.lg-olts-cards__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 10rem;
  color: #888;
  font-size: 0.875rem;
}

.lg-olts-cards__img {
  display: block;
  max-width: 100%;
  height: auto; 
  border-radius: 0.75rem;
}

.lg-olts-cards__card--large .lg-olts-cards__media {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.lg-olts-cards__card--large .lg-olts-cards__img {
  max-width: 100%;
  height: auto;
}

.lg-olts-cards__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1.625rem;
  min-width: 0;
}

.lg-olts-cards__card--large .lg-olts-cards__body {
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 0;
  min-height: 8.625rem;
}

.lg-olts-cards__title {
  margin: 0 0 0.5rem;
  color: var(--wp--preset--color--supersonic, #070819);
  font-family: var(--wp--preset--font-family--inter, "Inter", sans-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3333;
}

.lg-olts-cards__card--large .lg-olts-cards__title {
  margin-bottom: 0.5rem;
}

.lg-olts-cards__desc {
  margin: 0;
  color: var(--wp--preset--color--metal, #5a5c76);
  font-family: var(--wp--preset--font-family--inter, "Inter", sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.lg-olts-cards__cta {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  margin-bottom: 0;
  padding: 0;
  color: var(--wp--preset--color--laser-beam-600, #0835ff);
  font-family: var(--wp--preset--font-family--archivo, "Archivo", sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

/* Local arrow (replaces global .learn-more ::after) — uses mask so color tracks currentColor */
.lg-olts-cards__cta::after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 12px;
  margin-left: 0.5em;
  background-color: currentColor;
  -webkit-mask-image: var(--right-arrow-small-blue);
  mask-image: var(--right-arrow-small-blue);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Small cards: image left, content right */
.lg-olts-cards__card--small {
  flex-direction: row;
  gap: 1.75rem;
  align-items: stretch;
  min-height: 18.3125rem;
}

.lg-olts-cards__card--small .lg-olts-cards__media {
  flex: 0 0 20rem;
  width: 20rem;
  max-width: 20rem;
  background: transparent;
}

.lg-olts-cards__card--small .lg-olts-cards__img {
  max-width: 100%;
  height: auto;
}

.lg-olts-cards__card--small .lg-olts-cards__body {
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 0;
  padding: 0;
}

.lg-olts-cards__editor-hint {
  margin: 0;
  padding: 2rem 1rem;
  color: #666;
  text-align: center;
  background: #f0f0f0;
  border: 1px dashed #ccc;
}

@media (min-width: 1200px) {
  .lg-olts-cards__cta:hover,
  .lg-olts-cards__cta:focus {
    color: #0027d6;
    text-decoration: none;
  }

  .lg-olts-cards__cta:focus-visible {
    outline: 3px solid #0027d6;
    outline-offset: 5px;
  }
}

/* Portrait and Landscape */
@media (min-width: 0) and (max-width: 767.98px) {
  .lg-olts-cards__heading {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .lg-olts-cards__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }

  .lg-olts-cards__card--large {
    grid-column: auto;
    grid-row: auto;
  }

  .lg-olts-cards__card {
    gap: 0.5rem;
  } 

  .lg-olts-cards__card--small {
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
  }

  .lg-olts-cards__card--large .lg-olts-cards__media,
  .lg-olts-cards__card--small .lg-olts-cards__media,
  .lg-olts-cards__media {
    flex: none;
    width: 100%;
    max-width: none;
    height: auto;
    /* aspect-ratio: 16 / 10; */
  }
  

  .lg-olts-cards__title {
    font-size: 1.25rem;
    line-height: 1.4;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .lg-olts-cards__heading {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    line-height: 1.25;
  }

  .lg-olts-cards__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .lg-olts-cards__card--large {
    grid-column: auto;
    grid-row: auto;
  }

  .lg-olts-cards__card {
    gap: 1.25rem;
  }

  .lg-olts-cards__card--small {
    flex-direction: column;
    gap: 1.25rem;
    min-height: 0;
  }

  .lg-olts-cards__card--large .lg-olts-cards__media,
  .lg-olts-cards__card--small .lg-olts-cards__media,
  .lg-olts-cards__media {
    flex: none;
    width: 100%;
    max-width: none;
    height: auto;
    /* aspect-ratio: 16 / 10; */
  }  
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .lg-olts-cards__heading {
    font-size: 2.5rem;
  }

  .lg-olts-cards__card--small .lg-olts-cards__media {
    flex: 0 0 12.5rem;
    width: 12.5rem;
    max-width: 12.5rem;
  }
}
