@media (max-width: 768px) {
    .contact-col {
        text-align: center;
    }
    .thought {
        display: none;
    }
    .nav-topbar .social-icons {
        display: none;
    }
}

@media (max-width: 768px) {
    .testimonial-big .content {
        font-size: 30px;
    }

    .testimonial-big i {
        display: none;
    }
}
@media (min-width: 769px) {
    .template-thought .testimonial-big .author img {
        width: 80px;
    }
}

@media (min-width: 769px) {
    body.template-gallery .mfp-arrow-left {
        left: 40px;
    }
    body.template-gallery .mfp-arrow-right {
        right: 40px;
    }
}

@media (min-width: 769px) {
    .search-form.navbar-form .input-group .query-field.form-control {
        width: 290px;
    }
}
@media (max-width: 991px) {
    .navbar-optional {
        display: none;
    }
}
@media (min-width: 992px) {
    .search-form.navbar-form .input-group .query-field.form-control {
        width: 180px;
    }
}

@media (max-width: 1199px) {
    .nav.main-navbar-nav > li > a {
        padding-right: 10px;
        padding-left: 10px;
    }
}
@media (min-width: 1200px) {
    .search-form.navbar-form .input-group .query-field.form-control {
        width: 230px;
    }
}

.navbar-default .navbar-brand a p {
    color: #777;
}

.navbar-brand.egw-logo {
    display: block;
    width: 300px;
    padding: 11px 15px;
}

.egw-logo p {
    line-height: 1.42857143;
}

.egw-logo__image {
    float: left;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    background: rgb(21, 136, 177);
    padding: 4px 3px 4px 5px;
}

.nav-topbar .search-form input, .nav-topbar .search-form .btn {
    background: #eee;
    color: #444;
}

.footer-sda {
    margin-bottom: 40px;
    padding: 10px 0;
    background: #eee;
    text-align: center;
}

@media (min-width: 993px) {
    .footer-sda {
        margin-bottom: 0;
    }
}

.sda-logo {
    display: block;
    margin: 0 auto 10px;
    border-radius: 50%;
    height: 70px;
    width: 70px;
    line-height: 62px;
    background: #2f557f;
    text-align: center;
}
.sda-logo img {
    height: 40px;
}

.dropdown-menu .dropdown .fa.fa-angle-left {
    left: 5px;
    display: none;
}

@media (max-width: 992px) {
    .dropdown-menu .fa.fa-angle-right {
        right: 10px;
        top: 0;
        margin-top: 0;
        font-size: 16px;
        width: 28px;
        background-color: black;
        position: absolute;
        text-align: center;
        height: 28px;
        border-radius: 100px;
        line-height: 26px;
        padding-left: 4px;
    }

    .dropdown-menu .fa.fa-angle-right:hover {
        background-color: #F05F40;
    }

    .main-navbar-nav li > .dropdown-menu > li > a i {
        right: 20px;
        margin-top: 6px;
        font-weight: bold;
        color: white;
    }
}

@media (min-width: 993px) {
    .dropdown-menu .dropdown .fa.fa-angle-left {
        display: inline;
    }

    .dropdown-menu .dropdown .fa.fa-angle-right {
        display: none;
    }

    .main-navbar-nav .dropdown:hover > .dropdown-menu .dropdown:hover .dropdown-menu {
        left: -225px;
    }
}

.template-homepage .grid-item .img-responsive {
    max-width: 40%;
}

.egw-logo__title {
    font-family: 'Jura', sans-serif;
    font-size: 20px;
    padding: 0;
    margin: 0;
}

.egw-logo__caption {
    font-family: Verdana, serif;
    font-weight: 800;
    font-size: 14px;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .page-header .container {
        display: flex;
    }

    .page-header .page-title {
        flex: 1;
    }

    .page-header .breadcrumb {
        position: relative;
        right: 0;
        margin: auto 0;
    }
}

.page-content img.right {
    float: right;
}

.page-content img.left {
    float: left;
}

body.richtext .rich-text .richtext-image.left {
    margin-right: 16px;
}

body.richtext .rich-text .richtext-image.right {
    margin-left: 16px;
}

