/*
Theme Name:  TTM World
Theme URI:   http://ttmworld.uk.w3pcloud.com
Version:     1.0
Description: A child theme of Divi. This is a custom child theme created for our site TTM World.
Author:      Matt Jackson
Author URI:  http://ttmworld.uk.w3pcloud.com
Template:    Divi
*/

/* Font.com Font Avenir

font-family:'Avenir Next W01 Light';
font-family:'AvenirNextLTW01-Regular';
font-family:'AvenirNextLTW01-Medium';
font-family:'Avenir Next LT W01 Demi';
font-family:'Avenir Next LT W01 Bold';

*/

/*- Add any CSS custom code for this child theme below this line -*/

body {font-family: 'AvenirNextLTW01-Regular';}

ul#top-menu a:hover {
    opacity: 1!important;
    color: #89b9c5;
}
#top-menu ul.sub-menu {
    padding: 0;
	width: auto!important;
}
#top-menu ul.sub-menu li {
    text-align: center;
    padding: 0;
}
#top-menu ul.sub-menu li a {
    color: #ffffff!important;
	line-height: 22px;
}

div#sample_slider {
    filter: grayscale(100%)!important;
}

#top-menu ul.sub-menu {
    background: #3f7c9b!important;
}
#top-menu ul.sub-menu li a:hover, #top-menu ul.sub-menu li.current_page_item a {
    color: #ffffff!important;
    background: #243a54;
	opacity: 1;
}

.et_mobile_menu {
    border-top: 3px solid #89b9c5;
}

#top-slider .et_pb_slide_content {
    background: rgba(255, 255, 255, 0.9);
    display: inline-block;
    padding: 20px 40px;
}

#top-slider h1 {
    font-size: 40px;
    text-shadow: none!important;
	color: #3f7c9b!important;
}
#top-slider h2 {
    text-transform: uppercase;
    font-size: 25px;
	letter-spacing: 2px;
    color: #243a54!important;
    text-shadow: none!important;
}

#top-slider p {
text-shadow: none!important;
}

#get-in-touch-cta p {
    line-height: 35px;
}
#get-in-touch-cta .et_pb_row {display: flex;}
#get-in-touch-cta .et_pb_row .et_pb_column.et_pb_column_3_4 {align-self: center;}

.et_pb_blurb_container a {
    position: absolute;
    width: 100%;
	height: 20%;
    bottom: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 0;
	display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
	transition: all 0.5s;
}
.et_pb_blurb_content:hover .et_pb_blurb_container a {
    height: 100%;
}

.et_pb_main_blurb_image {
    margin-bottom:  0;
}

.et_pb_blurb_container h3 {
    padding-bottom: 0;
}

#testimonials .et_pb_column:last-child {
    background: rgba(255, 255, 255, 0.9);
    padding: 80px 50px 80px 50px;
}
#testimonials .et_pb_slide_description {
    padding-top: 0%;
}

input.text, input.title, input[type=email], input[type=password], input[type=tel], input[type=text], select, textarea {
    border: 1px solid #dedede;
    padding: 10px 15px;
    width: 100%;
}
input::placeholder, textarea::placeholder {
    text-transform: uppercase;
}
textarea {
    resize: none;
}
input[type="submit"] {
    background: #3f7c9b;
    color: #ffffff;
    text-transform:  uppercase;
    padding: 8px 16px;
    border: 0;
    font-size:  16px;
    border: 2px solid #3f7c9b;
    transition: all 0.3s;
}

input[type="submit"]:hover {
    color: #3f7c9b;
    background: #ffffff;
    cursor:  pointer;
}


.post-content h2 {
    color: #3f7c9b;
    line-height: 1.4em;
}
.post-content p {
    font-size: 16px;
    line-height: 1.5em;
}
.post-content a.more-link {
    color: #ffffff;
    background: #3f7c9b;
    padding: 10px 15px;
    text-transform:  uppercase;
    border: 2px solid #3f7c9b;
    transition: all 0.3s;
	float: left!important;
}
.post-content a.more-link:hover {
    color: #3f7c9b;
    background: #ffffff;
}
.post-content a.more-link:before {
    display: none;
}

.et_pb_post_extra.el_dbe_full_width_background .post-content {
	background: hsla(0,0%,100%,.9) !important;
}

.map-section-text {
    position: absolute;
    width: 100%;
}
.map-section-text, .map-section, .et_pb_map, .map-section-text .et_pb_text {
    height: 480px;
}


