/* ══════════════════════════════════════════════════════════════════
   Blog Details — Clean Editorial & Sidebar Layout
   ══════════════════════════════════════════════════════════════════ */

/* ── Left Column Article Card ── */
.post-details-wrapper.blog-article-card {
    background: #ffffff;
    border: 1px solid rgba(45, 57, 84, 0.08);
    border-radius: 22px;
    padding: 36px 38px;
    box-shadow: 0 14px 40px rgba(11, 22, 57, 0.05);
}

@media (max-width: 767px) {
    .post-details-wrapper.blog-article-card {
        padding: 22px 18px;
        border-radius: 16px;
    }
}

.post-details-wrapper .blog-images {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(11, 22, 57, 0.08);
}

.post-details-wrapper .blog-images img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}

/* ── Editorial Typography Inside #blog-content-area ── */
#blog-content-area {
    color: #3b4256;
    font-size: 1.04rem;
    line-height: 1.82;
    word-break: break-word;
}

#blog-content-area p {
    margin-bottom: 20px !important;
    color: #3b4256;
    line-height: 1.82;
}

#blog-content-area h2,
#blog-content-area h3,
#blog-content-area h4,
#blog-content-area .blog-p-heading {
    scroll-margin-top: 120px;
    color: #13215f;
    font-weight: 700;
    letter-spacing: -0.015em;
}

#blog-content-area h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    line-height: 1.35;
    margin-top: 2.2rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(45, 57, 84, 0.08);
}

#blog-content-area h3,
#blog-content-area .blog-p-heading {
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    line-height: 1.4;
    margin-top: 1.85rem;
    margin-bottom: 0.75rem;
}

#blog-content-area h4 {
    font-size: 1.1rem;
    line-height: 1.45;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

#blog-content-area a {
    color: #1a55ee;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#blog-content-area a:hover {
    color: #13215f;
}

/* ── Fix Template Override that Broke Rich-Text <ul><li><span> Lists ── */
.post-details-wrapper .blog-text #blog-content-area ul,
.post-details-wrapper .blog-text #blog-content-area ol {
    columns: 1 !important;
    -webkit-columns: 1 !important;
    -moz-columns: 1 !important;
    margin: 0 0 24px 0 !important;
    padding-left: 22px !important;
}

.post-details-wrapper .blog-text #blog-content-area ul {
    list-style: disc !important;
}

.post-details-wrapper .blog-text #blog-content-area ol {
    list-style: decimal !important;
}

.post-details-wrapper .blog-text #blog-content-area ul li,
.post-details-wrapper .blog-text #blog-content-area ol li {
    display: list-item !important;
    color: #3b4256 !important;
    font-weight: 400 !important;
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
    margin-bottom: 10px !important;
}

.post-details-wrapper .blog-text #blog-content-area ul li::marker,
.post-details-wrapper .blog-text #blog-content-area ol li::marker {
    color: #1a55ee;
    font-weight: 700;
}

.post-details-wrapper .blog-text #blog-content-area ul li span,
.post-details-wrapper .blog-text #blog-content-area ol li span {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin-top: 0 !important;
    color: inherit !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* ── Tables inside Blog Content ── */
#blog-content-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

#blog-content-area table th,
#blog-content-area table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
    font-size: 0.95rem;
}

#blog-content-area table th {
    background: #f4f7ff;
    color: #13215f;
    font-weight: 700;
}

/* ── Previous / Next Navigation ── */
.post-details-wrapper .tj-post__navigation {
    background: #f8faff;
    border: 1px solid rgba(45, 57, 84, 0.08);
    border-radius: 16px;
    padding: 18px 24px;
    margin-top: 20px;
}

/* ══════════════════════════════════════════════════════════════════
   Right Sidebar — Sticky Table of Contents Alongside Blog Content
   ══════════════════════════════════════════════════════════════════ */
.blog-details-section .row {
    position: relative;
}

@media (min-width: 992px) {
    .blog-sidebar-col {
        position: relative;
    }

    .tj-main-sidebar.blog-details-sidebar {
        width: 100%;
        position: relative;
        z-index: 10;
    }
}

/* ── Table of Contents Sidebar Widget ── */
.tj-sidebar-widget.headings-main {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    background: #ffffff !important;
    border: 1px solid rgba(45, 57, 84, 0.09) !important;
    border-radius: 20px !important;
    padding: 26px 24px !important;
    box-shadow: 0 12px 32px rgba(11, 22, 57, 0.05) !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tj-sidebar-widget.headings-main .blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #13215f;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(45, 57, 84, 0.08);
}

