/*
  general
  card
  text
  image
  responsive
  mobile
*/

/* general
============================================================================ */

.bg-ctaimg {
  overflow: hidden;
  width: 100%;
}

.index-ctaimg {
  position: relative;
  display: flex;
  max-width: 1440px;
  height: 1000px;
  padding: var(--pos-gap-section-section, 240px) var(--pos-gap-page-content-x-margin, 40px) 0;
  align-items: flex-start;
  align-self: stretch;
  margin: 0 auto;
}

/* card
============================================================================ */

.cta {
  z-index: 5;
}

.cta-card {
  display: flex;
  width: 537px;
  height: 558px;
  padding: var(--pos-padding-cards-boxes, 40px);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--pos-gap-section-elements, 40px);

  background:
    url(../../images/marketing-landing/pictures/light_bg.avif) bottom right -70px/600px 450px no-repeat,
    linear-gradient(142deg, var(--header-submenu-gradient-from, #3a8dde) 8.91%, var(--subtitle-gradient-to, #0f7b0a) 72.09%);

  border-radius: var(--pos-corner-panel, 4px);
  /* border: 1px solid #e2e8f0; */
}

/* text
============================================================================ */

.cta-card h1 {
  align-self: stretch;
  color: var(--pos-color-inverted, #fff);
  font-size: var(--pos-headline-1, 3rem);
  font-style: normal;
  font-weight: 700;
  line-height: var(--pos-headline-1-line-height, 48px);
}

.cta-card p {
  align-self: stretch;
  color: var(--pos-color-inverted, #fff);
  font-size: var(--pos-headline-4, 1.25rem);
  font-style: normal;
  font-weight: 400;
  line-height: var(--pos-headline-4-line-height, 28px);
}

/* image
============================================================================ */

.img-container {
  position: absolute;
  left: 60%;
  top: 30%;
  transform: translateX(-40%);
  width: 80vw;
  max-width: 100vw;
  height: auto;
  scale: 1.2;
}

.img-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(250deg,
      var(--pos-color-page-background-0, rgba(247, 248, 250, 0.00)) 57.21%,
      var(--pos-color-page-background, #f7f8fa) 82.82%);
  z-index: 1;
  pointer-events: none;
}

.img-container img {
  width: 100%;
  height: auto;
  display: block;
}


/* responsive
============================================================================ */

@media (max-width: 1440px) {
  .index-ctaimg {
    margin-bottom: -200px;
  }

  .img-container {
    margin-top: -100px;
  }

  .cta-card {
    width: 500px;
    height: 500px;
  }
}

@media (max-width: 1224px) {
  .index-ctaimg {
    margin-bottom: -400px;
  }

  .cta-card {
    width: 400px;
    height: auto;
  }
}

/* mobile
============================================================================ */

@media (max-width: 768px) {
  .index-ctaimg {
    flex-direction: column;
    height: auto;
    margin-bottom: 0;
  }

  .cta-card {
    width: auto;
  }

  .img-container {
    position: relative;
    width: auto;
    height: auto;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -12px;
    scale: 1;
    top: 10%;
  }

  .img-container::before {
    display: none;
  }

  .img-container img {
    width: 100vw;
    height: 300px;
    object-fit: cover;
    object-position: right;
  }

  .img-container img .right {
    object-position: right;
  }


  .cta-card h1 {
    font-size: 1.75rem;
    line-height: 28px;
    width: 60%;
  }

  .cta-card p {
    font-size: 1.125rem;
    line-height: 20px;
    width: 90%;
  }
}