/* ========================================================
   Individual landing-page (desktop and mobile)


   Following styles will affect only the landing page ID's
   ending with the -2019 tag. Once this is rolled out or
   updated post 2019 will adjust accordingly

   Flexbox has been used for the framework to keep the secondary
   boxes at an equal height based on the content

   Media Queries for the landing pages is located below :250

   ======================================================== */


/* Specific landing page banner URLS */

#providers.hero-feature {
    background-image: url('/images/providers/providers-home.jpg');
}

#housing.hero-feature {
    background-image: url('/images/housing/housing-banner.jpg');
}

#work.hero-feature {
    background-image: url('/images/work/work-banner.jpg');
}

#section-landing-2019 div#benefits-and-payments.hero-feature {
    background-image: url('/images/eligibility/eligibility-banner.jpg');
}

#section-landing-2019 div#on-a-benefit.hero-feature {
    background-image: url('/images/on-a-benefit/on-a-benefit-banner.jpg');
}

#section-landing-2019 #employers.hero-feature {
    background-image: url('/images/employers/employers-banner.jpg');
    background-position-y: top;
}

#section-landing-2019 #covid-19.hero-feature {
    background-image: url('/images/covid-19/covid-19-banner.jpg');
    background-position-x: right;
}


/* Banner */

#section-landing-2019 .hero-feature {
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #f8f8f8;
    background-position-x: 50%;
    background-position-y: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 300px;
    margin: 0 0 15px;
    position: relative;
    width: 100%;
}

#section-landing-2019.wi-flexiwage .hero-feature {
    background-color: #f8f8f8;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 300px;
    margin: 0 0 15px;
    position: relative;
    width: 100%;
}

#section-landing-2019.wi-flexiwage .hero-feature img {
    position: absolute;
    margin: 0 auto;
    width: 100%;
    bottom: 0;
    object-fit: cover;
    object-position: 100% 50%;
    height: 300px;
}

#section-landing-2019 .hero-feature .container {
    padding-top: 0;
}

#section-landing-2019 .hero-feature .summary {
    background-color: #FFF;
    line-height: 1.5;
    margin: 0;
    padding: 20px;
    position: absolute;
    text-align: left;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 45%;
}

#section-landing-2019 .hero-feature .summary h1 {
    font-weight: bold;
    line-height: 1;
    margin: 0;
    padding: 0;
}

#section-landing-2019 .hero-feature .summary .button {
    margin-top: 5px;
    border: none;
    background-color: transparent;
}

#section-landing-2019 .hero-feature .summary .button a {
    color: #ffffff;
    border-radius: 28px;
    line-height: 2.75;
    padding: 0 20px 0 50px !important;
    text-decoration: none;
    -webkit-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    position: relative;
    background: url("../images/search-button.svg") #0083ca 18px 14px / 19px 19px no-repeat !important;
    background-color: #0083ca;
    font-weight: normal;
}

#section-landing-2019 .hero-feature .summary .button a:hover,
#section-landing-2019 .hero-feature .summary .button a:focus {
    color: #ffffff !important;
    background-color: #282D41 !important;
    border: none;
    text-decoration: none !important;
    transition-duration: 0.5s;
    -webkit-animation-duration: 1s;
    -webkit-animation-delay: 0.5s;
    -webkit-animation-timing-function: linear;
}

#section-landing-2019 .hero-feature .summary .button a.find div {
    width: auto;
    margin: 0;
}


/* ========================================
    Main content
    ======================================== */

#section-landing-2019 .two-col-content {
    width: 100% !important;
}

#section-landing-2019 .block {
    margin: 0;
    padding: 0;
    width: 100%;
}


/* ========================================
 Custom section landing layout - override content div for skip link fix
======================================== */

#section-landing-2019 #content.section-landingpage {
    width: auto;
}

#content.section-landingpage .wi-breadcrumb {
    margin: 0 auto;
    padding: 0.8rem 0 0.8rem 0;
}


