/*
 * Blog Detail Page Responsive CSS
 * Matches Figma Design (venkBiTpm6pORnhjStrP6Q node 1487:7073)
 * Outer Background: rgba(248, 247, 244, 1) | Max Width: 984px
 */

/* Main Container: Max Width 1200px */
.td-bd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Page Outer Section Background: #FFFFFF */
body.single-post,
.single-post #main,
.single-post #wrapper,
.td-bd-hero-section,
.td-bd-wrapper,
.td-bd-related-section {
    background-color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
}

.td-bd-hero-section {
    padding: 40px 0 32px;
}

.td-bd-wrapper {
    padding: 0 0 60px;
}


/* ==================== HERO SECTION (Node 1487:7073) ==================== */

/* Breadcrumbs Centered */
.td-bd-breadcrumbs.center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #1A1A1A;
    margin-bottom: 20px;
}

.td-bd-breadcrumbs a {
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.15s ease;
}

.td-bd-breadcrumbs a:hover {
    color: #1F6F4A;
}

.td-bd-breadcrumbs .icon-chevron {
    color: #666666;
    flex-shrink: 0;
}

.td-bd-breadcrumbs .current {
    color: #1A1A1A;
    font-weight: 500;
}

/* Post Title: Centered, 48px, SemiBold 600 */
.td-bd-post-title.center {
    text-align: center;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.26;
    letter-spacing: -0.04em;
    color: #1A1A1A;
    margin: 0 0 24px;
    text-shadow: 0px 4px 20px rgba(0, 0, 69, 0.05);
}

/* Meta Pill Capsule (background #EDECE9, radius 999px) */


.td-bd-pill-meta-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.td-bd-pill-meta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background-color: #EDECE9;
    padding: 8px 24px;
    border-radius: 999px;
    box-sizing: border-box;
}

.td-bd-pill-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #1A1A1A;
    font-weight: 400;
}

.td-bd-pill-meta .meta-item.author .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.td-bd-pill-meta .bullet-dot {
    color: #666666;
    font-size: 14px;
}

.td-bd-pill-meta .meta-item svg {
    color: #1A1A1A;
    flex-shrink: 0;
}

/* ==================== MAIN GRID LAYOUT ==================== */
.td-bd-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

/* Has Sidebar Layout */
.td-bd-grid-layout:has(.td-bd-column-sidebar:not(:empty)) {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.td-bd-column-main {
    min-width: 0;
    max-width: 100%;
}

.td-bd-column-sidebar {
    min-width: 0;
    width: 320px;
    max-width: 100%;
}

/* Main Article Content Container */
.td-bd-main-content {
    min-width: 0;
    max-width: 100%;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
    color: rgba(26, 26, 26, 1);
    font-size: 16px;
    line-height: 1.7;
}

.td-bd-entry-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.td-bd-featured-image {
    width: 100%;
    max-width: 100%;
    margin-top: 32px;
    border-radius: 12px;
    overflow: hidden;
    background: #E5E5E5;
    position: relative;
}

.td-bd-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.td-bd-entry-content h2,
.td-bd-entry-content h3,
.td-bd-entry-content h4 {
    color: #1A1A1A;
    font-weight: 700;
    margin: 32px 0 16px;
    line-height: 1.35;
}

.td-bd-entry-content h2 {
    font-size: 24px;
}

.td-bd-entry-content h3 {
    font-size: 20px;
}

.td-bd-entry-content h4 {
    font-size: 17px;
}

.td-bd-entry-content p {
    margin-bottom: 20px;
}

.td-bd-entry-content ul,
.td-bd-entry-content ol {
    padding-left: 32px;
    margin-bottom: 20px;
}

/* TD Check List (Icon Checkmark) */
.td-check-list,
.td-bd-entry-content ul.td-check-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 20px 0;
}

.td-check-list li,
.td-bd-entry-content ul.td-check-list li {
    position: relative;
    padding-left: 34px !important;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: #1A1A1A;
    list-style: none !important;
}

.td-check-list li:last-child,
.td-bd-entry-content ul.td-check-list li:last-child {
    margin-bottom: 0;
}

