/* Page CTA banner block — shared by public pages and blocks editor preview. */
.page-block--cta-banner {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.pcb-section {
  background: linear-gradient(
    135deg,
    var(--page-primary-color, var(--theme-primary, #054d88)) 0%,
    color-mix(in srgb, var(--page-primary-color, var(--theme-primary, #054d88)) 70%, black) 100%
  );
  border-radius: 1.25rem;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.pcb-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.pcb-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.pcb-section--muted {
  background: #f8f9fa;
}

.pcb-section--muted .pcb-heading,
.pcb-section--muted .pcb-body {
  color: var(--color-dark-blue, #2d3236);
}

.pcb-section--muted .pcb-btn {
  background: var(--page-primary-color, var(--theme-primary, #054d88));
  color: var(--color-white, #fff);
}

.pcb-section--muted .pcb-btn:hover {
  background: color-mix(in srgb, var(--page-primary-color, var(--theme-primary, #054d88)) 85%, black);
  color: var(--color-white, #fff);
}

.pcb-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
}

.pcb-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-white, #fff);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.pcb-body {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

.pcb-body p {
  margin: 0 0 0.75rem;
}

.pcb-body p:last-child {
  margin-bottom: 0;
}

.pcb-section--muted .pcb-body {
  color: var(--color-dark-blue, #2d3236);
}

.pcb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  background: var(--color-white, #fff);
  color: var(--page-primary-color, var(--theme-primary, #054d88));
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.pcb-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  color: var(--page-primary-color, var(--theme-primary, #054d88));
}

@media (max-width: 575.98px) {
  .pcb-section {
    padding: 2.5rem 1.25rem;
  }

  .pcb-btn {
    width: 100%;
    justify-content: center;
  }
}

#blocks-preview .page-builder-themeable .pcb-btn .bi::before {
  content: '↗';
  font-style: normal;
  font-size: 0.85em;
}