body.richtext .rich-text .richtext-image.full-width {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* custom styles */

body.template-textpage .rich-text .richtext-image.left{
    clear: left;
    margin-bottom: 16px;
}

body.template-textpage .rich-text .richtext-image.right {
    clear: right;
    margin-left: 16px;
}


.template-subscriptions .description {
    min-height: 81px;
}

.template-gallery .thumbnail {
    min-height: 470px;
}

.template-gallery .thumbnail .caption p {
    margin: 0;
}

body.egwtext .devotionaltext {
    font-style: italic;
}

body.egwtext .devotionaltext a {
    font-style: normal;
}

body.egwtext .standard-indented {
    text-indent: 1.5em;
}

body.legacytext .page-content h1 a[name],
body.legacytext .page-content h2 a[name],
body.legacytext .page-content h3 a[name],
body.legacytext .page-content h4 a[name] {
    color: #676767;
}

.template-faqpage .panel-group.panel-group-faq.top-faq .panel-heading .number {
    color: #5f5f5f;
    border: 1px solid #5f5f5f;
    background-color: #fff;
}

.template-publications .pub-title {
    font-style: italic;
}

.template-pioneers-cd .egw-product-image {
    min-height: 300px;
}

.template-pioneers-cd .egw-product-image img {
    margin: 0 auto 0 auto;
}

.template-devotional-page .ctrl-panel {
    display: flex;
    flex-wrap: wrap-reverse;
    width: 100%;
}

.template-devotional-page .ctrl-panel .btn {
    margin: 1px;
}

.template-devotional-page .buttons-panel {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
}

.template-devotional-page .subscribe-panel {
    flex-basis: 120px;
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 604px) {
    .template-devotional-page .buttons-panel .btn {
        flex-basis: 210px;
        flex-grow: 1;
    }
    .template-devotional-page .select-button { order: 1; }
    .template-devotional-page .today-button { order: 2; }
    .template-devotional-page .prev-button { order: 3; }
    .template-devotional-page .next-button { order: 4; }

    .template-devotional-page .subscribe-button { flex-grow: 1; }
}

@media (max-width: 470px) {
    .template-devotional-page .buttons-panel .btn {
        flex-basis: 160px;
    }
}

@media (max-width: 370px) {
    .template-devotional-page .buttons-panel .btn {
        flex-basis: 130px;
    }
}

div.thought {
    position: fixed;
    z-index: 1;
    right: 25px;
    bottom: 40px;
    width: 430px;
}

.filtering-area .filtering-input {
    font-weight: normal;
    width: 100%;
}

.addthis_inline_share_toolbox {
    margin-top: 15px;
}

.testimonial-big {
    text-align: center;
}

.testimonial-big .content {
    display: inline;
    line-height: 1;
    position: relative;
    font-weight: 300;
    font-style: italic;
    font-size: 48px;
}

.testimonial-big .content:after {
    display: block;
    content: " ";
    width: 100px;
    height: 3px;
    margin: 40px auto;
    background-color: #F05F40;
}

.testimonial-big .content i {
    position: absolute;
    right: -50px;
    top: -40px;
    font-size: 3em;
    color: #ececec;
}

.footer-bottom a.copyright-text {
    text-decoration: none;
    font-size: 12px;
}

.bio-image {
    position: fixed;
    top: 220px;
    margin-left: 720px;
}

.faq-image-inline {
    max-width: 100%;
}

@media (max-width: 768px) {
    .template-faqpage .bio-image {
        display: none;
    }
}

@media (min-width: 769px) {
    .faq-image-inline {
        display: none;
    }
}

@media (max-width: 992px) {
    .template-faqpage .bio-image {
        margin-left: 460px;
    }

    .template-faqpage .bio-image img {
        width: 250px;
    }
}

@media (max-width: 1200px) {
    .template-faqpage .bio-image {
        margin-left: 560px;
    }

    .template-faqpage .bio-image img {
        width: 400px;
    }
}

.search-suggestions .right {
    float: right;
}
.search-suggestions .bkg-icon {
    opacity: 0.4;
}

.egw-book .icon-group {
    display: inline-block;
}
.egw-book .download-icon img {
    height: 32px;
    width: auto;
}

ul.list-search-results li {
    margin: 20px 0;
}

.pagination {
    margin: 10px 0;
}


.egw-book .egw-book-cover {
    margin-right: 20px;
    float: left;
    width: 128px;
}
.egw-book .post-excerpt {
    min-height: 140px;
}

/* *** Print mode *** */
@media print {
    body {
        padding-top: 0;
    }
    .egw-book {
        display: inline-block !important;
    }
    .hide-on-print {
        display: none !important;
    }
    .show-inline-on-print {
        display: inline;
    }
}