/* ==========================================================================
   TEXT BLOCK / SINGLE POST CONTENT - BEM STANDARD
   Sử dụng toàn bộ Design Tokens từ global.css
   ========================================================================== */

.text-block {
    background-color: var(--color-primary, #ffffff);
    padding-top: var(--section-gap, 30px);
    padding-bottom: var(--section-gap, 30px);
    box-sizing: border-box;
    font-family: var(--font-lexend), sans-serif;
}

.midori-breadcrumb-nav + .text-block,
.midori-breadcrumb-nav + main .text-block,
.page-blog-breadcrumb-container + .text-block {
    padding-top: 0 !important;
}

.text-block__container {
    width: 100%;
    max-width: var(--container-max-w, 1200px);
    margin: 0 auto;
    padding-left: var(--container-pad-x, 15px);
    padding-right: var(--container-pad-x, 15px);
    box-sizing: border-box;
}

.text-block__title {
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-dark, #000000);
    margin: 0 0 16px 0;
}

.text-block__meta-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 30px;
    border-bottom: 1px solid #E2E8F0;
    font-size: var(--fs-caption, 13px);
    color: var(--text-grey, #7B8A99);
}

.text-block__meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-block__meta-left a {
    color: var(--color-accent, #0084C7);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.text-block__meta-left a:hover {
    opacity: 0.8;
}

.text-block__sep {
    color: #CBD5E1;
}

.text-block__meta-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-block__share-label {
    color: var(--text-dark, #000000);
    font-weight: 400;
}

.text-block__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.text-block__share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* WYSIWYG Content */
.text-block__wysiwyg {
    font-size: var(--fs-body-m, 16px);
    line-height: 1.8;
    color: var(--text-dark, #1E293B);
    font-weight: 300;
}

.text-block__wysiwyg p {
    margin-top: 0;
    margin-bottom: 1.5em;
}

.text-block__wysiwyg img {
    max-width: 100%;
    height: auto;
    border-radius: 0 !important;
    margin: 20px 0;
    display: block;
}

.text-block__wysiwyg h2,
.text-block__wysiwyg h3,
.text-block__wysiwyg h4 {
    font-family: var(--font-lexend), sans-serif;
    color: var(--text-dark, #000000);
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 14px;
    line-height: 1.35;
}

.text-block__wysiwyg h2 { font-size: 24px; }
.text-block__wysiwyg h3 { font-size: 20px; }
.text-block__wysiwyg h4 { font-size: 17px; }

.text-block__wysiwyg ul,
.text-block__wysiwyg ol {
    margin-bottom: 1.5em;
    padding-left: 24px;
}

.text-block__wysiwyg li {
    margin-bottom: 8px;
}

.text-block__wysiwyg blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--color-accent, #0084C7);
    background-color: #F8FAFC;
    font-style: italic;
    color: #475569;
}

@media screen and (max-width: 768px) {
    .text-block__meta-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
