@import "../cta_section/cta_section.css";

/* Align outer container styles with cta_section overrides */
.acf-layout-cta-block-2 {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background-color: var(--color-dark, #000000);
  z-index: 1;
}

.acf-layout-cta-block-2 .container {
  position: relative;
  z-index: 2;
}

/* Custom layout content wrapper and side-by-side buttons */
.cta-content-wrapper {
  position: relative;
  z-index: 5;
  text-align: center;
}

.cta-description {
  margin-top: 15px;
  font-family: var(--font-primary);
  line-height: 140%;
  opacity: 0.8;
  color: var(--color-dark);
	padding: 0 7%;
}
.cta-description p{
padding: 0;
margin: 0;
}

.cta-buttons-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  position: relative;
  z-index: 5;
}

.cta-container {
  position: relative;
  overflow: visible;
  text-align: center;
  padding: 90px 10px; /* Mobile base padding */
  background-color: var(--color-white);
  color: var(--color-dark);
}
@media (max-width: 768px) {
.cta-description {
padding: 0;
}
}

@media (min-width: 768px) {
  .cta-buttons-wrapper {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .cta-content-wrapper {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Keep cta-container at 300px height on desktop so cta-image (370px) overflows and is visible */
  .acf-layout-cta-block-2 .cta-container {
    height: 300px !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .acf-layout-cta-block-2 .cta-image {
    display: block !important;
    position: absolute;
    right: 0;
    bottom: 0;
    height: 370px;
    width: auto;
    pointer-events: none;
    z-index: 2;
  }

  /* Reset inherited mobile left: 50% coordinate so that right: 20% is respected */
  .acf-layout-cta-block-2 .cta-black-box-3 {
    left: auto !important;
    right: 20% !important;
  }
}

