/* 
 Theme Name:     Bare bones for Divi
 Author:         Divi theme examples
 Author URI:     http://www.divithemeexamples.com 
 Template:       Divi
 Version:        1.0 
*/ 


/* ----------- PUT YOUR CUSTOM CSS BELOW THIS LINE -- DO NOT EDIT ABOVE THIS LINE --------------------------- */ 

/* iPhone phone links inherit styling */
a[href^="tel"]{
    color:inherit;
    text-decoration:none;
}


/*** Custom Single Blog Post Styles ***/

#main-content {
    background-color: #faf5e9;
}

.single-post #main-content .container {
    background-color: #fffbf1;
    border: 1px solid #e3d5ba;
    margin-bottom: 40px;
    padding: 2em;
}



/*** MEGA MENU STYLES ***/

#top-menu li.mega-menu > ul > li > a:first-child {
    padding-top: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1em;
    font-size: 16px;
text-align: left !important;
}

.nav li li li{
    line-height: 1em;
    font-weight: normal;
    text-transform: capitalize;
}



.et-fixed-header #top-menu .mega-menu-parent > a, .et-fixed-header #top-menu .sgft-top-tier > a {
    color: #ffffff !important;
}


.et-fixed-header #top-menu li.sgft-top-tier.current-menu-item > a {
  color: #f8b584 !important;
}


.et-fixed-header #top-menu li.current-menu-ancestor.mega-menu-parent.mega-menu-parent-2 > a, .et-fixed-header #top-menu li.current-menu-ancestor.mega-menu-parent.mega-menu-parent-3 > a {
    color: #f8b584 !important;
}

/* Makes Dropdown Menus Full Width*/

#top-menu .menu-item-has-children > a:first-child:after, .fullwidth-menu .menu-item-has-children > a:first-child:after, #et-secondary-nav .menu-item-has-children > a:first-child:after {
	display: none !important;
	color: red;
}

#top-menu .menu-item-has-children > a:first-child, .fullwidth-menu .menu-item-has-children > a:first-child, #et-secondary-nav .menu-item-has-children > a:first-child {
    padding-right: 0;
}

.et_fullwidth_nav #top-menu li.mega-menu > ul {
    width: auto;
    left: 0 !important;
    right: 0 !important;
    display: inline-block !important;
    text-align: center !important;
    padding-top: 20px;
    padding-bottom: 20px;
}

#top-menu li.mega-menu.mega-menu-parent-3 > ul > li, .fullwidth-menu-nav li.mega-menu.mega-menu-parent-3 > ul > li, #top-menu li.mega-menu.mega-menu-parent-2 > ul > li, .fullwidth-menu-nav li.mega-menu.mega-menu-parent-2 > ul > li {
    width: 23%;
    margin-left: 3%;
    text-align: center !important;
    display: inline-block !important;
float: none !important;
}

#top-menu li.mega-menu > ul > li, .fullwidth-menu-nav li.mega-menu > ul > li, .fullwidth-menu-nav li.mega-menu > ul > li > ul > li {
    display: inline-block !important;
text-align: center !important;
float: none !important;
}


#top-menu li.mega-menu > ul > li > a, .fullwidth-menu-nav li.mega-menu > ul > li > a, .fullwidth-menu-nav li.mega-menu > ul > li > ul > li > a {
    width: auto !important;
text-align: center !important;
float: none !important;
}

/*** CUSTOM DONATE BUTTON ***/


/*** adjust padding on menu ***/

.et_header_style_left #et-top-navigation, .et_header_style_split #et-top-navigation {
    padding-top: 20px !important;
}
 
/*** style the menu button ***/
.sgft-donate-button a {
color: #ffffff !important;
    line-height: 9px;
    font-weight: 600;
    padding: 13px 16px !important;
    text-transform: uppercase;
    font-size: 12px !important;
    display: block;
    transition: all .5s ease;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    background-color: #29aaa8;
}
 
.sgft-donate-button a:hover {
    opacity: 1 !important;
    color: #fff !important;
    background-color: #24918f;
}
 
.et-fixed-header #top-menu .sgft-donate-button a:hover {
    background-color: #24918f;
}
 
