﻿@import "WFU_UtilitiesVariables";

/*** fonts **/
.LatoHairline() {
    font-family: @bodyfontfamily;
    font-style: normal;
    font-weight: 100;
}

.LatoThin() {
    font-family: @bodyfontfamily;
    font-style: normal;
    font-weight: 200;
}

.LatoLight() {
    font-family: @bodyfontfamily;
    font-style: normal;
    font-weight: 300;
}

.LatoRegular() {
    font-family: @bodyfontfamily;
    font-style: normal;
    font-weight: 400;
}

.LatoMedium() {
    font-family: @bodyfontfamily;
    font-style: normal;
    font-weight: 500;
}

.LatoBold() {
    font-family: @bodyfontfamily;
    font-style: normal;
    font-weight: 700;
}

.section(@padding: 0;@margin: 0;@borderColor: @white;@borderWidth: 0;@borderStyle: solid) {
    padding: @padding;
    margin: @margin;
    border-color: @borderColor;
    border-width: @borderWidth;
    border-style: @borderStyle;
}

.textBlock(@fontSize: 1rem;@color: @white;@background: transparent) {
    font-size: @fontSize;
    color: @color;
    background: @background;
}

.round(@width: 70px;@height: 70px;@border-radius: 70px) {
    width: @width;
    height: @height;
    border-radius: @border-radius;
}

.margin-top(@marginTop: 25px) {
    margin-top: @marginTop;
}

.pos-relative {
    position: relative;
}

.medium(@rules) {
    @media screen and (min-width: 40em) and (max-width: 63.9375em) {
        @rules
        ();
    }
}

.small(@rules) {
    @media only screen and (max-width: 39.9375em) {
        @rules
        ();
    }
}

.maxWidth(@maxwidth,@rules) {
    @media only screen and (max-width: @maxwidth) {
        @rules
        ();
    }
}

.minWidth(@minwidth,@rules) {
    @media only screen and (min-width: @minwidth) {
        @rules
        ();
    }
}

.header-nav-anim(@linkcolor: #303030;@linkcolorOnhover: #fff;@linkcolorOnScroll: #303030;@linkcolorOnScrollHover: #859D39;@leftpos: 0) {
    .nav-bar {
        li {
            &:not(.nav-search) {
                &.selected-menu-item {
                    a {
                        color: @linkcolorOnhover;

                        &:before {
                            left: @leftpos;
                        }
                    }
                }

                a {
                    color: @linkcolor;
                }
            }

            &:hover {
                a {
                    color: @linkcolorOnhover;

                    &:before {
                        left: @leftpos;
                    }
                }
            }
        }
    }

    &.at-nav-scrolled {
        .nav-bar {
            li {
                &:not(.nav-search) {
                    &.selected-menu-item {
                        a {
                            color: #859d39;

                            &:before {
                                left: @leftpos;
                            }
                        }
                    }
                }

                a {
                    color: @linkcolorOnScroll;
                }

                &:hover {
                    a {
                        color: @linkcolorOnScrollHover;
                    }
                }
            }
        }
    }
}
/*mixin for header */
.header-onScroll(@width) when (@width >1153) {
    border-top: 1px #999 solid;
    padding-top: 11px;
    background: rgba(255, 255, 255, 0.9);
    height: auto;
    border-bottom: #eee 1px solid;
    padding-bottom: 11px;

    .img-logo {
        max-height: 50px;
        margin-top: 0px;
    }

    .nav-bar li {
        height: 50px;

        &:not(.nav-search) {
            > a {
                font-size: 18px;
                height: 50px;
                line-height: 50px;

                &:before {
                    bottom: 10px;
                }
            }
        }

        &:hover {
            .sub-menu {
                top: 51px !important;
            }
        }

        .search-icon {
            font-size: 2rem;
            /*margin-left: 0;*/
            color: #4f4f4f !important;
            bottom: 12px;
        }
    }

    .nav-bar-large {
        margin: 0;
    }
}


.header-onScroll(@width) when (@width=1153) {
    .img-logo-color {
        max-height: 60px;
        margin-top: 11px;
    }
    /*  .nav-bar li a { font-size: 1.25rem; line-height: 3.25rem;  }*/
}

.header-onScroll(@width) when (@width=949) {
    .img-logo {
        max-height: 50px;
        margin-top: 13px;
    }

    .nav-bar li a {
        font-size: 1rem;
        line-height: 3.25rem;

        &.search-icon {
            font-size: 1.5rem;
        }
    }
}


.header-onScroll(@width) when (@width=48em) {
    padding: 0;
    background: #fff;
    border-bottom: none;

    .nav-bar li {
        height: 75px;

        &:not(.nav-search) {
            > a {
                height: 75px;
                line-height: 75px;
                font-size: 1rem;
            }
        }

        a.search-icon {
            font-size: 3rem;
            line-height: 4.25rem;
            bottom: 0;
        }
    }

    .img-logo {
        max-height: 45px;
        margin-top: 0;
    }
}

.header-forSubPage(@width) when (@width>1153) {
    padding-top: 23px;
    padding-bottom: 23px;

    .nav-bar li {
        height: 50px;

        &:hover {
            .sub-menu {
                top: 51px !important;
            }
        }

        &:not(.nav-search) {
            > a {
                height: 50px;
                line-height: 50px;

                &:before {
                    bottom: 11px;
                }
            }
        }

        .search-icon {
            bottom: 12px;
        }
    }


    .img-logo {
        max-height: 50px;
        margin-top: 0;
    }
}

