/** Custom Styles


DARK BROWN  #525649
TEAL        #346b6b
LIGHT GRAY  #f7f7f7
GREEN       #8faa44 / #66870A (links)
LIGHT GREEN #C6E398
BROWN       #93572c

1. GENERAL
2. HEADER
3. NAV
4. HOME
5. CONTENT

**/




/** 1. GENERAL **/

html {
  position: relative;
  min-height: 100%;
}

body {
    border-top: 16px solid #525649;
	line-height: 24px;
    font-family: "Open Sans";
    /* Margin bottom by footer height */
    margin-bottom: 60px;
	font-size: 16px;
}

#page, #page2 {
    margin-bottom: 160px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display";
}

.h1, h1 {font-size: 3rem; margin-bottom: 1.25rem; }
.h2, h2 { font-size: 1.5rem; margin-bottom: 1.25rem;  }
.h3, h3 { font-size: 1.15rem; margin-bottom: 1.25rem; }

.centered { text-align: center;}

.more-space {margin: 100px;}

hr.seperator {
    margin: 70px auto;
    border-color: #525649;
    width: 30%;
}

a { color: #93572c; color: #346b6b; color: #26856b; }
a:hover { color: #66870A; text-decoration: none;}

a.button-link {
    /* border: 1px solid #346b6b; 
    color: #346b6b;*/
	background-color: #346b6b; 
    color: #fff;
    padding: 7px 10px;;
    border-radius: 5px;
    margin: 15px 0;
    display: inline-block;
}

a.button-link:hover {
    background-color: #8faa44;
    color: #fff;
}



button {background-color: #346b6b; color: #fff;  border: none; padding: 10px 50px; margin: 30px auto; display: block; border-radius: 5px;}
button:hover {background-color: #8faa44; }

button.btn-green {background-color: #8faa44; color: #fff;  border: none; padding: 3px 8px; margin: 10px 7px 50px 7px; border-radius: 4px;}
button:hover.btn-green, button.active  {background-color: #346b6b;}


.alert-error {background-color: #E75A5C; color: #fff;}
.hidden {display:none;}

b, strong {font-weight: 800;}

.grey-area { background-color: #f7f7f7; padding: 50px 50px 70px 50px;}



.fa-lg {vertical-align: -5% !important;}

.attn-text {font-size: 1.25rem; line-height: 1.75rem;}


/** 2. HEADER **/

#header { padding: 50px 0; }

.logo { width:100%; 
	min-width: 100px;
    max-width: 160px;}


/** 2. NAV **/
ul.mainnav {
    text-align: right;
    list-style-type: none;
    font-family: "Playfair Display";
    font-size: 1.05rem;
	margin-top: 30px;
	
}

ul.mainnav li {
    display: inline-block;
    padding: 20px 18px 10px 18px;
}

ul.mainnav li.last {padding-right: 0;}

ul.mainnav li a {
    color: #000;
}

ul.mainnav li a:hover {
    /* border-bottom: 5px solid #8faa44; */
	color: #66870A;
    -webkit-transition: all 200ms ; 
    -moz-transition: all 200ms; 
    -o-transition: all 200ms; 
    transition: all 200ms;
}

/* ul.mainnav span.glyphicon {font-size: 80%; margin-left: 3px;}
ul.mainnav li.has_children span.glyphicon {display: inline;} */

ul.subnav li {
    background-color:#8faa44; 
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #fff;
    width: 100%;
    font-size: 1.05rem;
}

ul.subnav li:hover { 
    color: #000;
    background-color: #C6E398;
     -webkit-transition: all 200ms ; 
    -moz-transition: all 200ms; 
    -o-transition: all 200ms; 
    transition: all 200ms;
}

ul.subnav li a:hover { 
    border-bottom: none;
	color: #000;
}

.nav-toggle {
   float:right;
    font-size: 2rem;
    padding: 10px 20px 10px 30px; 
	
}

.dropit .dropit-submenu { left: 20px;}

/** 4. HOME **/

#banner {
    background-image: url(../img/headline-header.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    text-align: center;
    width: 100%;
    padding: 150px 0;
    color: #fff;
    text-shadow: 2px 2px 2px #000;
}

.subheading {
    font-size: 150%;
    padding: 0 17%;
	line-height: 1.4em;
	font-weight: 300;
	letter-spacing: .5px;
   
}



.focus-box {
    background-repeat: no-repeat;
    min-height: 240px;
    background-size: cover;
    padding: 35% 0;
    text-align: center;
    color: #fff;
    margin: 50px 0 0 0;
     -webkit-transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
}

.focus-conservation {
    background-image: url(../img/headline-conservation.png);
}

.focus-community {
    background-image: url(../img/headline-community.png);
}

.focus-innovation {
    background-image: url(../img/headline-innovation.png);
}

.focus-edu {
    background-image: url(../img/headline-edu.png);
}

.focus-box h6 {
    font-size: 1.4rem;
    margin: 15px;
}

.focus-box hr {
    width: 20%;
    border:none;
    height: 2px;
    background-color: #fff;
    margin: 15px auto;
}

.focus-desc {
    display:block;
    padding: 10px 20px 0 20px;
    width: 83%;
    position: absolute;
	margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
    opacity: 0;
     -webkit-transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
    text-shadow: 1px 1px 1px #000000;

}

.focus-box:hover .focus-desc {
    opacity: 1;
    -webkit-transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
}

.focus-box:hover  {
    padding: 20% 0 50% 0;
    -webkit-transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition: all 300ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
}

.overlap-area { 
    background-color: #f7f7f7; 
    padding: 250px 20% 115px ;
    margin:-290px 0 100px;
    
        }

.viewAll {text-align: right; width: 100%; padding-right: 40px;}
.success-story { background-color: #f7f7f7; margin: 0 10px 50px 0;}
.success-story img { width: 100%; margin-bottom: 15px;}
.success-story .intro-text {padding: 25px; min-height: 250px;}
.success-story .type-ribbon {
    color: white;
    text-align: right;
    padding: 3px 25px 0 0;
    margin:0 0 -45px 75px;
    height: 30px; 
    background-color:#8ba644;
    opacity: .9;
    position: relative;
    top:-45px; }



/** 5. CONTENT **/
#content-header {
    background-image: url(../img/header-about.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    color: #fff;
    text-shadow: 2px 2px 2px #000;
    padding:60px 0 60px 40px;
    margin-bottom: 70px;
}

#content-header.focus-header {
    background-image: url(../img/header-focus.jpg);
}

#content-header.focus-community {
    background-image: url(../img/header-community.jpg);
}

#content-header.focus-conservation {
    background-image: url(../img/header-conservation.jpg);
}

#content-header.focus-education {
    background-image: url(../img/header-education.jpg);
}

#content-header.focus-innovation {
    background-image: url(../img/header-innovation.jpg);
}

#content-header.focus-trustees {
    background-image: url(../img/header-trustees.jpg);
}

#content-header.focus-policies {
    background-image: url(../img/header-policies.jpg);
}

#content-header.apply {
    background-image: url(../img/header-apply.jpg);
}

#content-header.impact {
    background-image: url(../img/header-impact.jpg);
}

