/*------ 2023-24 Imapct report styles ------*/
/*------ Styles are handled as follows - Global/universal styles are placed as high on the sheet as posssible - specifics, mobile and  overrides are at the bottom  ------*/
/*---- Base Styles ----*/
body,
.report-background-wrapper
 {
    background-color: #fff;
}
.wrapper {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 0;
    box-sizing: border-box;
}
nav p {
    margin-top:0;
}
.impact-intro p,
.impact-intro h2{
    padding: 0 28px 0 28px;
    margin-bottom: 0;
}
.report-title {
    font-size: 200%;
}
p {
    font-size: 100%;
}
.hero-image, 
.header-section,
.column-wrapper, 
.kpi-flex,
.flex {
    display: flex;
}
/*---- Baseline Gradient Colour ----*/
.gradient {
    background: rgb(0,159,161);
    background: linear-gradient(40deg, rgba(0,159,161,1) 0%, rgba(45,178,74,1) 100%);
}
.gradient.now-next {
    background: rgb(0,159,161);
    background: linear-gradient(40deg, rgba(0,159,161,1) 0%, rgba(45,178,74,1) 100%);
}
/*.lead-title {
    z-index: 10; 
    text-align: right; 
    margin: 48px 0 -90px 0; 
    padding-top: 16px;
}*/
.box-overlap {
    margin-bottom: -36px;
}
/*---- Styles for letters ----*/
.portrait {
    margin: 4px 12px 0 0;
    }
.minister-message {
    margin: 0 8px 0 16px;
    padding-right: 8px;
}
.minister-message p {
    margin-top: 0;
}
.margin-0{
    margin: 0 0 4px 0;
}
/*---- Styling the HR for the letters ----*/
.oicr-break {
    border:0;
    background-image: url(images/ar-section-break.png);
    background-repeat: no-repeat    ;
    height: 20px;
    margin: 32px 0;
    background-position: center center;
}

/*---- Base styles for images for banners and sections ----*/

.column-wrapper.kpi {
    color: #000;
    padding: 8px 0;
    margin: 0 auto;

}
.column-wrapper.kpi.mt-0 {
    margin: 0 auto;     
}
.column-wrapper.kpi.mb-0 {
    margin: 32px 0 0 0;     
}
.eyebrow {
    margin-top: 0;
    font-size: 24px;
    font-weight: 500;
}
.hero-image.intro{
    background-size: cover;
    flex-direction: column;
    background-image: url(images/option-1.jpg);
    background-size: cover;
    background-position: center;
    height: 460px;
    margin: 0 0 16px 0;
    justify-content: center;
    border-top: solid 1px #999;
    border-bottom: solid 2px #777;
}
.hero-image.message-1 {
    background-image: url(images/solutions.jpeg);
    background-position: center -90px;
    background-size: cover;
    height: 500px;
    margin: 24px 0;;
}
.hero-image.message-2 {
    /*-background-image: url(images/technology.jpeg);-*/
    background-image: url(images/oicr-technology.jpeg);
    background-size: cover;
    height: 550px;
    margin: 24px 0;;
}
.hero-image.message-3 {
    background-image: url(images/access.jpg);
    background-position: center -90px;
    background-size: cover;
    height: 450px;
    margin: 24px 0;;
}
.hero-image.message-4 {
    background-image: url(images/ontario.jpeg);
    background-size: cover;
    height: 450px;

    margin: 24px 0;;
}
.now-next {
    width: 100%; 
    padding: 8px 0;
    overflow: visible;
    position: static;
}
.now-next-image {
    width: 102%; 
    height: auto;
    margin-right: -24px;
    border-left: solid #fff 12px; 
    border-top:solid #fff 8px; 
    background-color: #fff;
}
.white-text {
    padding: 0 16px;
    color: #fff;
}
.stories {
    margin-top: 24px;
}



/*---- Base style for the  banners and KPIs ----*/

.hero-message {
    background-color: transparent;
    padding: 12px 24px;
    color: #fff;
}
.hero-message h2 {
    font-size: 350%;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}
h2.section-title {
    font-size: 300%;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}
