/*
Theme Name: Adventist Framework
Theme URI: https://adventist.bg/
Author: the bulgarian Seventh Day Adventist church web development team
Author URI: https://adventist.bg/
Description:  New Gutenberg-ready theme.
Version: 2.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adventist
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, ACF-ready
 */

 /*General Styles*/
* {
    box-sizing: border-box;
}
body {
    font-family: 'Play', 'Arial', sans-serif;
    margin: 0;
    font-size: 16px;
    color: #363636;
    line-height: 1.7;
}
img {
    height: auto;
}
input, textarea, select, button {
    font-family: 'Play', 'Arial', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cuprum', sans-serif;
    font-weight: bold;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}
h1 {
    font-size: 40px;
}
h2 {
    font-size: 30px;
}
h3 {
    font-size: 24px;
}
h4 {
    font-size: 18px;
}
h5 {
    font-size: 14px;
}
h6 {
    font-size: 12px;
}
a {
    color: #0c4da2;
}
p, li, span {
    line-height: 1.8;
}
p {
    margin-top: 0;
}
img {
    max-width: 100%;
}

/*Buttons*/

.btn,
.button,
input[type="submit"],
.banner-content a,
.persistent-sidebar a {
 	font-family: 'Cuprum', sans-serif;
 	display: inline-block;
     text-align: center;
     line-height: 1;
     background-color: #f9b000;
     color: #fff!important;
     cursor: pointer;
     transition: all .2s ease-out;
     overflow: hidden;
     padding: 15px 15px 11px;
     font-size: 14px;
     text-transform: uppercase;
     text-decoration: none!important;
 }
.btn:hover,
.button:hover,
input[type="submit"]:hover,
.banner-content a:hover,
.persistent-sidebar a:hover {
	
}

/*Header Styles*/

header {
    position: relative;
    margin-bottom: -20px;
}
.top-menu-wrapper {
    position: absolute;
    z-index: 1;
    right: 30px;
    top: 30px;
}
.top-menu-wrapper nav,
.top-menu-wrapper .header-search {
    display: inline-block;
}
.top-menu-wrapper .header-search {
    margin-left: 15px;
}
.searchform {
    position: relative;
}
.searchform #search {
    padding: 8px 10px;
    border-radius: 20px;
    border: 2px solid #b3b3b3;
}
.searchform #search:focus {
    outline: 0;
}
.searchform #submit {
    position: absolute;
    top: 8px;
    right: 11px;
    max-width: 18px;
}
.top-menu {
    padding: 0;
    margin: 0;
}
.top-menu li {
    display: inline-block;
}
.top-menu li a {
    display: block;
    text-decoration: none;
    padding: 5px;
    color: #ffa92d;
    font-weight: bolder;
    font-size: 14px;
}
.logo-menu {
    -webkit-box-align: end!important;
        -ms-flex-align: end!important;
            align-items: flex-end!important;
}
.logo-menu .menu-wrapper {
	position: relative;
	top: -55px;
}
.logo a {
	display: inline-block;
	background-color: #2f557f;
	padding: 15px 10px;
	box-shadow: 3px 3px 0 0 rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}

/* Desktop Menu */

.menu {
    margin: 0;
    padding: 0;
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    float: right;
}
.menu li {
    list-style: none;
    position: relative;
}
.menu a {
    color: #363636;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    transition: background-color .3s, color .3s;
}
.menu > li.current-menu-item > a:after,
.menu > li.current-page-ancestor > a:after,
.menu > li > a:after {
    content: '';
    background-color: #333;
    width: 30px;
    height: 2px;
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    bottom: 0;
}
.menu > li > a:after {
    background-color: #888;
    width: 0;
    transition: width .2s;
}
.menu > li:hover > a:after {
    width: 30px;
}

/*sub-menu*/

.sub-menu {
    position: absolute;
    top: 100%;
    min-width: 220px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .15s ease-out;
    z-index: 999;
    background-color: #363636;
    -webkit-box-shadow: 1px 1px 5px -1px rgba(0, 0, 0, 1);
    -moz-box-shadow: 1px 1px 5px -1px rgba(0, 0, 0, 1);
    box-shadow: 1px 1px 5px -1px rgba(0, 0, 0, 1);
}
.menu li:hover > .sub-menu {
    max-height: 500px;
    transition: max-height .25s ease-in;
}
.sub-menu a {
    font-weight: normal;
    color: #fff;
}
.sub-menu li a:hover {
    background-color: #f9b000;
    color: #fff;
}

