/*
	Theme Name: Samueli Foundation
	Theme URI: http://www.forebrain.net
	Description: Samueli Foundation Theme
	Version: 1.5.0
	Author: Forebrain
	Author URI: http://www.forebrain.net
	Tags: 
*/

/* Base */

body {
	background-color: #1a1a1a;
	font-family: 'PT Sans', sans-serif;
}

.wrapper {
	background-color: #fff;
}

a {
	color: #16627e;
}

a.hover-none:hover, a.hover-none:focus {
	text-decoration: none;
}

h1, h2, h3, h6 {
	margin: 1em 0 .5em;
}

h1.title {
	margin-top: 0;
	margin-bottom: 1em;
}

h1.post-title {
	margin-top: 0;
}

h4 {
	font-style: italic;
	font-size: 26px;
	color: #6a6a6a;
	padding: .5em 2.5em;
	text-align: center;
}

h5 {
	font-family: 'PT Sans', sans-serif;
	text-transform: uppercase;
	color: #16627e;
	font-size: 22px;
	letter-spacing: 2px;
}

h6 {
	font-family: 'PT Sans', sans-serif;
	color: #c2991e;
	font-size: 20px;
	line-height: 1.2em;
	letter-spacing: 2px;
	font-weight: 600;
	font-style: normal;
}

hr {
	display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 4em 0;
    padding: 0; 
}

p {
	margin: 1em 0;
}

.img-fluid {
	width: 100%;
	display: block;
}

.img-fluid-center {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 20px auto;
}

@media (min-width: 768px) {
	.img-fluid-center {
		margin: 0;
	}
}

/* Header */

.header-image {
	height: 260px;
	background-position: center center;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

/* Navbar overrides */

#main-navbar {
	min-height: 120px;
}

#main-navbar, #main-nav-side {
	background-color: #f4f6f5;
}

#main-nav .nav-link {
	padding-top: 0.8rem;
	padding-bottom: 0.8rem;
}

.navbar-brand img {
	height: 80px;
}

.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .show > .nav-link,
.dropdown-menu li a,
#main-navbar .navbar-nav > .open > a,
#main-nav-side a {
    text-transform: uppercase;
    color: #16627e;
	font-weight: 600;
	letter-spacing: 2px;
	font-size: 13px;
}

.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link::focus  {
    color: #16627e;
}

#main-navbar .navbar-nav > li > a:focus, #main-navbar .navbar-nav > li > a:hover, 
#main-nav-side a:focus, #main-nav-side a:hover {
	color: #c2991e;
	text-decoration: none;
	outline: none;
}
@media only screen and (min-width: 992px) {
	.navbar-expand-lg .navbar-nav .nav-link {
		padding-right: 1rem;
		padding-left: 1rem;
	}
}

/* Main nav toggle button */

.navbar-toggler {
    position: relative;
    border: none;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: 0;
}

.navbar-light .navbar-toggler span {
    background-color: #16627e;;
}

.navbar-toggler span {
   display: block;
   height: 2px;
   width: 25px;
   margin-top: 4px;
   margin-bottom: 4px;
   -webkit-transform: rotate(0deg);
   -moz-transform: rotate(0deg);
   -o-transform: rotate(0deg);
   transform: rotate(0deg);
   position: relative;
   left: 0;
   opacity: 1;
}

.navbar-toggler span:nth-child(1),
.navbar-toggler span:nth-child(3) {
   -webkit-transition: transform .35s ease-in-out;
   -moz-transition: transform .35s ease-in-out;
   -o-transition: transform .35s ease-in-out;
   transition: transform .35s ease-in-out;
}

.navbar-toggler[aria-expanded=true] span:nth-child(1) {
	position: absolute;
	left: 12px;
	top: 10px;
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	-o-transform: rotate(135deg);
	transform: rotate(135deg);
	opacity: 0.9;
}
.navbar-toggler[aria-expanded=true] span:nth-child(2) {
	height: 12px;
	visibility: hidden;
	background-color: transparent;
}
.navbar-toggler[aria-expanded=true] span:nth-child(3) {
	position: absolute;
	left: 12px;
	top: 10px;
	-webkit-transform: rotate(-135deg);
	-moz-transform: rotate(-135deg);
	-o-transform: rotate(-135deg);
	transform: rotate(-135deg);
	opacity: 0.9;
}

#main-navbar .navbar-nav > .active > a, #main-navbar .navbar-nav > .active > a:focus,
#main-navbar .navbar-nav > .current-menu-ancestor > a,
#main-navbar .navbar-nav > .active > a:hover,
#main-navbar .navbar-nav > .open > a:hover,
#main-nav-side a:focus, #main-nav-side a:hover,
#main-nav-side .current-menu-ancestor > a {
	background-color: initial;
	color: #c2991e;
}