#content-header.sucess-story-placeholder {
    background-image: url(../img/header-story.jpg);
} 

#content-header.apply-process {
    background-image: url(../img/header-applyprocess.jpg);
} 

#content-header.grants {
    background-image: url(../img/header-grants.jpg);
} 

#content-header.contact {
    background-image: url(../img/header-contact.jpg);
} 

#content-header.bahamas {
    background-image: url(../img/header-bahamas.jpg);
} 

#content-header h2 {
    display:inline-block;
    margin-bottom: 0;
}

#content-header hr {
    width: 40px;
    margin: 20px auto;
	border-top: 1px solid #fff;
}

.grey-row {
    background-color: #f7f7f7;
    margin-top: 50px;
}

.connected-left .img-cover,
.connected-right .img-cover {
     padding: 0;
}

.img-cover { background-size: cover;
    background-repeat: no-repeat; 
	min-height: 200px;
	background-position: center;
}



.grey-box {
    background-color: #f7f7f7;
    padding: 30px 20px 40px 20px;
}

.img-cover + div div.grey-box {
    padding: 30px 20px 40px 0;
}

.trustee-bio img { width: 100%;}
.trustee-bio h3 {margin-top:0;}

/* .sucess-story-imgs img {
	height: 300px;
	margin: 2px;
}
*/


