/**
 * Theme Name: Sleep in Heavenly Peace
 * Theme URI: http://shpbeds.org/
 * Description: Sleep in Heavenly Peace - A Divi Child Theme.
 * Version: 1.0.0
 * Author: Sleep in Heavenly Peace
 * Author URI: http://shpbeds.org/
 * Text Domain: sleepinheavenlypeace
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Template: Divi

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* logo section  */
.et_section_regular .local_sponsors{
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.et_section_regular .local_sponsors span.et_pb_image_wrap {
    max-width: 161px;
}
@media (max-width: 767px){
    .et_section_regular .local_sponsors span.et_pb_image_wrap {
        max-width: 168px;
    }
}

/* marquee slider  */
.et_pb_section_2.et_pb_section.national_ticker {
	z-index: 2;
	position: relative;
    display: flex !important;
	overflow: hidden;
	user-select: none;
    background-color: #29abe2 !important;
    align-items: center;
    min-height: 100px;
}

/* .national_ticker:hover .beds_statistics {
	animation-play-state: paused;
} */
    
.national_ticker .beds_statistics {
    flex-shrink: 0;
    display: flex !important;
    justify-content: space-around;
    min-width: 100%;
    align-items: center;
    width: unset;
    max-width: unset;
    background-color: #29abe2 !important;
}
.national_ticker.is-animate .beds_statistics {
	animation: scroll 40s linear infinite;
    flex-direction: row !important;
}
.national_ticker.is-animate .beds_statistics .national_bed_statistics {
    flex-direction: row !important;
}

.national_ticker .beds_statistics>div {
	white-space: nowrap;
	display: inline-block;
	position: relative;  
}
.national_ticker .beds_statistics>div.nationally_text {
    margin-right: 40px !important;
    margin-bottom: 0 !important;
    width: auto !important;
    padding-top: 0 !important;
}
.national_ticker .beds_statistics .et-last-child {
	width: unset !important;
}

@keyframes scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-100%);
	}
}

