/* =========================================================
   SOFTVN — BLOG SINGLE FINAL v3
   Safe for UX Builder / legacy Flatsome content
   ========================================================= */

/* ---------- Base page ---------- */
.single-post {
    background: #f6f8fb;
}

/* Hide default Flatsome single header if it still appears */
.single-post .entry-header,
.single-post .article-inner > .entry-header,
.single-post .post .entry-header {
    display: none !important;
}

/* ---------- Custom single hero ---------- */
.single-post .softvn-single-header {
    position: relative;
    padding: 24px 20px 10px;
    background: transparent;
    text-align: center;
}

.single-post .softvn-single-header::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: rgba(241, 90, 36, 0.32);
}

.single-post .softvn-single-header__inner {
    max-width: 980px;
    margin: 0 auto;
}

.single-post .softvn-single-header__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 11px;
    margin: 0 0 10px;
    border: 1px solid rgba(241, 90, 36, 0.14);
    border-radius: 999px;
    background: rgba(241, 90, 36, 0.05);
    color: #f15a24;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

.single-post .softvn-single-header__title {
    max-width: 860px;
    margin: 0 auto;
    color: #0f172a;
    font-size: 40px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.single-post .softvn-single-header__excerpt {
    max-width: 720px;
    margin: 12px auto 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.72;
    font-weight: 400;
}

/* ---------- Main wrapper ---------- */
.single-post .softvn-single-main,
.single-post .site-main.softvn-single-main {
    margin-top: 0;
    padding: 0 0 56px;
}

.single-post .softvn-single-main > .container,
.single-post .site-main.softvn-single-main > .container {
    max-width: 1120px;
}

/* ---------- Article / content shell ---------- */
.single-post article.blog-single {
    margin: 0;
}

.single-post .entry-content.single-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 38px 48px 42px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

/* Remove top empty spacing often generated by builder */
.single-post .entry-content.single-page > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ---------- Typography system ---------- */
.single-post .entry-content,
.single-post .entry-content p,
.single-post .entry-content li,
.single-post .entry-content td,
.single-post .entry-content th {
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
    font-weight: 400;
}

.single-post .entry-content p {
    margin: 0 0 20px;
}

.single-post .entry-content strong,
.single-post .entry-content b {
    color: #0f172a;
    font-weight: 700;
}

.single-post .entry-content a {
    color: #0f4aa3;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 74, 163, 0.16);
    transition: all 0.2s ease;
}

.single-post .entry-content a:hover {
    color: #0b3a82;
    border-bottom-color: rgba(15, 74, 163, 0.32);
}

/* ---------- Headings ---------- */
.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6 {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-top: 34px;
    margin-bottom: 12px;
    line-height: 1.24;
}

.single-post .entry-content h1 {
    font-size: 34px;
}

.single-post .entry-content h2 {
    font-size: 28px;
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.single-post .entry-content h3 {
    font-size: 22px;
    margin-top: 30px;
}

.single-post .entry-content h4 {
    font-size: 18px;
}

.single-post .entry-content h5,
.single-post .entry-content h6 {
    font-size: 16px;
}

/* If UX Builder content still contains the duplicated title block, hide only the first in-content H1 */
.single-post .entry-content > h1:first-child {
    display: none;
}

/* ---------- Lists ---------- */
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

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

.single-post .entry-content li > ul,
.single-post .entry-content li > ol {
    margin-top: 8px;
    margin-bottom: 10px;
}

/* ---------- Images / media ---------- */
.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.single-post .entry-content figure,
.single-post .entry-content .wp-caption {
    margin: 28px 0;
}

.single-post .entry-content figcaption,
.single-post .entry-content .wp-caption-text {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

/* ---------- Tables ---------- */
.single-post .entry-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    background: #fff;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.single-post .entry-content th,
.single-post .entry-content td {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.single-post .entry-content th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
}

/* ---------- Blockquote ---------- */
.single-post .entry-content blockquote {
    margin: 24px 0;
    padding: 18px 20px 18px 22px;
    border-left: 4px solid #f15a24;
    border-radius: 0 12px 12px 0;
    background: #fff7f2;
    color: #334155;
}

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

/* ---------- Horizontal rule ---------- */
.single-post .entry-content hr {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

/* ---------- Code ---------- */
.single-post .entry-content code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.92em;
}

.single-post .entry-content pre {
    margin: 22px 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    overflow: auto;
}

.single-post .entry-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

/* ---------- UX Builder rows / cols ---------- */
.single-post .entry-content .row,
.single-post .entry-content .row.row-collapse,
.single-post .entry-content .ux-row {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.single-post .entry-content .row:not(.row-collapse) {
    margin-bottom: 22px;
}

.single-post .entry-content .col,
.single-post .entry-content [class*="large-"],
.single-post .entry-content [class*="medium-"],
.single-post .entry-content [class*="small-"] {
    padding-bottom: 0;
}

/* ---------- UX Builder text/image boxes ---------- */
.single-post .entry-content .text,
.single-post .entry-content .text-box,
.single-post .entry-content .text-inner,
.single-post .entry-content .img,
.single-post .entry-content .img-inner,
.single-post .entry-content .banner,
.single-post .entry-content .box {
    max-width: 100%;
}

.single-post .entry-content .text-box,
.single-post .entry-content .box-text {
    color: inherit;
}

/* ---------- Gentle card treatment for top intro blocks ---------- */
.single-post .entry-content > .row:first-child,
.single-post .entry-content > .ux-row:first-child,
.single-post .entry-content > .text:first-child,
.single-post .entry-content > .text-box:first-child,
.single-post .entry-content > .box:first-child {
    margin-top: 0;
}

/* ---------- Embedded video / iframe ---------- */
.single-post .entry-content iframe {
    max-width: 100%;
    border: 0;
    border-radius: 14px;
}

/* ---------- Page links ---------- */
.single-post .page-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: #475569;
    font-size: 14px;
}

.single-post .page-links > span,
.single-post .page-links a > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
}

.single-post .page-links > span:not(:first-child) {
    color: #fff;
    background: #0f172a;
    border-color: #0f172a;
}

/* ---------- Next / prev if theme outputs them ---------- */
.single-post .nav-links,
.single-post .post-navigation {
    max-width: 900px;
    margin: 24px auto 0;
}

.single-post .nav-previous,
.single-post .nav-next {
    margin-top: 12px;
}

/* ---------- Comments area spacing ---------- */
.single-post #comments,
.single-post .comments-area {
    max-width: 900px;
    margin: 28px auto 0;
}

/* =========================================================
   SOFTVN — BLOG SINGLE CONVERSION ADDONS
   ========================================================= */

.single-post .softvn-after-post {
    max-width: 900px;
    margin: 36px auto 0;
}

.single-post .softvn-after-post__cta {
    margin-top: 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7f2 0%, #ffffff 100%);
    border: 1px solid rgba(241, 90, 36, 0.12);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.single-post .softvn-after-post__cta-inner {
    padding: 36px 40px;
    text-align: center;
}

.single-post .softvn-after-post__eyebrow,
.single-post .softvn-related-posts__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 12px;
    border: 1px solid rgba(241, 90, 36, 0.16);
    border-radius: 999px;
    background: rgba(241, 90, 36, 0.06);
    color: #f15a24;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.single-post .softvn-after-post__title,
.single-post .softvn-related-posts__title {
    margin: 14px 0 10px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.single-post .softvn-after-post__title {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.single-post .softvn-after-post__desc {
    max-width: 640px;
    margin: 0 auto;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

.single-post .softvn-after-post__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.single-post .softvn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.single-post .softvn-btn--primary {
    background: #f15a24;
    color: #fff;
    box-shadow: 0 10px 22px rgba(241, 90, 36, 0.24);
}

.single-post .softvn-btn--primary:hover {
    background: #d94d1c;
    color: #fff;
}

.single-post .softvn-btn--secondary {
    background: #fff;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.single-post .softvn-btn--secondary:hover {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.22);
    background: #f8fafc;
}

.single-post .softvn-related-posts {
    margin-top: 46px;
}

.single-post .softvn-related-posts__head {
    text-align: center;
    margin-bottom: 20px;
}

.single-post .softvn-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.single-post .softvn-related-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    min-width: 0;
}

.single-post .softvn-related-card__thumb {
    display: block;
    aspect-ratio: 16 / 8.8;
    background: #f8fafc;
    overflow: hidden;
}

.single-post .softvn-related-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.single-post .softvn-related-card:hover .softvn-related-card__thumb img {
    transform: scale(1.03);
}

.single-post .softvn-related-card__thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.single-post .softvn-related-card__body {
    padding: 12px 14px 14px;
}

.single-post .softvn-related-card__meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 22px;
    padding: 4px 9px;
    margin-bottom: 10px;
    border: 1px solid rgba(241, 90, 36, 0.12);
    border-radius: 999px;
    background: rgba(241, 90, 36, 0.05);
    color: #d95a2b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}

.single-post .softvn-related-card__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.42;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 68px;
}

.single-post .softvn-related-card__title a {
    color: #0f172a;
    text-decoration: none;
    border: 0;
}

.single-post .softvn-related-card__title a:hover {
    color: #0f4aa3;
}

.single-post .softvn-related-card__link {
    display: inline-block;
    margin-top: 10px;
    color: #0f4aa3;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
}

.single-post .softvn-related-card__link:hover {
    color: #0b3a82;
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
    .single-post .softvn-single-header {
        padding: 22px 18px 10px;
    }

    .single-post .softvn-single-header__title {
        font-size: 34px;
    }

    .single-post .entry-content.single-page {
        max-width: 860px;
        padding: 30px 30px 34px;
    }

    .single-post .entry-content,
    .single-post .entry-content p,
    .single-post .entry-content li,
    .single-post .entry-content td,
    .single-post .entry-content th {
        font-size: 16px;
        line-height: 1.85;
    }

    .single-post .entry-content h1 {
        font-size: 30px;
    }

    .single-post .entry-content h2 {
        font-size: 25px;
    }

    .single-post .entry-content h3 {
        font-size: 20px;
    }

    .single-post .softvn-related-posts__grid {
        grid-template-columns: 1fr;
    }

    .single-post .softvn-related-card__title {
        min-height: 0;
    }

    .single-post .softvn-after-post__title,
    .single-post .softvn-related-posts__title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .single-post .softvn-single-header {
        padding: 18px 14px 8px;
    }

    .single-post .softvn-single-header__badge {
        margin-bottom: 9px;
        font-size: 11px;
    }

    .single-post .softvn-single-header__title {
        font-size: 28px;
        line-height: 1.16;
    }

    .single-post .softvn-single-header__excerpt {
        font-size: 15px;
        line-height: 1.72;
    }

    .single-post .entry-content.single-page {
        max-width: 100%;
        padding: 22px 18px 24px;
        border-radius: 14px;
    }

    .single-post .entry-content,
    .single-post .entry-content p,
    .single-post .entry-content li,
    .single-post .entry-content td,
    .single-post .entry-content th {
        font-size: 15px;
        line-height: 1.82;
    }

    .single-post .entry-content h1 {
        font-size: 26px;
    }

    .single-post .entry-content h2 {
        font-size: 22px;
        margin-top: 30px;
    }

    .single-post .entry-content h3 {
        font-size: 19px;
        margin-top: 24px;
    }

    .single-post .entry-content ul,
    .single-post .entry-content ol {
        padding-left: 18px;
    }

    .single-post .entry-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .single-post .softvn-after-post {
        margin-top: 26px;
    }

    .single-post .softvn-after-post__cta-inner {
        padding: 24px 18px;
    }

    .single-post .softvn-after-post__title,
    .single-post .softvn-related-posts__title {
        font-size: 22px;
    }

    .single-post .softvn-after-post__desc {
        font-size: 15px;
    }

    .single-post .softvn-related-card__body {
        padding: 12px 14px 14px;
    }

    .single-post .softvn-related-card__title {
        font-size: 16px;
    }
}