/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         PSM Marketing
 Author URI:     https://www.psm-marketing.com/
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */
/* Header */
a.et_pb_menu__icon, 
button.et_pb_menu__icon {
	margin-left: 24px;
	margin-right: 0;
}
.et_pb_section_0_tb_header.et_pb_section {
	transition: background-color 0.37s ease;
}
body.home.hero-in-view .et_pb_section_0_tb_header.et_pb_section {
  background-color: transparent !important;
}
body.home.hero-in-view .et_pb_fullwidth_menu_0_tb_header.et_pb_fullwidth_menu ul.nav > li > a,
body.home.hero-in-view .et_pb_fullwidth_menu_0_tb_header .et_pb_menu__icon.et_pb_menu__search-button, 
body.home.hero-in-view .et_pb_fullwidth_menu_0_tb_header .et_pb_menu__icon.et_pb_menu__close-search-button {
  color: #ffffff !important;
}
body.home.hero-in-view .et_pb_fullwidth_menu_0_tb_header.et_pb_fullwidth_menu ul.nav > li:hover > a,
body.home.hero-in-view .et_pb_fullwidth_menu_0_tb_header .et_pb_menu__icon.et_pb_menu__search-button:hover, 
body.home.hero-in-view .et_pb_fullwidth_menu_0_tb_header .et_pb_menu__icon.et_pb_menu__close-search-button:hover {
  color: #2BA4A2 !important;
}
.et_pb_menu__search input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

/* Blog */
.featured-post .et_pb_post,
.featured-post .et_pb_post .entry-featured-image-url {
	margin-bottom: 0px;
}
.related-posts .et_pb_blog_grid .et_pb_post {
	padding: 0;
}
.related-posts .et_pb_image_container {
	margin: 0 0 30px 0;
}
.cream-bg .et_pb_blog_grid .et_pb_post {
	background-color: #F7F5F3;
}
.post-header .et_pb_image_wrap,
.related-posts .entry-featured-image-url {
  padding-top: 56.25%;
  display: block;
}
.post-header .et_pb_image_wrap img,
.related-posts .entry-featured-image-url img {
  position: absolute;
  height: 100% !important;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}
.related-posts .post-content-inner {
	margin-bottom: 14px;
}
.related-posts.search-results article {
	padding: 20px !important;
}
.search-results a.more-link {
	display: block;
	text-align: right;
}
a.more-link {
	text-align: right;
}
.et_pb_title_meta_container span.author.vcard a {
	pointer-events: none;
}

/* Forms */
.ginput_container_consent input[type=checkbox] {
	float: left;
	margin: 6px 6px 30px 0;
}
.gform_wrapper input[type=submit], 
.gform_wrapper button[type=submit] {
	background-color: #2ba4a2;
	border: none;
	border-radius: 0px;
	color: #fff;
	cursor: pointer;
	font-family: 'Fira Sans',Helvetica,Arial,Lucida,sans-serif;
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 1px;
	line-height: 1em;
	padding: 10px 30px;
	text-transform: uppercase;
	transition: 0.37s ease;
}
.gform_wrapper input[type=submit]:hover, 
.gform_wrapper button[type=submit]:hover {
	background-color: #183D6C;
}

/* Bio Pages */
#bio-tabs ul.et_pb_tabs_controls {
	background-color: transparent;
}
#bio-tabs .et_pb_tabs_controls li {
	border-right: none !important;
}
#bio-tabs ul.et_pb_tabs_controls:after {
	border-top: none !important;
}
#big-grid .et_pb_ajax_pagination_container {
	display: flex;
	flex-wrap: wrap;
	gap: 4%;
}
#big-grid article {
	text-align: center;
	width: 48%;
}
#big-grid img {
	max-height: 400px !important;
	width: auto;
}

/* Elements */
#dollar-amount .percent-value::before {
	content: '$';
	display: inline-block;
}

/* Footer */
footer {
	padding-top: 100px;
}
footer #footer-widgets {
	padding-bottom: 50px;
}
footer .footer-widget:not(:first-child):not(:last-child) {
	text-align: right;
}
footer .et_pb_widget {
	float: none;
}
footer .footer-widget h4 {
	letter-spacing: 1px;
}
footer .fwidget,
footer .et_pb_widget p {
	margin-bottom: 14px !important;
}
footer a {
	transition: 0.37s ease;
}
footer a:hover {
	border-bottom: 1px solid;
}
#footer-widgets .footer-widget ul.wp-block-social-links li {
	padding-left: 0;
}
#footer-widgets .footer-widget ul.wp-block-social-links li:before {
	content: none;
}
#footer-widgets .footer-widget {
	width: 19%;
}
#footer-widgets .footer-widget:first-child {
	width: 51%;
}
#footer-widgets .footer-widget:nth-child(3) {
	margin-right: 0;
}
#footer-widgets .footer-widget:last-child {
	margin-right: 0;
	width: 100%;
}

@media screen and (max-width: 980px) {
	footer {
		padding-top: 50px;
	}
	footer .footer-widget {
		float: none;
	}
	footer .left-aligned {
		align-items: center !important;
	}
	footer .footer-widget:not(:first-child) {
		text-align: center;
	}
	footer .footer-widget:nth-child(n) {
		margin: 0 0 5% 0 !important;
		text-align: center;
		width: 100% !important;
	}
}

/* Blog image aspect ratio landscape 3:2 */
.pa-blog-image-3-2 .entry-featured-image-url {
	padding-top: 66.66%;
	display: block;
}
.pa-blog-image-3-2 .entry-featured-image-url img {
	position: absolute;
	height: 100% !important;
	width: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	object-fit: cover;
}

/* Set the Divi menu dropdown auto width */
@media only screen and (min-width: 981px) {
	.nav li ul {
		width: fit-content;
		display: flex;
		flex-direction: column;
	}
	.nav li li {
		white-space: nowrap;
	}
	.nav li li a {
		width: auto !important;
	}
}