a.et_pb_button {
    border: 2px solid #3f7c9b;
    color: #ffffff!important;
    background: #3f7c9b;
	border-radius: 0px!important;
}

a.et_pb_button:hover {
    border: 2px solid #3f7c9b!important;
    color: #3f7c9b!important;
}


#small-news-feed .et_pb_post {
    width: 50%;
    float:  left;
}
#small-news-feed .post-content h2 {
    font-size:  16px;
    font-weight:  bold;
    color: #000000;
    padding: 15px 0;
}
#small-news-feed .published {
    color: #745689;
    font-size:  20px;
    padding-top:  20px;
    padding-bottom:  20px;
    float: left;
    width: 100%;
}
#small-news-feed p.post-meta:after {
    display: none;
}
#small-news-feed .post-media {
    padding:  0;
}
#small-news-feed .post-content {
    padding-bottom: 30px;
	float: left;
	min-height: 400px;
}

.client-logos img {transition: opacity 0.4s;}
.client-logos img:hover {opacity: 0.3;}

.footer-widget .widget_media_image {
    margin-bottom: 20px!important;
}

#footer-info {
    text-align: center!important;
    width: 100%;
}

.footer-widget h4 {
    text-transform: uppercase;
    color: #ffffff;
    font-size: 20px;
    padding-bottom: 15px;
}
footer .footer-widget:nth-child(3) div.widget_text {
    margin-bottom: 20px!important;
}
a.facebook-icon, a.twitter-icon, a.instagram-icon, a.linkedin-icon {
	font-family: ETmodules!important;
	display: block;
	float: left;
	overflow: hidden;
	position: relative;
	font-size: 28px;
	line-height: 28px;
	margin-right: 20px;
	transition: all 0.4s;
}
a.twitter-icon:before {content: "\e094"; transition: all 0.4s;}
a.instagram-icon:before {content: "\e09a"; transition: all 0.4s;}
a.facebook-icon:before {content: "\e093"; transition: all 0.4s;}
a.linkedin-icon:before {content: "\e09d"; transition: all 0.4s;}
a.twitter-icon:hover:before, a.instagram-icon:hover:before, a.facebook-icon:hover:before, a.linkedin-icon:hover:before {color: #3f7c9b;}

@media (max-width: 1200px) and (min-width: 980px) {
	
	div#et-top-navigation {
		padding-left: 200px!important;
	}
	#top-menu li {
		padding-right: 11px;
		font-size: 13px;
	}
	
	#small-news-feed .post-content {
		min-height: 450px;
	}
	
}

@media (max-width: 980px) {
	
	.mobile_menu_bar:before {
		color: #89b9c5;
	}
	
	.et_pb_column {
		margin-bottom: 0;
	}
	
	#small-news-feed .et_pb_post {
		width: 100%;
	}
	#small-news-feed .post-content {
		min-height: auto;
	}
	
	.map-section-text {
		position: relative;
	}
	.map-section-text .et_pb_text {
		padding: 50px 0px!important;
	}
	
	.map-section, .et_pb_map {
		height: 350px!important;
	}
	.map-section-text, .map-section-text .et_pb_text {
		height: auto;
	}
	
	.team-members a.et_pb_button {float: right;}
	.team-members .et_pb_column {margin-bottom: 40px!important;}
}

@media (max-width: 980px) and (min-width: 767px) {
	
	#get-in-touch-cta .et_pb_column_3_4 {
		width: 75%!important;
	}

	#get-in-touch-cta .et_pb_column_1_4 {
		width: 25%!important;
	}	
	
}

@media (max-width: 767px) {
	
	#get-in-touch-cta .et_pb_row {
		width: 90%;
	}
	#get-in-touch-cta .et_pb_row .et_pb_column.et_pb_column_3_4 {
		width: calc(100% - 140px);
	}
	#get-in-touch-cta .et_pb_row .et_pb_column.et_pb_column_1_4 {
		width: 140px;
	}
	.et_pb_team_member {
		margin-top: 30px;
	}
	.footer-widget .widget_media_image img {
		width: 70%;
		margin: 0 15%;
	}
	
	.team-members a.et_pb_button {float: left;}
}

@media (max-width: 480px) {
	
	#get-in-touch-cta .et_pb_text {
		text-align: center;
	}
	.et_pb_button_module_wrapper {
		text-align: center!important;
		padding-top: 15px;
	}
	
	.team-members .et_pb_column {
		margin-bottom: 30px;
	}
	
}