/** Styling for blog pages. */

.clickableWrapper {
    position: relative;

    .clickableWrapper-target::before {
        content: '';
        cursor: pointer;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}
.clickableWrapper:focus-within {
    border-radius: 10px;
    outline: 2px solid var(--omega-red);
    outline-offset: 2px;
}

.postList {
    a:hover, a:hover div,
    a:focus, a:focus div {
        color: var(--omega-red);
        text-decoration: underline !important;
    }

    .postList-header {
        align-items: center;
        display: flex;
        justify-content: space-between;
    }

    .postList-header-link {
        color: #555;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1.5px;
        line-height: 10px;
        text-transform: uppercase;
    }
    
    .postList-list {
        display: flex;
        flex-wrap: wrap;
        margin: 0 0 20px 0;
    }

    .postList-post {
        flex: 0 0 100%;
        max-width: calc(33.33% - 30px);
        margin: 15px;
    }

    .postList-thumbnail img {
        width: 100%;
    }

    .postList-post-title {
        color: #191919;
        font-family: Lato;
        font-size: 20px;
        padding: 10px 0 0 0;
    }

    .date {
        font-size: 10px;
        color: #757575;
        line-height: 10px;
    }

    .post-excerpt {
        color: #444;
        font-size: 13px;
        line-height: 20px;
        letter-spacing: 0.10px;
        word-break: break-word;
    }

    @media only screen and (max-width: 767.98px) {
        .postList-list {
            flex-direction: column;
        }

        .postList-post {
            max-width: 100%;
        }
    }
}

.archive, .blog {
    /** Fonts */
    h1, 
    h2, 
    h3, 
    h4, 
    h5, 
    h6, 
    div, 
    p, 
    body 
    p {
        font-family: 'Poppins', sans-serif;
    }
    .post-title, .post-title a {
        color: #2a2a2a;
    }
    .blog-recent-posts .post-title {
        font-size: 32px;
        font-weight: 700;
        line-height: 38px;
    }
    .blog-featured-posts .post-title {
        font-size: 18px;
        font-weight: 500;
    }
    .blog-recent-posts-header-link a,
    .categories, .categories a {
        color: #555;
        text-transform: uppercase;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1.5px;
        line-height: 16px;
    }
    .date {
        font-size: 10px;
        color: #757575;
        line-height: 10px;
    }
    .post-excerpt {
        color: #444;
        font-size: 14px;
        line-height: 20px;
    }

    /** Link behavior (except in the navbar). */
    a:hover:not(#nav a), a:hover:not(#nav a) div,
    a:focus:not(#nav a), a:focus:not(#nav a) div {
        color: var(--omega-red);
        text-decoration: underline !important;
    }

    /** Layout */
    .page-banner {
        display: none;
    }
    .main-container {
        display: flex;
        flex-direction: column;
        max-width: 1100px;
        padding: 40px 40px 10px;
    }
    .blog-recent-and-featured {
        display: flex;
        flex: 0 0 100%;
        flex-wrap: wrap;
        margin: 0 0 30px;
    }
    .blog-recent-posts {
        background-color: #eee;
        flex: 3 1 400px;
        min-width: 400px;
        padding: 30px;
    }
    .blog-recent-posts-header {
        display: flex;
        justify-content: space-between;
    }
    .blog-recent-posts .post-title {
        margin: 8px 0 0 0;
    }
    .recent-post {
        padding: 4px;
    }
    .blog-recents-carousel .clickableWrapper:focus-within {
        outline-offset: -2px;
    }
    .recent-post img {
        width: 100%;
    }
    .blog-featured-posts {
        display: flex;
        flex: 1 1 300px;
        flex-direction: column;
        gap: 20px;
        min-width: 300px;
        padding: 30px 20px 0;
    }
    .featured-post {
        border-bottom: 1px solid #aaa;
    }
    .categories {
        margin: 8px 0 0 0;
    }
    .date {
        margin: 16px 0 0 0;
    }
    .post-excerpt {
        margin: 10px 0 0 0;
    }
    .posts-by-categories {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .post-thumbnail {
        margin: 0 0 10px;
    }

    .nav-links {
        display: flex;
        margin: 0 0 20px 0;
    }
    .nav-links .page-numbers {
	    color:#9d2235;
    }
}

/** Individual blog post pages */
.blog-txt {
    .heading {
        color: #333;
        font-size: 48px;
        font-weight: 700;
        line-height: 58px;
        margin: 0 0 13px 0;
    }

    .blog-subtitle {
        font-size: 24px;
        font-weight: 400;
        color: #333;
        margin: 0;
        margin-bottom: 20px;
    }

    .su-button-style-default,
    .su-button-style-default span{
        border-color: #90000b !important;
    }
    h3{
        color: #000000;
        margin-bottom: 5px;
        line-height: 35px;
    }
    .wp-caption {
        padding: 0;
        border: 0;
        margin: 0;
    }
    .img-box a,
    .img-box a > picture.img-fluid {
        display: block;
        width: 100%;
    }

    .img-box a > picture.img-fluid img {
        width: 100%;
    }

    /* Blog post references */
    .references-section{
        background: #f9f9f9;
        margin-bottom: 25px;
        border: 1px solid #ececec;
    }
    .references-section ol li {
        margin-bottom: 15px;
    }
    .references-section p {
        display: none;
    }
    .references-section ol {
        margin: 0;
        max-height: 0;
        overflow-y: hidden;
        transition: all 1s;
    }
    .refHeading{
        cursor: pointer;
        display: block;
        padding: 20px;
        position: relative;
        transition: background .1s;
    }
    .refHeading:hover {
        background: #d9d9d9;
    }
    .references-section.showRef ol {
        max-height: 4000px;
    }

}