/* Main nav dropdowns */

#main-navbar .dropdown-toggle::after {
	display: none;
}

#main-nav .dropdown-menu {
	left: 0;
	right: auto;
	border: 0;
	box-shadow: initial;
	top: 48px;
	background-color: #f4f6f5;
	border-radius: 0;
}

.dropdown-item:focus, .dropdown-item:hover {
	background: none;
}

.dropdown-menu li a {
	line-height: 20px;	
}

.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
	color: #c2991e;
}

.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
	color: #c2991e;
}

#main-navbar .navbar-nav > .open > a, #main-navbar .navbar-nav > .open > a:focus, #main-navbar .navbar-nav > .open > a:hover,
.dropdown-menu > .active > a, .dropdown-menu > .active > a:focus, .dropdown-menu > .active > a:hover {
	background-color: inherit;
}

/* Main nav side */
#main-nav-side {
	padding: 36px;
}

#main-nav-side.navbar-push {
	width: 260px;
}

#main-nav-side li {
	margin: 0.75em 0;
}

#main-nav-side a {
	cursor: pointer;
}

#main-nav-side li.menu-item-has-children > a::before {
	content: '+';
	margin-right:0.25em;
	width: 0.75em;
	display: inline-block;
}

#main-nav-side ul li ul {
	list-style-type: none;
	margin: 0;
	padding: 0 1em 1em;
	display: none;
}

#main-nav-side li.current-menu-item a {
	color: #c2991e;
}

#main-nav-side li.current-menu-item.current_page_ancestor a {
	color: #16627e;
}

#main-nav-side li.menu-item-has-children.expanded > a::before {
	content: '–';
}

#main-nav-side ul li.expanded ul {
	display: block;
} 

#main-nav-side.navbar-push.navbar-push-left {
	right: -260px;
}

#main-nav-side.navbar-push.navbar-push-left.in {
	right: 0;
}

body.push-canvas.pushed-left {
	left: -260px;
}

/* Last link styling */

#main-nav-side > ul > li:last-child {
	margin-top: 30px;
}

#main-nav .navbar-nav > li:last-child {
	margin-left: 15px;
}

#main-nav-side > ul > li:last-child a,
#main-nav .navbar-nav > li:last-child a {
	border: 2px solid #16627e;
	border-radius: 30px;
	padding: 0.8rem 1.3rem;
}

#main-nav-side > ul > li.current-menu-item:last-child a,
#main-nav .navbar-nav > li.current-menu-item:last-child a {
	color: #16627e;
}

#main-nav-side > ul > li:last-child a:hover,
#main-nav .navbar-nav > li:last-child a:hover {
	background-color: #16627e;
	color: #fff;
}


/* Side menu */

.side-menu h2, .event-menu h2 {
	color: #c2991e;
	font-family: 'EB Garamond', serif;
	font-size: 22px;
	margin-top: 0;
}

.event-menu h2 {
	color: #16627e;
}

.side-menu a {
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 2px;
	font-weight: 600;
}

.side-menu a, .side-menu a:visited {
	color: rgba(26, 26, 26, 0.4);
}

.side-menu a:hover, .side-menu a:active, .side-menu li.current_page_item a {
	color: #1a1a1a;
	text-decoration: none;
}

.side-menu li {
	margin-bottom: 10px;
}

.event-menu hr {
	margin: 1em 0;
}

.sidebar-image {
	margin-bottom: 20px;
}

/* Content */

.container.main {
	padding: 40px 20px;
}

@media (min-width: 992px) {
	.container.main {
		padding-top: 96px;
	}
}

.content h1 {
	color: #16627e;
	font-family: 'EB Garamond', serif;
	font-size: 32px;
	line-height: 1.2em;
	letter-spacing: 0px;
	font-weight: 400;
}

.content h2 {
	color: #4a4a4a;
	font-size: 22px;
	line-height: 1.2em;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 400;
}

.content {
	font-family: 'EB Garamond', serif;
	font-size: 18px;
	line-height: 1.6em;
	letter-spacing: 0px;
	font-weight: 400;
	font-style: normal;
	color: rgba(26,26,26,0.9);
}


/* Footer */
.footer-top, .footer-bottom {
	height: 100px;
}

.footer-top {
	background-color: #333;
}

.footer-text {
	color: #ccc;
	text-align: center;
}

/* Home */

.home-panel {
	text-align: center;
}

/* Contact form */

.contact-address {
	font-style: italic;
}

