:root {
    --wg-red: #b10000;
    --wg-blue: #3b72a7;
    --wg-burgundy: #752d27;
    --wg-heading: #526577;
    --wg-surface: #ffffff;
    --wg-panel: #f4f4f4;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: var(--wg-blue) url("../images/bgs.png") repeat-x;
    line-height: 1.6;
}

.wg-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wg-main {
    flex: 1;
    background: var(--wg-surface);
    max-width: 1105px;
    margin: 0 auto;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

body:not(.home) .wg-main .container {
    max-width: 800px;
}

.wg-header {
    background: var(--wg-surface);
    padding-top: 1.25rem;
}

.wg-logo {
    display: block;
    width: 100%;
    max-width: 639px;
    height: 72px;
    background: url("../../images/wayne-grudem.png") no-repeat center center;
    background-size: contain;
    margin: 0 auto 0.75rem;
}

.wg-navbar {
    background: var(--wg-red);
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.wg-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
}

.wg-navbar .navbar-toggler-icon {
    filter: invert(1);
}

.wg-navbar .nav-link,
.wg-navbar .navbar-nav .nav-link {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.65rem 0.9rem;
}

.wg-navbar .nav-link:hover,
.wg-navbar .nav-link:focus,
.wg-navbar .current-menu-item > .nav-link,
.wg-navbar .current-menu-ancestor > .nav-link {
    color: #fff;
    text-decoration: underline;
}

.wg-search .form-control,
.wg-search .btn {
    border-radius: 0.25rem;
}

.wg-footer {
    background: var(--wg-surface);
    max-width: 1105px;
    margin: 0 auto;
    width: 100%;
    border-top: 1px solid #ccc;
}

.wg-page-title,
.wg-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #555;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.wg-section-title a.wg-section-link {
    font-size: 0.875rem;
    text-transform: none;
    font-weight: 600;
    margin-left: 0.75rem;
}

.wg-section-panel {
    background: url("../../images/section.jpg") center bottom no-repeat;
    background-size: cover;
    padding: 1.5rem 0 2rem;
    margin-bottom: 1.5rem;
}

.wg-home-bio,
.wg-home-books,
.wg-home-news,
.wg-home-videos,
.wg-home-feeds,
.wg-home-lectures,
.wg-home-contact {
    margin-bottom: 1.5rem;
}

.wg-bio-thumb {
    float: left;
    width: 40%;
    max-width: 260px;
    height: auto;
    margin: 0 1.25rem 0.75rem 0;
}

.wg-bio-body .wg-content {
    text-align: justify;
}

/* Bio image is embedded in post content, wrapped in an unclassed div */
.wg-home-bio .wg-content > div:first-child {
    float: left;
    margin: 0 1.25rem 0.5rem 0;
}

.wg-home-bio .wg-content > div:first-child img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 575.98px) {
    .wg-bio-thumb {
        width: 45%;
        margin-right: 0.75rem;
    }

    .wg-home-bio .wg-content > div:first-child img {
        max-width: 140px;
    }
}

.wg-book-thumb img {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.wg-video-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.wg-feed-list .list-group-item {
    border-bottom: 1px solid #aaa;
}

.wg-feed-list .list-group-item a {
    color: var(--wg-heading);
    text-decoration: none;
}

.wg-feed-list .list-group-item a:hover {
    color: var(--wg-red);
    text-decoration: underline;
}

.wg-lecture-category h3 a {
    color: var(--wg-heading);
    text-decoration: none;
    font-size: 1rem;
}

.wg-lecture-category {
    background: var(--wg-panel);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
}

.wg-content {
    text-align: justify;
}

.wg-content p,
.wg-content ul,
.wg-content ol {
    margin-bottom: 0.75rem;
}

a {
    color: var(--wg-red);
}

a:hover {
    color: #111;
}

.wg-download {
    background-image: url("../../images/pdf-icon.png");
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    padding-left: 2rem !important;
}

.edit-link a {
    color: red;
}

.wg-archive-item .card-title a,
.wg-single h1 a {
    color: var(--wg-heading);
    text-decoration: none;
}

.wg-archive-thumb {
    width: 220px;
    max-width: 100%;
    height: auto;
}

#documentsFilter .nav-link {
    background: #ddd;
    color: #333;
    margin-bottom: 0.25rem;
}

#documentsFilter .nav-link.active,
#documentsFilter .nav-link.filterSelect {
    background: #333;
    color: #fff;
}

#documentsFilter .cat-item a {
    display: block;
    padding: 0.35rem 0.75rem;
    background: #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

#documentsFilter .cat-item a.filterSelect {
    background: #333;
    color: #fff;
}

.wg-document-item .wg-content {
    font-size: 0.95rem;
}

table.searchable-table th.sortable {
    cursor: pointer;
    user-select: none;
}

table.searchable-table th.sortable:hover {
    background: #eee;
}

.wg-pagination a {
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .wg-search {
        width: 100%;
        margin-top: 0.75rem;
    }

    .wg-section-title a.wg-section-link {
        display: block;
        margin-left: 0;
        margin-top: 0.35rem;
    }
}

@media (max-width: 575.98px) {
    .wg-logo {
        height: 56px;
    }

    .wg-main {
        box-shadow: none;
    }
}

::selection {
    background: var(--wg-burgundy);
    color: #fff;
}