.header-forSubPage(@width) when (@width=949) {

    .img-logo {
        max-height: 50px;
    }
}

.header-forSubPage(@width) when (@width=920) {

    .img-logo {
        max-height: 50px;
        margin-top: 11px;
    }
}

.header-forSubPage(@width) when (@width=48) {
    padding: 0;
    height: auto;

    .img-logo-color {
        display: block;
        margin-left: 1.5rem;
        margin-top: 0;
    }

    .img-logo {
        float: left;
        margin-left: 0;
        max-height: 45px;
        display: block;
        margin-top: 0;
    }

    .nav-bar li {
        height: 75px;

        &:not(.nav-search) {
            > a {
                height: 75px;
                line-height: 75px;
            }
        }

        .search-icon {
            bottom: inherit;
        }
    }
}
/** .news-list-heading() used in 
    -- home page article section 
 **/
.news-list-heading {
    font-size: 30px;
    line-height: 50px;
    color: #303030;
    border-bottom: 6px solid #436c30;
    margin-top: 2rem;
    margin-bottom: 25px;
    padding-bottom: .3rem;
    .LatoRegular();

    a {
        float: right;
        font-size: 1rem;
        color: #303030;
        opacity: 0.47;
        .LatoLight();

        .fa-plus-circle {
            margin-right: 5px;
            font-size: 22px;
            vertical-align: text-bottom;
        }
    }

    .grid-icon {
        width: 40px;
        vertical-align: sub;
    }
}

.wf-img-bg {
    /*background-image: url(../img/at-img.jpg);*/
    background-size: cover;
    background-repeat: no-repeat;
    /*height: 760px;*/
    height: auto;
    position: relative;
    padding-top: 184px;
    margin-top: 0px;
    background-position: 50% 25%;

    .maxWidth(48em, {
        padding-top: 182px;
        background-size: auto 100%;
        background-position: 70%;
        background-position-y: 60px;
        height: auto;
    }

    );
}

.at-btn() {
    background: #436c30;
    color: #fff !important;
    font-size: 1rem;
    padding: 14px 37px;
    text-align: center;
    border-radius: 11px;
    margin-top: 17px;
    text-transform: uppercase;
    cursor: pointer;
    height: 48px;
    line-height: 20px;
    display: inline-block;
    /*max-width: 180px;*/
    &:hover {
        opacity: 0.7;
    }
}

.newsBannerContainer {
    margin-top: 44px;
    position: relative;
    border-bottom: 12px solid #333;
    height: 348px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    &:after {
        content: '';
        background: #fff;
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0.3;
    }

    .overlay-text {
        position: relative;
        left: 0;
        top: 122px;
        color: #fff;
        background: rgba(0,0,0,.41);
        height: 214px;
        width: 344px;
        line-height: 214px;
        z-index: 2;

        h1 {
            position: absolute;
            width: 95%;
            top: 50%;
            left: 50%;
            -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
            text-align: center;
            .LatoLight();
            text-transform: uppercase;
            font-size: 3rem;
        }

        .head {
            position: absolute;
            width: 95%;
            top: 50%;
            left: 50%;
            -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
            text-align: center;
            .LatoLight();
            text-transform: uppercase;
            font-size: 3rem;
        }
    }

    .maxWidth(768px, {
        height: 312px;

        .overlay-text {
            top: 87px;
        }
    }

    );

    .small( {
        .overlay-text {
            top: 150px;
            height: 150px;
            width: 230px;
            line-height: 96px;

            h1 {
                width: 95%;
                font-size: 29px;
            }

            .head {
                width: 95%;
                font-size: 29px;
            }
        }
    }

    );
}

.GlobalBanner() {
    border-bottom: 12px solid #333;

    .banner-txt {
        span {
            //color:#303030;
            float: left;
            font-size: 56px;
            height: 78px;
            line-height: 78px;
            margin-top: 12px;
            padding: 0 11px;
            text-transform: uppercase;
            width: auto;
            position: relative;
            z-index: 1;
            color: #fff;
            font-size: 60px;
            padding: 0 10px;
            margin-top: 12px;
            float: left;
            width: auto;
            text-transform: uppercase;
            height: 72px;
            line-height: 72px;
            font-weight: 500;

            &.clear {
                padding: 0;
            }

            &:not(.clear) {
                &:after {
                    background: #436C30 none repeat scroll 0 0;
                    top: 0;
                    content: '';
                    left: 0;
                    position: absolute;
                    height: 100%;
                    width: 100%;
                    z-index: -14;
                }
            }
        }
    }

    .banner-txt-container {
        margin-top: 131.5px;
    }

    p {
        display: none;
    }

    .banner-txt {
        /*  text-shadow: 0 3px 6px rgba(0,0,0,0.16);*/
        .LatoLight();
    }

    .news-overlay {
        background-image: linear-gradient(transparent,transparent,rgba(0,0,0,.1),rgba(0,0,0,.1),rgba(0,0,0,.3),rgba(0,0,0,.7));
    }

    .small( {
        .banner-txt-container {
            margin-top: 5px;

            span {
                font-size: 30px;
                margin-top: 5px;
            }
        }
    }

    );
}