.contact-address-label {
	font-style: initial;
	font-weight: 600;
}

.contact-form-label {
	font-size: 12px;
}

.form-control[type=text],
.wpcf7-form-control[type=text],
.wpcf7-form-control[type=email],
textarea.wpcf7-form-control,
.rsvpFormField input[type=text],
.rsvpFormField textarea {
	width: 100%;
	padding: 12px;
	margin: 6px 0 4px;
	border: 1px solid #ccc;
	background: #fafafa;
	font-family: sans-serif;
	font-size: 12px;
	line-height: normal;
	box-sizing: border-box;
	border-radius: 2px;
}

.form-control[type=text]:focus,
.wpcf7-form-control[type=text]:focus,
.wpcf7-form-control[type=email]:focus,
textarea.wpcf7-form-control:focus,
.rsvpFormField input[type=text]:focus,
.rsvpFormField textarea:focus {
	background-color: #fff;
}


.wpcf7-submit, .rsvp-form button, .rsvp-form input[type=button], .rsvp-form input[type=submit], .submit-button {
	background-color: #1a1a1a;
	color: #fff;
	font-family: 'PT Sans', sans-serif;
	text-transform: uppercase;
	letter-spacing: 2px;
	padding: 14px 35px;
	border: 0;
}

.wpcf7-submit:active, .wpcf7-submit:hover,
.rsvp-form button:active, .rsvp-form button:hover,
.rsvp-form input[type=button]:active, .rsvp-form input[type=button]:hover,
.rsvp-form input[type=submit]:active, .rsvp-form input[type=submit]:hover,
.submit-button:hover {
	background-color: #6a6a6a;
	border: 0;
}

/* News & Updates */

article {
	margin-bottom: 128px;
}

span.date {
	color: #8a8a8a;
}

/* General content */

@media (min-width: 768px) {
	.img-container-left {
		padding-left: 0;
		padding-right: 20px;
		padding-bottom: 20px;
		max-width: 50%;
		float: left;
	}

	.img-container-right {
		float: right;
		padding-left: 20px;
		padding-right: 0;
		padding-bottom: 20px;
		max-width: 50%;
		float: right;
	}
}

/* Event page */

.event-location {
	white-space: pre-line;
}

.rsvp-form h3 {
	margin-bottom: 1em;
}

.rsvpFormField h4 {
	padding: 0;
	text-align: left;
	font-style: inherit;
}

#addRsvp {
	text-align: left !important;
}

.rsvpParagraph {
	clear: both;
}

.rsvpParagraph .rsvpSubmit {
	float: left;
	margin-right: 10px;
	margin-bottom: 10px;
}

.rsvpFormField.rsvpBorderTop {
	border-top: none;
}

label.error {
	color: #f00;
}

#mainRsvp-error {
	float: right;
}

/* Hack to fix an error message in RSVP Pro plugin that doesn't have 
any class to identify it as an error */
.rsvpParagraph > strong:first-child {
	color: #f00;
	font-weight: normal;
}

/* Hack to make certain RSVP Pro plugin messages bold, per client request */
#rsvpPlugin > p:first-child {
	font-weight: bold;
}

/* Research */
.research-details {
	margin-bottom: 1em;
}

.research-search {
	margin-bottom: 1em;
}

@media only screen and (min-width: 768px) {
	.research-search {
		float: right;
	}
}

.research-search input.wpcf7-form-control {
	width: 200px;
	display: inline-block;
	margin: 0;
	vertical-align: middle;
}

.research-search .submit-button {
	display: inline-block;
	padding: 6px 20px;
	vertical-align: middle;
}

.research-pagination {
	margin: 0;
}

.research-pagination > li > a {
	border: 0;
}

.research-pagination > li.active > a, .research-pagination > li.active > a:hover {
	background-color: inherit;
	color: #000;
}

.table-responsive {
	display: block;
    width: 100%;
    overflow-x: auto;
}

@media only screen and (min-width: 768px) {
	.table-responsive {
		display: table;
	}
}

/* Staff list */

.person {
	transition: transform 0.1s ease-in-out;
	backface-visibility: hidden;
}
.person:hover, .person:focus {
	transform: scale(1.048) translateZ(0);
}

.staff-list h2 {
	font-weight: bold;
}

.person h6 {
	font-weight: 400;
	font-size: 18px;
	letter-spacing: normal;
}

/* Misc */

blockquote {
	padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
}


/* For WP rich text editor */

.aligncenter {
	display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin: 0.5em 1em 0.5em 0;
}

.alignright {
	float: right;
    margin: 0.5em 0 0.5em 1em;
}