/* =========================================================================
   CSS PREMIUM CHO NỘI DUNG BÀI VIẾT (TINY MCE / HTML CONTENT)
   Màu chủ đạo: Tông hồng / tím của Khanhbeauty
========================================================================= */

.autosensor_blog_article-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #374151; /* Xám đậm, dễ đọc */
    font-size: 17px;
    line-height: 1.85;
    word-break: break-word;
}

/* ================= HEADING ================= */
.autosensor_blog_article-content h1,
.autosensor_blog_article-content h2,
.autosensor_blog_article-content h3,
.autosensor_blog_article-content h4,
.autosensor_blog_article-content h5,
.autosensor_blog_article-content h6 {
    color: #111827; /* Đen gần tuyết đối */
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    line-height: 1.3;
    scroll-margin-top: 140px;
}

.autosensor_blog_article-content h1 { font-size: 2.25rem; }
.autosensor_blog_article-content h2 { 
    font-size: 1.875rem; 
    border-bottom: 2px solid #fce7f3; /* Dòng gạch dưới màu hồng nhẹ */
    padding-bottom: 8px;
}
.autosensor_blog_article-content h3 { font-size: 1.5rem; color: #db2777; /* Hồng đậm điểm nhấn */ }
.autosensor_blog_article-content h4 { font-size: 1.25rem; }
.autosensor_blog_article-content h5 { font-size: 1.125rem; }
.autosensor_blog_article-content h6 { font-size: 1rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }

/* ================= ĐOẠN VĂN & LIÊN KẾT ================= */
.autosensor_blog_article-content p {
    margin-bottom: 1.25em;
}

.autosensor_blog_article-content a {
    color: #ec4899; /* Pink 500 */
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #fbcfe8;
    transition: all 0.3s ease;
}

.autosensor_blog_article-content a:hover {
    color: #be185d;
    border-bottom: 1px solid #be185d;
    background-color: #fdf2f8; /* Nền highlight nhạt khi hover */
}

/* ================= HÌNH ẢNH & FIGURE ================= */
.autosensor_blog_article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: block;
    margin: 2em auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.autosensor_blog_article-content img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.autosensor_blog_article-content figure {
    margin: 2.5em 0;
    text-align: center;
}

.autosensor_blog_article-content figure img {
    margin-bottom: 12px;
}

.autosensor_blog_article-content figcaption {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    background: #f3f4f6;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
}

/* ================= BLOCKQUOTE ================= */
.autosensor_blog_article-content blockquote {
    margin: 2em 0;
    padding: 1.25em 1.5em;
    border-left: 4px solid #db2777; /* Hồng */
    background: linear-gradient(to right, #fdf2f8, transparent);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4b5563;
    font-size: 1.125rem;
}

.autosensor_blog_article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* ================= DANH SÁCH (UL / OL) ================= */
.autosensor_blog_article-content ul,
.autosensor_blog_article-content ol {
    margin-top: 1em;
    margin-bottom: 1.5em;
    padding-left: 24px;
}

.autosensor_blog_article-content li {
    margin-bottom: 0.5em;
}

.autosensor_blog_article-content ul li {
    list-style-type: none;
    position: relative;
}

/* Icon custom cho danh sách UL */
.autosensor_blog_article-content ul li::before {
    content: "✿"; /* Biểu tượng hoa xinh xắn */
    color: #ec4899;
    position: absolute;
    left: -22px;
    top: 2px;
    font-size: 14px;
}

.autosensor_blog_article-content ol {
    list-style-type: decimal;
    color: #db2777;
    font-weight: 600;
}

.autosensor_blog_article-content ol li span {
    color: #374151; /* Chữ li lại về màu đen */
    font-weight: 400;
}

/* ================= BẢNG (TABLE) ================= */
.autosensor_blog_article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.autosensor_blog_article-content th,
.autosensor_blog_article-content td {
    padding: 14px 20px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.autosensor_blog_article-content th {
    background-color: #fdf2f8; /* Nền hồng siêu nhạt */
    color: #9d174d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.autosensor_blog_article-content tr:nth-child(even) {
    background-color: #fafafa;
}

.autosensor_blog_article-content tr:hover {
    background-color: #fce7f3;
}

/* ================= CODE & PRE ================= */
.autosensor_blog_article-content code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    background-color: #fce7f3;
    color: #be185d;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.875em;
}

.autosensor_blog_article-content pre {
    background-color: #1f2937; /* Nền đen/xám cho block code */
    color: #f8f8f2;
    padding: 16px 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2em 0;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

.autosensor_blog_article-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
}

/* ================= IFRAME & VIDEO ================= */
.autosensor_blog_article-content iframe,
.autosensor_blog_article-content video {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2em 0;
    border: none;
}

/* ================= MISC (HR, MARK, DEL) ================= */
.autosensor_blog_article-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #fbcfe8, transparent);
    margin: 3em 0;
}

.autosensor_blog_article-content mark {
    background-color: #fef08a; /* Vàng nhạt nổi bật */
    padding: 2px 4px;
    border-radius: 4px;
    color: #854d0e;
}


/* ================= FIX LAYOUT CHỐNG TRÀN ================= */
.kb_blog_main-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    max-width: 1000px !important;
    margin: 0 auto 50px !important;
    align-items: flex-start !important;
}

.kb_blog_left-sidebar {
    width: 300px !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    height: calc(100vh - 120px) !important;
    background: transparent !important;
    border: none !important;
}

.kb_blog_content-area {
    flex: 1 !important;
    min-width: 0 !important; /* Quan trọng để flex item không tràn */
    background: #fff !important;
    padding-top: 10px;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05) !important;
}

@media (max-width: 1024px) {
    .kb_blog_main-wrapper {
        flex-direction: column !important;
    }
    .kb_blog_left-sidebar {
        display: none !important;
    }
    .kb_blog_content-area {
        padding: 20px;
    }
    .kb-article-featured-image {
        margin: 0 auto !important;
    }
}

.kb_blog_breadcrumb { margin-top: 80px !important; margin-bottom: 20px !important; }

/* Responsive display helpers */
.d-none { display: none !important; }
.d-block { display: block !important; }

@media (min-width: 1025px) {
    .d-lg-block { display: block !important; }
    .d-lg-none { display: none !important; }
}
@media (max-width: 1024px) {
    .d-block { display: block !important; }
    .d-lg-block { display: none !important; }
}