.hero-message .explainer {
    font-size: 150%;
}
.section-intro {
    font-size: 118.75%;

}
.hero-message.message-1,
.hero-message.thrive {
    color: #fff;
    text-transform: uppercase;
    margin-left: 36px;
    text-shadow:  1px 1px 0 #2e2e2e, 1px 2px 0 #2c2c2c, 2px 3px 0 #2a2a2a, 3px 4px 0 #282828, 4px 5px 0 #262626;

}
.hero-message.research,
.hero-message.prosper {
    background-color: rgba(0, 153, 173, 0.9);
    color: #fff;
}
.mb-0 .major-kpi {
    margin: 40px 24px 8px 24px;
 
}
.kpi-flex {
align-items: center;
margin: 16px 0;
}
.kpi-flex p {
    padding: 0 16px 0 32px;
    margin: 0;
    font-size: 100%;
    line-height: 1.3;
}
.kpi-flex p.long {
    font-size: 105%;
}
.kpi-flex p .date{ 
    font-size: 60%;
}
.kpi-focus {
    font-size: 125%;
    font-weight: bold;

}
/*-- Consider setting the margin for the hero messages individually due to the mobile layout --*/

/*---- Font Styles ----*/
html {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    line-height: 1.65;
}
/*-- Sub head needs bottom margin removing --*/
h3 {
    margin-bottom: 0;
    font-size: 118.75%;
    border-bottom: #39B54A solid 2px;
    margin: 24px 16px 24px 16px;
    text-transform: uppercase;
    letter-spacing: -.4px;
}
h3.img {
    margin: 0 16px;
}
/*-- Seperates the text from the screen edge on devices--*/
/* - is this selector causing double spacing? feature-text,*/
.intro-text,
.column {
    padding:0 16px;
}
.feature-text {
    margin: 32px 0 24px 0;
}
.outro {
    background-color: #333;
    color: #fefefe;
    padding: 24px;
}
.outro-icon {
    padding-top: 24px;
}
.outro div{
    margin: 0 18px;
}
.column {
    box-sizing: border-box;
}
.outro a,
.outro a:link,
.outro a:visited {
    color: #39B54A;
}
.outro a:hover {
    color: #2980b9;
    text-decoration: underline;
}
/*---- Responsive Images - limited to features ----*/
img.column-feature, 
.now-next-image img,
.box-overlap {
    width: 100%;
    height: auto;
}

/*---- Links in the menu ----*/
a.about,
a.about:link,
a.about:visited {
    margin: 0 16px;
    color: #333;
    display: inline-block;
    padding: 2px 12px;

}
a.language,
a.language:link,
a.language:visited {
    color: #000;
    display: inline-block;
    padding: 2px 12px;
    text-align: center;
    border-radius: 20px;
    box-sizing: border-box;
}

a.language:hover,
a.about:hover {
    background-color: #65bc45;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;

}
/*---- Links in the document ----*/
a,
a:link, 
a:visited {
   color: #2980b9;
}
a:hover {
    color: #3C8711;
    text-decoration: underline;
}
.minister-message a,
a:link, 
a:visited {
   color:#3C8711;
   text-decoration: none;
}
a.white-link,
a:link.white-link, 
a:visited.white-link {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}
a:hover.white-link {
    text-decoration: none;


}
.minister-message a:hover {
    color: #2980b9;
    text-decoration: underline;
}
/* --- Link buttons --- */
a.button-link,
a.button-link:link,
a.button-link:visited, 
p.read-more {
    color: #ffffff;
    display: block;
    padding: 6px 8px;
    width: 180px;
    border-radius: 3px;
    text-align: center;
    text-decoration: none;
    font-weight: bold ;
    text-transform: uppercase;
}
a.button-link:hover,
p.read-more:hover {
    text-decoration: underline;
    background-color: #65bc45;
}

/*--- The footer --*/
.wrapper.footer-section {
    background-color: #121212;
    text-align: right;
    color: #fff;
    border-top: #39B54A 5px solid;
}
footer {
    padding: 24px;
}
footer p {
    font-size: 90%;
}
/*--- Links in the footer ---*/

footer a,
footer a:link, 
footer a:visited {
   color: #39B54A;
}
footer a:hover {
    color: #2980b9;
    text-decoration: underline;
}
/*---Capitalization is wrong on the french this is the fix ---*/
.caps {
    text-transform: uppercase;
}