.tj-sidebar-widget.headings-main .blog-title i {
    color: #1a55ee;
}

/* ── 1. Table of Contents Headings List ── */
.blog-content-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: min(44vh, 320px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 76, 255, 0.35) #f1f4fb;
    padding-right: 6px;
}

.blog-content-list::-webkit-scrollbar {
    width: 5px;
}

.blog-content-list::-webkit-scrollbar-track {
    background: #f1f4fb;
    border-radius: 4px;
}

.blog-content-list::-webkit-scrollbar-thumb {
    background: rgba(45, 76, 255, 0.3);
    border-radius: 4px;
}

.blog-content-list::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 76, 255, 0.6);
}

.blog-content-list li {
    margin: 0;
    padding: 0;
}

.hover-font-1-1x {
    font-size: 0.92rem;
    display: block;
    color: #4e5679;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.45;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.hover-font-1-1x:hover {
    color: #1a55ee;
    background: rgba(45, 76, 255, 0.06);
    border-left-color: #1a55ee;
    padding-left: 14px;
}

.hover-font-1-1x.active {
    color: #1a55ee !important;
    font-weight: 700 !important;
    background: rgba(26, 85, 238, 0.08) !important;
    border-left-color: #1a55ee !important;
    padding-left: 14px !important;
}

.blog-content-list .toc-h3 {
    margin-left: 12px;
    font-size: 0.86rem !important;
}

.blog-content-list .toc-h4 {
    margin-left: 22px;
    font-size: 0.82rem !important;
}

/* ── 2. Social Share & Google Preferred Source Section ── */
.blog-sidebar-social-source {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.blog-share-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.blog-share-row .share-title {
    font-size: 15px;
    font-weight: 500;
    color: #1f2430;
    line-height: 1;
}

.blog-share-row .share-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #f1f3f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #131722;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.share-icon-btn.share-linkedin:hover {
    background: #0077b5;
    color: #ffffff !important;
}

.share-icon-btn.share-x:hover {
    background: #000000;
    color: #ffffff !important;
}

.share-icon-btn.share-facebook:hover {
    background: #1877f2;
    color: #ffffff !important;
}

/* ── Google Preferred Source Pill ── */
.google-source-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px 10px 14px;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(135deg, #a855f7 0%, #ea4335 25%, #fbbc05 52%, #34a853 78%, #4285f4 100%) border-box;
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(11, 22, 57, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
}

.google-source-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.18);
}

.google-source-pill .google-logo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-source-pill .google-logo svg {
    width: 30px;
    height: 30px;
    display: block;
}

.google-source-pill .google-source-text {
    font-size: 13.5px;
    line-height: 1.35;
    color: #13215f !important;
    font-weight: 600;
}

.google-source-pill .google-source-text strong {
    font-weight: 800;
    color: #13215f !important;
}

.google-source-pill:hover .google-source-text {
    color: #1a55ee !important;
}

.google-source-pill:hover .google-source-text strong {
    color: #1a55ee !important;
}

/* ── 2. Consultation Form Widget ── */
.blog-copy-connect-block p {
    color: #646c8f;
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.blog-copy-connect-field {
    margin-bottom: 16px;
    position: relative;
    clear: both;
}

.blog-copy-connect-field::after {
    content: "";
    display: block;
    clear: both;
}

.blog-copy-connect-field label {
    display: block;
    font-size: 0.85rem;
    color: #3f4768;
    margin-bottom: 7px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.blog-copy-connect-field input,
.blog-copy-connect-field select,
.blog-copy-connect-field textarea {
    width: 100%;
    border: 1px solid #e2e8f4;
    border-radius: 12px;
    padding: 12px 15px;
    background: #fbfcff;
    color: #26304d;
    font-size: 0.93rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    resize: vertical;
    display: block;
}

.blog-copy-connect-field input:focus,
.blog-copy-connect-field select:focus,
.blog-copy-connect-field textarea:focus {
    outline: none;
    border-color: #2d4cff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(45, 76, 255, 0.1);
}

/* Fix Nice-Select Floating / Half-Width Issue inside Sidebar Form */
.blog-copy-connect-field .nice-select {
    float: none !important;
    width: 100% !important;
    display: block !important;
    height: 48px !important;
    line-height: 46px !important;
    border: 1px solid #e2e8f4 !important;
    border-radius: 12px !important;
    background: #fbfcff !important;
    padding-left: 15px !important;
    padding-right: 34px !important;
    font-size: 0.93rem !important;
    color: #26304d !important;
    margin-bottom: 0 !important;
}

.blog-copy-connect-field .nice-select:focus,
.blog-copy-connect-field .nice-select.open {
    border-color: #2d4cff !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(45, 76, 255, 0.1) !important;
}

.blog-copy-connect-field .nice-select .list {
    width: 100% !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px rgba(11, 22, 57, 0.12) !important;
    border: 1px solid rgba(45, 57, 84, 0.08) !important;
    margin-top: 6px !important;
    z-index: 50 !important;
}

.blog-copy-connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1b3cd8 0%, #1a55ee 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.96rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 14px 26px rgba(27, 60, 216, 0.18);
    text-decoration: none;
    margin-top: 4px;
}

.blog-copy-connect-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0f2dba 0%, #163fd4 100%);
    box-shadow: 0 18px 32px rgba(27, 60, 216, 0.25);
}