/*--- SUCCESS STORIES ---- */


#content-header.success-perinatalhope {
    background-image: url("../img/impact/header-perinatalhope.jpg");
} 

#content-header.success-asf-research {
    background-image: url("../img/impact/header-salmon.jpg");
} 

#content-header.success-mrwa {
    background-image: url("../img/impact/header-mrwa-mccaslin.jpg");
} 

#content-header.success-btt {
    background-image: url("../img/impact/header-btt.jpg");
}


.grantee-mission {
    text-align: center;
    font-style: italic;
    padding: 30px 100px;
    font-size: .85rem;
    line-height: 1.25rem;
    
}
.grantee-mission img {
    width: 70%;
    margin-bottom: 20px;
}

.grantee-mission img.large {
    width: 100%;
    margin-bottom: 20px;
}

.sucess-story-imgs {
	margin: 50px 0 80px 0;
} 

.img-grid { width: 100%; }
.img-row { width: 100%;  display: flex; }
.img-grid img { width: 100%;  }
.img-grid .img-wrapper { flex: 1; margin:5px; }
.img-grid .img-wrapper-middle { flex: 1; margin:5px 15px; }


.filter-group {font-size: .9rem;}


/** FOOTER **/

#footer {
	background-color: #525649; 
    /*text-align: center;*/
    color: #fff;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
    font-size: 90%;
}

#footer a {color:#C6E398;}
#footer a:hover {color:#fff; }




/** GENERAL MOBILE & TABLET **/

@media all and (max-width: 768px), all and (max-width: 575px), ( max-width: 786px ), ( max-width: 991px )
 {
    
	.hidden-xs {display:none;}
	 
    #header img { 
        width: 230px;
        margin-left: 20px;
    }
    
    ul.mainnav {
        width: 100%;
        background-color:#8faa44; 
        margin-top: 40px;
         text-align: left;
    }
    
    ul.mainnav li {
        display: block;
        border-bottom: 1px solid #fff;
        padding:0;
    }
     
    ul.mainnav li a { display: block;
        padding: 20px;}
    
    ul.subnav li {
      padding-left:30px;
       text-align: left;
        border-bottom: none;
        border-top: 1px solid #fff;
    }
    
    .dropit .dropit-submenu {
        display: block !important;
        position: relative;
		left:0;
       
    }
     
     .viewAll {text-align: center;}

     .img-grid .img-wrapper-middle {margin:5px; }
    
     
     #footer, #footer .text-right {text-align: center !important;}
     #footer .text-right {margin: 30px 0 15px;}
    
}

/* TABLET - Portrait */

@media all and (max-width: 768px){ 

	#banner { padding: 55px;  }
	#banner h1 { font-size: 2.25rem; }
	.subheading { font-size:125%; }
	 .focus-box {padding: 10%; height: 250px;}
	
	.focus-desc {    
		width: 100%;
		opacity: 1;
		position: static;
		margin-top: 10px;
		padding: 20px;
   		
	}
	
	
	
	}



@media all and (max-width: 575px) {
	  
	  #banner { padding: 20px;  }
	#banner h1 { font-size: 1.5rem; line-height: 1.4em; margin-bottom: 0; }
	.subheading { font-size:16px; padding: 10px;}
	
	.more-space {margin: 100px 0; }
	
	#header img.logo { width: 35%; padding: 5px 0; margin-left: 0; } 
	.logo {min-width: 35%;}
	
	.trustee-bio img { margin-bottom: 10px; }
	
	.sucess-story-imgs { margin: 30px 0 60px 0; }
	.img-row { width: 100%;  display:block; }
	.img-grid img { width: 100%;  }
	.img-grid .img-wrapper { flex: 1; margin:5px; }

}




