/* ==========================================================================
   Override - Last CSS file loaded  
   ========================================================================== */

/**
 * These rules apply to one view (single page, wordpress template, etc) only. 
 * 
 * Rules that apply to more than one public view can be found in   
 * main-global.css or main-helpers.css.  Most layout rules can be found in 
 * main-grid.css  
 *
 */ 


/* Site Colors: 

blue:  
light blue:  
green:  
orange:  
turquoise:  
yellow:  

*/

/*
Site fonts: 
font-family: 
*/ 

/*
 Library Stuff
 =========================================== 

.svg-anim { display:none; }

* Background video *   
.bk-vid {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-width: 100%;
	min-height: 100%;
	max-width: initial;
}

.bk-vid-parent {
	overflow: hidden; 
	position: relative;
}
*/

/*
 General
 ===================================== 

*/

.subnav-bar { background-color: #e4e4e4 }

.feature { padding: 15px; }

.hide { display:none; }

 #js-breakviewer {
    position: absolute;
    margin: 0;
    padding: 0;
    height: 1px;
    bottom: 0;
} 

#js-breakviewer li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.intro {
    max-height: 850px;
}

.nav .dropdown {
    font-size: 17px;
}    

.nav > ul > li > a.btn {
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 19px;
    text-transform: uppercase;
    border: 1px solid #2b5d67;
    padding: 4px 10px;
    min-width: 140px;
    -webkit-transition: background .4s, color .4s, border-color .4s;
    -o-transition: background .4s, color .4s, border-color .4s;
    transition: background .4s, color .4s, border-color .4s;    
}

.nav .dropdown:after {
    height: calc(100% + 8px);
}    

.nav > ul > li:hover > a.btn:before { width: 0; }

/* Back to Top */
#to_top.btn-scroll {
    position: fixed;
    bottom: 20px;
    right: 52px;
    font-size: 0;
    border: none;
    background: #00a9bc;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    z-index: 20;   
    transform: rotate(90deg);
    display:none;
}

#to_top.btn-scroll:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: url(../images/temp/ico-arrow-small-white.png) no-repeat 0 0;
    width: 45px;
    height: 21px;
    background-size: 85% 85%;  
}

/* Ninja Forms */

.field-wrap .pikaday__container, 
.field-wrap .pikaday__display, 
.field-wrap>div input, 
.field-wrap select, 
.field-wrap textarea {
    width: 100%;
    border: 1px solid;
    padding: 5px;
}

.nf-field-label label {
    font-weight: 600;
    font-size: .9em;
}

div.nf-form-fields-required { display:none; }

.ninja-forms-field.nf-element[type="button"] {
    background-color: #8fc641;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 19px;
    text-transform: uppercase;
    border: 1px solid #2b5d67;
    padding: 4px 10px;
    min-width: 140px;
}

.ninja-forms-field.nf-element[type="button"]:hover {
    color: #2b5d67; 
    background-color: transparent;
}    

/* Gutenberg */

hr.wp-block-separator {    
    margin-top: 1.5em;
    margin-bottom: 1.5em; 
}

.wp-block-button.is-style-default .wp-block-button__link,
.wp-block-file .wp-block-file__button {
    background-color: #8fc641;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 19px;
    text-transform: uppercase;
    border: 1px solid #2b5d67;
    padding: 8px 10px;
    min-width: 140px;
    border-radius: 0;
}

.wp-block-file a.wp-block-file__button:active, 
.wp-block-file a.wp-block-file__button:focus, 
.wp-block-file a.wp-block-file__button:hover, 
.wp-block-file a.wp-block-file__button:visited {
    box-shadow: none;
    color: #2b5d67;
    opacity: 1;
    text-decoration: none;
}

.wp-block-button.is-style-default .wp-block-button__link:hover,
.wp-block-file .wp-block-file__button:hover {  
    color: #2b5d67; 
    opacity: 1;
    background-color: transparent;
}

.wp-block-button.is-style-default { margin-bottom: 1em; }

/* Accordion */

.accordion__body li { list-style: inside; }