/*---- Media Queries ----*/
/*---- Mobile ----*/
@media screen and (min-width: 320px) {
    .header-section  {
        flex-direction: column;
        align-items: center;
        border: #39B54A;
    }
    nav {
        padding: 0;
        background-color: #ededed;
        border-bottom: solid 2px;
        width: 100%;
        text-align: center;
    }
    h1.logo {text-align: center;}
    .hero-image {
        height: 360px;
        background-size: contain;
        justify-content: flex-end;
        align-items: flex-start;
    }
    .hero-message {
        width:100%;
    }
    .mt-16 {
        margin-top:16px;
    }
/*-- create a space for the overlap --*/
    .hero-image.health,
    .hero-image,
    .hero-image.research,
    .hero-image.thrive,     
    .hero-image.prosper  {
        background-position-x: right;
    }
    .hero-image.health {
        background-position-x: right;
    }

/*-- overlap uses the space --*/
.hero-message.intro,
.hero-message.theme-1,
.hero-message.research,
.hero-message.thrive,
.hero-message.prosper {
        margin:0;
    }
    .hero-image.message-1,
    .hero-image.message-3, 
    .hero-image.message-4 {
        height: 400px;
        background-position: center;
    }
    .hero-image.message-2 {
        background-position: center;
        height: 350px;
    }
    h2 {
        font-size: 1.25em;
    }
    h2.section-title {
        font-size: 220%;
    }
    .french-language h2{
        font-size: 1.15em;
    }
    .french-language h2.section-title {
        font-size: 200%;
    }
    .column-wrapper {
        flex-direction: column;
    }
    .column {
        width: 100%;
    }
    .major-kpi {
        margin: 24px;
        display: block;
        font-size: 2em;
        text-align: center;
        font-weight: bold;
        }
        .hero-message h2 {
            margin: 0;
        }
        .three-column-wrapper {
            width: 100%;
            box-sizing: border-box;
            flex-direction: column;
        }
        .minister-message {
            padding-bottom: 12px;
            margin-bottom: 12px;
        }
        .outro-icon {
            display: none;
        }
}
/*---- Tablet ----*/
@media screen and (min-width: 600px) {
    .hero-image {
        height: 500px;
    }
    .column-wrapper  {
        justify-content: space-between;
        flex-direction: row;
    }
    .column {
        width: 50%;
    }
    /*---- reduce center gap of columns ----*/
    .left {
        padding-right: 6px;

    }
   .right {
    padding-left: 6px;
    }
    .mt-16 {
        margin-top:0;
    }
    .kpi-flex img {
        width: 70px;
        height: 70px;
    }
    .hero-image.health {
        background-position-x: 0;
    }
    .hero-image.message-2 {
        background-position: center;
        height: 400px;
    }
    .major-kpi {
        margin: 32px 28px ;
        font-size: 2.4em;
        font-weight: bold;
        }
        .three-column-wrapper {
            width: 100%;
            box-sizing: border-box;
            flex-direction: row;
        }
        .outro-icon {
            display: block;
        }
}

/*---- Computer ----*/
@media screen and (min-width: 1024px) {
    html {
        background-color: #ededed;
    }
    /*-- Header layour altered on computer --*/
    .header-section {
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: flex-end;
    }
    nav {
        width: auto;
        background: transparent;
        border: 0;
        margin-right: 16px;
        font-size: 115%;
        text-align: right;
    }
    h1.logo {
    text-align: left;
    margin: 0;
    }
    .hero-image.message-2 {
        background-position: right;
        height: 600px;
    }
    /*-- Limit the width on full sized devices - font line length is to be considered--*/
    .wrapper {
        width: 1024px;
        margin: 0 auto;
        padding-bottom: 24px;
    }
    .wrapper.footer-section {
        width: 100%;
    }
    .hero-image {
        height: auto;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 48px;
    }
    .mt-16 {
        margin-top:0;
    }
    .hero-image.message-1 {
        height: 500px;
    }

    .hero-message {
        width:1024px;
    }
    .hero-image.health .hero-message {
        width:40%;
    }
/*-- Remove the space for the overlap - on desktop --*/

    .hero-image, 
    .hero-image.health, .hero-image {
        margin-top: 32px;
        margin-bottom: 0;
    } 
    .hero-message h2 {
        font-size: 400%;
    }

    .hero-message.health
     {
        margin-top: 36px;
    }
    .column-wrapper  {
        justify-content: space-between;
        flex-direction: row;

    }
    .major-kpi {
        color: #333;
        margin: 40px;
        font-size: 2.8em;
        }
    .kpi-flex img {
        width: 100px;
        height: 100px;
    }
    .three-column {
        width: 30%;
        box-sizing: border-box;
    }
    .column {
        width: 49.5%;
    }
}