/* ============================================================
   Single Blog Post — Dedicated Styles
   ============================================================ */

/* Hide the fixed vertical share sidebar on single posts */
body.single-post .heateor_sss_vertical_sharing,
body.single .heateor_sss_vertical_sharing {
    display: none !important;
}

/* ---- Back link ---- */
.single-banner__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 7px 16px 7px 12px;
    border-radius: 100px;
    transition: background 0.2s, gap 0.2s;
}

.single-banner__back:hover {
    background: rgba(255, 255, 255, 0.25);
    gap: 12px;
}

/* ---- Banner ---- */
.single-banner {
    background: #0a1f59;
    background-image: url(../img/default-bg.png);
    background-size: cover;
    background-position: center center;
    padding-top: 180px;
    padding-bottom: 60px;
}

.single-banner .container {
    max-width: 1100px;
}

.single-banner__title {
    color: #fff;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px;
}

@media screen and (max-width: 768px) {
    .single-banner {
        padding-top: 120px;
        padding-bottom: 40px;
    }
    .single-banner__title {
        font-size: 32px;
    }
}

.single-banner__date {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.3;
}

/* ---- Body / Content ---- */
.single-body {
    padding: 70px 0 100px;
}

.single-body__container {
    max-width: 1100px;
}

.single-body__thumb {
    margin-bottom: 48px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(10, 31, 89, 0.12);
}

.single-body__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* Typography */
.single-body__content {
    color: #1a2e6e;
    font-size: 18px;
    line-height: 1.8;
}

.single-body__content p {
    margin-bottom: 24px;
    color: #1a2e6e;
    font-size: 18px;
    line-height: 1.8;
}

.single-body__content h2 {
    font-size: 30px;
    font-weight: 700;
    color: #0a1f59;
    margin: 48px 0 20px;
    line-height: 1.3;
}

.single-body__content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0a1f59;
    margin: 40px 0 16px;
}

.single-body__content h4,
.single-body__content h5,
.single-body__content h6 {
    font-weight: 700;
    color: #0a1f59;
    margin: 32px 0 12px;
}

.single-body__content a {
    color: #7c3aed;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-body__content a:hover {
    color: #5b21b6;
}

.single-body__content ul,
.single-body__content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.single-body__content li {
    margin-bottom: 8px;
    color: #1a2e6e;
    font-size: 18px;
    line-height: 1.8;
}

.single-body__content blockquote {
    border-left: 4px solid #7c3aed;
    padding: 16px 24px;
    margin: 32px 0;
    background: #f5f3ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #0a1f59;
}

.single-body__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 8px 0;
}

.single-body__content strong,
.single-body__content b {
    font-weight: 700;
    color: #0a1f59;
}

/* Footer: share bar */
.single-body__footer {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #e5e9f4;
}

.single-body__footer .heateor_sss_sharing_title {
    color: #0a1f59;
    font-size: 14px;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .single-body {
        padding: 40px 0 60px;
    }
    .single-body__content {
        font-size: 16px;
    }
    .single-body__content p,
    .single-body__content li {
        font-size: 16px;
    }
    .single-body__content h2 {
        font-size: 24px;
    }
}

/* ---- Two-column layout: TOC sidebar + content ---- */
.single-body__layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

.single-body__toc {
    position: sticky;
    top: 100px;
}

/* ---- TOC panel ---- */
.toc-panel {
    background: #f5f3ff;
    border: 1px solid #ede9fe;
    border-radius: 12px;
    padding: 22px 20px;
}

.toc-panel__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7c3aed;
    margin: 0 0 14px;
}

.toc-panel__nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-panel__nav li a {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    color: #1a2e6e;
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.toc-panel__nav li a:hover {
    background: #ede9fe;
    color: #6d28d9;
}

.toc-panel__nav li a.is-active {
    background: #ede9fe;
    color: #6d28d9;
    font-weight: 600;
}

.toc-panel__nav li a.is-active-parent {
    color: #7c3aed;
    font-weight: 600;
}

/* h1 items — top level, slightly heavier weight */
.toc-panel__nav li.toc-h1 a {
    font-size: 15px;
    font-weight: 600;
    color: #0a1f59;
}

/* h3 items are indented */
.toc-panel__nav li.toc-h3 a {
    padding-left: 22px;
    font-size: 14px;
    color: #374283;
}

/* h4 items are double-indented */
.toc-panel__nav li.toc-h4 a {
    padding-left: 38px;
    font-size: 13px;
    color: #374283;
}

/* h5 items are triple-indented */
.toc-panel__nav li.toc-h5 a {
    padding-left: 54px;
    font-size: 12px;
    color: #374283;
}

/* Collapse TOC to top on tablets/mobile */
@media screen and (max-width: 1024px) {
    .single-body__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .single-body__toc {
        position: static;
        order: -1; /* show TOC above content on mobile */
    }

    .toc-panel {
        padding: 18px 16px;
    }

    .toc-panel__nav ol {
        flex-direction: column;
    }
}

/* ---- FAQ Accordion ---- */
.faq-block {
    margin: 48px 0;
    border-top: 1px solid #e5e9f4;
}

/* Kill any empty paragraphs or breaks wpautop injects between items */
.faq-block > p:empty,
.faq-block > p:blank,
.faq-block > br {
    display: none;
    margin: 0;
    padding: 0;
}

.faq-item {
    border-bottom: 1px solid #e5e9f4;
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: #0a1f59;
    font-family: inherit;
    line-height: 1.4;
}

.faq-item__question:hover {
    color: #7c3aed;
}

.faq-item__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.3s;
    color: #7c3aed;
}

.faq-item.is-open .faq-item__icon {
    background: #7c3aed;
    color: #fff;
    transform: rotate(45deg);
}

.faq-item__answer {
    display: none;
    padding: 0 0 20px;
    color: #1a2e6e;
    font-size: 16px;
    line-height: 1.75;
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

/* ---- In-article CTA Block ---- */
.article-cta {
    margin: 56px 0;
    background: #0a1f59;
    border-radius: 16px;
    padding: 40px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.article-cta__text {
    flex: 1;
}

.article-cta__heading,
.single-body__content .article-cta__heading {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.article-cta__sub,
.single-body__content .article-cta__sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

.article-cta__btn,
.single-body__content .article-cta__btn {
    flex-shrink: 0;
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.article-cta__btn:hover,
.single-body__content .article-cta__btn:hover {
    background: #6d28d9;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .article-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
        gap: 20px;
    }

    .article-cta__btn {
        width: 100%;
        text-align: center;
    }

    .faq-item__question {
        font-size: 15px;
    }
}

/* ---- Related Posts ---- */
.related-posts {
    background: #f7f8fc;
    padding: 70px 0 90px;
    border-top: 1px solid #e5e9f4;
}

.related-posts .container {
    max-width: 1100px;
}

.related-posts__title {
    font-size: 28px;
    font-weight: 700;
    color: #0a1f59;
    margin: 0 0 36px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e9f4;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media screen and (max-width: 1024px) {
    .related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .related-posts__grid {
        grid-template-columns: 1fr;
    }
    .related-posts__title {
        font-size: 24px;
    }
}
