/*
Theme Name: Alliance for Transportation Electrification - Beaver Builder Child Theme
Theme URI: https://vexingmedia.com
Version: 1.0
Description: Website theme designed by Vexing Media for ATE
Author: Vexing Media
Author URI: https://vexingmedia.com
template: bb-theme
*/

/*** MISC ***/
.list-gaps li {
	margin-bottom: 20px;
}

.row-boxed_styled .fl-row-content {
	padding-top: clamp(20px, 4vw, 40px);
	padding-bottom: clamp(20px, 4vw, 40px);
	padding-left: clamp(30px, 8vw, 60px);
	padding-right: clamp(30px, 8vw, 60px);
	background: #fff;
	border: 2px solid #00b4c8;
}

@media screen and (max-width: 768px) {
	.row-boxed_styled .fl-row-content {
		padding: 20px 0px;
	}
}

.blue-bold strong {
	color: #005f78;
}

/* Button Push */
.btn-push .fl-col-content {
	display: flex;
	flex-direction: column;
}

.btn-push .fl-col-content .fl-module-button {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

/* Remove Bottom Margin From Last P in BB Text Module */
.fl-rich-text p:last-child {
   margin-bottom: 0;
}

/* Paragraph fix for Gutenberg */
.fl-module-fl-post-content .fl-module-content > .wp-block-group {
  margin-bottom: 1em;
}

.fl-module-fl-post-content .fl-module-content > .wp-block-group.is-vertical {
  gap: 1em;
}

/* Remove Link Underline */
.links-no_underline a {
	text-decoration: none;
}

.links-no_underline a:hover {
	text-decoration: underline;
}

/* Basic Button */
body .fl-page a.fl-button {
	background: rgba(255,255,255,0);
}

body .fl-page a.fl-button:hover {
	color: #005f78;
}

/* Half Width BG Image */
.bg-half .fl-row-content-wrap {
	background-size: 55%;
}

/* Background Color */
#fl-main-content {
	background: linear-gradient(0deg,rgba(198, 237, 242, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

/*** Header ***/
#menu-main-menu ul.sub-menu {
	z-index: 99999;
}

/* Nav Anchors */
#menu-main-menu li.nav-anchor a {
	font-size: 0.85em;
	padding: 10px 10px 10px 25px;
}

#menu-main-menu li.nav-anchor:last-child a {
	padding-bottom: 14px;
}

/* Highlight Active/Hover Menu Items */
#menu-main-menu .sub-menu > li.current-menu-item > a {
	color: #00b4c8;
}

#menu-main-menu ul.sub-menu a:hover,
#menu-main-menu ul.sub-menu li.current-menu-item:not(.nav-anchor) > a {
	background: #22aa5e;
	color: #fff;
}

@media screen and (min-width: 993px) {
	header #header-col-logo {
		position: relative;
	}

	header #header-col-logo::before {
		content: '';
		background: #fff;
		height: 101%;
		width: 100vw;
		position: absolute;
		top: 0;
		right: 50px;
	}

	header #header-col-logo::after {
		content: '';
		background: #fff;
		height: 101%;
		width: 100px;
		position: absolute;
		top: 0;
		right: -35px;
		clip-path: polygon(0 0, 100% 0, 55% 100%, 0% 100%);
	}

	header #header-col-logo .fl-col-content {
		position: relative;
		z-index: 1;
	}
}

@media screen and (max-width: 992px) {
	header #header-col-logo {
		background: #fff;
	}
}

@media screen and (max-width: 769px) {
	#menu-main-menu ul.sub-menu {
		padding: 0;
	}
}

/*** Footer ***/
footer h2 {
	font-size: 1.4em;
}

/* Newsletter */
#footer-newsletter .nf-before-form-content,
#footer-newsletter label {
	display: none;
}

#footer-newsletter input[type=email],
#footer-newsletter input[type=text] {
	border-radius: 0;
	border: 2px solid #005f78;
	padding: 10px;
}

#footer-newsletter input[type=submit] {
	background: transparent;
	padding: 9px 40px;
}

#footer-newsletter input[type=submit]:hover {
	background: #fff;
	color: #20a361;
}

#footer-newsletter .nf-form-content nf-cells {
	display: flex;
	max-width: 800px;
	margin: 0 auto;
}

#footer-newsletter .nf-form-content .nf-cell {
	width: auto;
}

#footer-newsletter .nf-form-content .nf-cell:first-child {
	flex-grow: 2;
}

#footer-newsletter .nf-error-field-errors {
	text-align: center;
}