.td-check-list li::before,
.td-bd-entry-content ul.td-check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231F6F4A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.td-bd-entry-content blockquote,
.td-bd-entry-content .wp-block-quote {
    background-color: #E2E9E3;
    border-left: 4px solid #1F6F4A;
    border-top: none;
    border-right: none;
    border-bottom: none;
    padding: 20px 28px;
    margin: 28px 0;
    border-radius: 0;
    font-style: normal;
    color: #1A1A1A;
    font-size: 16px;
    line-height: 1.7;
    position: relative;
}

.td-bd-entry-content blockquote::before,
.td-bd-entry-content blockquote::after,
.td-bd-entry-content .wp-block-quote::before,
.td-bd-entry-content .wp-block-quote::after {
    display: none !important;
    content: none !important;
}

.td-bd-entry-content blockquote p,
.td-bd-entry-content .wp-block-quote p {
    font-style: normal;
    color: #1A1A1A;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.td-bd-entry-content blockquote p:last-child,
.td-bd-entry-content .wp-block-quote p:last-child {
    margin-bottom: 0;
}

.td-bd-entry-content blockquote strong,
.td-bd-entry-content blockquote b,
.td-bd-entry-content .wp-block-quote strong,
.td-bd-entry-content .wp-block-quote b {
    font-weight: 700;
    color: #1A1A1A;
}

.td-bd-entry-content blockquote cite,
.td-bd-entry-content .wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-style: normal;
    color: #666666;
}

.td-bd-entry-content img {
    width: 85%;
    margin: 0 auto;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.blog-cta-section {
    background-image: url('https://td-corp.vn/wp-content/uploads/2026/09/Frame-2147239455-1.png');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 4px;
    padding: 32px 24px;
}

.blog-cta-section .col {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-cta-section div:last-of-type .col-inner {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
}

.blog-cta-section h2 {
    font-weight: 600;
    font-size: 24px;
    line-height: 130%;
    letter-spacing: -3%;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 8px;
}

.blog-cta-section p,
.blog-cta-section .text {
    font-weight: 400;
    font-size: 12px !important;
    line-height: 150%;
    letter-spacing: -2%;
}

.blog-cta-section .button {
    width: 185px;
    max-width: 100%;
    border-radius: 4px;
    padding-top: 12px;
    padding-right: 8px;
    padding-bottom: 12px;
    padding-left: 8px;
    background: rgba(249, 115, 22, 1) !important;
    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: 700;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: -2%;
    text-align: center;
    margin: 0;
    color: white !important;
    margin-bottom: 6px;
}

/* Blog Content Table Styling & Responsive Wrapper */
.td-table-responsive-wrapper,
.td-bd-entry-content .wp-block-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 28px 0;
    position: relative;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    background-color: #FFFFFF;
}

/* Ensure any unwrapped table also scrolls horizontally and does not blowout container */
.td-bd-entry-content table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 28px 0;
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
}

/* Inside wrapper, table uses standard display table */
.td-table-responsive-wrapper>table,
.td-bd-entry-content .wp-block-table>table {
    display: table;
    width: 100% !important;
    min-width: 100%;
    margin: 0 !important;
    border: none !important;
    border-radius: 0;
}

/* Sleek custom scrollbar */
.td-table-responsive-wrapper::-webkit-scrollbar,
.td-bd-entry-content .wp-block-table::-webkit-scrollbar,
.td-bd-entry-content table::-webkit-scrollbar {
    height: 6px;
}

.td-table-responsive-wrapper::-webkit-scrollbar-track,
.td-bd-entry-content .wp-block-table::-webkit-scrollbar-track,
.td-bd-entry-content table::-webkit-scrollbar-track {
    background: #F1F1F1;
    border-radius: 4px;
}

.td-table-responsive-wrapper::-webkit-scrollbar-thumb,
.td-bd-entry-content .wp-block-table::-webkit-scrollbar-thumb,
.td-bd-entry-content table::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.td-table-responsive-wrapper::-webkit-scrollbar-thumb:hover,
.td-bd-entry-content .wp-block-table::-webkit-scrollbar-thumb:hover,
.td-bd-entry-content table::-webkit-scrollbar-thumb:hover {
    background: #1F6F4A;
}

