/*
 Theme Name:   Population Institute
 Description:  Bootstrap-based WordPress theme for Population Institute
 Author:       Wave Motion Studios
 Author URI:   https://wavemotiondigital.com
 Template:     wp-bootstrap-starter
 Version:      1.0.0
 Text Domain:  populationinstitute
*/


/* General
---------------------- */
body {
	font-family: 'Noto Serif', serif;
}

h1 {
	font-family: 'Noto Serif', serif;
}
h2, h3, h4 {
	font-family: 'Raleway', sans-serif;
	font-weight: bold;
	text-transform: uppercase;
	color: #00718f;
}
h2 {
	font-size: 1.5rem;
}
h3{
	font-size: 1.25rem;
}
h4 {
	font-size: 1rem;
	text-transform: none;
}
a {
	color: #00718f;
}


/* Header
---------------------- */
header#masthead {
	background: url('images/interior-bg.png') no-repeat;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: top;
	box-shadow: none;
	min-height: 200px;
	height: auto;
}

.navbar-brand {
	max-width: 300px;
	margin-right: 1.5rem;
}

#masthead nav {
	border-bottom: 1px solid #fff;
}

#main-nav {
	color: #6d6f71;
	font-family: 'Raleway', sans-serif;
	font-weight: bold;
}

body:not(.theme-preset-active) #masthead .navbar-nav > li > a {
	color: #6d6f71;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 0.85rem;
}
body:not(.theme-preset-active) #masthead .navbar-nav > li > a:hover, body:not(.theme-preset-active) #masthead .navbar-nav > li > a:focus, body:not(.theme-preset-active) #masthead .navbar-nav > li.current_page_item > a {
	color: #00718f;
}

.nav > li > a:focus, .nav > li > a:hover {
	background-color: transparent;
}

a.btn, .btn-primary {
	background-color: #b1bb45;
	font-family: 'Raleway', sans-serif;
	font-size: 1rem;
	font-weight: bold;
	text-transform: uppercase;
	border: 0;
	border-radius: 0;
	vertical-align: top;
}

#content.site-content {
	background-color: #fff;
	padding-top: 0;
}

.header-right .nav-item:last-child {
	margin-left: 1rem;
}
.header-right .nav-item a {
	color: #fff !important;
}
.header-right .nav-item a.btn-primary:hover, .header-right .nav-item a.btn-primary:focus {
	background-color: #0069d9;
}

.search-toggle a.search {
	color: #6d6f71;
	padding: 0.5rem;
	margin-right: 0.5rem;
}
.search-wrapper {
	text-align: center;
}
.search-wrapper .card-body {
	padding: 0.5rem;
	border: 0;
	border-radius: 0;
}
.search-wrapper label {
	width: auto;
	margin-bottom: 0;
}

.fa-search {
	&:hover {
		color: rgba(255, 255, 255, 0.75);
	}
}

.search-bar {
	display: none;
}
.search-bar .search-container {
	background-color: #00718f;
    padding: 1rem 0;
}
.search-bar label {
	margin-bottom: 0;
}
.search-bar .form-control {
	height: calc(1.5em + .75rem + 0px);
	border-radius: 0;
}
.search-bar input {
	font-size: 0.875rem;
}
    

/* Home
---------------------- */
.bg-home {
	background: url('images/header-bg.png') no-repeat;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: top;
}
.bg-home #page-sub-header{
	padding: 8.5rem 0;
}
.bg-home #page-sub-header p {
	font-size: 1.75rem;
}

.home header#masthead {
	background: none;
	background-color: transparent;
	height: auto;
}

.home #content.site-content {
	background-color: #edece3 !important;
}
.home .home-slider {
	background-color: #fdfcf5;
}

.home-news-section {
	padding-top: 4.125rem;
}
.home-news-section .card {
	background-color: inherit;
	border: 0;
}
.home-news-section .card-body {
	background-color: #fff;
	border: 1px solid rgba(0,0,0,.125);
	margin-bottom: 1rem;
}
.home-news-section h3 {
	color: #00718f;
	font-family: 'Raleway', sans-serif;
	font-weight: bold;
	font-size: 1.25rem;
	text-transform: none;
}
.home-news-section .date {
	color: #565759;
	font-family: 'Raleway', sans-serif;
	font-size: 0.75rem;
	font-weight: bold;
	text-transform: uppercase;
}
.home-news-section h4.post-title, .home-news-section h4.post-title a {
	color: #00718f;
	font-family: 'Noto Serif', serif;
	font-size: 1.5rem;
	font-weight: normal;
	margin-bottom: 1rem;
}
.home-news-section a.read-more-link {
	color: #00718f;
	font-weight: bold;
}
.home-news-section .resource {
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-top: 1px solid #ccc;
}
.home-news-section .resource .report {
	color: #00718f;
	font-style: italic;
}
.home-news-section .resource h4.post-title, .home-news-section .resource h4.post-title a {
	color: #565759;
	font-family: 'Raleway', sans-serif;
	font-size: 1rem;
	font-weight: bold;
}
.home-news-section .resource:first-child {
	margin: 0;
	border: 0;
}
.home-news-section .resource:last-child {
	padding-top: 1rem;
}
.home-news-section .resource p {
	margin-bottom: 0;
}
.home-news section .post-archive-more {
	color: #00718f;
	width: 100%;
	display: block;
	font-family: 'Raleway', sans-serif;
	font-size: 1rem;
	font-weight: bold;
	text-align: right;
	text-transform: uppercase;
}