/* ========================================
    Primary links
    ======================================== */

#section-landing-2019 .block .article {
    background-color: #F4F4F4;
    border-radius: 8px;
    border: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin: 0.5em 0 1.5em 0;
    overflow: hidden;
    padding: 0;
    -webkit-transition: .15s ease-in-out;
    -o-transition: .15s ease-in-out;
    transition: .15s ease-in-out;
    text-decoration: none;
}

#section-landing-2019 .block .article:hover,
#section-landing-2019 .block .article:focus {
    -webkit-box-shadow: 0 0px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.5);
    -webkit-transform: scale(1.015, 1.015);
    -ms-transform: scale(1.015, 1.015);
    transform: scale(1.015, 1.015);
    text-decoration: none !important;
}

#section-landing-2019 .block .article:hover h2,
#section-landing-2019 .block .article:focus h2 {
    text-decoration: underline;
}

#section-landing-2019 .block .article img {
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    margin: 0;
}

#section-landing-2019 .block .article>div {
    -webkit-box-flex: 2;
    -ms-flex: 2;
    flex: 2;
    padding: 20px 2%;
}

#section-landing-2019 .block .article>div>h2,
.block .future a div h3 {
    font-size: 115%;
    padding: 0;
    margin: 0 0 15px;
    font-weight: bold;
}

#section-landing-2019 .block .article>div>p {
    color: #2A2A2A !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.0em !important;
}


/* ==========================================
    Secondary links - reference class .future
    ========================================== */

#section-landing-2019 .block .future {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin: 0 -1.5%;
    padding: 0;
}

#section-landing-2019 .block .future h2 {
    margin: 1.0em 1.5% 0.25em;
    -webkit-box-flex: 1;
    -ms-flex: 1 100%;
    flex: 1 100%;
}

#section-landing-2019 .block .future a {
    background-color: #ffffff;
    -webkit-box-shadow: 0 0px 2px rgba(0, 0, 0, 0.75);
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.75);
    border-radius: 8px;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    margin: 0.85em 1.6%;
    min-height: 250px;
    overflow: hidden;
    padding: 0;
    text-decoration: none !important;
    -webkit-transition: .15s ease-in-out;
    -o-transition: .15s ease-in-out;
    transition: .15s ease-in-out;
    -webkit-transform: scale(1.00, 1.00);
    -ms-transform: scale(1.00, 1.00);
    transform: scale(1.00, 1.00);
    width: 30%;
}

#section-landing-2019 .block .future>a:hover {
    -webkit-box-shadow: 0 0px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.5);
    -webkit-transform: scale(1.025, 1.025);
    -ms-transform: scale(1.025, 1.025);
    transform: scale(1.025, 1.025);
}

#section-landing-2019 .block .future>a:focus {
    outline: #0169ad auto 0.1875rem;
}

#section-landing-2019 .block .future>a:hover h2,
#section-landing-2019 .block .future>a:focus h2,
#section-landing-2019 .block .future>a:hover h3,
#section-landing-2019 .block .future>a:focus h3 {
    text-decoration: underline;
}

#section-landing-2019 .block .future>a>div {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 1.250em;
}

#section-landing-2019 .block .promo {
    background-color: #F4F4F4;
    border-left: 9px solid #ffae39;
    font-family: Georgia, Times, Times New Roman, serif !important;
    font-size: 145%;
    color: #2A2A2A;
    line-height: 1.5em;
    margin: 30px 0;
    padding: 1.0em 1.0em 0.75em 1.0em;
    position: relative;
}

#section-landing-2019 .block .promo span {
    font-weight: bold;
    line-height: 2;
}


/* ========================================================
  Media Queries
  ======================================================== */


/* 1600px wide and above */

@media (min-width: 1600px) {
    /* Specific landing page banners */
    #housing.hero-feature {
        background-image: url('/images/housing/housing-banner-wide.jpg');
        background-position-x: 35%;
    }
    #work.hero-feature {
        background-image: url('/images/work/work-banner-wide.jpg');
        background-position-x: 35%;
    }
}

