/*---------------------------------------------------------------------------------

 Theme Name:   Baptist Church
 Theme URI:    https://baptistchurch.com/
 Description:  Shady Grove Baptist Church
 Author:       Church
 Author URI:   https://baptistchurch.com/
 Template:     Divi
 Version:      4.22.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

------------------------------ ADDITIONAL CSS HERE ------------------------------*/
body.home #globalheader{
    position: absolute;
    left: 0; right: 0;
    top: 0;
}
body.page-template-default #globalheader,
body.post-template-default #globalheader{
    background-color: #000;
}
body.post-template-default #otherbanner{
  padding: 25px 0 90px;
}
#globalheader{
    padding: 25px 0;
    background-color: transparent;
}
#globalheaderow,#globalfooterow{
    padding: 0;
}
#globalfooter{
    padding: 50px 0 0;
}
#globalheaderow .et_pb_column{
    margin: 0;
    float: none;
}
#globalheaderow .et_pb_column:first-child,
#globalheaderow .et_pb_column:last-child{
    width: 25%;
}
#globalheaderow .et_pb_column:nth-child(2){
    width: 50%;
}
.defaultflex{
    display: flex;
    align-items: center;
}
#headermenu .et_pb_menu_inner_container{
    justify-content: space-between;
}
#headermenu.et_pb_menu .et_pb_menu__wrap{
    flex: unset;
}
#headermenu.et_pb_menu ul li{
    padding: 0;
    margin-top: 0;
    margin-right: 15px;
}
#headermenu.et_pb_menu ul li:last-child{
    margin-right: 0;
}
#headermenu.et_pb_menu ul li a{
    padding: 0;
    font-size: 16px;
    line-height: 26px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 15px;
}
#headermenu.et_pb_menu ul li.current-menu-item a,
#headermenu.et_pb_menu ul li:hover a{
    color: #C8B568 !important;
    opacity: 1;
}
#headermenu.et_pb_menu ul li ul.sub-menu{
    border-radius: 5px;
    padding: 15px 0px;
    padding-right: 0;
}
#headermenu.et_pb_menu ul li ul.sub-menu li{
    margin-bottom: 0px;
    margin-right: 0;
    width: 100%;
}
#headermenu.et_pb_menu ul li ul.sub-menu li a{
    color: #000 !important;
    display: block;
    padding: 0;
    padding-bottom: 5px;
    padding-top: 5px;
    padding-left: 20px;
    width: 100%;
}
#headermenu.et_pb_menu ul li ul.sub-menu li.current-menu-item a{
    color: #C8B568 !important;
}
#footerheading {
    margin-top: 50px;
}
#globalfooterow {
    padding-bottom: 60px;
}
#footermenu .et_pb_menu_inner_container,
#footermenu .et_pb_menu__wrap,
#footermenu .et_pb_menu__menu,
#footermenu .et-menu-nav{
    display: block;
}
#footermenu ul{
    display: flex;
    flex-wrap: wrap;
}
#footermenu ul li{
    width: 50%;
    display: block;
    margin-top: 0;
    margin-bottom: 20px;
}
#footermenu ul li:last-child{
    margin-bottom: 0;
}
#footermenu ul li a{
    text-transform: uppercase;
}
#footermenu .et_mobile_nav_menu{
    display: none;
}
#otherbanner{
    background-color: #000;
    padding: 0px 0 90px;
}
#otherbannerow{
    padding: 0;
}
#otherbannerow h1{
    font-size: 64px;
    line-height: 70px;
    font-weight: bold;
    color: #fff;
    padding: 0;
    text-align: center;
}
body.single-post #otherbannerow h1{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: initial;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
#otherbannerow ul#socialsharebtn {
    display: flex;
    justify-content: flex-end;
}
#herobanner{
    padding: 260px 0 90px;
}
#herobannerow{
    padding: 0;
}
#herobannerow1 h1{
    font-size: 64px;
    line-height: 70px;
    color: #fff;
}
#socialsharebtn li a{
    margin: 0;
    border-radius: 100%;
    background-color: #C8B568;
    padding: 14px;
    margin-right: 10px;
}
#socialsharebtn li:last-child a{
    margin-right: 0;
}
#socialsharebtn li a.icon:before{
    font-size: 28px;
}
#herobannerow2 .et_pb_column{
    margin: 0;
}
#herobannerow2 .et_pb_column:first-child{
    width: 15%;
}
#herobannerow2 .et_pb_column:last-child{
    width: 85%;
}
#yellowsection{
    padding: 50px 0;
}
#yellowsectionrow{
    padding: 0;
}
#spacline h2{
    font-size: 32px;
    line-height: 42px;
    font-weight: bold;
    color: #fff;
    position: relative;
    padding: 0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
