/*
 Theme Name:     TGA Child Theme
 Theme URI:      http://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         The Good Alliance
 Author URI:     https://thegoodalliance.org/
 Template:       Divi
 Version:        1.4.2
*/
 
@import url("../Divi/style.css");
 
/* =Theme customization starts here
------------------------------------------------------- */

/************************************************
                    MENU
*************************************************/

/*---- Removing drop down arrow ----*/
.menu-item-has-children > a:first-child::after { 
	display:none; 
}
#top-menu .menu-item-has-children>a:first-child {
    padding-right: 0px;
}
.et-menu .menu-item-has-children>a:first-child {
    padding-right: 0px !important;
}

/************************************************
                MENU STYLES
*************************************************/

#top-menu li a, .et_search_form_container input {
	font-weight: 500 !important;
	letter-spacing: 0.08px !important;
}

/*** Remove shadow on main header***/
#main-header {
	box-shadow: none;
}
 
/*** Add shadow to fixed header ***/
@media (min-width: 981px) {
	#main-header.et-fixed-header {
    box-shadow: 0 0 30px rgba(7, 51, 84, 0.17) !important;
    -webkit-box-shadow: 0 0 30px rgba(7, 51, 84, 0.17) !important;
    -moz-box-shadow: 0 0 30px rgba(7, 51, 84, 0.17) !important;
	}
}
/*** Adjust menu padding ***/
.et_header_style_left .et-fixed-header #et-top-navigation nav > ul > li > a {
	padding-bottom: 23px;
}
#top-menu li {
	padding: 0 10px !important;
}
.et_header_style_left #et-top-navigation {
	padding-top: 20px;
}
.et_header_style_left .et-fixed-header #et-top-navigation {
	padding-top: 10px;
}

/*** Style the menu button ***/
/* Default button styles */
.jointoday_button a {
	border: 2px solid #6B4F56; /* Change button border colour - must also change bottom border colour in 'Mobile button styles' below */
	background-color: #6B4F56;
	color: #F7EFEC !important;
	border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
	padding: 18px 25px !important;
    text-transform: uppercase;
    line-height: 9px;
    display: block;
    transition: all .5s ease;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
}
.jointoday_button a:hover {
    color: #F7EFEC !important;
    background-color: #6b5e62;
	opacity: 1 !important;
}
.et-fixed-header #top-menu .jointoday_button a:hover {
    background-color: #6b5e62;
    border: 2px solid #6b5e62;
    box-shadow: 0px 5px 20px #aab9c3;
    -moz-box-shadow: 0px 5px 20px #aab9c3;
    -webkit-box-shadow: 0px 5px 20px #aab9c3;
}

/* Fixed header button styles */
.et-fixed-header #top-menu .jointoday_button a {
    color: #F7EFEC !important;
    background-color: #6B4F56;
	border: 2px solid #6B4F56;
    box-shadow: 0px 5px 20px #d6dee4;
    -moz-box-shadow: 0px 5px 20px #d6dee4;
    -webkit-box-shadow: 0px 5px 20px #d6dee4;
}
.et-fixed-header.et_highlight_nav #top-menu .jointoday_button a {
    background-color: #6B4F56;
    border: 2px solid #6B4F56;
    animation: highlight-nav .8s ease;
    -webkit-animation: highlight-nav .8s ease;
}
#main-header.et-fixed-header #top-menu li.jointoday_button a {
    color: #F7EFEC !important;
}
#main-header.et-fixed-header.et_highlight_nav #top-menu .jointoday_button a:hover {
    background-color: #6b5e62;
    border: 2px solid #6b5e62;
    box-shadow: 0px 5px 20px #aab9c3;
    -moz-box-shadow: 0px 5px 20px #aab9c3;
    -webkit-box-shadow: 0px 5px 20px #aab9c3;
}

/* Mobile button styles */
@media (max-width: 980px) {
	.jointoday_button a {
		border-bottom: 2px solid #6B4F56 !important; /* Change button bottom-border colour on mobile */
	}
	.jointoday_button {
		padding-bottom: 3%;
		padding-top: 3%;
	}
	.jointoday_button a:hover {
		color: inherit !important;
	}
}

/*** Style the mobile menu links ***/
@media (max-width: 980px) {
	.et_mobile_menu li {
		text-align: center;
	}
	.et_mobile_menu li a {
		border-bottom: none;
		display: inline-block;
	}
	.et_mobile_menu li a:hover {
		background-color: transparent;
	}
	.et_mobile_menu .menu-item-has-children>a {
		background-color: rgba(0, 0, 0, 0);
		font-weight: inherit !important;
	}
	.et_mobile_menu li li, .et_mobile_menu li li, #main-header .et_mobile_menu li ul {
		padding-left: 0px !important;
	}
}

/* Changes breakpoint for mobile menu */
@media only screen and (max-width: 1024px) {
	#et_mobile_nav_menu { 
		display: block !important;
	}
	#top-menu { 
		display: none !important;
	}
}

/* Prevent footer hamburger menu on mobile */
@media (max-width: 980px) {
	#logo {
		max-height: 80%;
	}
	
#footer-menu .et_pb_menu__menu {
display: block !important;
}

#footer-menu .et_mobile_nav_menu {
display:none;
}
.et_pb_menu--style-left_aligned.et_pb_text_align_right .et_pb_menu__wrap {
    justify-content: center;
}
}