@import "_mixins";

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

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

.solutions-top-section{
    padding: 80px 0;
    text-align: center;
    p{
        @include avenir-light;
        font-size: 24px;
        color: $black;
        line-height: 36px;
        margin-bottom: 45px;
        padding: 0 80px;
    }
    figure {
        position: relative;
        margin: 0 auto;
        width: 460px;
        height: 460px;
        img {
            width: auto;
            cursor: pointer;
            -webkit-transition: all 0.5s;
            -moz-transition: all 0.5s;
            -ms-transition: all 0.5s;
            -o-transition: all 0.5s;
            transition: all 0.5s;
        }
        .img-centre {
            width: auto;
            position: absolute;
            top: 50%;
            left: 50%;
            display: block;
            transform: translateX(-80px) translateY(-48px);
        }
        .img-one {
            position: absolute;
            top: 0;
            left: 0;
            &:hover {
                left: -10px;
                top: -10px;
            }
        }
        .img-two {
            position: absolute;
            top: 118px;
            left: -83px;
            &:hover {
                top: 118px;
                left: -88px;
            }
        }
        .img-thr {
            position: absolute;
            top: 14px;
            right: -42px;
            &:hover {
              top: 4px;
              right: -52px;
            }
        }
        .img-for {
            position: absolute;
            bottom: -25px;
            right: -131px;
            &:hover {
              bottom: -25px;
              right: -141px;
            }
        }
        .img-fiv {
            position: absolute;
            bottom: -108px;
            right: 80px;
            &:hover {
              bottom: -118px;
              right: 80px;
            }
        }
        .img-six {
            position: absolute;
            bottom: -10px;
            left: -79px;
            &:hover {
              bottom: -10px;
              left: -89px;
            }
        }
    }
    &.infographic-ar{
      figure {
          img {
          }
          .img-centre {
              transform: translateX(-57px) translateY(-74px);
          }
          .img-one {
            top: -7px;
            left: -22px;
              &:hover {
                top: -17px;
                left: -32px;
              }
          }
          .img-two {
            top: -21px;
            right: -98px;
              &:hover {
                top: -31px;
                right: -108px;
              }
          }
          .img-thr {
            top: -21px;
            right: -98px;
              &:hover {
                top: -31px;
                right: -108px;
              }
          }
          .img-for {
            bottom: -5px;
            right: -129px;
              &:hover {
                bottom: -5px;
                right: -139px;
              }
          }
          .img-fiv {
            bottom: -107px;
            right: 64px;
              &:hover {
                bottom: -117px;
                right: 64px;
              }
          }
          .img-six {
            bottom: -8px;
            left: -78px;
              &:hover {
                bottom: -8px;
                left: -88px;
              }
          }
    }
}
}

.goals-wrap {
    .row {
        padding: 0 15px;
    }
    .col-md-6 {
        padding: 0;
    }
    article {
        padding: 85px 85px 85px 100px;
        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;
            }
        }
        .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;
            }
        }
        &.alt {
            background: #edeadf;
        }
        &.asset-management {
            padding-top: 150px;
            p {
                margin: 0 0 55px;
            }
        }
        &.trading-execution {
            padding-top: 150px;
            padding-right: 120px;
        }
        &.investment-banking {
            padding-right: 80px;
            padding-left: 85px;
        }
        &.daily-banking {
            padding-top: 150px;
        }
        &.lending {
            padding-top: 130px;
        }
    }
    figure {
        text-align: center;
        margin: 0;
        height: 100%;
        overflow: hidden;
        max-height: 511px;
        img {
            width: 100%;
            height: auto;
        }
    }
    &.section-c {
        position: relative;
        padding: 75px 0;
        &:before {
            content: '';
            display: block;
            width: 50%;
            height: 100%;
            background: none;
            position: absolute;
            top: 0;
            right: 0;
        }
    }
    &.section-padding-b {
        padding-bottom: 75px;
    }
    &.section-padding-t {
        padding-top: 75px;
    }
}

#Wealth-Planning {
    article {
        padding-top: 160px;
        padding-right: 120px;
    }
    figure {
        max-height: none;
    }
}

.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;
            }
        }
    }
}

#Investment-Banking {
    figure {
        max-height: none;
    }
}

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

    .solutions-top-section p {
        padding: 0;
        font-size: 20px;
        line-height: 30px;
    }

    .goals-wrap article {
        padding: 75px 75px 75px 85px;
    }
    .goals-wrap article h3 {
        font-size: 26px;
    }
    .goals-wrap article p {
        font-size: 14px;
        line-height: 26px;
    }
    .goals-wrap article.trading-execution {
        padding-right: 80px;
    }
    .goals-wrap figure {
        height: 518px;
    }
    .goals-wrap figure img {
        height: 100%;
    }
    #Investment-Banking {
        figure img {
            width: auto;
            height: 100%;
        }
    }
    #Daily-Banking {
        figure img {
            width: auto;
            height: 100%;
        }
    }
    #Wealth-Planning {
        article {
            padding: 75px 75px 75px 85px;
        }
    }

    .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;
    }

    .solutions-top-section {
        padding: 40px 0;
        p {
            font-size: 16px;
            line-height: 24px;
            padding: 0;
            margin: 0 0 30px;
        }
        figure {
            transform: scale(.4,.4);
            margin: -95px 0 0 -95px;
            display: none;
        }
    }

    .goals-wrap {
        &.section-c {
            padding: 35px 0;
        }
        article {
            padding: 40px 30px !important;
            h3 {
                font-size: 22px;
                margin: 0 0 20px;
            }
            p {
                font-size: 12px;
                line-height: 20px;
                margin: 0 0 20px;
            }
        }
        figure {
            height: auto;
            img {
                width: 100%;
                height: auto;
            }
        }
    }
    #Investment-Banking, #Daily-Banking {
        figure img {
            width: 100%;
            height: auto;
        }
    }

}