/* Mobile Menu */

.menu-toggle {
    background-color: #2f557f;
    border: 0;
    display: none;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 15px 20px;
    float: right;
    box-shadow: 3px 3px 0 0 rgba(0,0,0,0.25)
}
.menu-toggle:before {
    content: '\2630';
    font-size: 25px;
}
.menu-toggle.active:before {
    content: '\2716';
    margin-left: 2px;
}
.menu-toggle:focus {
    outline: none;
}
.open {
    display: none;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    height: 35px;
    position: absolute;
    top: 3px;
    right: 28%;
    width: 35px;
}
.open:before {
    content: "\276F";
    position: relative;
    top: 0;
    left: 0;
    font-size: 10px;
    transform: rotate(0deg);
    display: inline-block;
    transition: transform .4s, top .4s;
    font-size: 18px;
}
.open.rotate:before {
    transform: rotate(90deg);
}

.full-width {
	position: relative;
	margin-left: calc(-50vw + 50% + 8px)!important;
	margin-right: calc(-50vw + 50% + 9px)!important;
	width: auto!important;
}

.acf-slider.full-width {
    left: 29.833%;
}

@media all and (max-width: 768px) {
    .acf-slider.full-width {
        left: 0;
    } 
}

.acf-slider,
.acf-slider ul.unslider-wrap > li {
	height: 600px;
    background-color: #fff;
}
.acf-slider ul.unslider-wrap > li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.banner-content h1,
.banner-content h2,
.banner-content h3,
.banner-content h4,
.banner-content h5,
.banner-content h6 {
    color: #fff;
    background-color: rgba(47,85,127,.8);
    display: inline-block;
    padding: 10px 30px;
    margin: 0 0 20px;
    text-transform: uppercase;
}
.banner-content h1 { font-size: 60px; }
.banner-content h2 { font-size: 50px; }
.banner-content h3 { font-size: 40px; }
.banner-content h4 { font-size: 30px; }
.banner-content h5 { font-size: 20px; }
.banner-content h6 { font-size: 10px; }

.banner-content p,
.banner-content li {
    background-color: rgba(47,85,127,.8);
    color: #fff;
    padding: 10px 30px;
}
.banner-content p.gosho {
    background: none;
    padding: 0;
}
.title-wrapper {
    background: #2f557f;
    height: 180px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    color: #fff;
}
.entry-title,
.parent-title {
    margin: 0;
    text-transform: uppercase;
}

main {
    background-color: #fbf9f3;
}
main article {
    padding: 0 60px!important;
    background-color: #fff;
}
body.home main aside {
    padding-top: 600px;
}
aside.sidebar {
    padding: 0 40px;
}
aside .persistent-sidebar {
    background: #efe9d7;
    margin: -60px;
    margin-top: -20px;
    margin-bottom: 30px;
    padding: 50px;
    position: relative;
    z-index: 10;
}
aside .persistent-sidebar h1,
aside .persistent-sidebar h2,
aside .persistent-sidebar h3,
aside .persistent-sidebar h4 {
    font-size: 24px;
    color: #2f557f;
    margin-top: 0;
}
aside .persistent-sidebar h1:before,
aside .persistent-sidebar h2:before,
aside .persistent-sidebar h3:before,
aside .persistent-sidebar h4:before {
    content: '\f0f6';
    font-family: 'FontAwesome';
    display: inline-block;
    margin-right: 8px;
    font-size: 18px;
}
aside .widget-title {
    color: #ffa92d;
}
.textwidget p:last-child {
    margin: 0;
}

