/* =========================================================
   INTELLIVEST — SINGLE BLOG
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.single-blog-page {
    background: #fff;
}


/* =========================================================
   ARTICLE SECTION
========================================================= */

.single-blog-content {
    padding: 72px 0 88px;
    background: #fff;
}

.single-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: clamp(48px, 6vw, 80px);
}

.single-blog-article {
    min-width: 0;
}


/* =========================================================
   ARTICLE HEADER
========================================================= */

.single-blog-article__header {
    margin-bottom: 24px;
}

.single-blog-article__date {
    display: block;
    margin-bottom: 14px;

    color: var(--body-color, #4c4f52);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.single-blog-article__title {
    max-width: 850px;
    margin: 0;

    color: var(--heading-color, #072138);

    font-size: clamp(40px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}


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

.single-blog-featured {
    overflow: hidden;

    width: 100%;
    margin: 0 0 28px;

    border-radius: 10px;

    background: #f3f5f6;
}

.single-blog-featured__image {
    display: block;

    width: 100%;
    height: auto;
    max-height: 520px;

    object-fit: cover;
}


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

.single-blog-entry {
    max-width: 100%;

    color: var(--body-color, #4c4f52);

    font-size: var(--fs-body, 16px);
    line-height: 1.75;
}

.single-blog-entry > *:first-child {
    margin-top: 0;
}

.single-blog-entry > *:last-child {
    margin-bottom: 0;
}


/* Paragraph */

.single-blog-entry p {
    margin: 0 0 22px;
}


/* First paragraph */

.single-blog-entry > p:first-child {
    font-size: 17px;
    line-height: 1.75;
}


/* =========================================================
   ARTICLE HEADINGS
========================================================= */

.single-blog-entry h2 {
    scroll-margin-top: 130px;

    margin: 42px 0 14px;

    color: var(--heading-color, #072138);

    font-size: clamp(26px, 2.3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.single-blog-entry h3 {
    scroll-margin-top: 130px;

    margin: 32px 0 12px;

    color: var(--heading-color, #072138);

    font-size: clamp(21px, 1.8vw, 25px);
    font-weight: 700;
    line-height: 1.3;
}

.single-blog-entry h4 {
    margin: 28px 0 10px;

    color: var(--heading-color, #072138);

    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}


/* =========================================================
   ARTICLE ELEMENTS
========================================================= */

.single-blog-entry strong {
    color: var(--heading-color, #072138);
    font-weight: 700;
}

.single-blog-entry a {
    color: var(--copper, #bd713e);

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.single-blog-entry a:hover {
    color: var(--copper-dark, #9a5328);
}


/* Lists */

.single-blog-entry ul,
.single-blog-entry ol {
    margin: 0 0 22px;
    padding-inline-start: 24px;
}

.single-blog-entry li {
    margin-bottom: 9px;
}

.single-blog-entry li:last-child {
    margin-bottom: 0;
}

.single-blog-entry li::marker {
    color: var(--copper, #bd713e);
}


/* Blockquote */

.single-blog-entry blockquote {
    margin: 30px 0;

    padding: 22px 26px;

    border-inline-start: 3px solid var(--copper, #bd713e);

    background: rgba(189, 113, 62, 0.07);

    color: var(--heading-color, #072138);

    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
}

.single-blog-entry blockquote p:last-child {
    margin-bottom: 0;
}


/* Content Images */

.single-blog-entry img {
    display: block;

    max-width: 100%;
    height: auto;

    border-radius: 10px;
}

.single-blog-entry figure {
    margin: 30px 0;
}

.single-blog-entry figcaption {
    margin-top: 8px;

    color: rgba(76, 79, 82, 0.75);

    font-size: 12px;
    line-height: 1.5;
}


/* Divider */

.single-blog-entry hr {
    margin: 42px 0;

    border: 0;
    border-top: 1px solid rgba(7, 33, 56, 0.12);
}


/* =========================================================
   SIDEBAR
========================================================= */

.single-blog-sidebar {
    min-width: 0;
}


/* =========================================================
   TABLE OF CONTENTS
========================================================= */

.single-blog-toc {
    position: sticky;
    top: 120px;

    margin-top: 0;
    padding: 28px 28px 24px;

    border: 1px solid rgba(7, 33, 56, 0.16);
    border-radius: 10px;

    background: #fff;
}

.single-blog-toc > h2 {
    margin: 0 0 16px;

    color: var(--heading-color, #072138);

    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}


/* =========================================================
   TOC LINKS
========================================================= */

.single-blog-toc__nav {
    display: flex;
    flex-direction: column;
}

.single-blog-toc__nav:empty {
    display: none;
}

.single-blog-toc__nav a {
    display: block;

    padding: 13px 0;

    border-bottom: 1px solid rgba(7, 33, 56, 0.13);

    color: var(--body-color, #4c4f52);

    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;

    text-decoration: none;

    transition: color 0.2s ease;
}

.single-blog-toc__nav a:first-child {
    padding-top: 0;
}

.single-blog-toc__nav a:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.single-blog-toc__nav a:hover,
.single-blog-toc__nav a.is-active {
    color: var(--copper, #bd713e);
}


/* H3 TOC links */

.single-blog-toc__nav a.is-subheading {
    padding-inline-start: 15px;

    font-size: 13px;

    color: rgba(76, 79, 82, 0.82);
}


/* =========================================================
   AUTHOR BOX
========================================================= */

.single-blog-author {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 22px;

    margin-top: 54px;
    padding: 28px;

    border: 1px solid rgba(7, 33, 56, 0.12);
    border-radius: 10px;

    background: #f7f8f9;
}

.single-blog-author__avatar img {
    display: block;

    width: 88px;
    height: 88px;

    border-radius: 50%;
    object-fit: cover;
}

.single-blog-author__label {
    display: block;

    margin-bottom: 6px;

    color: var(--copper, #bd713e);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.single-blog-author__content h2 {
    margin: 0 0 8px;

    color: var(--heading-color, #072138);

    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
}

.single-blog-author__content p {
    margin: 0;

    color: var(--body-color, #4c4f52);

    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   PREVIOUS / NEXT POSTS
========================================================= */

.single-blog-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;

    margin-top: 32px;
    padding-top: 32px;

    border-top: 1px solid rgba(7, 33, 56, 0.1);
}

.single-blog-navigation > div {
    min-width: 0;
}

.single-blog-navigation__next {
    text-align: right;
}

.single-blog-navigation a {
    display: block;

    padding: 18px 20px;

    border: 1px solid rgba(7, 33, 56, 0.1);
    border-radius: 8px;

    background: #fff;

    text-decoration: none;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.single-blog-navigation a:hover {
    border-color: rgba(189, 113, 62, 0.4);

    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(7, 33, 56, 0.06);
}

.single-blog-navigation span {
    display: block;

    margin-bottom: 5px;

    color: var(--copper, #bd713e);

    font-size: 11px;
    font-weight: 700;

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

.single-blog-navigation strong {
    display: block;

    color: var(--heading-color, #072138);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}


/* =========================================================
   RELATED INSIGHTS
========================================================= */

.single-blog-related {
    padding: 72px 0;

    background: #f6f7f8;
}

.single-blog-related__heading {
    max-width: 700px;

    margin: 0 auto 42px;

    text-align: center;
}

.single-blog-related__eyebrow {
    display: inline-block;

    margin-bottom: 9px;

    color: var(--copper, #bd713e);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.single-blog-related__heading h2 {
    margin: 0 0 10px;

    color: var(--heading-color, #072138);

    font-size: clamp(32px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
}

.single-blog-related__heading p {
    margin: 0;

    color: var(--body-color, #4c4f52);

    line-height: 1.65;
}


/* Related Grid */

.single-blog-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   RELATED CARD
========================================================= */

.related-insight-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    min-width: 0;

    border: 1px solid rgba(7, 33, 56, 0.08);
    border-radius: 12px;

    background: #fff;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.related-insight-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 16px 35px rgba(7, 33, 56, 0.08);
}


/* Card Image */

.related-insight-card__image {
    display: block;
    overflow: hidden;

    aspect-ratio: 16 / 10;

    background: var(--navy, #072138);
}

.related-insight-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.related-insight-card:hover
.related-insight-card__image img {
    transform: scale(1.035);
}

.related-insight-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #fff;

    font-weight: 700;
}


/* Card Body */

.related-insight-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 24px;
}

.related-insight-card__meta {
    margin-bottom: 10px;

    color: var(--copper, #bd713e);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
}

.related-insight-card h3 {
    margin: 0 0 12px;

    font-size: 21px;
    line-height: 1.3;
}

.related-insight-card h3 a {
    color: var(--heading-color, #072138);
    text-decoration: none;
}

.related-insight-card p {
    margin: 0 0 20px;

    color: var(--body-color, #4c4f52);

    font-size: 14px;
    line-height: 1.65;
}

.related-insight-card__link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: auto;

    color: var(--copper, #bd713e);

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}

.related-insight-card__link span {
    transition: transform 0.2s ease;
}

.related-insight-card__link:hover span {
    transform: translateX(4px);
}


/* View All */

.single-blog-related__action {
    display: flex;
    justify-content: center;

    margin-top: 32px;
}


/* =========================================================
   FINAL CTA
========================================================= */

.single-blog-cta {
    padding: 48px 0;

    background:
        linear-gradient(
            90deg,
            var(--navy, #072138) 0%,
            var(--navy-light, #0e3961) 100%
        );
}

.single-blog-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;
}

.single-blog-cta__content {
    max-width: 720px;
}

.single-blog-cta__content h2 {
    margin: 0 0 8px;

    color: #fff;

    font-size: clamp(30px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
}

.single-blog-cta__content p {
    margin: 0;

    color: rgba(255, 255, 255, 0.78);

    line-height: 1.65;
}

.single-blog-cta__actions {
    flex: 0 0 auto;
}


/* =========================================================
   RTL / FARSI
========================================================= */

html[dir="rtl"] .single-blog-page {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"]
.single-blog-navigation__next {
    text-align: left;
}

html[dir="rtl"]
.single-blog-entry blockquote {
    border-right: 3px solid var(--copper, #bd713e);
    border-left: 0;
}

html[dir="rtl"]
.related-insight-card__link:hover span {
    transform: translateX(-4px);
}


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

@media (max-width: 1100px) {

    .single-blog-layout {
        grid-template-columns:
            minmax(0, 1fr)
            290px;

        gap: 40px;
    }

    .single-blog-toc {
        padding: 24px;
    }

}


@media (max-width: 991px) {

    .single-blog-content {
        padding-top: 56px;
    }

    .single-blog-layout {
        grid-template-columns: 1fr;

        gap: 36px;
    }

    .single-blog-sidebar {
        order: -1;
    }

    .single-blog-toc {
        position: relative;
        top: auto;
    }

    .single-blog-related__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .single-blog-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }

}


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

@media (max-width: 767px) {

    .single-blog-content {
        padding: 42px 0 56px;
    }


    /* Title */

    .single-blog-article__header {
        margin-bottom: 20px;
    }

    .single-blog-article__date {
        margin-bottom: 10px;

        font-size: 14px;
    }

    .single-blog-article__title {
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.1;
    }


    /* Featured */

    .single-blog-featured {
        margin-bottom: 26px;

        border-radius: 8px;
    }


    /* Content */

    .single-blog-entry {
        font-size: 16px;
    }

    .single-blog-entry > p:first-child {
        font-size: 16px;
    }

    .single-blog-entry h2 {
        margin-top: 36px;

        font-size: 26px;
    }

    .single-blog-entry h3 {
        margin-top: 28px;

        font-size: 22px;
    }


    /* TOC */

    .single-blog-toc {
        padding: 22px;

        border-radius: 8px;
    }

    .single-blog-toc > h2 {
        font-size: 21px;
    }


    /* Author */

    .single-blog-author {
        grid-template-columns:
            64px minmax(0, 1fr);

        gap: 18px;

        margin-top: 44px;
        padding: 22px;
    }

    .single-blog-author__avatar img {
        width: 64px;
        height: 64px;
    }

    .single-blog-author__content h2 {
        font-size: 21px;
    }


    /* Previous / Next */

    .single-blog-navigation {
        grid-template-columns: 1fr;
    }

    .single-blog-navigation__next {
        text-align: left;
    }

    html[dir="rtl"]
    .single-blog-navigation__next {
        text-align: right;
    }


    /* Related */

    .single-blog-related {
        padding: 56px 0;
    }

    .single-blog-related__heading {
        margin-bottom: 30px;
    }

    .single-blog-related__grid {
        grid-template-columns: 1fr;
    }


    /* CTA */

    .single-blog-cta {
        padding: 40px 0;
    }

    .single-blog-cta__actions,
    .single-blog-cta__actions .btn {
        width: 100%;
    }

    .single-blog-cta__actions .btn {
        justify-content: center;
    }

}


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

@media (max-width: 480px) {

    .single-blog-author {
        grid-template-columns: 1fr;
    }

    .single-blog-author__avatar img {
        width: 72px;
        height: 72px;
    }

}