#spacline h2:before,
#spacline h2:after{
    content: '';
    height: 2px;
    background-color: #fff;
    position: absolute;
    bottom: 0;
}
#getblurb h4:before,
#getblurb h4:after{
    content: '';
    height: 2px;
    background-color: #000;
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    margin: 0 auto;
}
#getblurb h4:before{
    width: 45px;
    left: -35px;
}
#getblurb h4:after{
    width: 15px;
    left: 40px;
}
#homes1row{
    display: flex;
    flex-wrap: wrap;
}
#homes1row .et_pb_column {
    width: 23.5%;
    margin: 0;
    float: none;
    margin-right: 2%;
    padding: 50px 16px 35px;
}
#getblurb h4{
    font-size: 32px;
    line-height: 42px;
    font-weight: bold;
    position: relative;
    padding: 0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
#getblurb .et_pb_main_blurb_image{
    margin-bottom: 0;
}
#homes2row .et_pb_column:nth-child(2){
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 80px;
}
#homes2,#homes2row{
    padding: 0;
}
.psac-post-carousel.psac-design-2 .psac-post-margin-content{
    text-align: left;
}
#newsstories h2{
    font-size: 32px;
    line-height: 52px;
}
#newsstories .psac-slider-and-carousel .owl-nav{
    top: unset !important;
    margin-top: 0;
    transform: translateY(0%);
    -webkit-transform: translateY(0%);
    -moz-transform: translateY(0%);
}
#newsstories .psac-post-meta span.psac-post-meta-innr{
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    color: #000;
    font-style: normal;
    font-family: 'Nunito',sans-serif;
}
#newsstories .psac-post-content{
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    color: #000;
}
#newsstories .psac-readmorebtn{
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    color: #000;
    position: relative;
    border: 0px;
    display: flex;
    padding: 0;
}
#newsstories .psac-readmorebtn:after{
    content: url(img/readarrow.png);
    margin-left: 5px;
    margin-top: 1px;
}
#newsstories .psac-readmorebtn:hover{
    background-color: transparent;
}
#newsstories .psac-slider-and-carousel .owl-dots .owl-dot{
    background: #E9E9E9;
}
#newsstories .psac-slider-and-carousel .owl-dots .owl-dot.active{
    background: #000;
}
#globalfooterow h4{
    position: relative;
    padding-left: 60px;
}
#globalfooterow h4:before{
    content: '';
    width: 50px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    left: 0;
    top: 27px;
}
#texthlin h4{
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
    padding-bottom: 10px;
    margin-bottom: 10px;
    position: relative;
}
#texthlin h4:before,
#texthlin h4:after{
    content: '';
    height: 2px;
    background-color: #000;
    position: absolute;
    bottom: 0;
}
#texthlin h4:before{
    width: 45px;
    left: 0;
}
#texthlin h4:after{
    width: 15px;
    left: 50px;
}
#servicestimerow .et_pb_column:last-child{
    border: 1px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 80px;
}
#directionsrow{
    display: flex;
    flex-wrap: wrap;
    padding: 50px 80px;
}
#directionsrow .et_pb_column:first-child{
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
}
#directionsrow .et_pb_column:nth-child(2),
#directionsrow .et_pb_column:nth-child(3){
    width: 47%;
}
#directionsrow .et_pb_column:nth-child(2){
    margin-right: 50px;
}
#locationblurb{
    margin-bottom: 30px;
}
#locationblurb .et_pb_blurb_content{
    display: flex;
}
#locationblurb .et_pb_main_blurb_image{
    margin-bottom: 0;
    margin-right: 10px;
    padding-top: 1px;
}
#locationblurb h4{
    font-family: 'Nunito',sans-serif;
    font-size: 16px;
    line-height: 26px;
    font-weight: bold;
    padding: 0;
}
#gform_wrapper_1 input::placeholder,
#gform_wrapper_1 textarea::placeholder{
    font-family: 'Nunito',sans-serif;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: #000;
}
#gform_wrapper_1 input[type=text],
#gform_wrapper_1 input[type=email],
#gform_wrapper_1 textarea{
    font-family: 'Nunito',sans-serif;
    border-color: #000;
    padding: 18px 25px;
    background-color: #fff;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: #000;
}
#gform_wrapper_1 input[type=submit]{
  background-color: #000;
  font-family: 'Nunito',sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  border: 0px;
  text-transform: uppercase;
  display: block;
  height: 100%;
  padding: 12px 25px;
}
#contactusrow .et_pb_column:last-child{
    background-color: #F9F8F2;
    padding: 50px;
}
#newsartsblog .et_pb_ajax_pagination_container{
    display: flex;
    flex-wrap: wrap;
}
#newsartsblog article{
    width: 48%;
    margin: 0 12px 24px;
}
#newsartsblog a.entry-featured-image-url{
    padding: 0;
    margin: 0;
}
#newsartsblog .post-content{
    padding: 30px 45px;
    box-shadow: 0px 3px 6px rgb(0 0 0 / 16%)
}
#newsartsblog h2{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 32px;
    line-height: 44px;
    color: #000;
}
#newsartsblog .post-meta,
#newsartsblog .post-meta a,
#newsartsblog .post-content-inner p{
    color: #000;
}
#newsartsblog .post-content-inner{
    margin-bottom: 10px;
}
#newsartsblog a.more-link{
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    color: #000;
    position: relative;
    border: 0px;
    display: flex;
    padding: 0;
    text-transform: capitalize;
}
#newsartsblog a.more-link:after{
    content: url(img/readarrow.png);
    margin-left: 5px;
    margin-top: 1px;
}
#calendarow .et_pb_code_inner {
    background-color: #F9F8F2;
}
#calendarow .simcal-default-calendar-grid .simcal-day>div{
    min-height: 40px !important;
    padding-top: 25px;
}
#calendarow .simcal-default-calendar-grid .simcal-no-events{
    min-height: 0;
}
/*change hamburger icon to x when mobile menu is open*/