/* Utlities */
.no-underline {
    text-decoration: none !important;
}

/* Resources */
body.page-template-page-resources_p-php .feature-alt .feature__bar .link {
    color: #000;
}

body.page-template-page-resources_p-php .feature-alt .feature__content .h3 {
    line-height: 1.5;
}

body.page-template-page-resources_p-php .feature-alt--primary .feature__bar {
    background: transparent;
    border-bottom: 1px solid #000;
}

body.page-template-page-resources_p-php .feature__content .entry {
    margin-bottom: 46px;
}

/* Programs Page */
body.page-template-page-all_services_p .feature-alt .feature__image {
    padding-top: 29.4%;
}

/* Single Blog Post */

body.single-post #content { 
    margin-bottom: 325px; 
}

body.single-post .intro-alt--size1 {  padding: 55px 0; }

body.single-post .intro-alt .intro__image--secondary { top: -230px; }

body.single-post .single-content { padding-top: 50px; }

body.single-post .main__content { max-width: 1400px; }

body.single-post .intro__content h1.h3 { font-size: 42px; font-weight: 700; line-height: 1.2; }

body.single-post .intro__content .date a { font-weight: 400; line-height: 1; text-decoration: none; }

body.single-post .main__content ul,
body.single-post .main__content ol { margin-left: 1.05em; }

body.single-post .main__content ol li::before {
    content: "";
    width: 10px;
    display: inline-block;
  }

/* Single Event */

body.single-tf_event #content { 
    margin-bottom: 325px; 
}

body.single-tf_event .intro-alt--size1 {  padding: 55px 0; }

body.single-tf_event .intro-alt .intro__image--secondary { top: -230px; }

body.single-tf_event .single-content { padding-top: 50px; }

body.single-tf_event .main__content { max-width: 1400px; }

body.single-tf_event .intro__content h1.h3 { font-size: 42px; font-weight: 700; line-height: 1.2; }

body.single-tf_event .intro__content .date span { font-weight: 400; line-height: 1; }

/* Default Page */

body.page-template-default #template-wr { 
    margin-bottom: 185px; 
}

body.page-template-default .section__content .page ul,
body.page-template-default .section__content .page ol {  margin-left: 1.05em; }

body.page-template-default h1.section__title,
body.page-template-default h1.section__title:last-child { margin-bottom: .75em; }

body.page-template-default div.page h2, 
body.page-template-default div.page h3,
body.page-template-default div.page h4,
body.page-template-default div.page h5,
body.page-template-default div.page h6 { 
    margin-bottom: .5em;
    padding-top: .75em;
}

body.page-template-default div.page h2, 
body.page-template-default div.page h3 {
    padding-top: .5em;
    margin-bottom: 1.25em;
}

body.page-template-default div.page h5 + h3 {
    padding-top: 0;
}

body.page-template-default div.page p,
body.page-template-default div.page ul,
body.page-template-default div.page ol { margin-bottom: .75em; }


/* Programs Page */
.feature-alt .feature__bar .link:last-of-type {
    margin-right: 63px;
}

/* Donate Page */
body.page-template-page-donate_p .features div.more {
    font-weight: 200;
    font-size: 17px;
    margin-bottom: 41px;
}

body.page-template-page-donate_p .features div.more p { margin-bottom: 1em; }

/* 404 */
body.error404 #template-wr { 
    margin-bottom: 185px; 
}

body.error404 .section__content ul, 
body.error404 .section__content ol {  
    list-style-position: inside;
}

/* Single Case Study */
body.single-tf_case .service-alt .service__content { cursor: default; }

body.single-tf_case .graph .graph-inner {
    height: 500px;
}

body.single-tf_case .graph .graph-inner .graph-data {
    height: 100%;
}


body.single-tf_case h5 a { text-decoration: none; }

body.single-tf_case h5 a:hover { text-decoration: underline; }

body.single-tf_case #content ul { margin-left: 1.05em; }

body.single-tf_case #content ul.list-features { margin-left: 0;}