@media screen and (max-width: 768px) {
	#footer-newsletter .nf-form-content nf-cells {
		flex-direction: column;
		align-items: center;
	}
	
	#footer-newsletter .nf-form-content .nf-cell:first-child {
		width: 100%;
	}
	
	#footer-newsletter .email-container {
		margin-bottom: 10px;
	}
	
	#footer-newsletter .nf-form-content .nf-cell:last-child {
		text-align: center;
	}
}

/*** Home Page ***/
#masthead-subheading {
	position: relative;
}

#masthead-subheading::before {
	content: '';
	background: #20a361;
	height: 100%;
	width: 100vw;
	position: absolute;
	top: 0;
	right: 0;
	clip-path: polygon(0 0, 96% 0%, 100% 100%, 0% 100%);
	z-index: -1;
}

@media screen and (max-width: 768px) {
	#masthead-subheading::before {
		clip-path: none;
	}
}

/* Who We Are Row */
#home-we_are {
	position: relative;
}

#home-we_are::before {
	content: '';
	height: 100%;
	width: 60%;
	background-image: url('https://ate-ev.org/wp-content/uploads/2025/09/Commercial-Charging_Vans_Aerial_AdobeStock_593541528.jpg');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center right;
	position: absolute;
	top: 0;
	right: 0;
}

.home-angled-banner-blue {
	position: relative;
}

.home-angled-banner-blue .fl-col-content {
	position: relative;
	z-index: 100;
}

.home-angled-banner-blue::before {
	content: '';
	background: #005f78;
	height: 100%;
	width: 100vw;
	position: absolute;
	top: 0;
	right: -5%;
	clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

@media screen and (max-width: 768px) {
	#home-we_are {
		background: #005f78;
	}
	
	#home-we_are::before {
		content: none;
	}
	
	#home-we_are .home-angled-banner-blue::before {
		content: none;
	}
}

/* Home Resources */
.home-resource-item {
	border-bottom: 0;
	padding-bottom: 40px;
}

.home-resource-item:nth-child(even) .row {
	flex-direction: row-reverse;
}

.home-resource .row {
	display: flex;
	align-items: center;
}

.home-resource .bb-post-thumb {
	width: 100%;
  aspect-ratio: 1.5 / 1;
}

.home-resource .resource-content {
	padding-bottom: 40px;
}

.home-resource .btn-read_more {
	font-size: 1.1rem;
	text-decoration: none;
	border: 2px solid #fff;
	padding: 12px 24px;
}

#fl-main-content .home-resource .btn-read_more:hover {
	background: #fff;
	color: #005f78;
}

/* Member Slider */
.members-slider {
	border: 4px solid #e6e5e2;
	border-left: 0;
	border-right: 0;
}

.members-slider .member-logo {
	line-height: 250px;
	white-space: nowrap;
	text-align: center;
	box-shadow: 5px 5px 15px 0px rgba(0,0,0,0.25);
	-webkit-box-shadow: 5px 5px 15px 0px rgba(0,0,0,0.25);
	-moz-box-shadow: 5px 5px 15px 0px rgba(0,0,0,0.25);
}

@media screen and (max-width: 992px) {
	.members-slider .member-logo {
		line-height: 150px;
	}
}

@media screen and (max-width: 768px) {
	.members-slider .member-logo {
		line-height: 75px;
	}
}

.members-slider .member-logo div {
	display: inline-block;
	vertical-align: middle;
	height: 100%;
	text-align: center;
}

.members-slider .member-logo img {
	width: 80%;
	vertical-align: middle;
	margin: 0 auto;
}

/*** Interior Pages ***/
#page-header .fl-row-content-wrap::before {
	content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background-image: url('https://ate-ev.org/wp-content/uploads/2025/06/bg-towers.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

#page-header .fl-col {
	padding: 20px 0 0;
}

#page-header .fl-col-content {
	position: relative;
	max-width: 65%;
}

#page-header .fl-col-content::before {
	content: '';
	background: #22aa5e;
	height: 100%;
	width: 100vw;
	position: absolute;
	top: 0;
	right: -5px;
	z-index: 1;
}

#page-header .fl-col-content::after {
	content: '';
	background: #22aa5e;
	height: 100%;
	width: 100px;
	position: absolute;
	top: 0;
	right: -50px;
	clip-path: polygon(0 0, 55% 0, 100% 100%, 0% 100%);
	z-index: 1;
}

#page-header h1 {
	position: relative;
	z-index: 2;
}

@media screen and (min-width: 769px) and (max-width: 992px) {
	#page-header .fl-col-content {
		max-width: 85%;
	}
}

@media screen and (max-width: 768px) {
	#page-header .fl-col-content {
		max-width: 100%;
	}

	#page-header .fl-col-content::before {
		content: '';
		background: #22aa5e;
		height: 100%;
		width: 100vw;
		position: absolute;
		top: 0;
		right: 0;
	}

	#page-header .fl-col-content::after {
		content: none;
	}
}