.blog-copy-connect-note {
    margin-top: 14px;
    font-size: 0.82rem;
    color: #6d7394;
    line-height: 1.5;
    text-align: center;
}

/* ── 3. Related Posts Widget ── */
.tj-sidebar-widget.tj-recent-posts > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tj-sidebar-widget.tj-recent-posts > ul > li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(45, 57, 84, 0.1);
    margin: 0;
}

.tj-sidebar-widget.tj-recent-posts > ul > li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.tj-sidebar-widget.tj-recent-posts .post-thumb {
    flex-shrink: 0;
    width: 84px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
}

.tj-sidebar-widget.tj-recent-posts .post-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    transition: transform 0.3s ease;
}

.tj-sidebar-widget.tj-recent-posts > ul > li:hover .post-thumb img {
    transform: scale(1.06);
}

.tj-sidebar-widget.tj-recent-posts .post-content .post-title a {
    color: #13215f !important;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.tj-sidebar-widget.tj-recent-posts .post-content .post-title a:hover {
    color: #1a55ee !important;
}

.tj-sidebar-widget.tj-recent-posts .blog-meta ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tj-sidebar-widget.tj-recent-posts .blog-meta ul li {
    font-size: 0.8rem;
    color: #6d7394;
}

/* ── Hero Header Compact Rules (Unchanged) ── */
.tj-header-blog-img {
    width: 100%;
    max-width: 560px;
    height: 340px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

@media (max-width: 991px) {
    .tj-header-blog-img {
        height: 240px;
        margin-top: 24px;
    }
}

.tj-page-header-sm {
    position: relative;
    padding: 80px 0 70px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.tj-page-header-sm .tj-page-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.3;
    color: #fff;
}

@media (max-width: 768px) {
    .tj-page-header-sm {
        padding: 60px 0 50px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   Bottom Related Posts Section
   ══════════════════════════════════════════════════════════════════ */
.tj-related-posts-section {
    background-color: #f7f9fd;
    padding: 72px 0 64px 0;
    position: relative;
    border-top: 1px solid rgba(45, 57, 84, 0.08);
}

.tj-related-posts-section .sec-heading {
    margin-bottom: 40px;
}

.tj-related-posts-section .sec-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: #13215f;
}

.tj-related-posts-section .blog-item {
    background: #ffffff !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(11, 22, 57, 0.06) !important;
    border: 1px solid rgba(45, 57, 84, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.tj-related-posts-section .blog-item:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 42px rgba(11, 22, 57, 0.12) !important;
}

.tj-related-posts-section .blog-thumb {
    aspect-ratio: 16 / 10 !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

.tj-related-posts-section .blog-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
    display: block !important;
}

.tj-related-posts-section .blog-item:hover .blog-thumb img {
    transform: scale(1.05) !important;
}

.tj-related-posts-section .blog-content {
    padding: 24px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.tj-related-posts-section .span-title-black a {
    font-size: 17.5px !important;
    font-weight: 700 !important;
    color: #13215f !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.tj-related-posts-section .span-title-black a:hover {
    color: #1a55ee !important;
}

.tj-related-posts-section .text-btn {
    margin-top: auto !important;
    padding-top: 16px !important;
    color: #1a55ee !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.tj-related-posts-section .text-btn:hover {
    color: #13215f !important;
}

@media (max-width: 767px) {
    .tj-related-posts-section {
        padding: 44px 0 40px 0;
    }
    .tj-related-posts-section .sec-heading {
        margin-bottom: 24px;
    }
}

