/* ==========================================================
   CONVERGE - SINGLE BLOG POST
   File:
   /wp-content/themes/invetex-child/single-blog.css

   Only affects individual WordPress blog posts.
   ========================================================== */


/* ==========================================================
   1. SPACE AFTER HEADER
   ========================================================== */

/*
 * We put the space directly on the single-post article.
 * This avoids Invetex's .remove_margins / page_content_wrap
 * spacing rules.
 */

body.single-post article.post_item_single {
    padding-top: 65px !important;
    box-sizing: border-box !important;
}


/* ==========================================================
   2. SPACE BEFORE THEME FOOTER
   ========================================================== */

/*
 * Invetex closes .page_content_wrap immediately before
 * loading the theme footer.
 *
 * This creates a real physical spacer immediately before
 * the footer instead of relying on margins.
 */

body.single-post .page_content_wrap::after {
    content: "";
    display: block;
    width: 100%;
    height: 90px;
    clear: both;
}


/* ==========================================================
   3. MAIN BLOG TITLE
   ========================================================== */

body.single-post
.post_header_wrap_style_style-6
.post_header:not(.post_header_after_featured) {
    text-align: center !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


body.single-post
.post_header_wrap_style_style-6
.post_title {
    font-family: 'Jost', sans-serif !important;

    font-size: 44px !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;

    letter-spacing: -0.02em !important;

    text-align: center !important;

    max-width: 1050px !important;

    margin-top: 0 !important;
    margin-right: auto !important;
    margin-bottom: 35px !important;
    margin-left: auto !important;
}


/* ==========================================================
   4. FEATURED IMAGE
   ========================================================== */

body.single-post
.post_header_wrap_style_style-6
.post_featured {
    margin-top: 0 !important;
    margin-bottom: 28px !important;

    text-align: center !important;
}


body.single-post
.post_header_wrap_style_style-6
.post_featured img {
    height: auto !important;
}


/* ==========================================================
   5. CATEGORY + META WRAPPER
   ========================================================== */

body.single-post
.post_header_wrap_style_style-6
.post_header_after_featured {
    width: 100% !important;

    text-align: center !important;

    margin-top: 0 !important;
    margin-right: auto !important;
    margin-bottom: 42px !important;
    margin-left: auto !important;
}


/* ==========================================================
   6. CATEGORIES
   ========================================================== */

body.single-post
.post_header_wrap_style_style-6
.post_header_after_featured
.post_meta_categories {
    display: flex !important;

    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 8px !important;

    width: 100% !important;

    margin-top: 0 !important;
    margin-right: auto !important;
    margin-bottom: 14px !important;
    margin-left: auto !important;

    text-align: center !important;
}


/* ==========================================================
   7. AUTHOR / DATE / COMMENTS
   ========================================================== */

body.single-post
.post_header_wrap_style_style-6
.post_header_after_featured
.post_meta_other {
    display: flex !important;

    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 8px 18px !important;

    width: 100% !important;

    margin: 0 auto !important;

    text-align: center !important;
}


/*
 * Invetex normally divides post meta into left and
 * right sections. Disable that for our blog layout.
 */

body.single-post
.post_header_wrap_style_style-6
.post_header_after_featured
.post_meta_other_part1,

body.single-post
.post_header_wrap_style_style-6
.post_header_after_featured
.post_meta_other_part2 {
    display: flex !important;

    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    flex-grow: 0 !important;

    width: auto !important;

    margin: 0 !important;
}


body.single-post
.post_header_wrap_style_style-6
.post_header_after_featured
.post_meta_item {
    float: none !important;
}


/* ==========================================================
   8. ARTICLE CONTENT
   ========================================================== */

/*
 * Only the post header is centered.
 * Actual article text remains left aligned.
 */

body.single-post .post_content_single {
    text-align: left !important;
}


body.single-post .post_content_single p,
body.single-post .post_content_single ul,
body.single-post .post_content_single ol,
body.single-post .post_content_single li,
body.single-post .post_content_single blockquote {
    text-align: left !important;
}


/* ==========================================================
   9. BLOG HEADING FONT
   ========================================================== */

body.single-post .post_content_single h1,
body.single-post .post_content_single h2,
body.single-post .post_content_single h3,
body.single-post .post_content_single h4,
body.single-post .post_content_single h5,
body.single-post .post_content_single h6 {
    font-family: 'Jost', sans-serif !important;
    font-weight: 700 !important;
}


/* H1 */

body.single-post .post_content_single h1 {
    font-size: 40px !important;
    line-height: 1.15 !important;

    letter-spacing: -0.02em !important;
}


/* H2 */

body.single-post .post_content_single h2 {
    font-size: 32px !important;
    line-height: 1.20 !important;

    letter-spacing: -0.015em !important;
}


/* H3 */

body.single-post .post_content_single h3 {
    font-size: 26px !important;
    line-height: 1.25 !important;
}


/* H4 */

body.single-post .post_content_single h4 {
    font-size: 22px !important;
    line-height: 1.30 !important;
}


/* H5 */

body.single-post .post_content_single h5 {
    font-size: 19px !important;
    line-height: 1.35 !important;

    font-weight: 600 !important;
}


/* H6 */

body.single-post .post_content_single h6 {
    font-size: 17px !important;
    line-height: 1.40 !important;

    font-weight: 600 !important;
}


/* ==========================================================
   10. TABLET
   ========================================================== */

@media only screen and (max-width: 1023px) {

    /* Space after header */

    body.single-post article.post_item_single {
        padding-top: 50px !important;
    }


    /* Space before footer */

    body.single-post .page_content_wrap::after {
        height: 70px;
    }


    /* Main blog title */

    body.single-post
    .post_header_wrap_style_style-6
    .post_title {
        font-size: 36px !important;
        line-height: 1.15 !important;

        margin-bottom: 30px !important;
    }


    /* Article headings */

    body.single-post .post_content_single h1 {
        font-size: 34px !important;
    }

    body.single-post .post_content_single h2 {
        font-size: 28px !important;
    }

    body.single-post .post_content_single h3 {
        font-size: 24px !important;
    }

    body.single-post .post_content_single h4 {
        font-size: 21px !important;
    }

    body.single-post .post_content_single h5 {
        font-size: 18px !important;
    }

    body.single-post .post_content_single h6 {
        font-size: 16px !important;
    }

}


/* ==========================================================
   11. MOBILE
   ========================================================== */

@media only screen and (max-width: 767px) {

    /* ======================================================
       TOP / BOTTOM SPACE
       ====================================================== */

    body.single-post article.post_item_single {
        padding-top: 35px !important;
    }


    body.single-post .page_content_wrap::after {
        height: 55px;
    }


    /* ======================================================
       MAIN POST TITLE
       ====================================================== */

    body.single-post
    .post_header_wrap_style_style-6
    .post_title {
        font-size: 28px !important;
        line-height: 1.18 !important;
        font-weight: 700 !important;

        letter-spacing: -0.015em !important;

        margin-bottom: 26px !important;
    }


    /* ======================================================
       FEATURED IMAGE
       ====================================================== */

    body.single-post
    .post_header_wrap_style_style-6
    .post_featured {
        margin-bottom: 24px !important;
    }


    /* ======================================================
       CATEGORY + META
       ====================================================== */

    body.single-post
    .post_header_wrap_style_style-6
    .post_header_after_featured {
        margin-bottom: 34px !important;
    }


    body.single-post
    .post_header_wrap_style_style-6
    .post_meta_categories {
        justify-content: center !important;

        margin-bottom: 13px !important;
    }


    body.single-post
    .post_header_wrap_style_style-6
    .post_meta_other {
        justify-content: center !important;

        gap: 7px 14px !important;
    }


    body.single-post
    .post_header_wrap_style_style-6
    .post_meta_other_part1,

    body.single-post
    .post_header_wrap_style_style-6
    .post_meta_other_part2 {
        justify-content: center !important;

        width: auto !important;

        margin: 0 !important;
    }


    /* ======================================================
       ARTICLE SIDE SPACE ON MOBILE
       ====================================================== */

    body.single-post .post_content_single {
        padding-left: 18px !important;
        padding-right: 18px !important;

        box-sizing: border-box !important;
    }


    body.single-post .post_footer_single {
        padding-left: 18px !important;
        padding-right: 18px !important;

        box-sizing: border-box !important;
    }


    body.single-post .comments_wrap {
        padding-left: 18px !important;
        padding-right: 18px !important;

        box-sizing: border-box !important;
    }


    /* ======================================================
       ARTICLE HEADINGS - MOBILE
       ====================================================== */

    body.single-post .post_content_single h1 {
        font-size: 27px !important;
        line-height: 1.20 !important;
    }


    body.single-post .post_content_single h2 {
        font-size: 23px !important;
        line-height: 1.25 !important;
    }


    body.single-post .post_content_single h3 {
        font-size: 20px !important;
        line-height: 1.30 !important;
    }


    body.single-post .post_content_single h4 {
        font-size: 18px !important;
        line-height: 1.35 !important;
    }


    body.single-post .post_content_single h5 {
        font-size: 16px !important;
        line-height: 1.40 !important;
    }


    body.single-post .post_content_single h6 {
        font-size: 15px !important;
        line-height: 1.40 !important;
    }

}


/* ==========================================================
   12. SMALL MOBILE
   ========================================================== */

@media only screen and (max-width: 479px) {

    /* Space after header */

    body.single-post article.post_item_single {
        padding-top: 30px !important;
    }


    /* Space before footer */

    body.single-post .page_content_wrap::after {
        height: 45px;
    }


    /* Main title */

    body.single-post
    .post_header_wrap_style_style-6
    .post_title {
        font-size: 26px !important;
        line-height: 1.18 !important;
    }


    /* Slightly tighter mobile side spacing */

    body.single-post .post_content_single,
    body.single-post .post_footer_single,
    body.single-post .comments_wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }


    /* Article H1 */

    body.single-post .post_content_single h1 {
        font-size: 25px !important;
    }


    /* H2 */

    body.single-post .post_content_single h2 {
        font-size: 22px !important;
    }


    /* H3 */

    body.single-post .post_content_single h3 {
        font-size: 19px !important;
    }


    /* H4 */

    body.single-post .post_content_single h4 {
        font-size: 17px !important;
    }


    /* H5 */

    body.single-post .post_content_single h5 {
        font-size: 16px !important;
    }


    /* H6 */

    body.single-post .post_content_single h6 {
        font-size: 15px !important;
    }

}
/* ==========================================================
   CONVERGE - YOU MAY ALSO LIKE
   ========================================================== */