@media (max-width: 1000px) {
    /* Specific landing page banners */
    #providers.hero-feature {
        background-position-x: 60%;
    }
}


/* 870px wide and below */

@media (max-width: 870px) {
    #section-landing-2019 .hero-feature {
        height: 250px;
    }
    #section-landing-2019 .hero-feature .summary {
        width: 55%;
    }
    /* Adjust margin-bottom on drop-down menu */
    #section-landing-2019 .sticky-footer-wrapper .site-responsive-nav #nav-wrap {
        margin-bottom: -2px!important;
    }
    #section-landing-2019 .block .article,
    #section-landing-2019 .block .future a {
        -webkit-box-shadow: 0 0px 4px rgba(0, 0, 0, 0.5);
        box-shadow: 0 0px 4px rgba(0, 0, 0, 0.5);
    }
    #section-landing-2019 .block .article:hover,
    #section-landing-2019 .block .future>a:hover {
        -webkit-transform: scale(1.0, 1.0);
        -ms-transform: scale(1.0, 1.0);
        transform: scale(1.0, 1.0);
    }
    #section-landing-2019 .block .article img {
        -webkit-box-flex: 2;
        -ms-flex: 2;
        flex: 2;
    }
    #section-landing-2019 .block .article>div {
        -webkit-box-flex: 2;
        -ms-flex: 2;
        flex: 2;
    }
    /* secondary blocks */
    #section-landing-2019 .block .future a {
        border: 1px solid #d0d0d0;
        margin: 0.85em 1.5%;
        min-height: 200px;
        width: 46%;
    }
}


/* 650px wide and below */

@media (max-width: 650px) {
    #section-landing-2019 .hero-feature .summary {
        width: 65%;
    }
    #section-landing-2019 .block .future a {
        min-height: auto;
        width: 100%;
    }
}


/* 633px wide and below  */

@media (max-width: 633px) {
    /* Specific landing page banners */
    #housing.hero-feature {
        background-image: url('/images/housing/housing-banner-mobile.jpg');
    }
    #work.hero-feature {
        background-image: url('/images/work/work-banner-mobile.jpg');
    }
    #providers.hero-feature {
        background-position-x: 80%;
    }
    /* Landing Pages 2019*/
    #section-landing-2019 .hero-feature {
        background-position-y: 70%;
        margin: 0 0 5px;
        height: 190px;
        transition: all 0s;
    }
    #section-landing-2019 .hero-feature .summary {
      background: transparent;
      margin: 220px 0 0;
      padding: 0;
      width: 100%;
      top: 0;
      -ms-transform: translateY(0%);
      transform: translateY(0%);
      position: relative;
    }
    #section-landing-2019 .hero-feature .summary .button a {
        line-height: 3;
    }
    #section-landing-2019 .two-col-content {
        width: 100% !important;
        margin: 175px 0 0;
    }
    #section-landing-2019 .block .article {
        background: none;
    }
    #section-landing-2019 .block .article img {
        display: none;
        width: auto;
    }
    #section-landing-2019 .block .future {
        margin: 0;
    }
    #section-landing-2019 .block .future a {
        margin: 0 0 1.5em 0;
        border: none;
    }
    #section-landing-2019 .block .article>div {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 95%;
        flex: 0 0 95%;
    }
    #section-landing-2019 .block .article>div,
    #section-landing-2019 .block .future a>div {
        padding: 20px 2.5%;
    }
}

#section-landing-2019 .block.block__warning .article {
    background: #a4001e url(/webadmin/images/home/alert.svg) no-repeat 10px 14px;
    padding: 0;
    padding-left: 63px;
    border-radius: 0;
    border: 3px solid #a4001e;
}

#section-landing-2019 .block.block__warning .article img {
    display: none;
}

#section-landing-2019 .block.block__warning .article>div {
    background-color: #fff;
}