/* Focus Rows */
.row-focus .fl-row-content::before {
	content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.row-focus.focus-big_tent .fl-row-content::before {
  background-image: url('https://ate-ev.org/wp-content/uploads/2025/06/iStock-1492211242.jpg');
}

.row-focus.focus-charging .fl-row-content::before {
  background-image: url('https://ate-ev.org/wp-content/uploads/2025/06/iStock-1010794026.jpg');
}

.row-focus.focus-standards .fl-row-content::before {
  background-image: url('https://ate-ev.org/wp-content/uploads/2025/06/iStock-1746063634.jpg');
}

.row-focus.focus-states .fl-row-content::before {
  background-image: url('https://ate-ev.org/wp-content/uploads/2025/06/iStock-2143487340.jpg');
}

.row-focus .focus-text {
	position: relative;
	padding: 30px 30px 30px 60px;
}

.row-focus .focus-text::after {
	content: '';
	height: 100%;
	width: 100px;
	background: #fff;
	position: absolute;
	top: 0;
	right: -95px;
	clip-path: polygon(0 0, 100% 0, 10% 100%, 0% 100%);
}

.row-focus h3 {
	position: relative;
	font-size: 2em;
}

.row-focus h3::before {
	content: '';
	background: #005f78;
	height: 100%;
	width: 120%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
}

.row-focus h3::after {
	content: '';
	background: #005f78;
	height: 100%;
	width: 100px;
	position: absolute;
	top: 0;
	right: -30%;
	clip-path: polygon(0 0, 100% 0, 60% 100%, 0% 100%);
	z-index: -1;
}

.row-focus h3 {
	color: #fff;
	padding: 10px 20px 10px 60px;
}

.focus-heading {
	position: relative;
	z-index: 10;
}

@media screen and (min-width: 769px) and (max-width: 992px) {
	.row-focus h3::before {
		width: 130%;
	}

	.row-focus h3::after {
		right: -40%;
	}
	
	.row-focus .focus-text {
		padding: 30px;
	}
	
	.row-focus h3 {
		font-size: 1.7em;
		padding: 10px 20px;
	}
}

@media screen and (max-width: 768px) {
	.row-focus.focus-big_tent .fl-row-content::before {
		content: none;
	}

	.row-focus .focus-text {
		padding: 20px;
	}

	.row-focus .focus-text::after {
		content: none;
	}

	.row-focus h3 {
		background: #005f78;
	}

	.row-focus h3::before,
	.row-focus h3::after {
		content: none;
		display: none;
		position: relative;
	}

	.row-focus h3 {
		font-size: 1.7em;
		padding: 10px 20px;
	}
}

/* Leadership */
.leadership-team_item,
.leadership-team_item:last-child {
	background: #fff;
	border: 2px solid #00b4c8;
	padding: 20px;
}

.leadership-team_photo {
	border: 2px solid #00b4c8;
	width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.leadership-team_photo img {
	width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media screen and (max-width: 768px) {
	.leadership-team_photo {
		margin-bottom: 20px;
	}
}

.leadership-team_item h4 a {
	text-decoration: none;
}

.leadership-team_item h4 a:hover {
	text-decoration: underline;
}

#leadership-board_members .fl-post-feed {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 20px;
}

#leadership-board_members .fl-post-feed-post {
	flex: 0 0 calc(33.333% - 1rem);
	text-align: center;
	border: 0;
	margin: 0 0 20px;
}

#leadership-board_members .leadership-team_photo {
	margin-bottom: 20px;
}

#leadership-board_members h4 {
	font-size: 1.1em;
	margin-bottom: 20px;
}

#leadership-board_members h4 a {
	text-decoration: none;
}

#leadership-board_members h4 a:hover {
	text-decoration: underline;
}

#leadership-board_members .leadership-bio_link {
	margin-top: 20px;
	color: #22aa5e;
}

.leadership-board_position {
	font-size: 1.4em;
	font-weight: bold;
	color: #00b4c8;
	margin-bottom: 10px;
}

.leadership-ex_officio {
	font-style: italic;
}

@media screen and (max-width: 768px) {
	#leadership-board_members .fl-post-feed {
		
	}
	
	#leadership-board_members .fl-post-feed-post {
		flex: 1 0 auto;
		width: 100%;
	}
}

/* Members */
#fl-main-content .member-list ul {
	display: block;
	column-count: 3;
	column-gap: 2rem;
	padding: 0;
	list-style-type: none;
}

#fl-main-content .member-list li {
	border-bottom: 0;
	margin-bottom: 0 !important;
}

@media screen and (max-width: 768px) {
	#fl-main-content .member-list ul {
		column-count: 1;
	}
}

/* Contact */
#contact-form .nf-form-fields-required {
	display: none;
}