#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before,
.et_pb_module.et_pb_menu .et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
    content: '\4d';
}


/*adjust the new toggle element which is added via jQuery*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
ul.et_mobile_menu li.page_item_has_children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.page_item_has_children .mobile-toggle {
    width: 44px;
    height: 100%;
    padding: 0px !important;
    max-height: 44px;
    border: none;
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 999;
    background-color: transparent;
}


/*some code to keep everyting positioned properly*/

ul.et_mobile_menu>li.menu-item-has-children,
ul.et_mobile_menu>li.page_item_has_children,
ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.page_item_has_children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children {
    position: relative;
}


/*remove default background color from menu items that have children*/

.et_mobile_menu .menu-item-has-children>a,
.et-db #et-boc .et-l .et_mobile_menu .menu-item-has-children>a {
    background-color: transparent;
}


/*hide the submenu by default*/

ul.et_mobile_menu .menu-item-has-children .sub-menu,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {
    display: none !important;
    visibility: hidden !important;
    transition: visibility 0s, opacity 1s linear;
}

ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {
    display: block !important;
    visibility: visible !important;
}

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle {
    text-align: center;
    opacity: 1;
}

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after {
    top: 0;
    position: relative;
    font-family: "ETModules";
    content: '\33';
    color: #fff;
    background: #000;
    border-radius: 50%;
    padding: 1px 1.9px 1px 1px;
}

ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after {
    content: '\32';
}

.et_pb_menu_0.et_pb_menu .et_mobile_menu:after {
    position: absolute;
    right: 5%;
    margin-left: -20px;
    top: -14px;
    width: 0;
    height: 0;
    content: '';
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid #ffffff;
}

.mobile_menu_bar {
    position: relative;
    display: block;
    bottom: 10px;
    line-height: 0;
}

.et_pb_menu_0.et_pb_menu .et_mobile_menu,
.et_pb_menu_0.et_pb_menu .et_mobile_menu ul {
    background-color: #ffffff!important;
    border-radius: 10px;
}
#ullist ul li {
    margin-bottom: 10px;
}