aside ul.recent-posts {
    padding: 0;
    margin: 0;
}
aside ul.recent-posts li {
    list-style: none;
    margin-bottom: 25px;
}
aside ul.recent-posts li .thumb {
    height: 160px;
    position: relative;
    background-size: cover;
    background-position: center;
}
a.clickable {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
aside ul.recent-posts h3 {
    margin-top: 5px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: -5px;
}
aside ul.recent-posts h3 a {
    text-decoration: none;
}
aside ul.recent-posts .post-date {
    font-size: 12px;
}
aside ul.recent-posts .excerpt {
    line-height: 1.4;
    font-size: 15px;
    margin-top: 10px;
}

footer {
	background: #68635a;
	padding-top: 30px;
}
footer,
footer a {
	color: #ebe8df;
}
footer .privacy {
	background-color: #514b41;
	margin-top: 30px;
	padding: 15px 0;
}
footer .flex-center {
    display: flex;
    align-items: center;
}
footer .flex-center.right {
    justify-content: flex-end;
}
footer .description,
footer .copyright {
    color: #ebe8df;
    font-size: 12px;
    display: inline-block;
    margin-left: 20px;
}
footer .copyright {
    margin: 0;
}
footer .social a {
    display: inline-block;
    margin-left: 15px;
    font-size: 25px;
}
footer .copyright span {
    display: inline-block;
}
footer .bloginfo {
    margin-left: 5px;
}
.footer-menu {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}
.footer-menu li {
    display: inline-block;
    list-style: none;
    line-height: 1;
}
.footer-menu li a {
    font-size: 12px;
    line-height: 1.7;
    padding: 0 5px;
}
.footer-menu li:last-child a {
    padding-right: 0;
}
main .posts article {
    padding: 0!important;
    margin-bottom: 20px;
}
main .posts article .content {
    padding: 0 20px;
}
article .thumb {
    min-height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
main .posts article h2 {
    font-size: 20px;
    margin: 15px 0;
}

body.single article {
    padding: 0!important;
}
body.single article .thumb {
    height: 350px;
}
body.single article .content {
    padding: 0 60px;
}
body.single article .content h1 {
    margin: 20px 0;
}
article.col-8 .entry-content {
    padding: 20px 0;
}

.team {
    margin-top: 35px;
}
.team .member {
    margin-bottom: 35px;
}
.team .member:nth-child(even) {
    padding-bottom: 35px;
    border-bottom: 1px solid #f9b000;
}
.team .member:last-child {
    border: none;
    padding-bottom: 0;
}
.member .image {
    height: 250px;
    background-size: cover;
    background-position: center;
}
.member .content {
    padding-left: 25px;
}
.member .content h3 {
    margin: 0;
    margin-bottom: -5px;
}
.member .content .bio {
    font-size: 15px;
    line-height: 1.6;
}












/*Resonsive breakpoints*/
@media (max-width: 1410px) {
    .menu li:last-child > .sub-menu {
        right: -70px;
    }
}
@media (max-width: 1280px) {
    .menu li:last-child > .sub-menu {
        right: -15px;
    }
}
@media (max-width: 1200px) {
    aside .persistent-sidebar {
        margin-right: -40px;
    }
}
@media (max-width: 830px) {
    .menu a {
        padding: 10px;
    }
    .top-menu li a {
        padding: 5px 3px;
    }
    .top-menu-wrapper .header-search {
        margin-left: 5px;
    }
}
@media (max-width: 768px) {
	header {
	    text-align: center;
	    padding: 15px 0;
	}
	.menu {
	    position: relative;
	}
	.menu-toggle {
	    display: inline-block;
	}
	.menu {
	    display: block;
	    float: none;
	    width: 100%;
	    position: absolute;
	    left: -100%;
	    z-index: 999;
	    transition: .3s;
	    background-color: #2f557f;
	    top: 58px;
	    padding: 15px;
        box-shadow: 3px 3px 0 0 rgba(0,0,0,0.25);
	}
	.menu a {
	    font-size: 16px;
	    color: #fff;
	}
	.sub-menu {
	    max-height: 0 !important;
	    position: static;
	    background-color: #fff;
	}

	.sub-menu a {
	    padding: 10px 20px;
	    font-size: 14px;
        color: #333;
	}

	.sub-menu.expand {
	    max-height: 500px !important;
	}
	.slidein {
	    left: 0;
	}
	.open {
	    display: block;
	}
    .top-menu-wrapper {
        position: static;
        margin-bottom: 20px;
    }
    body.home main aside {
        padding-top: 0;
    }
    aside .persistent-sidebar {
        margin: 20px -40px;
    }
    .wp-block-column {
        flex-basis: 100%;
        margin: 0!important;
    }
}
@media (max-width: 500px) {
    .header-search {
        margin: 0!important;
        display: block!important;
    }
    .searchform #search {
        width: 100%;
    }
}