.dual-card {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.dual-card__images {
  display: flex;
  gap: 20px;
  margin: 0 auto;
}

.dual-card__image {
  position: relative;
  overflow: hidden;
  flex: 1;
  width: 50%;
  background-color: var(--custom-theme-primary-color); 
}

.dual-card__image > a {
  display: flex;
  position: relative;
  height: 100%;
  min-height: 240px;
  padding: 24px; 
}

.dual-card__image img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  margin-left: auto;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dual-card__content {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5em;
  z-index: 2;
}

.dual-card__content--has-button {
  padding-bottom: 2em;
}

.dual-card mmx-text[slot="subheading"],
.dual-card mmx-text[slot="heading"],
.dual-card mmx-text[slot="body"] {
  margin-bottom: 0.5em;
}

.dual-card mmx-text[slot="heading"] {
  font-size: 1.5rem;
  margin-bottom: 0.75em;
}

.dual-card mmx-button {
  margin-top: 1em;
  width: fit-content;
}

.dual-card mmx-button::part(button) {
    color: white;
    border: 2px solid white;
    background: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
} 

@media (max-width: 767px) {
  .dual-card__images {
    flex-direction: column;
  }
  
  .dual-card__image {
    width: 100%;
  }
  
  .dual-card__image > a {
    flex-direction: column;
    min-height: unset;
    padding: 0;
    height: auto;
  }
  
  .dual-card__image img {
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  
  .dual-card__content {
    position: static;
    width: 100%;
    height: auto;
    padding: 1.5em 1.25em 2em 1.25em;
    background: var(--custom-theme-primary-color);
    box-sizing: border-box;
    margin-top: 0;
  }
  
  .dual-card__content--has-button {
    padding-bottom: 2.5em;
  }
}
