@import "_mixins";

.inner-banner {
    background: #fff url(../images/bg-yiyr.jpg);
}

.fancy-bg {
    min-height: 115px;
    background: #fff;
}

.goals-wrap {
    padding: 75px 0 0;
    .row {
        padding: 0 15px;
    }
    .col-md-6 {
        padding: 0;
    }
    article {
        padding: 75px 110px 140px;
        background: #f0f3f8;
        min-height: 100%;
        h3 {
            @include avenir-light;
            color: $red;
            font-size: 32px;
            text-transform: uppercase;
            margin: 0 0 25px;
        }
        p {
            @include avenir-roman;
            color: $black;
            font-size: 18px;
            line-height: 32px;
            margin: 0 0 25px;
            &:last-child {
                margin: 0;
            }
        }
    }
    figure {
        text-align: center;
        margin: 0;
        height: 100%;
        & > img {
            max-width: 100%;
            height: 100%;
        }
        div {
          position: absolute;
          height: 308px;
          left: 30px;
          right: 0;
          width: 489px;
          margin: 0 auto;
          bottom: 225px;
        }
        .slice1 {
            position: absolute;
            left: 0;
            top: 0;
            -webkit-transition: all .5s;
            -moz-transition: all .5s;
            -ms-transition: all .5s;
            -o-transition: all .5s;
            transition: all .5s;
            &:hover {
                left: -5px;
            }
        }
        .slice2 {
            position: absolute;
            left: 5px;
            top: 70px;
            -webkit-transition: all .5s;
            -moz-transition: all .5s;
            -ms-transition: all .5s;
            -o-transition: all .5s;
            transition: all .5s;
            &:hover {
              left: -5px;
              top: 70px;
            }
        }
        .slice3 {
            position: absolute;
            left: 46px;
            bottom: 24px;
            -webkit-transition: all .5s;
            -moz-transition: all .5s;
            -ms-transition: all .5s;
            -o-transition: all .5s;
            transition: all .5s;
            &:hover {
              left: 36px;
              bottom: 14px;
            }
        }
        .slice4 {
            position: absolute;
            right: 205px;
            bottom: -38px;
            -webkit-transition: all .5s;
            -moz-transition: all .5s;
            -ms-transition: all .5s;
            -o-transition: all .5s;
            transition: all .5s;
            &:hover {
              right: 205px;
              bottom: -48px;
            }
        }
        .slice5 {
            position: absolute;
            right: 63px;
            top: 174px;
            -webkit-transition: all .5s;
            -moz-transition: all .5s;
            -ms-transition: all .5s;
            -o-transition: all .5s;
            transition: all .5s;
            &:hover {
              right: 53px;
              top: 184px;
            }
        }
        .slice6 {
            position: absolute;
            right: 54px;
            top: 70px;
            -webkit-transition: all .5s;
            -moz-transition: all .5s;
            -ms-transition: all .5s;
            -o-transition: all .5s;
            transition: all .5s;
            &:hover {
              right: 44px;
              top: 70px;
            }
        }
    }
    &.infographic-ar{
      figure {
          div {
          }
          .slice1 {
              left: 0;
              top: 0;
              &:hover {
                  left: -5px;
              }
          }
          .slice2 {
              left: -17px;
              top: 70px;
              &:hover {
                left: -27px;
                top: 70px;
              }
          }
          .slice3 {
            left: 42px;
            bottom: 23px;
              &:hover {
                left: 32px;
                bottom: 13px;
              }
          }
          .slice4 {
            right: 207px;
            bottom: -52px;
              &:hover {
                right: 207px;
                bottom: -62px;
              }
          }
          .slice5 {
            right: 63px;
            top: 177px;
              &:hover {
                right: 53px;
                top: 187px;
              }
          }
          .slice6 {
            right: 49px;
            top: 71px;
              &:hover {
                right: 39px;
                top: 71px;
              }
          }
      }
    }
    &.section-a {
        figure img {
            height: auto;
        }
    }
    &.section-b {
        position: relative;
        padding: 75px 0;
        &:before {
           content: '';
            display: block;
            width: 50%;
            height: 100%;
            background: none;
            position: absolute;
            top: 0;
            right: 0;
        }
        article {
            background: #f2f2f2;
            padding: 80px 80px 90px 100px;
        }
    }
    &.section-c {
        position: relative;
        padding: 0 0 75px;
        &:before {
            content: '';
            display: block;
            width: 50%;
            height: 100%;
            background: none;
            position: absolute;
            top: 0;
            right: 0;
        }
        figure {
            height: 100%;
            img {
                width: 100%;
            }
        }
        article {
            background: #edeadf;
        }
    }
    &.section-d {
        padding: 0;
        article {
            background: #f1f1f1;
            padding-bottom: 75px;
        }
        figure {
            height: 555px;
            overflow: hidden;
            img {
                width: 100%;
                height: auto;
            }
        }
    }
}