/* Pages
---------------------- */
.header-title {
	padding-left: 15px;
	padding-right: 15px;
}

h1.page-title {
	color: #fff;
	background-color: #00718f;
	border-bottom: 0;
	width: 100%;
	font-size: 1.75rem;
	text-align: center;
	vertical-align: middle;
	padding: 0.5rem 2rem;
	margin-bottom: 0;
}

.page .entry-content {
	margin-top: 0;
}
.page h1.entry-title {
	color: #fff;
	background-color: #00718f;
	border-bottom: 0;
	width: 100%;
	font-size: 1.75rem;
	text-align: center;
	vertical-align: middle;
	padding: 0.5rem 2rem;
	margin-bottom: 0;
}

.entry-content dl, .entry-content ol, .entry-content ul {
	margin-bottom: 1.5rem;
}

.wp-block-file .wp-block-file__button {
	background: #b1bb45;
}

.entry-content .learn-more a {
	color: #00718f;
	font-family: 'Raleway', sans-serif;
	font-size: 1rem;
	font-weight: bold;
	text-transform: uppercase;
}

.entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
	padding-left: 0;
	padding-right: 1rem;
}

.interior-news-section {
	margin-top: 1.5rem;
}

.interior-news-section .card {
	background-color: inherit;
	border: 0;
}
.interior-news-section .card-body {
	background-color: #fff;
	border: 1px solid rgba(0,0,0,.125);
}


/* Single Posts
---------------------- */
.single #content.site-content {
	padding-top: 4.125rem;
}

.single h1.entry-title {
	font-family: 'Raleway', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    color: #00718f;
}

.comment-navigation .nav-previous, .posts-navigation .nav-previous, .post-navigation .nav-previous, .comment-navigation .nav-next, .posts-navigation .nav-next, .post-navigation .nav-next {
	width: 45%;
}

.post-navigation .nav-previous a, .post-navigation .nav-next a {
	border-radius: 0;
}

.post-byline
{
	font-style: oblique;
}

.post-boiler
{
	margin-top: 20px;
	border-top: 2px solid #ddd;
	font-style: oblique;
}

.single-resource .wp-video {
	margin-bottom: 1rem;
}

#chartdiv-fpmap {
	overflow: unset !important;
}
.ammapDescriptionWindow {
	background-color: #fff;
	border: 1px solid #ddd;
	padding: 1rem;
}
.fpmapreference {
	font-size: 0.6rem;
}
.fpmapreference p {
	margin-bottom: 0.6rem;
}


/* Archive - Reports Page
---------------------- */
.resource h4.post-title, h4.post-title {
	font-size: 1.25rem;
	text-transform: uppercase;
}



/* 404 - Page Not Found
---------------------- */
.error404 #content.site-content {
	padding-top: 0;
}
.error404 .page-content {
	margin-top: 0;
}


/* Search Results
---------------------- */
.search-results article {
	margin-bottom: 2rem;
	border-bottom: 1px solid #eaecef;
}
.search-results h2.entry-title {
    border-bottom: 0;
    padding: 0;
    line-height: 1;
}


/* General Form Styles
---------------------- */
.gform_wrapper .top_label .gfield_label, .gform_wrapper legend.gfield_label {
	margin-bottom: 0;
}

body .gform_wrapper .top_label div.ginput_container {
    margin-top: 0 !important;
}

.gform_wrapper .field_description_below .gfield_description {

}

.gform_wrapper .gform_footer input[type=submit] {
	background-color: #00718f;
	font-family: 'Raleway', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid #00718f;
    color: #fff;
    padding: 0.5rem 0.75rem;
}


/* Sidebar
---------------------- */
.subpage-nav ul{
	list-style-type: none;
	padding-left: 0;
}
.subpage-nav ul li {
	font-family: 'Raleway', sans-serif;
	font-size: 1rem;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 1rem;
}
.subpage-nav ul ul, .subpage-nav ul.children {
	padding: 1rem 0 0 1rem;
}

