/* Bài viết (single post): dễ đọc hơn — phân cấp tiêu đề rõ, chữ đậm màu hơn, cột chữ hẹp lại,
   ảnh cùng độ rộng, ẩn hộp so sánh nổi. Chỉ áp dụng trong nội dung bài (.wpresidence-post-content),
   không đụng tới khối "You may also like" / CTA của template Article (Studio 132297).
   Nạp trong libs/post-reading.php (chỉ ở is_singular('post')). */

body.single-post {
    --hpr-ink: #2b2b2b;
    --hpr-head: #1a1a1a;
    --hpr-measure: 760px;
}

/* Cột chữ ~75–85 ký tự/dòng, căn giữa trong khung bài */
body.single-post .wpresidence-post-content {
    max-width: var(--hpr-measure);
    margin-left: auto;
    margin-right: auto;
}

/* Chữ thân: đậm màu hơn (#595959 → #2b2b2b), dòng thoáng hơn */
body.single-post .wpresidence-post-content .elementor-widget-text-editor,
body.single-post .wpresidence-post-content .elementor-widget-text-editor p,
body.single-post .wpresidence-post-content .elementor-widget-text-editor li,
body.single-post .wpresidence-post-content > p,
body.single-post .wpresidence-post-content > ul > li,
body.single-post .wpresidence-post-content > ol > li {
    color: var(--hpr-ink);
    font-size: 17px;
    line-height: 1.6;
}
body.single-post .wpresidence-post-content .elementor-widget-text-editor p {
    margin-bottom: 18px;
}
body.single-post .wpresidence-post-content .elementor-widget-text-editor p:last-child {
    margin-bottom: 0;
}
body.single-post .wpresidence-post-content .elementor-widget-text-editor ul,
body.single-post .wpresidence-post-content .elementor-widget-text-editor ol {
    margin: 0 0 18px 1.2em;
}
body.single-post .wpresidence-post-content .elementor-widget-text-editor li {
    margin-bottom: 6px;
}

/* Tiêu đề: H2 18px → 28px, H3 → 22px (bài dựng bằng Elementor và bài nội dung thường) */
body.single-post .wpresidence-post-content .elementor-widget-heading h2.elementor-heading-title,
body.single-post .wpresidence-post-content h2:not(.hht__title):not(.hhb-title) {
    font-size: 28px;
    line-height: 1.3;
    color: var(--hpr-head);
    margin: 0;
}
body.single-post .wpresidence-post-content .elementor-widget-heading h3.elementor-heading-title,
body.single-post .wpresidence-post-content h3:not(.hht__title):not(.hhb-title) {
    font-size: 22px;
    line-height: 1.35;
    color: var(--hpr-head);
    margin: 0;
}
/* Khoảng cách quanh tiêu đề: rộng phía trên (mở mục mới), hẹp phía dưới (gắn với đoạn sau) */
body.single-post .wpresidence-post-content .elementor-widget-heading:has(h2) {
    margin-top: 28px;
    margin-bottom: 4px;
}
body.single-post .wpresidence-post-content .elementor-widget-heading:has(h3) {
    margin-top: 12px;
}
body.single-post .wpresidence-post-content > h2,
body.single-post .wpresidence-post-content > div:not(.elementor) h2 {
    margin: 40px 0 14px;
}

/* Ảnh trong bài: cùng độ rộng cột chữ (bỏ 90% / căn lệch), bo góc nhẹ thống nhất */
body.single-post .wpresidence-post-content .elementor-element.elementor-widget-image {
    width: 100% !important;
    max-width: 100% !important;
    --container-widget-width: 100% !important;
}
body.single-post .wpresidence-post-content .elementor-widget-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
body.single-post .wpresidence-post-content .elementor-widget-image .widget-image-caption {
    font-size: 14px;
    color: #707070;
    margin-top: 8px;
}

/* Hộp so sánh BĐS nổi (góc phải dưới) che chữ khi đọc bài */
body.single-post .prop-compare {
    display: none !important;
}

@media (max-width: 767px) {
    body.single-post .wpresidence-post-content .elementor-widget-text-editor,
    body.single-post .wpresidence-post-content .elementor-widget-text-editor p,
    body.single-post .wpresidence-post-content .elementor-widget-text-editor li,
    body.single-post .wpresidence-post-content > p,
    body.single-post .wpresidence-post-content > ul > li,
    body.single-post .wpresidence-post-content > ol > li {
        font-size: 17px;
        line-height: 1.55;
    }
    body.single-post .wpresidence-post-content .elementor-widget-heading h2.elementor-heading-title,
    body.single-post .wpresidence-post-content h2:not(.hht__title):not(.hhb-title) {
        font-size: 23px;
    }
    body.single-post .wpresidence-post-content .elementor-widget-heading h3.elementor-heading-title,
    body.single-post .wpresidence-post-content h3:not(.hht__title):not(.hhb-title) {
        font-size: 19px;
    }
    body.single-post .wpresidence-post-content .elementor-widget-heading:has(h2) {
        margin-top: 20px;
    }
}
