/*
Theme Name: Ancient Forest
Description: A child theme for the Enfold WordPress theme.
Version: 1.0
Author: Fairwind Creative
Template: enfold
*/


/*-- Add your own styles here --*/
html, html body#top{
    font-family: 'Montserrat', sans-serif;
}
#top #wrap_all .avia-button-wrap .avia-button.avia-color-dark{
    border: 2px solid #AD0343;    
}
#top #wrap_all .avia-button-wrap .avia-button.avia-color-dark .avia_iconbox_title{
    color: #8D0435;
    font-size: 16px;
}
.av-section-with-video-bg.full-cover-video .av-section-video-bg video{
    object-fit: cover;
}

/** Custom Blog **/
#top #wrap_all .avia-content-slider.custom-blog:not(.single-post-img-size) .slide-image{
    height: 0;
    overflow: hidden;
    padding-top: calc((329 / 423) * 100%);
}
#top #wrap_all .avia-content-slider.custom-blog .slide-image img{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}
#top #wrap_all .avia-content-slider.custom-blog .slide-entry .slide-content{
    display: flex;
    flex-direction: column;
}
#top #wrap_all .avia-content-slider.custom-blog .slide-entry .slide-content .slide-entry-excerpt,
#top #wrap_all .avia-content-slider.custom-blog .slide-entry .slide-content .entry-content-header{
    order: 1;
}
#top #wrap_all .avia-content-slider.custom-blog .entry-title{
    margin: 20px 0;
}
#top #wrap_all .avia-content-slider.custom-blog .post-cat{
    color: #AD0343;
    font-size: 16px;
    margin-top: 20px;
}
#top #wrap_all .avia-content-slider.custom-blog .entry-content{
    margin-bottom: 20px;
}
#top #wrap_all .avia-content-slider.custom-blog .read-more-link{
    margin-top: 10px;
}

/** Single **/
#top.page-template-template-custom-single #wrap_all .all_colors main .entry-title,
#top.single-post #wrap_all .all_colors .post-entry .entry-title{
    font-size: 27px;
    line-height: 1.2em;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: none;
}
#top.single-post .big-preview.single-big{
    margin-bottom: 20px;
    padding: 0;
    position: relative;
}
#top .custom-post-date{
    position: absolute;
    top: 0;
    right: 30px;
    background: #02C2A9;
    border-radius: 0 0 6px 6px;
    font-size: 14px;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    line-height: 1.3;
    z-index: 5;
}
#top .custom-post-date .mos-day{
    display: block;
    margin-bottom: 7px;
}
#top .custom-post-date .year{
    font-weight: normal;
}
#top.single-post #wrap_all .all_colors .post-entry .entry-content-header{
    display: flex;
    flex-direction: column-reverse;
    margin-top: 10px;
}
#top.single-post .blog-categories a{
    color: #AD0343;
    font-size: 16px;
    margin-top: 20px;
}
#top.single-post .post-meta-infos .date-container,
#top.single-post .post-meta-infos .text-sep,
#top.single-post .post-meta-infos .blog-author{
    display: none;
}
#top.single-post #wrap_all .all_colors .post-entry .entry-content,
#top.single-post #wrap_all .all_colors .post-entry .entry-content p{
    font-size: 16px;
    line-height: 1.5em;
}
#top .footer-related-posts .container{
    max-width: 100%;
}
#top .footer-related-posts .related-posts-grid{
    margin-bottom: 0;
}
#top .footer-related-posts .related-posts-grid .avia-content-slider-inner{
    display: flex;
    margin: 0 -15px;
}
#top .footer-related-posts .related-posts-grid .slide-entry-wrap{
    margin-left: 0;
    padding: 0 15px;
    width: 25%;
}

/** Social Media Links **/
#top #wrap_all ul.social_bookmarks{
    display: flex;
}
#top #wrap_all ul.social_bookmarks li.social_bookmarks{
    margin: 0 15px 0 0;
}
#top #wrap_all ul.social_bookmarks li.social_bookmarks a{
    color: #AD0343;
    font-size: 25px;
}
#top #wrap_all ul.social_bookmarks li.social_bookmarks a:hover{
    background-color: transparent;
}

