/* Two-column CTA row: panels stretch equally; CTA sits toward the bottom like the reference layout. */
.ebp-custom-duel-panel-cta-1 {
  width: 100%;
}

.ebp-custom-duel-panel-cta-1 p {
  font-size: var(--fs-medium);
}

.ebp-duel-panel-cta__grid {
  display: flex;
  gap: 3rem;
}

.ebp-duel-panel-cta__grid > article:first-of-type {
  flex: 2;
  min-width: 71.813rem;
}

.ebp-duel-panel-cta__grid > article:last-of-type {
  flex: 1;
  min-width: 45.188rem;
}

/* Stack on small screens so touch targets stay readable. */
@media (max-width: 767px) {
  .ebp-duel-panel-cta__grid {
    grid-template-columns: 1fr;
  }

  .ebp-duel-panel-cta__grid {
    flex-direction: column;
  }
}

.ebp-duel-panel-cta__panel {
  min-height: 280px;
  color: var(--white);
}

/* Alternating fills: tokens live in global.css (:root), not in PHP. */
.ebp-duel-panel-cta__grid > .ebp-duel-panel-cta__panel:nth-child(odd) {
  background-color: var(--blue);
}

.ebp-duel-panel-cta__grid > .ebp-duel-panel-cta__panel:nth-child(even) {
  background-color: var(--blue-panel-secondary);
}

/* Inner column: rich text grows; button row stays at the visual bottom of the panel. */
.ebp-duel-panel-cta__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 100%;
  /* padding: clamp(1.5rem, 3vw, 3rem); */
  padding-inline: var(--spacing-4);
  padding-block: var(--spacing-3);
  box-sizing: border-box;
}

.ebp-duel-panel-cta__rich {
  flex: 1 1 auto;
}

.ebp-duel-panel-cta__panel.has-panel-icon
  .ebp-duel-panel-cta__rich
  h2:first-of-type {
  position: relative;
  /* padding-inline-start: 6.25rem; */
}

.ebp-duel-panel-cta__panel.has-panel-icon
  .ebp-duel-panel-cta__rich
  h2:first-of-type::before {
  content: '';
  position: absolute;
  right: 20%;
  width: 5.438rem;
  height: 5.438rem;
  background-image: var(--ebp-panel-icon-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.postid-635
  .ebp-duel-panel-cta__panel.has-panel-icon
  .ebp-duel-panel-cta__rich
  h2:first-of-type::before {
  top: 5rem;
}

.ebp-duel-panel-cta__rich h2 {
  margin-block-start: 0;
  margin-block-end: 0.75em;
  font-weight: 700;
  line-height: 1.15;
  max-width: 46.25rem;
}

.ebp-duel-panel-cta__rich p {
  margin-block: 0 0.75em;
  line-height: 1.5;
}

.ebp-duel-panel-cta__rich p:last-child {
  margin-block-end: 0;
}

.ebp-duel-panel-cta__actions {
  flex-shrink: 0;
  margin-block-start: var(--spacing-4);
}

/* Solid pill: light surface on blue panels (tokens from global.css). */
.ebp-duel-panel-cta__button {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background-color: var(--white);
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.ebp-duel-panel-cta__button:hover,
.ebp-duel-panel-cta__button:focus-visible {
  opacity: 0.92;
}

@media (max-width: 1024px) {
  .ebp-duel-panel-cta__inner {
    padding-inline: var(--spacing-1-5);
  }

  .ebp-duel-panel-cta__grid > article {
    min-width: auto !important;
  }
}

@media (max-width: 1024px) {
  .ebp-duel-panel-cta__grid {
    flex-direction: column;
  }
  .postid-635
    .ebp-duel-panel-cta__panel.has-panel-icon
    .ebp-duel-panel-cta__rich
    h2:first-of-type::before {
    top: 0;
    right: 0;
  }

  .postid-48
    .ebp-duel-panel-cta__panel.has-panel-icon
    .ebp-duel-panel-cta__rich
    h2:first-of-type::before {
    top: -15%;
    right: 20%;
  }
}