/*********** Media Query Code Start ******************/
@media only screen and (max-width: 1700px) and (min-width: 981px){
    #homes2row .et_pb_image_wrap {
        height: 449px;
        display: block;
    }
    #homes2row .et_pb_image img{
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
	
}
@media only screen and (max-width: 1400px){
    .et_pb_row{
        width: 90%;
    }
    #globalheaderow .et_pb_column:first-child,
    #globalheaderow .et_pb_column:last-child{
        width: 18%;
    }
    #globalheaderow .et_pb_column:nth-child(2){
        width: 64%;
    }
    #headermenu.et_pb_menu ul li{
        margin-right: 40px;
    }
    #homes2row .et_pb_column:nth-child(2){
        padding: 30px;
    }
}
@media only screen and (max-width: 1300px){
    #newsartsblog article{
        width: 47%;
        margin: 0 12px 24px;
    }
}
@media only screen and (max-width: 1099px){
	#servicestimerow .et_pb_column:last-child {padding: 0 15px;}
	
	#directionsrow .et_pb_column:nth-child(2), #directionsrow .et_pb_column:nth-child(3) {width: 100%;}
	
	#directionsrow .et_pb_column:nth-child(2) {margin-right: 0px;}
	
    #headermenu.et_pb_menu ul li{
        margin-right: 10px;
    }
    #headermenu.et_pb_menu ul li a{
        font-size: 16px;
    }
    #otherbannerow h1{
        font-size: 52px;
        line-height: 60px;
    }
	.et_pb_text_inner {
    text-align: center;
}
}
@media only screen and (min-width: 981px){
    #justmobile{
        display: none;
    }
}
@media only screen and (max-width: 980px){
	#servicestimerow .et_pb_column:last-child {padding: 0 5px;}
	
	#directionsrow {padding: 10px;}
	
	#directionsrow .et_pb_column:nth-child(2) {margin-right: 10px;}
	
	#contactusrow .et_pb_column:last-child {padding: 20px;}

	#herobannerow2 .et_pb_column:last-child {width: 35%;}
	
	#directionsrow .et_pb_column:nth-child(2), #directionsrow .et_pb_column:nth-child(3) {width: 100%;}
	
	#directionsrow .et_pb_column_4 {margin-bottom: 0px;}
	
    #newsartsblog article{
        width: 46%;
        margin: 0 12px 24px;
    }
    #newsartsblog .post-content{
        padding: 30px;
    }
    #justdesktop{
        background: none;
    }
    #globalheader{
        position: static;
    }
    #globalheaderow .et_pb_column:last-child{
        display: none;
    }
    #globalheaderow .et_pb_module .mobile_menu_bar:before{
        font-size: 50px;
        color: #fff !important;
    }
    #headermenu.et_pb_menu .et_pb_menu__wrap {
        flex: 1;
        justify-content: flex-end;
    }
    #headermenu.et_pb_menu ul li{
        margin-right: 0;
        margin-bottom: 10px;
        border-bottom: 1px solid #171515;
        padding-bottom: 5px;
    }
    #headermenu.et_pb_menu ul li:last-child{
        border: 0px;
    }
    #headermenu.et_pb_menu ul li a {
        font-size: 18px;
        color: #000 !important;
    }
    #globalfooterow.defaultflex{
        flex-wrap: wrap;
        align-items: flex-start;
    }
    #globalfooterow .et_pb_column:nth-child(2){
        order: 1;
        width: 100%;
    }
    #globalfooterow .et_pb_column:nth-child(1){
        order: 2;
        width: 100%;
        margin-right: 5%;
    }
    #globalfooterow .et_pb_column:nth-child(3){
        order: 3;
        width: 100%;
    }
    #footermenu ul li{
      width: 40%;
      text-align: left;
    }
    #newsstories h2{
        font-size: 24px;
        line-height: 36px;
    }
    #homes2row .et_pb_image img{
        width: 100%;
    }
    #homes2row .et_pb_image .et_pb_image_wrap{
        display: block;
    }
    #homes1row .et_pb_column{
        width: 100%;
        margin: 0;
    }
    #homes1row{
        gap: 25px;
    }
	
    #herobannerow2 .et_pb_column:first-child {width: 35%; margin-bottom: 20px;}
	
    #herobanner{padding: 185px 0;}
	
    #globalheader{
        background-color: #000;
    }
    #globalheaderow .et_pb_column:first-child{
        width: 20%;
    }
    #globalheaderow .et_pb_column:nth-child(2){
        flex: 1;
        width: auto;
    }
    #globalheaderow .et_pb_column,
    #headermenu,
    #headermenu .et_pb_menu_inner_container{
        position: static;
    }
    #headermenu.et_pb_menu ul li.current-menu-item a,
    #headermenu.et_pb_menu ul li:hover a{
        color: #000 !important;
    }
    #globalheaderow.defaultflex{
        flex-direction: row;
    }
    .defaultflex{
        flex-direction: column;
    }
    #otherbannerow ul#socialsharebtn{
        justify-content: center;
    }
}
@media only screen and (max-width: 540px){
	#herobanner {padding: 150px 0;}
	
    #newsartsblog article{
        width: 100%;
        margin: 0 0 24px;
    }
    #otherbanner{
        padding: 50px 0px;
    }
    #globalheaderow .et_pb_column:first-child{
        width: 30% !important;
    }
    #herobannerow1 h1{
        font-size: 46px;
        line-height: 60px;
    }
    #getblurb p br{
        display: none;
    }
    #homes3row .et_pb_text_inner{
        font-size: 22px;
        line-height: 38px;
    }
    #globalfooterow {
        padding-bottom: 10px;
    }
    #otherbannerow h1 {
        font-size: 42px;
        line-height: 50px;
    }
    #footermenu ul li {
        width: 45%;
    }
}

@media only screen and (max-width: 450px) {
	#herobanner {padding: 130px 0;}
}
/*********** Media Query Code End ******************/