/* General modifications */

body.site {
    border-top: none !important;
    font-size: 15px;
    line-height: 1.43;
    padding: 0;
}
body.site #content {
    font-size: 16px;
}
body.site li {
    line-height: inherit;
}
.navigation .small a {
    font-size: 140% !important;
}
.body {
    background-color: #fff !important;
}
.body .container {
    border: none;
    box-shadow: none;
    border-radius: 0;
}
p {
    margin: 1em 0;
}
.btn.dropdown-toggle {
    background: none;
    border: none;
    box-shadow: none;
}
/* back to top button for long pages */

.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background-color: rgba(224, 224, 224, .5);
    border-radius: 4px;
    z-index: 2;
}
.back-to-top,
.back-to-top:hover,
.back-to-top:active,
.back-to-top:focus {
    text-decoration: none;
}
/* ASIDE CARDS */

.moduletable-rsbc-aside-card {
    box-shadow: inset 0 0 3px #999;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}
/* Search box */

.search-query {
    width: 80%;
}
.search-form {
    margin: 0 !important;
}
/***** HEADER & NAVIGATION *****/

.header {
    background: linear-gradient(rgba(255, 252, 226, 0.5) 50%, rgba(255, 252, 226, 0.25)), url(../images/header_logo/header-image.jpg) no-repeat center;
    background-size: cover;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 180px;
}
.header-inner {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
    height: 120px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
}
.brand {
    width: 960px;
    font-weight: bold;
}
.navigation {
    font-size: 115%;
    border: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 125px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}
.nav-collapse {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
}
.navigation + div {
    padding-top: 180px;
}
div.navbar {
    float: none;
    margin-bottom: 0;
}
.navbar .btn {
    margin: 0;
}
.navbar .btn-navbar {
    float: none;
    background: none;
    border: none;
}
.navbar .btn-navbar:focus,
.navbar .btn-navbar:active,
.navbar .btn-navbar:hover {
    background: none;
}
.navbar .btn-navbar::after {
    content: "Menu";
    display: inline;
    font-size: 16px;
    font-weight: bold;
    vertical-align: middle;
    text-shadow: none;
}
.navbar .btn-navbar.collapsed::before {
    content: "\e232";
    font-family: 'IcoMoon';
    font-style: normal;
    speak: none;
    display: inline;
    vertical-align: middle;
    text-shadow: none;
}
.navbar .btn-navbar::before {
    content: "\49";
    font-family: 'IcoMoon';
    font-style: normal;
    speak: none;
    display: inline;
    vertical-align: middle;
    text-shadow: none;
}
.navbar .btn-navbar .icon-bar {
    display: none;
}
.navigation .nav .deeper.parent > a::after {
    content: "\e011";
    display: inline-block;
    font-family: 'IcoMoon';
    font-style: normal;
    speak: none;
    vertical-align: middle;
}
.navigation .nav > .deeper > a:hover {
    cursor: default;
}
.navigation .nav-child li > a:hover,
.navigation .nav-child li > a:focus {
    text-decoration: none;
    color: #444;
    background-image: none !important;
    background-color: #f2f2f2;
}
.navigation .nav > .deeper .nav-child li.active a,
.nav-pills > .active > a {
    color: #fff !important;
}
.nav-pills > .active > a,
.nav-pills > .active > a:hover,
.nav-pills > .active > a:focus,
.navigation .nav > .deeper .nav-child li.active a {
    background-color: #5b6849 !important;
    /* change footer link color separately */
}
.navbar .btn-navbar::before,
.navbar .btn-navbar::after {
    color: #5b6849;
}
@media (max-width: 979px) {
    .navigation .nav > li > a {
        padding-left: 40%;
    }
    .navigation .nav > .deeper > .nav-child {
        position: initial;
        top: initial;
        left: initial;
        z-index: 1;
        float: none;
        padding: initial;
        list-style: none;
        background-color: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background-clip: initial;
        display: block !important;
        max-height: 0;
        opacity: 0;
    }
    .deeper > .nav-child::after,
    .deeper > .nav-child::before {
        content: none !important;
    }
    .nav {
        background-color: #fff;
        border-bottom: 1px solid #ccc;
    }
    .nav-collapse.in {
        margin-bottom: -5px;
    }
    .navigation .nav-child a,
    span.nav-header {
        white-space: normal;
        padding-left: 44%;
        border-radius: 4px;
        font-weight: bold;
        color: #555;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }
    .nav-child > li {
        display: none;
    }
    .nav-child.clicked > li {
        display: block;
    }
    .nav-child.clicked {
        max-height: 1000px !important;
        opacity: 1 !important;
        transition: max-height .5s, opacity .6s;
    }
    .navigation .small a {
        font-size: 140% !important;
    }
    body.site #content {
        font-size: 16px;
    }
}
/***** FOOTER *****/

.footer {
    background-color: #333;
    color: #aaaaaa;
}
.footer #back-top {
    display: none;
}
.footer-content.church-title a,
.footer-content.church-title a:hover {
    color: transparent;
    display: block;
    height: 0px;
    font-size: 0px;
}
.footer a,
.footer a:hover {
    color: #785;
}
.footer .container {
    padding: 20px;
}
.footer-container {
    margin-bottom: 1em;
}
.footer hr {
    display: none;
}
.footer-content {
    vertical-align: top;
    max-width: 33%;
    min-width: 25%;
    margin-left: .5em;
    margin-right: .5em;
    margin-bottom: 1em;
    display: inline-block;
}
@media (max-width: 768px) {
    .footer-content {
        max-width: 100%;
        margin: 0 20px 1em 20px;
    }
    .footer > .container > p {
        padding: 0 20px 0 20px;
    }
}
/***** SERMON SPEAKER *****/