#contact-form .submit-wrap {
	text-align: right;
}

#contact-form input[type=submit] {
	background: #fff;
	border-color: #005f78;
	color: #005f78;
}

#contact-form input[type=submit]:hover {
	background: #005f78;
	color: #fff;
}

/* Resources */
.bb-post-filters {
	margin-bottom: 20px;
}

.filter-by-text {
	margin: 0 0 0.5em;
	display: block;
}

.bb-post-filters .filter-button {
  padding: 0.5em 1.5em;
  margin-right: 0.5em;
  border: 2px solid #fff;
  background: #005f78;
  cursor: pointer;
	border-radius: 0;
}

.bb-post-filters .filter-button:hover,
.bb-post-filters .filter-button.active {
  background: #22aa5e;
  color: #fff;
}

.bb-child-filters {
  display: flex;
  align-items: center;
  margin: 1em 10px 1em 0;
	background: #00b4c8;
	padding: 10px 20px;
	color: #fff;
	flex-wrap: wrap;
}
.child-filter-label {
  margin-right: 0.5em;
  font-weight: bold;
}
.child-filter-link {
  margin-right: 1em;
  text-decoration: underline;
  color: #fff;
	color: #005F78;
}
.child-filter-link:hover {
	color: #fff;
	text-decoration: underline;
}
.child-filter-link.active {
	color: #fff;
	text-decoration: none;
}

#bb-post-spinner,
#bb-post-error {
	display: none;
	text-align: center;
	margin: 2em 0 1em;
}

.bb-spinner {
  border: 4px solid rgba(0,0,0,0.1);
  border-top: 4px solid #005f78;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: bb-spin 1s linear infinite;
  display: inline-block;
}

@keyframes bb-spin {
  to { transform: rotate(360deg); }
}

#bb-post-error {
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  padding: 0.75em 1em;
}

.bb-error-text {
  color: #842029;
  margin: 0;
  font-size: 0.95em;
}

.bb-load-more-wrapper {
	margin: 40px 0 0;
	text-align: center;
}

#bb-load-more,
#bb-load-more:focus {
	display: none;
	margin: auto;
	padding: 0.5em 1em;
	cursor: pointer;
	border-radius: 0;
	border: 2px solid #fff;
	background: #22aa5e;
	color: #fff;
}

#bb-load-more:hover {
	background: #005f78;
	color: #fff;
}

.bb-post-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 20px;
}

.bb-post-item {
	flex: 0 0 calc(33.333% - 1rem);
	text-align: center;
	border: 0;
	margin: 0;
	border: 2px solid #00b4c8;
	padding: 0;
	background: #fff;
	font-size: 0.9em;
	display: flex;
	flex-direction: column;
	position: relative;
}

.bb-post-item .bb-post-text {
	padding: 0 20px 20px;
	text-align: left;
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
}

.bb-post-date {
	text-align: center;
	margin-bottom: 15px;
	font-style: italic;
}

.bb-post-item h3 {
	font-size: 1.5em;
	margin-bottom: 10px;
	text-align: center;
}

.bb-post-item h3 a {
	text-decoration: none;
}

.bb-post-thumb {
	width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
	background: #005F78;
	margin-bottom: 20px;
}

.bb-post-thumb img {
	width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
	margin: auto;
}

.bb-post-read_more {
	margin-top: 20px;
	text-align: center;
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.bb-post-read_more a.btn-read_more {
	padding: 0.5em 1em;
	cursor: pointer;
	border-radius: 0;
	border: 2px solid #fff;
	background: #22aa5e;
	color: #fff;
	text-decoration: none;
}

.bb-post-read_more a.btn-read_more:hover {
	background: #005f78;
	color: #fff;
}

.bb-post-category {
	position: absolute;
	z-index: 100;
	color: #fff;
	padding: 8px 1.8rem 8px 16px;
	font-size: 1.1em;
	max-width: 100%;
	text-align: left;
}

.bb-post-category::before {
	content: '';
	background: #22AA5E;
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: -1px;
	clip-path: polygon(0 0, 100% 0, 93% 100%, 0% 100%);
	z-index: -1;
}

#resource-content {
	width: 100%;
}

@media screen and (max-width: 768px) {
	.bb-post-grid {
		flex-direction: column;
	}
	
	.bb-post-item {
		flex: 0 0 auto;
	}
}

/* Membership Form */
#membership-form input[type=submit] {
	background: #00b4b8;
	border-color: #00b4b8;
	color: #fff;
}

#membership-form input[type=submit]:hover {
	background: #fff;
	color: #00b4b8;
}


/*
@media screen and (min-width: 993px) {}

@media screen and (min-width: 769px) and (max-width: 992px) {}

@media screen and (max-width: 768px) {}
*/
