/*==============================================================
  17. CTA Banner
================================================================*/
@use "../default/breakpoints" as bp;

.cs_cta_style_1 {
  min-height: 510px;
  height: 100%;
  display: flex;

  .cs_cta_bg {
    inset: 0;
    transition: transform 0.6s cubic-bezier(0.38, 0.55, 0.265, 0.55);

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .cs_cta_overlay {
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.6) 100%);
  }

  .cs_top {
    padding: 32px 32px 0;
  }

  .cs_bottom {
    padding: 0 32px 32px;
  }

  .cs_top,
  .cs_bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px 30px;
    position: relative;
    z-index: 1;

    h2,
    p {
      text-shadow: 0 12px 32px rgba(6, 28, 61, 0.08);
    }

    .cs_cta_text {
      width: min(100%, 740px);
    }
  }

  .cs_cta_in {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    gap: 50px;

    .cs_cta_title {
      a:hover {
        color: var(--accent-color);
      }
    }

    .cs_btn_style_1 {
      border: 1px solid var(--white-color);
      color: var(--white-color);
      text-wrap: nowrap;
      flex: none;
      gap: 12px;

      &:hover {
        color: var(--primary-color);
        background-color: var(--white-color);
      }
    }
  }

  .cs_category {
    padding: 6px 12px;
  }

  &.cs_type_1 {
    .cs_bottom {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  &:hover {
    .cs_cta_bg {
      transform: scale(1.03);
    }
  }

  @include bp.down(lg) {
    .cs_top {
      padding: 30px 15px 0;
      flex-wrap: wrap;
    }

    .cs_bottom {
      padding: 0 15px 30px;
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

.cs_cta_style_2 {
  padding: 88px 0 95px;
  /* Background image stays light in both themes, so keep the copy dark. */
  color: #42526b;

  .cs_cta_info {
    width: min(100%, 750px);
  }

  .cs_cta_title {
    color: #222;
  }

  @include bp.down(lg) {
    padding: 56px 0;

    .cs_cta_info {
      width: 100%
    }
  }

  @include bp.down(sm) {
    .cs_fs_20 {
      font-size: 18px;
    }
  }
}

.cs_cta_style_3 {
  display: flex;

  .cs_cta_left {
    width: 76%;
    padding: 88px 50px;
  }

  .cs_cta_right {
    width: 24%;
    padding: 88px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cs_btn_style_1 {
    color: var(--white-color);

    &:hover {
      color: var(--primary-color);
      background-color: var(--white-color);
    }
  }

  @include bp.down(xl) {
    .cs_cta_left {
      padding: 40px 20px;
    }

    .cs_cta_right {
      padding: 40px 20px;
    }
  }

  @include bp.down(lg) {
    flex-direction: column;

    .cs_cta_left,
    .cs_cta_right {
      width: 100%;
    }
  }
}