/* Main related section */

body.single-post .related_wrap {
    width: min(1180px, calc(100% - 40px)) !important;
    max-width: 1180px !important;

    margin: 80px auto 0 !important;
}


/* Section heading */

body.single-post
.related_wrap
.related_wrap_title {
    font-family: 'Jost', sans-serif !important;

    font-size: 34px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;

    margin: 0 0 32px !important;

    text-align: left !important;
}


/* Grid */

body.single-post
.related_wrap
.posts_container.columns_wrap {
    display: flex !important;
    flex-wrap: wrap !important;

    margin-left: -15px !important;
    margin-right: -15px !important;

    row-gap: 45px !important;
}


/* Two related posts per row */

body.single-post
.related_wrap
.posts_container.columns_wrap
> [class*="column-"] {
    width: 50% !important;
    max-width: 50% !important;

    flex: 0 0 50% !important;

    padding-left: 15px !important;
    padding-right: 15px !important;

    box-sizing: border-box !important;
}


/*
 * If only ONE related post exists,
 * don't leave it stuck on the left.
 */

body.single-post
.related_wrap
.posts_container.columns_wrap
> [class*="column-"]:only-child {
    width: 100% !important;
    max-width: 760px !important;

    flex: 0 0 760px !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


/* Remove old theme card styling */

body.single-post
.related_wrap.related_style_classic
.related_item {
    text-align: left !important;

    height: 100% !important;

    margin: 0 !important;

    display: flex !important;
    flex-direction: column !important;
}


/* ==========================================================
   IMAGE
   ========================================================== */

body.single-post
.related_wrap
.converge_related_image {
    display: block !important;

    width: 100% !important;

    overflow: hidden !important;

    text-decoration: none !important;
}


/*
 * Keep the full 16:9 thumbnail.
 */

body.single-post
.related_wrap
.converge_related_thumbnail {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;

    aspect-ratio: 16 / 9 !important;

    object-fit: contain !important;

    object-position: center !important;
}


/* ==========================================================
   CONTENT
   ========================================================== */

body.single-post
.related_wrap
.converge_related_content {
    padding-top: 22px !important;

    display: flex !important;
    flex-direction: column !important;

    flex-grow: 1 !important;
}


/* Categories */

body.single-post
.related_wrap
.converge_related_categories {
    display: flex !important;

    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 7px !important;

    margin-bottom: 10px !important;

    font-family: 'Jost', sans-serif !important;

    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;

    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}


body.single-post
.related_wrap
.converge_related_categories a {
    color: #1A1510 !important;

    text-decoration: none !important;
}


body.single-post
.related_wrap
.converge_related_categories a:hover {
    color: #ED3939 !important;
}


body.single-post
.related_wrap
.converge_category_separator {
    color: #ED3939 !important;
}


/* ==========================================================
   TITLE
   ========================================================== */

body.single-post
.related_wrap
.converge_related_title {
    font-family: 'Jost', sans-serif !important;

    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;

    margin: 0 0 13px !important;
}


body.single-post
.related_wrap
.converge_related_title a {
    color: #1A1510 !important;

    text-decoration: none !important;
}


body.single-post
.related_wrap
.converge_related_title a:hover {
    color: #ED3939 !important;
}


/* ==========================================================
   EXCERPT
   ========================================================== */

body.single-post
.related_wrap
.converge_related_excerpt {
    font-family: 'Jost', sans-serif !important;

    font-size: 15px !important;
    line-height: 1.65 !important;

    margin-bottom: 18px !important;

    color: inherit !important;
}


/* ==========================================================
   READ MORE
   ========================================================== */

body.single-post
.related_wrap
.converge_related_more {
    display: inline-flex !important;

    align-items: center !important;

    gap: 7px !important;

    width: fit-content !important;

    margin-top: auto !important;

    font-family: 'Jost', sans-serif !important;

    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 700 !important;

    color: #ED3939 !important;

    text-decoration: none !important;

    border-bottom: 1px solid #ED3939 !important;

    padding-bottom: 4px !important;
}


body.single-post
.related_wrap
.converge_related_more:hover {
    color: #1A1510 !important;
    border-color: #1A1510 !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media only screen and (max-width: 1023px) {

    body.single-post
    .related_wrap {
        width: calc(100% - 40px) !important;

        margin-top: 65px !important;
    }


    body.single-post
    .related_wrap
    .related_wrap_title {
        font-size: 30px !important;

        margin-bottom: 28px !important;
    }


    body.single-post
    .related_wrap
    .converge_related_title {
        font-size: 22px !important;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media only screen and (max-width: 767px) {

    body.single-post
    .related_wrap {
        width: calc(100% - 32px) !important;

        margin-top: 50px !important;
    }


    body.single-post
    .related_wrap
    .related_wrap_title {
        font-size: 26px !important;

        margin-bottom: 24px !important;
    }


    /* One related post per row */

    body.single-post
    .related_wrap
    .posts_container.columns_wrap
    > [class*="column-"],

    body.single-post
    .related_wrap
    .posts_container.columns_wrap
    > [class*="column-"]:only-child {
        width: 100% !important;
        max-width: 100% !important;

        flex: 0 0 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
    }


    body.single-post
    .related_wrap
    .converge_related_content {
        padding-top: 18px !important;
    }


    body.single-post
    .related_wrap
    .converge_related_title {
        font-size: 21px !important;
    }


    body.single-post
    .related_wrap
    .converge_related_excerpt {
        font-size: 15px !important;
    }

}
/* Center "You May Also Like" heading */

body.single-post
.related_wrap
.related_wrap_title {
    text-align: center !important;
}