/**
 * CTA CSS
 *
 * @package WordPress
 * @subpackage MD_WIBF
 * @since MD WIBF 1.0
 * @version 1.0.2
 */

.md_wibf .mdwibf-cta-block.alignfull {
  padding: 0;
}

.md_wibf .cta_wrapper .btn_wrapper {
  display: flex;
  flex-flow: wrap;
  gap: .65rem;
}

.md_wibf .cta_wrapper {
  max-width: 100%;
}

.md_wibf .cta_wrapper .btn_wrapper.flex_left {
  justify-content: flex-start;
}

.md_wibf .cta_wrapper .btn_wrapper.flex_center {
  justify-content: center;
}

.md_wibf .cta_wrapper .btn_wrapper.flex_right {
  justify-content: flex-end;
}

.md_wibf .cta_wrapper .btns .btn {
  flex: 1 0 fit-content;
  min-width: fit-content;
  /* margin-right: .85rem; */
}

/* .md_wibf .cta_wrapper .btns .btn:last-of-type {
  margin-right: 0;
} */

.md_wibf .cta_wrapper.has_bg_img {
  background-repeat: no-repeat;
  background-size: cover;
}

.md_wibf .cta_wrapper.has_bg_img,
.md_wibf .cta_wrapper.has_bg_clr {
  padding: 3rem 2rem;
}

.md_wibf .cta_wrapper .container {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  position: relative;
}

.md_wibf .cta_wrapper .container>div {
  margin-bottom: 1.5rem;
}

.md_wibf .cta_wrapper .container>div:last-of-type {
  margin-bottom: 0;
}

.md_wibf .cta_wrapper .txt_wrapper {
  line-height: 1.5;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

.md_wibf .cta_wrapper.style_default {
  min-height: 33.33rem;
}

.md_wibf .cta_wrapper.style_default.third_height {
  min-height: 33.33rem;
}

.md_wibf .cta_wrapper.style_default.quart_height {
  min-height: 16.67rem;
}

.md_wibf .cta_wrapper.style_default.half_height {
  min-height: 25rem;
}

.md_wibf .cta_wrapper.style_default.full_height {
  min-height: 41.66rem;
}

.md_wibf .cta_wrapper.style_default .txt_wrapper {
  min-width: 22.22rem;
}

.md_wibf .cta_wrapper.style_default.quart_width .txt_wrapper {
  max-width: 25%;
}

.md_wibf .cta_wrapper.style_default.half_width .txt_wrapper {
  max-width: 50%;
}

.md_wibf .cta_wrapper.style_default.third_width .txt_wrapper {
  max-width: 75%;
}

.md_wibf .cta_wrapper.style_default.full_width .txt_wrapper {
  max-width: 100%;
}

.md_wibf .cta_wrapper.flex_left .txt_wrapper {
  margin-left: 0;
  margin-right: auto;
}

.md_wibf .cta_wrapper.flex_center .txt_wrapper {
  margin-left: auto;
  margin-right: auto;
}

.md_wibf .cta_wrapper.flex_right .txt_wrapper {
  margin-left: auto;
  margin-right: 0;
}

.md_wibf .cta_wrapper .row .col.offset-l8 {
  margin-left: 66.6666666667%;
}

.md_wibf .cta_wrapper .row .col.l4 {
  width: 33.3333333333%;
}

.md_wibf .cta_wrapper.style_v1 {
  background-size: calc(100% - 30.33%) 100%;
  background-position: left;
  min-height: 14rem;
  padding: 2rem 0;
  position: relative;
}

.md_wibf .cta_wrapper.style_v1::before {
  content: '';
  background-image: url(../../../assets/images/cta-banner-style1.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  height: 100%;
  width: 50px;
  position: absolute;
  right: 34.33%;
  top: 0;
  z-index: 2;
}

.md_wibf .cta_wrapper.style_v1::after {
  content: "";
  background-color: var(--clr-primary);
  height: 100%;
  width: 34.33%;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.md_wibf .cta_wrapper.style_v1 .container {
  z-index: 10;
}

.md_wibf .cta_wrapper.style_v1 .row {
  position: relative;
}

.md_wibf .cta_wrapper .row>div {
  margin-bottom: 1.5rem;
}

.md_wibf .cta_wrapper .row>div:last-of-type {
  margin-bottom: 0;
}

.md_wibf .cta_wrapper.style_v1 .txt_wrapper {
  color: white;
  padding: 0 1rem 0 0;
}

.md_wibf .cta_wrapper.style_v1 .txt_wrapper h4 {
  font-size: 1.25rem;
}

.md_wibf .cta_wrapper.style_v1 .btn {
  color: white;
  line-height: 1em;
  height: 2.5em;
}

.md_wibf .cta_wrapper.style_v1 .bg_wrapper {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right;
  max-width: calc(100% - 34.33%);
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  z-index: 0;
}

.md_wibf .cta_wrapper .txt_wrapper h1,
.md_wibf .cta_wrapper .txt_wrapper h2,
.md_wibf .cta_wrapper .txt_wrapper h3 {
  line-height: 1.15 !important;
}

@media only screen and (max-width: 1200px) and (min-width: 993px),
(max-width: 800px) {
  .md_wibf .cta_wrapper.style_v1 .bg_wrapper {
    max-width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
  }

  .md_wibf .cta_wrapper.style_v1::after,
  .md_wibf .cta_wrapper.style_v1::before {
    display: none;
  }

  .md_wibf .cta_wrapper.style_v1 {
    flex-direction: column;
  }

  .md_wibf .cta_wrapper .row .col.l4 {
    width: 100%;
    margin-left: 0;
  }

  .md_wibf .cta_wrapper.style_v1 .container {
    background-color: var(--clr-primary);
    padding: 2rem 1rem;
  }

  .md_wibf .cta_wrapper.style_v1 .container::before {
    content: '';
    background-image: url(../../../assets/images/cta-banner-style2.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 0;
    height: 50px;
    width: 100%;
    z-index: 0;
    transform: translate(0, -99%);
  }
}

@media only screen and (max-width: 1404px) and (min-width: 1201px),
(max-width: 992px) and (min-width: 801px) {

  .md_wibf .cta_wrapper .txt_wrapper h1 {
    font-size: calc(var(--fnt-h1) - .35rem) !important;
  }

  .md_wibf .cta_wrapper .txt_wrapper h2 {
    font-size: var(--fnt-h2) !important;
  }
}

@media only screen and (max-width: 479px) {
  .md_wibf .cta_wrapper.style_default .txt_wrapper {
    min-width: min-content;
  }
}

@media only screen and (max-width: 999px) {
  .md_wibf .cta_wrapper.style_v1 .bg_wrapper {
    max-width: 100%
  }
}