/* Single Person */
body.single-tf_people footer.footer { margin-top: 245px; }

/* Timeline Page */
body.page-template-page-timeline header.header { display:none; }

body.page-template-page-timeline #timeline_logo { 
    position: fixed;
    z-index: 9999999;
    background: transparent;
    clear: both;
    left: 127px;
    top: 5px;    
}

body.page-template-page-timeline #timeline_logo img {
    float: left;
    width: 60px;    
}

body.page-template-page-timeline #timeline_logo span {
    float: left;
    color: #fff;
    font-family: Poppins, Helvetica, sans-serif;
    font-size: 19px;
    text-transform: uppercase;
    top: 13px;
    padding-left: 10px;
    position: relative;
}

body.page-template-page-timeline #timeline_logo a span {
    text-decoration:none;
}

body.page-template-page-timeline #timeline_logo a:hover span {
    text-decoration: underline;
}

body.page-template-page-timeline .article__content .related {
    padding-top: 12px;
}

/*
 Contact Us Page
 ========================================================================== */

body.page-template-page-contact_p #jobs .section__head { margin-bottom: 2em; }

body.page-template-page-contact_p #jobs h5.h3 { margin-bottom: .75em }

body.page-template-page-contact_p #jobs ul { margin-left: 1em; }

body.page-template-page-contact_p .nf-field-element input { height: 74px; }

body.page-template-page-contact_p .ninja-forms-field.nf-element[type="button"] {
    background-color:#ffffff;
    color: #2b5d67;
    height: 55px
}

body.page-template-page-contact_p .ninja-forms-field.nf-element[type="button"]:hover {
    background-color:#8fc641;
    color: #ffffff;
}

/*
 Home Page
 ========================================================================== */

/* fix for very larg screens */
@media all and (min-width: 2300px) {
	
    /* home */
    
    /* programs page */
    body.page-template-page-all_services_p-php div.feature__body {
        min-height: 870px;
    }
	
}
	

/* Intermediary width tweak  */
@media (max-width: 1200px) { 

    /* Timeline home link */
    body.page-template-page-timeline #timeline_logo {
        left: 8px;
    }    

}

/* Only above main breakpoint */
@media (min-width: 993px) {

	/* Home */
    body.page-template-page-home_p .service .service__link { font-size: 31px; }

    body.page-template-page-home_p .service + .service { margin-top: 25px; }

    /* Resources */
    body.page-template-page-resources_p-php .feature-alt--primary .feature__bar {
        margin-bottom: 90px;
    }

    /* school food case study */
    body.single-tf_case.postid-21 .intro.intro--secondary { min-height: 1000px; }


    /* Happenning Now */
    body.page-template-page-now_p .slick-dots { display:none !important; }

    /* Timeline */
    body.page-template-page-timeline .section__group .shell,
    body.page-template-page-timeline .section__group .shell .section__body,
    body.page-template-page-timeline .section__group .shell .section__body .article-timeline { width: 100%; }


}	

/* Only below main breakpoint */
@media (max-width: 992px) {

    /* Ham Menu */
    .header .nav {
        margin: 35px 0 0;
        max-height: 420px;
    }    
    
    /* Home */
    body.page-template-page-home_p .widget-timeline .widget__image {
        margin: 0px -72px;
    }

    /* Programs */
    body.page-template-page-all_services_p .feature-alt .feature__image {
        padding-top: 65%;
    }

    /* Default Page */
    body.page-template-default div.page h2 { font-size: 20px }
    body.page-template-default div.page h3 { font-size: 18px }
    body.page-template-default div.page h4 { font-size: 16px }
    body.page-template-default div.page h5 { font-size: 11px }
    body.page-template-default div.page h6 { font-size: 11px }

    /* Timeline */
    body.page-template-page-timeline #timeline_logo img {
        width: 33px;
    }

    body.page-template-page-timeline #timeline_logo {
        top: 3px;
    }  

    body.page-template-page-timeline #timeline_logo span {
        font-size: 14px;
        top: 5px;
        padding-left: 5px;
    }    
    


}