/* event slider */
@media (max-width: 767px) {
    .events-slider--section .upcoming_local_events{
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 30px !important;
    }
}
@media (min-width: 540px) and (max-width: 991px) {
    .events-slider--section .upcoming_local_events{
        padding-bottom: 40px !important;
    }
}
.upcoming_local_events .jsEventSlider{
    max-width: 100%;
    width: 100%;
}
.upcoming_local_events .jsEventSlider .slick-arrow {
    top: 0%;
    z-index: 3;
}
.upcoming_local_events .jsEventSlider .slick-arrow::before{
    display: block;
    content: '';
    width: 20px;
    height: 20px;
    border-right: 2px solid #003b5f;
    border-bottom: 2px solid #003b5f;
    transform: rotate(-45deg);
}
.upcoming_local_events .jsEventSlider .slick-arrow.slick-next {
    right: -8%;
}
.upcoming_local_events .jsEventSlider .slick-arrow.slick-prev {
    left: -8%;
}
@media (max-width: 991px) {
    .upcoming_local_events .jsEventSlider .slick-arrow::before{
        width: 10px;
        height: 10px;
    }
    .upcoming_local_events .jsEventSlider .slick-arrow.slick-next {
        right: 38%;
    }
    .upcoming_local_events .jsEventSlider .slick-arrow.slick-prev {
        left: 38%;
    }
    .upcoming_local_events .jsEventSlider .slick-arrow {
        top: auto;
        bottom: -30px;
    }
}
.upcoming_local_events .jsEventSlider .slick-arrow.slick-prev::before {
    transform: rotate(135deg);
}
.upcoming_local_events .jsEventSlider .et_pb_column_1_2{
    width: unset !important;
}
@media (min-width: 981px){
    .upcoming_local_events .jsEventSlider .slider__item .et_pb_column_1_1{
        margin-right: 50px !important;
        width: unset;
    }
}
@media only screen and (max-width: 767px) {
    .upcoming_local_events .jsEventSlider .et_pb_column_3, .upcoming_local_events .jsEventSlider .et_pb_row_10 {
        display: unset !important;
    }
}
@media (min-width: 768px){
    .events-slider--section .et_pb_row_11.et_pb_row.local_sponsors_slider_heading{
        padding: 27px 0!important;
    }
}
@media (max-width: 767px){
    .events-slider--section .et_pb_row_11.et_pb_row.local_sponsors_slider_heading{
        padding: 30px 0!important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .et_section_regular .local_sponsors {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        width: 80% !important;
    }
}

@media screen and (min-width: 981px) {
    .et_section_regular .local_sponsors>div {
        width: 15.6%;
    }
}
@media screen and (max-width: 768px) {
    .et_section_regular .local_sponsors {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        width: 80% !important;
        gap: 40px;
    }
}

@media screen and (max-width: 480px) {
    .et_section_regular .local_sponsors {
        grid-template-columns: repeat(1, 1fr);
        width: 50% !important;
    }
    .et_section_regular .local_sponsors span.et_pb_image_wrap {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}
@media screen and (min-width: 479px) and (max-width: 767px){
    .et_pb_row_1-4_1-4>.et_pb_column.et_pb_column_1_4, .et_pb_row_1-4_1-4_1-2>.et_pb_column.et_pb_column_1_4, .et_pb_row_4col>.et_pb_column.et_pb_column_1_4{
        width: 42.05%;
    }
}

/* heaser style fix */
@media screen and (max-width: 375px){
    body header .et_pb_menu--style-left_aligned .et_pb_menu__wrap {
        right: -50px;
    }
}

/* Footer styles */
body footer.et-l--footer .et_pb_row_1_tb_footer{
    display: flex;
    gap: calc((60/1046)*100%);
    flex-wrap: wrap;
}
body footer.et-l--footer .et_pb_row_1_tb_footer>div{
    float: unset;
    margin: 0 !important;
}
body footer.et-l--footer .et_pb_row_1_tb_footer>div .et-menu-nav ul{
    display: block;
}
body footer.et-l--footer .et_pb_row_1_tb_footer>div.et_pb_column_1_tb_footer{
    width: calc((99/1046)*100%) !important;
}
body footer.et-l--footer .et_pb_row_1_tb_footer>div.et_pb_column_2_tb_footer{
    width: calc((269/1046)*100%) !important;
}
body footer.et-l--footer .et_pb_row_1_tb_footer>div.et_pb_column_3_tb_footer{
    width: calc((207/1046)*100%) !important;
}
body footer.et-l--footer .et_pb_row_1_tb_footer>div.et_pb_column_4_tb_footer{
    width: calc((291/1046)*100%) !important;
}
body footer .footer-flags{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc((19/148)*100%);
    max-width: 148px;
    margin: 0 auto 20px;
    padding: 32px 0 0;
}
body footer .footer-flags>div{
    width: calc((36/148)*100%);
}
body footer.et-l--footer .et_pb_row_1_tb_footer>div.et_pb_column_2_tb_footer .footer-shp-extension{
    margin-bottom: 12px;
    display: block;
    color: #fff;
}



@media screen and (max-width: 1360px){
    body footer.et-l--footer .et_pb_row_1_tb_footer{
        gap: calc((40/1046)*100%);
    }
    body footer.et-l--footer .et_pb_row_1_tb_footer>div.et_pb_column_4_tb_footer{
        width: calc((251/1046)*100%) !important;
    }
}
@media screen and (max-width: 980px){
    body footer.et-l--footer .et_pb_row_1_tb_footer{
        max-width: calc(100% - 50px);
        width: calc(100% - 50px);
        gap: calc((30/1046)*100%);
    }
    body footer.et-l--footer .et_pb_row_1_tb_footer .et_pb_menu .et_pb_menu__menu{
        display: block;
    }
    body footer.et-l--footer .et_pb_row_1_tb_footer .et_pb_menu .et_pb_menu__wrap{
        position: static !important;
        justify-content: flex-start;
        width: 100%;
    }
    body footer.et-l--footer .et_pb_row_1_tb_footer .et_pb_menu .et_mobile_nav_menu{
        display: none !important;
    }
    body footer.et-l--footer .et_pb_row_1_tb_footer>div .et-menu-nav ul{
        margin: 0;
    }
    body footer.et-l--footer .et_pb_row_1_tb_footer>div .et-menu-nav ul>li{
        padding: 0;
    }
    body footer.et-l--footer .et_pb_row_1_tb_footer>div.et_pb_column_1_tb_footer{
        width: 100% !important;
        margin-bottom: 30px !important;
    }
    body footer.et-l--footer .et_pb_row_1_tb_footer > div.et_pb_column_2_tb_footer {
        width: calc(269 / 917 * 100%) !important; /* 1046 - 129 = 917 */
    }
    body footer.et-l--footer .et_pb_row_1_tb_footer > div.et_pb_column_3_tb_footer {
        width: calc(207 / 917 * 100%) !important;
    }
    body footer.et-l--footer .et_pb_row_1_tb_footer > div.et_pb_column_4_tb_footer {
        width: calc(291 / 917 * 100%) !important;
    } 
    body footer.et-l--footer .et_pb_row_1_tb_footer > div.et_pb_column_4_tb_footer .local_socials:before,
    body footer.et-l--footer .et_pb_row_1_tb_footer > div.et_pb_column_4_tb_footer .national_socials:before{
        display: block!important;
    } 
    body footer.et-l--footer .et_pb_row_1_tb_footer > div.et_pb_column_4_tb_footer .et_pb_text_1_tb_footer,
    body footer.et-l--footer .et_pb_row_1_tb_footer > div.et_pb_column_4_tb_footer .et_pb_text_2_tb_footer{
        display: none!important;
    } 
    
}

@media screen and (max-width: 700px){
    body footer.et-l--footer .et_pb_row_1_tb_footer > div.et_pb_column_2_tb_footer,
    body footer.et-l--footer .et_pb_row_1_tb_footer > div.et_pb_column_3_tb_footer,
    body footer.et-l--footer .et_pb_row_1_tb_footer > div.et_pb_column_4_tb_footer{
        width: 100% !important;
    }
    body footer.et-l--footer .et_pb_row_3_tb_footer.et_pb_row{
        width: calc(100% - 50px);
    }
    body footer.et-l--footer .et_pb_row_3_tb_footer.et_pb_row .et_pb_text_inner p{
        text-align: center !important;
    }
    body footer .footer-flags>div{
        margin-bottom: 0;
    }
}

.donate-menu-item,
.donate_local_chapter_btn,
.donate_nationally_btn:hover,
body .et_pb_button,
body .et_pb_button:hover {
    border-radius: 5px !important;
}