[class*="category-list"][class*="ss-"] .btn-group.filter-select {
    white-space: normal !important;
}
.category-list.ss-speakers-container .cat-items .ss-col.ss-links li {
    display: inline-block !important;
}
[class*="category-list"][class*="ss-"] table tr[class^="cat-list-"] {
    height: 3em;
}
[class*="category-list"][class*="ss-"] table tr[class^="cat-list-"] td {
    vertical-align: middle;
    padding: 6px;
}
/* alternative display for mobile phones for table views */

@media (max-width: 979px) and (min-width: 768px) {
    .category-list.ss-series-container .cat-items form table .hidden-tablet {
        display: table-cell !important;
    }
}
@media (max-width: 767px) {
    [class*="category-list"][class*="ss-"] thead .ss-col,
    [class*="category-list"][class*="ss-"] thead .ss-title {
        display: inline-block !important;
    }
    [class*="category-list"][class*="ss-"] tbody .ss-col {
        display: inline-block !important;
        border: none;
    }
    [class*="category-list"][class*="ss-"] tbody .ss-title {
        display: block;
        font-weight: 500;
    }
    .category-list.ss-sermons-container tbody .ss-series::before {
        content: "Серия: ";
    }
    [class*="category-list"][class*="ss-"] .table-striped tbody > tr:nth-child(odd) {
        background-color: #f9f9f9;
    }
    [class*="category-list"][class*="ss-"] .table-hover tbody tr:hover {
        background-color: #f5f5f5;
    }
    .category-list.ss-sermons-container .ss-current,
    .category-list.ss-sermons-container .table-striped tbody > tr.ss-current:nth-child(odd):not(:hover),
    .category-list.ss-sermons-container .list-striped li.ss-current:nth-child(odd):not(:hover) {
        background-color: #EBFFEB;
    }
}
/* Contact form captcha */

@media (max-width: 615px) {
    #recaptcha_table tr:first-child td:nth-child(2) {
        min-width: 25px;
        padding-right: 0 !important;
    }
    .recaptcha_image_cell,
    #recaptcha_image,
    #recaptcha_challenge_image,
    #recaptcha_response_field {
        width: 200px !important;
    }
}
/* End contact form captcha */
/*Quick links */

.ql-container {
    text-align: center;
    width: 100%;
    padding-bottom: 10px;
}
.ql-item {
    display: inline-block;
    text-align: center;
    border-radius: 4px;
    min-width: 105px;
    margin: .25em;
    padding: .25em;
    box-shadow: 0 0 2px #bbb;
    cursor: pointer;
}
.ql-item:hover,
.ql-item:focus {
    background-color: #eee;
    text-decoration: none;
}
/* End Quick links */