/*------------------------------------------------------------
BLOCKS CMS
====================================*/

/* Variables Custom */
/**************************************/

// Section
.block-section {
  margin-bottom: 50px;
}

// Banner
.block-banner {
  text-align: center;
  .img-wrapper {
    margin-bottom: 15px;
  }
  .text-wrapper {
    font-size: 16px;
    p {
      margin-bottom: 0;
    }
  }
  .btn {
    margin-top: 15px;
  }
  svg {
    display: none;
  }
}

// Img + text
.block-img-text {
  text-align: center;
  .img-wrapper {
    margin-bottom: 25px;
  }
  .title-wrapper {
    margin-bottom: 15px;
  }
  .subtitle-wrapper {
    margin-top: -10px;
    margin-bottom: 35px;
  }
  p {
    margin-bottom: 0;
  }
  .btn {
    margin-top: 15px;
  }
}

// Text
.block-text {
  text-align: center;
  .title-wrapper, .subtitle-wrapper {
    margin-bottom: 15px;
  }
  p:last-of-type {
    margin-bottom: 0;
  }
  .btn {
    margin-top: 15px;
  }
}

// Title
.block-title {
  margin: 0;
  .title-wrapper {
    margin-bottom: 15px;
  }
}

// Blockquote
.block-blockquote {
  .blockquote {
    padding: 10px 0 10px 20px;
    border-left: 5px solid $dark;
  }
}

// Button
.block-button {
  text-align: center;
}
.block-text-default + .block-button {
  margin-top: -30px;
}

// Image
.block-img {
  .img-wrapper {
    display: block;
  }
}

/* RESPONSIVE */
/***************************************/
@include media-breakpoint-only(md) {
  // Banners
  .col-md-6 .block-banner {
    .text-wrapper {
      padding: 0 15px;
    }
    .title-wrapper {
      font-size: 3rem;
    }
  }
}
@include media-breakpoint-up(md) {
  // Banner
  .block-banner {
    position: relative;
    .img-wrapper {
      margin-bottom: 0;
    }
    .text-wrapper {
      position: absolute;
      bottom: 30px;
      width: 100%;
      padding: 0 10%;
      z-index: 1;
      font-weight: $font-weight-light;
    }
    .btn {
      margin-top: 20px;
    }

    &.light {
      .text-wrapper, .title-wrapper {
        color: $white;
      }
      svg {
        fill: $white;
      }
      .btn {
        color: $secondary;
        background: $white;
        border-color: $white;
        &.disabled, &:disabled {
          color: $secondary;
          background: $white;
        }
        &:hover {
          color: $secondary;
          background: $white;
          border-color: $light;
        }
      }
    }
  }

  // Img + text
  .block-img-text {
    display: flex;
    & > .row {
      align-items: center;
    }

    .img-wrapper {
      margin-bottom: 0;
    }

    .title-wrapper {
      margin-bottom: 25px;
    }
    .subtitle-wrapper {
      margin-top: -15px;
      margin-bottom: 35px;
    }

    &.left {
      text-align: left;
    }
    &.right {
      text-align: right;
      & > .row {
        flex-direction: row-reverse;
      }
    }
  }

  // Text
  .block-text {
    .btn {
      margin-top: 20px;
    }
  }
}
@include media-breakpoint-up(lg) {
  // Section
  .block-section {
    margin-bottom: 80px;
  }

  // Banner
  .block-banner {
    .text-wrapper {
      padding: 0 15%;
      font-size: 20px;
      line-height: 26px;
    }
    svg {
      display: block;
      width: 70px;
      height: 70px;
      margin: 0 auto 5px;
    }
  }

  // Img + text
  .block-img-text {
    margin-bottom: 90px;
    .text-wrapper {
      padding: 0 15%;
    }
  }

  // Text
  .block-text {
    margin-bottom: 90px;
    .text-wrapper {
      padding: 0 15%;
    }
  }

  // Title
  .block-title {
    margin: 0;
  }

  // Button
  .block-text-default + .block-button {
    margin-top: -60px;
  }
}
