/* =============================================================================
   Blog Single Post — Content Typography + Layout
   ============================================================================= */

.blog-details-area { padding-bottom: 120px; }

/* ── Featured image ── */
.blog-details-area .blog-thumb {
    max-width: 860px;
    margin: 32px auto 40px;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.blog-details-area .blog-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center; display: block;
}

/* ── Post header ── */
.blog-post-header { max-width: 720px; margin: 24px auto 40px; }

.blog-post-meta {
    display: flex; align-items: center; gap: 24px;
    flex-wrap: wrap; margin-bottom: 16px;
}
.blog-cat {
    background: #c2f971; color: #0a0a0a;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    padding: 4px 12px; border-radius: 100px;
}
.blog-date, .blog-read-time { font-size: 13px; color: rgba(0,0,0,.45); }
.blog-date::before, .blog-read-time::before { content: '·'; margin-right: 8px; color: rgba(0,0,0,.25); }
.blog-cat + .blog-date::before { display: none; }

/* ── Share icons ── */
.blog-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.blog-share-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(0,0,0,.4);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-right: 2px;
}
.blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
    color: #fff;
}
.blog-share-btn:hover { transform: scale(1.12); opacity: .9; color: #fff; }
.blog-share-wa { background: #25D366; }
.blog-share-fb { background: #1877F2; }
.blog-share-li { background: #0A66C2; }
.blog-share-tg { background: #229ED9; }
.blog-share-copy { background: #0a0a0a; }

@media (max-width: 767px) {
    .blog-share { margin-left: 0; margin-top: 8px; }
}

.blog-post-title {
    font-size: clamp(26px, 4vw, 48px);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -.03em; color: #0a0a0a; margin: 0;
}

/* ── Two-column layout ── */
.blogdetails__wrapper {
    display: flex !important;
    align-items: flex-start !important;
    gap: 48px !important;
    margin-top: 40px;
    position: relative;
}
.blogdetails-contentleft {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    align-self: stretch !important;
}
.blogdetails-contentright {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: 720px !important;
}

/* ── Table of Contents — JS sticky via transform ── */
.blog-toc {
    position: relative;
    top: 0;
    left: 0;
    width: 240px;
    will-change: transform;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 20px 18px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.blog-toc-title {
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .14em;
    color: rgba(0,0,0,.35);
    margin-bottom: 12px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,.07);
}
.blog-toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.blog-toc-list li a {
    font-size: 13px; font-weight: 500; color: rgba(0,0,0,.5);
    text-decoration: none; line-height: 1.4;
    display: block; padding: 5px 8px; border-radius: 8px;
    border-left: 2px solid transparent;
    transition: background .15s, color .15s;
}
.blog-toc-list li a:hover { background: #f5f5f3; color: #0a0a0a; }
.blog-toc-list li a.active { background: #f3ffe0; color: #0a0a0a; border-left-color: #c2f971; font-weight: 600; }
.blog-toc-list li.toc-sub a { padding-left: 20px; font-size: 12px; color: rgba(0,0,0,.4); }

/* ── Typography ── */
.blogdetails-contentright .text-wrapper h2 { font-size: 28px; font-weight: 700; line-height: 1.3; color: #0a0a0a; margin-top: 48px; margin-bottom: 16px; letter-spacing: -.02em; }
.blogdetails-contentright .text-wrapper h3 { font-size: 22px; font-weight: 700; line-height: 1.35; color: #0a0a0a; margin-top: 36px; margin-bottom: 12px; }
.blogdetails-contentright .text-wrapper h4 { font-size: 18px; font-weight: 700; line-height: 1.4; color: #0a0a0a; margin-top: 28px; margin-bottom: 10px; }
.blogdetails-contentright .text-wrapper h5,
.blogdetails-contentright .text-wrapper h6 { font-size: 16px; font-weight: 700; color: #0a0a0a; margin-top: 24px; margin-bottom: 8px; }
.blogdetails-contentright .text-wrapper p { font-size: 16px; line-height: 1.85; color: #444; margin-bottom: 20px; }
.blogdetails-contentright .text-wrapper > p:first-of-type { font-size: 17px; color: #333; line-height: 1.9; }
.blogdetails-contentright .text-wrapper a { color: #0a0a0a; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c2f971; text-decoration-thickness: 2px; transition: color .2s; }
.blogdetails-contentright .text-wrapper a:hover { color: #c2f971; }
.blogdetails-contentright .text-wrapper ul,
.blogdetails-contentright .text-wrapper ol { padding-left: 24px; margin-bottom: 24px; }
.blogdetails-contentright .text-wrapper li { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 8px; }
.blogdetails-contentright .text-wrapper ul li::marker { color: #c2f971; }
.blogdetails-contentright .text-wrapper blockquote { border-left: 4px solid #c2f971; background: #f8fdf0; padding: 24px 28px; margin: 36px 0; border-radius: 0 12px 12px 0; }
.blogdetails-contentright .text-wrapper blockquote p { font-size: 17px; font-style: italic; color: #333; margin-bottom: 0; line-height: 1.75; }
.blogdetails-contentright .text-wrapper img { width: 100%; height: auto; border-radius: 12px; margin: 28px 0; display: block; }
.blogdetails-contentright .text-wrapper hr { border: none; border-top: 1px solid rgba(0,0,0,.1); margin: 40px 0; }
.blogdetails-contentright .text-wrapper code { background: #f3f4f6; padding: 2px 7px; border-radius: 5px; font-size: 14px; font-family: monospace; color: #0a0a0a; }
.blogdetails-contentright .text-wrapper strong { font-weight: 700; color: #0a0a0a; }
.blogdetails-contentright .text-wrapper table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.blogdetails-contentright .text-wrapper th { background: #f3f4f6; padding: 12px 16px; text-align: left; font-weight: 700; color: #0a0a0a; border-bottom: 2px solid rgba(0,0,0,.08); }
.blogdetails-contentright .text-wrapper td { padding: 11px 16px; border-bottom: 1px solid rgba(0,0,0,.06); color: #444; }

/* ── Mobile ── */
@media (max-width: 991px) {
    .blogdetails__wrapper {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .blogdetails-contentleft {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        align-self: auto !important;
    }
    .blog-toc {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        margin-bottom: 32px;
        border-radius: 12px;
    }
    .blogdetails-contentright { max-width: 100% !important; }
    .blog-details-area { padding-bottom: 64px; }
    .blog-details-area .blog-thumb { margin: 20px auto 28px; border-radius: 12px; }
}

@media (max-width: 767px) {
    .blog-post-title { font-size: 24px; }
    .blogdetails-contentright .text-wrapper h2 { font-size: 20px; margin-top: 32px; }
    .blogdetails-contentright .text-wrapper h3 { font-size: 18px; margin-top: 24px; }
    .blogdetails-contentright .text-wrapper p  { font-size: 15px; }
    .blogdetails-contentright .text-wrapper blockquote { padding: 16px 20px; }
    .blogdetails-contentright .text-wrapper .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 28px 0;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,.08);
    }
    .blogdetails-contentright .text-wrapper .table-scroll table {
        margin: 0;
        min-width: 500px;
        border-radius: 0;
    }
    .blogdetails-contentright .text-wrapper .table-scroll td,
    .blogdetails-contentright .text-wrapper .table-scroll th {
        white-space: nowrap !important;
    }
    /* Fallback — target table directly even without .table-scroll wrapper */
    .blogdetails-contentright .text-wrapper table td,
    .blogdetails-contentright .text-wrapper table th {
        white-space: nowrap !important;
    }
    .blogdetails-contentright .text-wrapper table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
    }
}