/* Header Row: Targets <thead> or the first <tr> when table has no <th> */
.td-bd-entry-content table thead th,
.td-bd-entry-content table thead td,
.td-bd-entry-content table tr:first-child th,
.td-bd-entry-content table tr:first-child td {
    background-color: #1F6F4A !important;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    padding: 14px 18px;
    border: 1px solid #1F6F4A;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

/* Body Cells */
.td-bd-entry-content table td {
    padding: 14px 18px;
    color: #313131;
    border: 1px solid #E5E5E5;
    background-color: #FFFFFF;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}

/* If thead exists, prevent tbody's first row from inheriting header background */
.td-bd-entry-content table thead+tbody tr:first-child td {
    background-color: #FFFFFF !important;
    color: #313131 !important;
    font-weight: 400;
    border: 1px solid #E5E5E5;
    white-space: normal;
}

/* Reset paragraphs inside table cells */
.td-bd-entry-content table td p,
.td-bd-entry-content table th p {
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Links inside table */
.td-bd-entry-content table td a {
    color: #1F6F4A;
    text-decoration: underline;
}

.td-bd-entry-content table thead a,
.td-bd-entry-content table tr:first-child td a {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Tablet & Mobile responsive padding */
@media (max-width: 768px) {
    .td-bd-related-section {
        padding-top: 0;
    }

    .td-bd-entry-content img {
        width: 100%;
    }

    .blog-cta-section {
        padding: 24px 20px;
    }

    .blog-cta-section div:last-of-type .col-inner {
        align-items: center;
    }

    .blog-cta-section h2 {
        font-size: 18px;
        text-align: center;
    }

    .blog-cta-section p {
        text-align: center;
    }

    .td-bd-entry-content table {
        font-size: 14px;
    }

    .td-bd-entry-content table thead th,
    .td-bd-entry-content table thead td,
    .td-bd-entry-content table tr:first-child th,
    .td-bd-entry-content table tr:first-child td,
    .td-bd-entry-content table td {
        padding: 12px 14px;
    }
}

/* Blog Detail FAQ Accordion (Auto-converted from <ol> with bold questions ending with '?') */
.td-bd-entry-content ol.td-bd-faq-accordion,
ol.td-bd-faq-accordion {
    list-style: none !important;
    padding: 0 !important;
    margin: 32px 0 !important;
    background-color: #FFFFFF;
    border: 1px solid #EDEDED;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.td-bd-entry-content ol.td-bd-faq-accordion li.td-bd-faq-item,
ol.td-bd-faq-accordion li.td-bd-faq-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #EDEDED;
    background-color: #FFFFFF;
    transition: background-color 0.2s ease;
}

.td-bd-entry-content ol.td-bd-faq-accordion li.td-bd-faq-item:last-child,
ol.td-bd-faq-accordion li.td-bd-faq-item:last-child {
    border-bottom: none;
}

.td-bd-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    background: transparent;
    border: none;
    outline: none;
    text-align: left;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    box-shadow: none !important;
    margin: 0 auto;
}

.td-bd-faq-question:hover {
    background-color: #FAFAFA;
}

.td-bd-faq-title {
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -2%;
    color: #1A1A1A;
    flex: 1;
    text-transform: none;
}

.td-bd-faq-title b,
.td-bd-faq-title strong {
    font-weight: 700;
    color: #1A1A1A;
}

.td-bd-faq-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #F97316;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.td-bd-faq-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: #F97316;
}

.td-bd-faq-item.active .td-bd-faq-icon {
    transform: rotate(180deg);
}

.td-bd-faq-item.active .td-bd-faq-title {
    font-weight: 600;
}

.td-bd-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.td-bd-faq-item.active .td-bd-faq-answer {
    grid-template-rows: 1fr;
}

.td-bd-faq-answer-inner {
    overflow: hidden;
    padding: 0 24px 0 24px;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    transition: padding 0.35s ease;
}

.td-bd-faq-item.active .td-bd-faq-answer-inner {
    padding: 0 24px 22px 24px;
}

.td-bd-faq-answer-inner p {
    margin: 0 0 12px 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.td-bd-faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.td-bd-faq-answer-inner span {
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

@media (max-width: 768px) {
    .td-bd-faq-question {
        padding: 16px 18px;
        gap: 12px;
    }

    .td-bd-faq-title {
        font-size: 15px;
    }

    .td-bd-faq-icon svg {
        width: 18px;
        height: 18px;
    }

    .td-bd-faq-answer-inner {
        padding: 0 18px 0 18px;
        font-size: 14px;
    }

    .td-bd-faq-item.active .td-bd-faq-answer-inner {
        padding: 0 18px 18px 18px;
    }
}




/* ====================================================
   Easy Table of Contents (TOC) - Modern Card Style
   ==================================================== */
#ez-toc-container,
.ez-toc-v2_0.ez-toc-wrap {
    width: 100% !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    margin: 20px 0 !important;
    box-sizing: border-box !important;
}

/* Header: Icon + "Mục lục" + Bottom Divider */
#ez-toc-container .ez-toc-title-container,
.ez-toc-v2_0.ez-toc-wrap .ez-toc-title-container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-bottom: 10px !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #F0F0F0 !important;
    width: 100% !important;
}

#ez-toc-container .ez-toc-title,
.ez-toc-v2_0.ez-toc-wrap .ez-toc-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #1A1A1A !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Bullet list icon before title */
#ez-toc-container .ez-toc-title::before,
.ez-toc-v2_0.ez-toc-wrap .ez-toc-title::before {
    content: '' !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='9' y1='6' x2='20' y2='6'%3E%3C/line%3E%3Cline x1='9' y1='12' x2='20' y2='12'%3E%3C/line%3E%3Cline x1='9' y1='18' x2='20' y2='18'%3E%3C/line%3E%3Ccircle cx='4' cy='6' r='1.5' fill='%231A1A1A'%3E%3C/circle%3E%3Ccircle cx='4' cy='12' r='1.5' fill='%231A1A1A'%3E%3C/circle%3E%3Ccircle cx='4' cy='18' r='1.5' fill='%231A1A1A'%3E%3C/circle%3E%3C/svg%3E") !important;
}

/* Hide default plugin collapse button in header */
#ez-toc-container .ez-toc-title-toggle,
.ez-toc-v2_0.ez-toc-wrap .ez-toc-title-toggle {
    display: none !important;
}

/* Nav and List Reset */
#ez-toc-container nav,
.ez-toc-v2_0.ez-toc-wrap nav {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

#ez-toc-container ul.ez-toc-list,
.ez-toc-v2_0.ez-toc-wrap ul.ez-toc-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    counter-reset: toc-counter !important;
    width: 100% !important;
}

/* List Row */
#ez-toc-container ul.ez-toc-list>li,
.ez-toc-v2_0.ez-toc-wrap ul.ez-toc-list>li {
    width: 100% !important;
    display: block !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #F0F0F0 !important;
    position: relative !important;
    counter-increment: toc-counter !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

#ez-toc-container ul.ez-toc-list>li:last-child,
.ez-toc-v2_0.ez-toc-wrap ul.ez-toc-list>li:last-child {
    border-bottom: none !important;
}

/* 01, 02, 03... Leading-Zero Numbering Prefix */
#ez-toc-container.ez-toc-counter nav ul.ez-toc-list>li>a::before,
#ez-toc-container nav ul.ez-toc-list>li>a::before,
.ez-toc-v2_0.ez-toc-wrap nav ul.ez-toc-list>li>a::before {
    content: counter(toc-counter, decimal-leading-zero) !important;
    display: inline-block !important;
    width: 32px !important;
    min-width: 32px !important;
    flex-shrink: 0 !important;
    margin-right: 10px !important;
    color: #8C8C8C !important;
    float: none !important;
    line-height: inherit !important;
    transition: color 0.2s ease !important;
}

#ez-toc-container ul.ez-toc-list>li:hover>a::before,
.ez-toc-v2_0.ez-toc-wrap ul.ez-toc-list>li:hover>a::before {
    color: #067e3f !important;
}

/* Heading Link */
#ez-toc-container ul.ez-toc-list>li>a,
.ez-toc-v2_0.ez-toc-wrap ul.ez-toc-list>li>a {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #1A1A1A !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
    word-break: break-word !important;
    transition: color 0.2s ease !important;
}

/* Chỉ mục nào CÓ cấp con mới cần padding-right chừa chỗ cho icon toggle */
#ez-toc-container ul.ez-toc-list>li.ez-toc-has-children>a,
.ez-toc-v2_0.ez-toc-wrap ul.ez-toc-list>li.ez-toc-has-children>a {
    padding-right: 36px !important;
}

#ez-toc-container ul.ez-toc-list>li>a:hover,
.ez-toc-v2_0.ez-toc-wrap ul.ez-toc-list>li>a:hover {
    color: #067e3f !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Interactive Chevron - CHỈ DÀNH CHO MỤC CÓ CẤP CON (.ez-toc-has-children) */
#ez-toc-container .ez-toc-toggle-btn,
.ez-toc-v2_0.ez-toc-wrap .ez-toc-toggle-btn {
    position: absolute !important;
    right: 0 !important;
    top: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    color: #8C8C8C !important;
    cursor: pointer !important;
    z-index: 2 !important;
    margin: 0 !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

#ez-toc-container .ez-toc-toggle-btn:hover,
.ez-toc-v2_0.ez-toc-wrap .ez-toc-toggle-btn:hover {
    color: #067e3f !important;
}

#ez-toc-container .ez-toc-toggle-btn .ez-toc-icon-arrow,
.ez-toc-v2_0.ez-toc-wrap .ez-toc-toggle-btn .ez-toc-icon-arrow {
    width: 15px !important;
    height: 15px !important;
    display: block !important;
    transform: rotate(0deg) !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease !important;
    stroke: currentColor !important;
}

/* Rotate 180deg when hovering or opened */
#ez-toc-container li.ez-toc-has-children:hover>.ez-toc-toggle-btn .ez-toc-icon-arrow,
#ez-toc-container li.ez-toc-has-children.is-open>.ez-toc-toggle-btn .ez-toc-icon-arrow,
.ez-toc-v2_0.ez-toc-wrap li.ez-toc-has-children:hover>.ez-toc-toggle-btn .ez-toc-icon-arrow,
.ez-toc-v2_0.ez-toc-wrap li.ez-toc-has-children.is-open>.ez-toc-toggle-btn .ez-toc-icon-arrow {
    transform: rotate(180deg) !important;
    color: #067e3f !important;
}

/* Sub-lists nested under li.ez-toc-has-children */
#ez-toc-container li.ez-toc-has-children>ul,
.ez-toc-v2_0.ez-toc-wrap li.ez-toc-has-children>ul {
    width: 100% !important;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    padding-left: 42px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    list-style: none !important;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        visibility 0.35s ease,
        margin 0.25s ease !important;
    padding-left: 32px;
}

#ez-toc-container li.ez-toc-has-children:hover>ul,
#ez-toc-container li.ez-toc-has-children.is-open>ul,
.ez-toc-v2_0.ez-toc-wrap li.ez-toc-has-children:hover>ul,
.ez-toc-v2_0.ez-toc-wrap li.ez-toc-has-children.is-open>ul {
    max-height: 2000px;
    opacity: 1;
    visibility: visible;
    margin-top: 6px !important;
    margin-bottom: 2px !important;
}

#ez-toc-container li.ez-toc-has-children>ul>li,
.ez-toc-v2_0.ez-toc-wrap li.ez-toc-has-children>ul>li {
    display: flex !important;
    align-items: center !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
    width: 100% !important;
    list-style: none !important;
}

#ez-toc-container li.ez-toc-has-children>ul>li>a,
.ez-toc-v2_0.ez-toc-wrap li.ez-toc-has-children>ul>li>a {
    color: #555555 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

/* Khong co gach dau dong cho sub element */
#ez-toc-container ul.ez-toc-list ul li::before,
#ez-toc-container ul.ez-toc-list ul li a::before,
.ez-toc-v2_0.ez-toc-wrap ul.ez-toc-list ul li::before,
.ez-toc-v2_0.ez-toc-wrap ul.ez-toc-list ul li a::before {
    content: none !important;
    display: none !important;
}

#ez-toc-container li.ez-toc-has-children>ul>li>a:hover,
.ez-toc-v2_0.ez-toc-wrap li.ez-toc-has-children>ul>li>a:hover {
    color: #067e3f !important;
}

/* Responsive */
@media (max-width: 768px) {

    #ez-toc-container,
    .ez-toc-v2_0.ez-toc-wrap {
        padding: 12px 14px !important;
        border-radius: 10px !important;
    }

    #ez-toc-container.ez-toc-counter nav ul.ez-toc-list>li>a::before,
    #ez-toc-container nav ul.ez-toc-list>li>a::before,
    .ez-toc-v2_0.ez-toc-wrap nav ul.ez-toc-list>li>a::before {
        width: 26px !important;
        min-width: 26px !important;
        margin-right: 6px !important;
    }

    #ez-toc-container li.ez-toc-has-children>ul,
    .ez-toc-v2_0.ez-toc-wrap li.ez-toc-has-children>ul {
        padding-left: 32px !important;
    }
}

/* Author Box (Figma Node 166:2955) */
.td-bd-author-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #EDECE9;
    padding: 16px;
    border-radius: 8px;
    margin-top: 40px;
}

.td-bd-author-box .author-box-title {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    margin: 0;
}

.td-bd-author-box .author-box-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.td-bd-author-box .author-avatar-wrap img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.td-bd-author-box .author-bio {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.td-bd-author-box .author-name {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin: 0;
}

.td-bd-author-box .author-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 6px;
}

.td-bd-author-box .author-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.td-bd-author-box .author-social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.td-bd-author-box .author-social-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.td-bd-author-box .author-desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: #333333;
    margin: 0;
}


/* Sidebar Widget */
.td-bd-column-sidebar {
    position: relative;
    align-self: stretch;
    height: 100%;
}

/* .td-bd-column-sidebar aside,
.td-bd-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
} */

.td-bd-sidebar-widget {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0px 4px 20px rgba(26, 26, 26, 0.05);
    box-sizing: border-box;
}

/* Related Posts Section (Product Detail Articles Style - Max Width 1300px) */
.td-bd-related-section {
    padding: 60px 0 80px;
    background-color: #FFFFFF !important;
}

.td-bd-related-container {
    width: 1300px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.td-pd-articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.td-pd-section-title {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    line-height: 1.26;
    letter-spacing: -0.03em;
    color: #101828;
}

.td-pd-btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid #F97316;
    color: #F97316;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
}

.td-pd-btn-view-all:hover {
    background: #F97316;
    color: #FFFFFF;
}

.td-pd-btn-view-all svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.td-pd-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card Loop (Node 166:3130) */
.td-pd-article-card {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    box-shadow: 0px 4px 20px 0px rgba(26, 26, 26, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.td-pd-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 12px 32px 0px rgba(0, 0, 0, 0.12);
}

.td-pd-article-img {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.td-pd-article-img img {
    width: 100%;
    aspect-ratio: 295 / 155;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.td-pd-article-card:hover .td-pd-article-img img {
    transform: scale(1.05);
}

.td-pd-article-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.td-pd-article-tag {
    display: inline-block;
    width: fit-content;
    background-color: #1F6F4A;
    color: #FFFFFF;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.td-pd-article-date {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

.td-pd-article-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.03em;
    margin: 4px 0 0;
    color: #1A1A1A;
}

.td-pd-article-title a {
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.15s ease;
}

.td-pd-article-title a:hover {
    color: #1F6F4A;
}

.td-pd-article-excerpt {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-btn-readmore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 40px;
    padding: 12px 16px;
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    text-decoration: none;
    margin-top: auto;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.card-btn-readmore svg {
    width: 20px;
    height: 20px;
    stroke: #1A1A1A;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.card-btn-readmore:hover {
    border-color: #F97316;
    color: #F97316;
}

.card-btn-readmore:hover svg {
    stroke: #F97316;
    transform: translate(2px, -2px);
}



/* Responsive Media Queries */
@media (max-width: 991px) {
    .td-bd-featured-image {
        width: 100%;
    }

    .td-bd-post-title.center {
        font-size: 32px;
    }

    .td-bd-grid-layout,
    .td-bd-grid-layout:has(.td-bd-column-sidebar:not(:empty)) {
        grid-template-columns: minmax(0, 1fr);
    }

    .td-bd-column-sidebar {
        position: static;
        height: auto;
    }

    .td-bd-column-sidebar aside,
    .td-bd-sidebar {
        position: static;
        top: auto;
    }

    .td-pd-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .td-bd-breadcrumbs.center {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .td-bd-post-title.center {
        font-size: 24px;
    }

    .td-bd-pill-meta {
        flex-wrap: wrap;
        border-radius: 16px;
        padding: 10px 16px;
        justify-content: center;
    }

    .td-pd-articles-grid {
        grid-template-columns: 1fr;
    }

    .td-pd-section-title {
        font-size: 28px;
    }
}

/* ====================================================
   BLOG DETAIL SIDEBAR QUOTE FORM (Figma Node 166:3068)
   ==================================================== */
.td-blog-sidebar-quote-card {
    background-image: url('https://td-corp.vn/wp-content/uploads/2026/09/Frame-2147239426-1-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    padding-top: 24px;
    padding-right: 16px;
    padding-bottom: 24px;
    padding-left: 16px;

    color: #FFFFFF;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.td-blog-sidebar-quote-card p {
    margin: 0;
}

.td-bsq-header {
    margin-bottom: 16px;
}

.td-bsq-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: -3%;
    color: #FFFFFF !important;
    margin: 0 0 12px 0 !important;
}

.td-bsq-desc {
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: -3%;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
}

.td-bsq-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.td-bsq-field {
    display: flex;
    flex-direction: column;
}

.td-bsq-field label {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 6px;
    line-height: 1.3;
}

.td-bsq-field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.td-bsq-input,
.td-blog-sidebar-quote-card input[type="tel"],
.td-blog-sidebar-quote-card input[type="text"] {
    width: 100%;
    height: 48px;
    background: #FFFFFF !important;
    border: 1px solid #FFFFFF !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif;
    color: #1A1A1A !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.td-bsq-textarea,
.td-blog-sidebar-quote-card textarea {
    width: 100%;
    height: 96px;
    min-height: 96px;
    background: #FFFFFF !important;
    border: 1px solid #FFFFFF !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif;
    color: #1A1A1A !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    resize: none !important;
    margin-bottom: 0 !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.td-blog-sidebar-quote-card input::placeholder,
.td-blog-sidebar-quote-card textarea::placeholder {
    color: #8C8C8C !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    opacity: 1;
}

.td-blog-sidebar-quote-card input:focus,
.td-blog-sidebar-quote-card textarea:focus {
    border-color: #F97316 !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25) !important;
}

.td-bsq-submit-wrap {
    margin-top: 4px;
    position: relative;
}

.td-bsq-submit-wrap p {
    margin: 0 !important;
    width: 100% !important;
}

.td-bsq-submit-wrap .wpcf7-spinner {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
}

.td-bsq-submit,
.td-blog-sidebar-quote-card input[type="submit"],
.td-blog-sidebar-quote-card button[type="submit"] {
    width: 100%;
    height: 48px;
    background: #F97316 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0 20px !important;
    margin: 0 !important;
    text-align: center;
}

.td-bsq-submit:hover,
.td-blog-sidebar-quote-card input[type="submit"]:hover,
.td-blog-sidebar-quote-card button[type="submit"]:hover {
    background: #EA580C !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
}

.td-bsq-submit svg,
.td-bsq-submit-icon {
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.td-bsq-submit:hover svg {
    transform: translate(2px, -2px);
}

.td-bsq-hotline {
    text-align: center;
    font-size: 14px;
    color: #FFFFFF;
    margin-top: 6px;
    font-weight: 400;
}

.td-bsq-hotline a {
    color: #FFFFFF !important;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.td-bsq-hotline a:hover {
    color: #F97316 !important;
}

/* Contact Form 7 notices & error tip */
.td-blog-sidebar-quote-card .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #FFC0C0;
    margin-top: 4px;
    font-weight: 500;
}

.td-blog-sidebar-quote-card .wpcf7-response-output {
    margin: 12px 0 0 !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    background: rgba(0, 0, 0, 0.25);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.td-blog-sidebar-quote-card .wpcf7-spinner {
    display: block;
    margin: 8px auto 0;
}