/** Sidebar **/
.sidebar section.widget,
.avia-builder-widget-area .widget{
    padding:  0 0 35px 0;
}
#top .sidebar .widget_search #s,
#top .avia-builder-widget-area .widget_search #s{
    border-radius: 4px;
    font: 20px 'Montserrat', sans-serif;
    padding: 20px 25px;
}
#top .sidebar .widget_search #s::placeholder,
#top .avia-builder-widget-area .widget_search #s::placeholder{
    font-size: 20px;
}
.sidebar .newsbox.widget{
    background: #F6F6F6;
    border-radius: 4px;
    margin-bottom: 35px;
    padding: 45px;
}
.sidebar .newsbox .news-wrap .news-headline{
    font-size: 16px;
    font-weight: normal;
}
.newsbox .news-wrap .news-thumb{
    border: none;
    padding: 0;
}
.newsbox .news-wrap .news-thumb img{
    border-radius: 50%;
    overflow: hidden;
}
.newsbox .news-wrap .news-time{
    font-weight: bold;
    margin-top: 10px;
}
#wrap_all .newsbox .news-wrap .news-content{
    margin-bottom: 10px;
}
#top .sidebar .widget select,
#top .avia-builder-widget-area .widget select{
    border-radius: 4px;
    font-size: 18px;
    font-weight: 300;
    padding: 20px;
}
#top .sidebar .widget .widgettitle,
#top .avia-builder-widget-area .widget .widgettitle{
    margin-top: 0;
}
.avia-builder-widget-area .widget:not(.widget_search):not(.widget_categories):not(.widget_archive){
    background-color: #F6F6F6;
    border-radius: 4px;
    padding: 50px;
}
#top #wrap_all .avia-builder-widget-area .widget .social_bookmarks.custom{
    display: flex;
    border: none;
    margin-top: 30px;
}
#top #wrap_all .avia-builder-widget-area .widget .social_bookmarks.custom li{
    border: none;
}
.avia-builder-widget-area .widget.newsbox{
    margin-bottom: 35px;
}

/** Custom Index loop **/
.archive article.bloglist-excerpt{
    margin-bottom: 30px;
}
.custom-post-img{
    position: relative;
}

.single-post-img-size .slide-entry .slide-image,
.custom-post-img .img-wrap > a{
    display: block;
    height: 0;
    padding-top: calc((329 / 794) * 100%);
    position: relative;
    overflow: hidden; 
}

.custom-post-img .img-wrap img{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}
.bloglist-excerpt .entry-content-header .post-cat{
    margin: 20px 0;
}
#top #wrap_all .post-entry .entry-content-header .entry-title{
    font-size: 27px;
    font-weight: normal;
    margin: 20px 0;
}

article.bloglist-excerpt .read-more-link{
    margin-top: 0;
    text-align: left;
}
.bloglist-excerpt .read-more-link .more-link{
    color: #ad0344;
    font-size: 16px;
    font-weight: normal;
    line-height: 1em;
    padding: 0;
    text-transform: none;
}
.bloglist-excerpt .read-more-link .more-link-arrow{
    display: inline;
}
.entry-title .at-risk,
.post-title .at-risk,
.entry-title .protected,
.post-title .protected{
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    line-height: 1em;
    color: #fff;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    top: -5px;
    margin-left: 5px;
}
.entry-title .protected,
.post-title .protected{
	background: #30A18E;
}
.entry-title .at-risk,
.post-title .at-risk{
	background: #AD0343;
}

/** Footer **/
.single-post #footer-page .heateorSssClear,
.single-post #footer-page .heateor_sss_sharing_container{
    display: none;
}

/** Custom Single template **/
.page-template-template-custom-single .entry-title{
    margin-top: 20px;
}
.page-template-template-custom-single .container_wrap > .container:first-child{
    display: flex;
    flex-wrap: wrap;
}
.page-template-template-custom-single .container_wrap.title_container > .container:first-child h1{
    text-align: center;
    width: 100%;
}
.page-template-template-custom-single aside.sidebar{
    box-sizing: border-box;
}
#top .alternate_color,
#top .title_container .container,
#top .stretch_full.container_wrap.alternate_color.light_bg_color.title_container{
    color: #ffffff;
}

/** Custom Header **/
#top #wrap_all .custom-banner{
	background: url(https://ancientforestalliance.org/wp-content/uploads/2022/08/inner-header-bgd.png) no-repeat center;
	background-size: cover;
	padding: 20px 0;
	text-align: center;
}
#top #wrap_all .custom-banner h1{
	color: #fff;
	font-size: 54px;
	line-height: 1.2em;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin: 0;
}

/** Custom pagination styling **/
nav.pagination{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 0;
}
nav.pagination .pagination-meta{
	order: 2;
}
nav.pagination .custom-go-to{
	display: flex;
	gap: 0 5px;
	order: 1;
	margin: 0;
}
#top #wrap_all nav.pagination .custom-go-to #paged{
	margin: 0;
	width: 100px;
}

@media only screen and (min-width: 768px){
    .page-template-template-custom-single main.content{
        flex: 0 0 70%;
    }
    .page-template-template-custom-single aside.sidebar{
        flex: 0 0 30%;
    }
    #top #wrap_all .width-70{
        width: 70%;
    }
    #top #wrap_all .width-30{
        width: 30%;
    }
    #top #wrap_all .width-30 .avia-builder-widget-area{
        padding-left: 50px;
    }
	#top #wrap_all .custom-banner{
		padding: 60px 0 40px;
	}
	nav.pagination .custom-go-to{
		margin: 0 20px;
	}
}

@media only screen and (min-width: 1600px){
    #home-video-row{
        margin-bottom: 188px!important;
    }
    #home-video-row .home-signup{
        background-color: #203152;
        position: absolute;
        bottom: 0;
        transform: translateY(100%);
    }
}