#secondary .gform_wrapper {
	margin-bottom: 8px;
}
#secondary .gform_wrapper .top_label input, #secondary .gform_wrapper .top_label select {
	width: 100%;
}
#secondary .gform_wrapper .gform_footer input[type=submit] {
	width: auto;
}
#secondary .gform_wrapper .gform_footer {
	padding-top: 8px;
	padding-bottom: 0;
}

#secondary #gform_widget-2, #secondary #gform_widget-3 {
	background-color: #eaecef;
	padding: 2rem;
}

#secondary a.donate, #secondary a.sign-up {
	width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
}

#secondary a.sign-up {
	background-color: #00718f;
	color: #fff;
	font-size: 1rem;
}

#custom_html-4 h3.widget-title, #custom_html-5 h3.widget-title, #custom_html-7 h3.widget-title, #custom_html-8 h3.widget-title, #custom_html-10 h3.widget-title, #custom_html-11 h3.widget-title, #custom_html-12 h3.widget-title, #custom_html-13 h3.widget-title {
	display: none;
}

#secondary .social .facebook {
	background-color: #3b5998;
}
#secondary .social i.fa-facebook-f {
	background-color: #3b5998;
	color: #fff;
}
#secondary .social .twitter {
	background-color: #1da1f2;
}
#secondary .social i.fa-twitter {
	color: #fff;
}

#secondary .podcast {
	background-color: #a4d1c2;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 1.5rem;
    color: #322932;
}


/* Footer
---------------------- */
body:not(.theme-preset-active) footer#colophon {
	background-color: #324348;
	color: #fff;
}

footer {
	font-family: 'Raleway', sans-serif;
	color: #fff;
}

#footer-widget {
	padding-top: 4rem;
	padding-bottom: 1rem;
}

footer h3.widget-title {
    font-size: 1rem;
    text-transform: uppercase;
	color: #fff;
	margin-bottom: 1rem;
}

footer section#text-3 h3 {
	font-size: 1.2rem;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

footer section#text-3 p {
    font-size: 1rem;
    line-height: 1.8rem;
}

footer .nav-link {
	padding: 0;
}

footer section a.btn {
	background-color: #b1bb45;
	font-size: 0.75rem;
	font-weight: bold;
	color: #324348 !important;
	text-transform: uppercase;
	border-radius: 0;
}

footer section#text-5 i.fa-arrow-right {
	margin-left: 0.25rem;
}

footer .fa-facebook-square {
  	color: #3b5998;
	font-size: 2rem;
  	background-image: linear-gradient( to bottom, transparent 20%, white 20%, white 93%, transparent 93% );
  	background-size: 70%;
  	background-position: 70% 0;
  	background-repeat: no-repeat;
}

footer .fa-twitter {
	color: #1da1f2;
	background-size: 80%;
  	background-position: 70% 0;
  	background-repeat: no-repeat;
  	font-size: 1.8rem;
}

footer .copyright {
	font-size: 0.75rem;
	text-align: left;
}


/* Mobile
---------------------- */
@media screen and (min-width:1280px) {
	.header-title {
		position: relative;
		top: -49px;
		width: auto;
	}
}
@media screen and (min-width: 992px) {
	.search-bar .search-container {
		max-width: 32%;
	}
}
@media screen and (max-width:1280px) {
	.header-title {
		position: relative;
		top: -46px;
		width: auto;
	}

	body:not(.theme-preset-active) #masthead .navbar-nav > li > a {
		font-size: 0.7rem;
	}
}
@media screen and (max-width:1024px) {
	.header-title {
		top: -44px;
	}
}
@media screen and (max-width: 991px) {
	.header-right .nav-item {
		margin: 0.5rem !important;
		padding: 0;
	}
	
	#masthead nav {
		border-bottom: 0;
		margin-bottom: 3rem;
	}
	
	body:not(.theme-preset-active) #masthead .navbar-nav > li > a {
		font-size: 1.25rem;
	}
	
	.search-bar input {
		font-size: 1rem;
	}
}
@media screen and (max-width:960px) {
	.header-title {
		top: -42px;
	}
}
@media screen and (max-width: 768px) {
	.header-title {
		top: -40px;
	}
}
@media screen and (max-width:480px) {
	.header-title {
		top: -37px;
	}
	
	.navbar-brand {
		max-width: 250px;
		margin-right: 1rem;
	}
	
	.search-wrapper .card-body {
		width: 100%;
	}
	.search-wrapper label {
		width: 75%;
	}
}

/* rePROs
---------------------- */
.page-template-repros header {
	background: #f8f8f8;
	min-height: auto;

}

.page-template-repros .navbar-brand {
	max-width: 75px;
}

.page-template-repros .site-main {
	margin-top: 4rem;
}

.page-template-repros footer.site-footer {
	background-color: #303030;
}