.link-blocks-wrap {
    background: #f7f7f7;
    padding: 75px 0;
    .block {
        background: #fff;
        overflow: hidden;
        img {
            float: left;
            margin-right: 40px;
        }
        h5 {
            font-size: 24px;
            color: $black;
            @include avenir-roman;
            text-transform: uppercase;
            margin: 40px 0 40px;
        }
        .read-more {
            font-size: 18px;
            @include avenir-medium;
            text-transform: uppercase;
            color: $red;
            &:before {
                content: '\f105';
                font-family: FontAwesome;
                display: inline-block;
                width: 44px;
                height: 44px;
                border: 1px solid $red;
                border-radius: 50%;
                text-align: center;
                line-height: 40px;
                color: #000;
                vertical-align: middle;
                margin-right: 30px;
                -webkit-transition: all 0.5s;
                -moz-transition: all 0.5s;
                -ms-transition: all 0.5s;
                -o-transition: all 0.5s;
                transition: all 0.5s;
            }
            &:hover:before {
                background: $red;
                color: #fff;
            }
        }
    }
}

// RESPONSIVE

@media screen and (min-width: 1024px) and (max-width: 1441px) {

    .goals-wrap article {
        padding: 60px 80px 80px;
    }
    .goals-wrap article h3 {
        font-size: 24px;
    }
    .goals-wrap article p {
        font-size: 14px;
        line-height: 26px;
    }
    .goals-wrap figure {
        overflow: hidden;
        height: 100%;
    }
    .goals-wrap figure div {
        bottom: -20px;
    }
    .goals-wrap.section-b figure img {
        height: 100%;
        max-width: none;
    }
    .goals-wrap.section-c figure img {
        height: auto;
    }
    .goals-wrap.section-d figure img {
        height: 100%;
        max-width: none;
        width: 100%;
    }
    .goals-wrap.section-b article {
        padding: 60px 80px 80px;
    }

    .link-blocks-wrap .block img {
        width: 110px;
        margin-right: 30px;
    }
    .link-blocks-wrap .block h5 {
        font-size: 18px;
        margin: 30px 0;
    }
    .link-blocks-wrap .block .read-more {
        font-size: 14px;
    }
    .link-blocks-wrap .block .read-more:before {
        margin-right: 15px;
        line-height: 28px;
        width: 32px;
        height: 32px;
    }

}

@media screen and (max-width: 768px) {

    .flex-first,
    .flex-last {
        order: 0;
    }

    .goals-wrap {
        padding: 45px 0;
        &.section-b {
            padding: 30px 0;
        }
        article {
            padding: 30px 25px !important;
            h3 {
                font-size: 22px;
                margin: 0 0 15px;
            }
            p {
                font-size: 12px;
                line-height: 20px;
            }
        }
        figure {
            div {
                bottom: -65px;
                left: -100px;
                transform: scale(.6,.6);
            }
            & > img {
                height: auto;
            }
        }
        &.section-d {
            figure {
                height: auto;
            }
        }
    }

}

@media screen and (min-width: 321px) and (max-width: 400px) {

    .goals-wrap figure div {
        bottom: -44px;
        left: -72px;
    }

}

@media screen and (max-width: 320px) {

    .goals-wrap figure div {
        bottom: -65px;
        left: -100px;
    }

}