.et-fixed-header #top-menu .sgft-donate-button a {
    color: #fff !important;
    background-color: #29aaa8;
}
.et-fixed-header.et_highlight_nav #top-menu .sgft-donate-button a {
    background-color: #29aaa8;
    animation: highlight-nav .8s ease;
    -webkit-animation: highlight-nav .8s ease;
}
 
#main-header.et-fixed-header.et_highlight_nav #top-menu .sgft-donate-button a:hover {
    background-color: #24918f;
}


@-webkit-keyframes highlight-nav {
   0% {
       -webkit-transform: scale(1);
       transform: scale(1)
   }
   50% {
       -webkit-transform: scale(1.2);
       transform: scale(1.2)
   }
   100% {
       -webkit-transform: scale(1);
       transform: scale(1)
   }
}
@keyframes highlight-nav {
   0% {
       -webkit-transform: scale(1);
       transform: scale(1)
   }
   50% {
       -webkit-transform: scale(1.2);
       transform: scale(1.2)
   }
   100% {
       -webkit-transform: scale(1);
       transform: scale(1)
   }
}

/*** style the mobile menu links and button ***/
@media (max-width: 980px) {

.sgft-donate-button a {
border-bottom: 2px solid #29aaa8 !important;
}
}

/************ MOBILE MENU SLIDE-IN ************/




/* Hide submenu */
.et_mobile_menu .menu-item-has-children > a { 
	background-color: transparent; 
}
#main-header .et_mobile_menu li ul.sub-menu.hide { 
	display: none !important; 
	visibility: hidden !important;  
	transition: .7s ease-in-out;
}
#main-header .et_mobile_menu li ul.sub-menu.visible { 
	display: block !important; 
	visibility: visible !important; 
}

@media only screen and (max-width: 980px){
#mobile_menu {
    display: block !important;
    min-height: 100vh;
    height: 100%;
    top: 0;
    right: 0;
    position: fixed;
    z-index: 9997;
    overflow: scroll;
    border-top: none;
    padding-top: 100px !important;
}

.et_mobile_menu li a {
    color: #ffffff !important;
    width: 100%;
    float: left;
    text-align: left;
    border-top: 1px solid #ddd;
    margin: 5px;
    transition: .2s;
}

.et_mobile_menu li.mega-menu.mega-menu-parent-3 > ul > li a, .et_mobile_menu li.mega-menu.mega-menu-parent-2 > ul > li a, .et_mobile_menu .sgft-donate-button a {
  border-top: none;
}


.mobile_nav ul#mobile_menu .current_page_item > a {
    color: #fff !important;
background-color: rgba(255, 255, 255, 0.1);
}

.mobile_nav.closed #mobile_menu {
    background: rgba(51,51,51,0.9) !important;
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -ms-transform: translateX(100%);
    -o-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: -webkit-transform 0.4s 0s;
    -moz-transition: -moz-transform 0.4s 0s;
    transition: transform 0.4s 0s;
    background: rgba(51,51,51,0.9) !important;
}

.mobile_nav.opened #mobile_menu {
    background: rgba(27,29,30,0.98) !important;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
    -webkit-overflow-scrolling: touch;
    -webkit-transition: -webkit-transform 0.4s 0s;
    -moz-transition: -moz-transform 0.4s 0s;
    transition: transform 0.4s 0s;
}

#main-header .container.clearfix.et_menu_container {
    width: 100%;
}

@media only screen and  (max-width: 980px) {
  .et_header_style_split .mobile_menu_bar, .et_header_style_left .mobile_menu_bar {    
    z-index: 9999;
  }
  #et-top-navigation {    
    padding-right: 5px;
  }
}

@media only screen and  (min-width: 481px) {
  #mobile_menu {    
    width: 320px;    
    margin-left: calc(100% - 320px);
  }
}

@media only screen and (max-width: 480px)  {
  #mobile_menu {    
    width: 260px;    
    margin-left: calc(100% - 260px);
  }
}

@media only screen and  (max-width: 340px) {
  #mobile_menu {    
    width: 100%;    
    margin-left: 0;
  }
}
