/* ============================================================
PHẦN 1: KIỂU CƠ BẢN CỦA .POST-CONTENT
============================================================
*/

.post-content {
    color: rgb(255, 255, 255);
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    text-align: left;
    /* LƯU Ý: 
      margin-left: auto; và margin-right: auto;
      ĐANG HOẠT ĐỘNG CHÍNH XÁC. 
      Nó kết hợp với class `lg:max-w-[1440px]` của bạn
      để tạo ra khung 1440px căn giữa.
      Chúng ta sẽ GIỮ NGUYÊN nó.
    */
    margin-left: auto;
    margin-right: auto;
}



@media (min-width: 1024px) {
    .post-content {
        font-size: 23px;
        font-weight: 400;
    }
}

/* ============================================================
PHẦN 2: KIỂU CỦA TIÊU ĐỀ (ĐẦY ĐỦ)
============================================================
*/

/* --- KIỂU "SIÊU LỚN" CHO TIÊU ĐỀ CHÍNH (H1, H2) --- */
.post-content h1,
.post-content h2 {
    font-size: clamp(2rem, 8vw, 3.4375rem);
    font-weight: 900;
    line-height: 80%;
    text-transform: uppercase;
    margin-top: 5rem;
    margin-bottom: 2.375rem;
}

/* Áp dụng trên màn hình lớn (desktop) - Kỹ thuật Breakout */
@media (min-width: 1024px) {

    .post-content h1,
    .post-content h2 {
        font-size: 120px;
        font-weight: 900;
        line-height: 75%;
        margin-top: 5.1875rem;
        margin-bottom: 6.375rem;
        text-align: left;

        /* === Kỹ thuật Breakout === */
        width: 100vw;
        box-sizing: border-box;
        position: relative;
        left: 50%;
        transform: translateX(-50vw);
    }
}



/* --- KIỂU "LỚN VỪA" CHO TIÊU ĐỀ PHỤ (H3, H4) --- */
.post-content h3,
.post-content h4 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
}

/* Desktop (H3, H4) - Thẳng hàng với <p> */
@media (min-width: 1024px) {

    .post-content h3,
    .post-content h4 {
        font-size: 40px;
        margin-inline-start: 110px;
        margin-inline-end: 110px;
    }
}

/* Di động (H3, H4) - Thẳng hàng với <p> */
@media (max-width: 769px) {

    .post-content h3,
    .post-content h4 {
        margin-inline-start: 29px;
        margin-inline-end: 29px;
    }
}

/* --- KIỂU "NHỎ" CHO TIÊU ĐỀ CON (H5, H6) --- */
.post-content h5,
.post-content h6 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

/* Desktop (H5, H6) - Thẳng hàng với <p> */
@media (min-width: 1024px) {

    .post-content h5,
    .post-content h6 {
        margin-inline-start: 110px;
        margin-inline-end: 110px;
    }
}

/* Di động (H5, H6) - Thẳng hàng với <p> */
@media (max-width: 769px) {

    .post-content h5,
    .post-content h6 {
        margin-inline-start: 29px;
        margin-inline-end: 29px;
    }
}


/* ============================================================
PHẦN 3: KIỂU CỦA ĐOẠN VĂN (P)
============================================================
*/

.post-content p {
    margin-bottom: 1.25em;
}

/* Áp dụng trên màn hình lớn (desktop) */
@media (min-width: 1024px) {
    .post-content p {
        margin-inline-start: 110px;
        margin-inline-end: 110px;
    }

    .post-content .wp-block-buttons {
        margin-inline-start: 110px;
        margin-inline-end: 110px;
    }
}

/* Áp dụng trên màn hình di động nhỏ */
@media (max-width: 769px) {
    .post-content p {
        margin-inline-start: 29px;
        margin-inline-end: 29px;
    }

    .post-content .wp-block-buttons {
        margin-inline-start: 29px;
        margin-inline-end: 29px;
    }

}

.post-content figure {
    margin-left: auto;
    margin-right: auto;
    height: auto;
    padding-bottom: 10px;
}

.post-content figure img {
    max-width: 100%;
    /* Luôn vừa vặn với chiều rộng */
    height: auto;
    /* Giữ đúng tỷ lệ khung hình */
    display: block;
    /* Xóa khoảng trắng thừa bên dưới */
}

.post-content figure.wp-block-image.size-full {
    width: auto !important;
    max-width: 100% !important;
}


/* Áp dụng trên màn hình lớn (desktop) */
@media (min-width: 1024px) {
    .post-content figure {
        /* CHÌA KHÓA: Đặt lề giống hệt thẻ <p> */
        margin-inline-start: 110px;
        margin-inline-end: 110px;
    }
}

/* Áp dụng trên màn hình di động nhỏ */
@media (max-width: 769px) {
    .post-content figure {
        /* CHÌA KHÓA: Đặt lề giống hệt thẻ <p> */
        margin-inline-start: 29px;
        margin-inline-end: 29px;
    }
}

/* ============================================================
PHẦN 6: KIỂU CỦA DANH SÁCH (UL/OL)
============================================================
*/
.post-content ul,
.post-content ol {
    list-style: none;
    padding-inline-start: 0;
    margin-bottom: 1.25em;
    /* Giống lề <p> */
}

/* Add bullet points for UL list items */
.post-content ul li {
    position: relative;
    padding-left: 1.5em;
}

/* Default bullets on the left (for LTR sections) */
.post-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.6;
}

/* RTL sections: use ::before for bullet points on the right */
.post-content .post-section.post-section-rtl ul li {
    padding-left: 0;
    padding-right: 1.5em;
}

.post-content .post-section.post-section-rtl ul li::before {
    content: "•";
    position: absolute;
    left: auto;
    right: 0;
    color: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.6;
}

/* Áp dụng trên màn hình lớn (desktop) */
@media (min-width: 1024px) {

    .post-content ul,
    .post-content ol {
        /* CHÌA KHÓA: Đặt lề giống hệt thẻ <p> */
        margin-inline-start: 110px;
        margin-inline-end: 110px;
    }

    .post-content ul li p {
        margin: 0;
    }
}

/* Áp dụng trên màn hình di động nhỏ */
@media (max-width: 769px) {

    .post-content ul,
    .post-content ol {
        /* CHÌA KHÓA: Đặt lề giống hệt thẻ <p> */
        margin-inline-start: 29px;
        margin-inline-end: 29px;
    }
}

/* ============================================================
PHẦN 7: KIỂU CỦA BẢNG (TABLE) VÀ CHỮ ĐẬM (STRONG)
============================================================
*/

.post-content table {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 1.25em;
    /* Giống lề <p> */
    border-collapse: collapse;
    /* Gộp viền */
}

/* --- Style cho ô (td) và tiêu đề (th) --- */
.post-content td,
.post-content th {
    /* CHÌA KHÓA: Bắt buộc chữ phải có màu trắng/sáng */
    color: rgb(255, 255, 255);
    padding: 0.5em;
    /* Thêm lề cho đẹp */
    text-align: left;
    /* Căn trái mặc định */
    border: none;
    /* Tắt viền mặc định của WP */
    vertical-align: top;
}

/* THÊM: Chỉ định cột ICON (cột đầu tiên) */
.post-content tr>td:first-child {
    width: 80px;
}


/* --- Style cho chữ đậm --- */
/* Áp dụng cho TẤT CẢ thẻ strong/b trong post-content */
/* .post-content strong,
.post-content b {
    color: rgb(255, 255, 255);
} */

/* Áp dụng trên màn hình lớn (desktop) */
@media (min-width: 1024px) {
    .post-content blockquote strong {
        /* CHÌA KHÓA: Đặt lề giống hệt thẻ <p> */
        /* margin-inline-start: 110px;
        margin-inline-end: 110px; */
    }

    .post-content blockquote p {
        margin: 0;
    }

    .post-content blockquote {
        margin-bottom: 1.25em;
        margin-inline-start: 110px;
        margin-inline-end: 110px;
        padding: 1em 1.5em;
        background-color: rgb(135, 135, 135);
    }

    .post-content cite {
        /* CHÌA KHÓA: Đặt lề giống hệt thẻ <p> */
        margin-inline-start: 110px;
        margin-inline-end: 110px;
    }

    .post-content blockquote cite {
        margin: 0;
    }
}

/* Áp dụng trên màn hình di động nhỏ */
@media (max-width: 769px) {
    .post-content blockquote strong {
        /* CHÌA KHÓA: Đặt lề giống hệt thẻ <p> */
        /* margin-inline-start: 29px;
        margin-inline-end: 29px; */
    }
}

/* ============================================================
PHẦN 8: POST SECTION DIRECTION ALTERNATION
============================================================
*/

/* Post section wrapper */
.post-content .post-section {
    width: 100%;
    direction: ltr; /* Always keep text direction as LTR */
}

/* RTL section styling - right-align text but keep direction LTR */
.post-content .post-section.post-section-rtl {
    text-align: right !important;
}

/* Right-align headings in RTL sections - override existing left alignment */
.post-content .post-section.post-section-rtl h1,
.post-content .post-section.post-section-rtl h2,
.post-content .post-section.post-section-rtl h3,
.post-content .post-section.post-section-rtl h4,
.post-content .post-section.post-section-rtl h5,
.post-content .post-section.post-section-rtl h6 {
    text-align: right !important;
}

/* Override H1/H2 breakout positioning for RTL sections */
@media (min-width: 1024px) {
    .post-content .post-section.post-section-rtl h1,
    .post-content .post-section.post-section-rtl h2 {
        text-align: right !important;
        /* Keep breakout positioning but ensure right alignment */
    }
}

/* Right-align paragraphs in RTL sections - override margin-inline rules */
.post-content .post-section.post-section-rtl p {
    text-align: right !important;
}

/* Adjust margins for RTL sections - use right margin instead of left */
@media (min-width: 1024px) {
    .post-content .post-section.post-section-rtl p,
    .post-content .post-section.post-section-rtl h3,
    .post-content .post-section.post-section-rtl h4,
    .post-content .post-section.post-section-rtl h5,
    .post-content .post-section.post-section-rtl h6,
    .post-content .post-section.post-section-rtl blockquote,
    .post-content .post-section.post-section-rtl cite,
    .post-content .post-section.post-section-rtl figure {
        margin-left: auto !important;
        margin-right: 110px !important;
        margin-inline-start: auto !important;
        margin-inline-end: 110px !important;
    }
}

@media (max-width: 769px) {
    .post-content .post-section.post-section-rtl p,
    .post-content .post-section.post-section-rtl h3,
    .post-content .post-section.post-section-rtl h4,
    .post-content .post-section.post-section-rtl h5,
    .post-content .post-section.post-section-rtl h6,
    .post-content .post-section.post-section-rtl blockquote,
    .post-content .post-section.post-section-rtl cite,
    .post-content .post-section.post-section-rtl figure {
        margin-left: auto !important;
        margin-right: 29px !important;
        margin-inline-start: auto !important;
        margin-inline-end: 29px !important;
    }
}

/* Make lists LTR and left-aligned in RTL sections (override section alignment) */
.post-content .post-section.post-section-rtl ul,
.post-content .post-section.post-section-rtl ol {
    direction: ltr !important;
    text-align: left !important;
}

/* Adjust list margins for RTL sections - use left margin and add right padding */
@media (min-width: 1024px) {
    .post-content .post-section.post-section-rtl ul,
    .post-content .post-section.post-section-rtl ol {
        margin-left: 110px !important;
        margin-right: 110px !important;
        margin-inline-start: 110px !important;
        margin-inline-end: 110px !important;
    }
}

@media (max-width: 769px) {
    .post-content .post-section.post-section-rtl ul,
    .post-content .post-section.post-section-rtl ol {
        margin-left: 29px !important;
        margin-right: 29px !important;
        margin-inline-start: 29px !important;
        margin-inline-end: 29px !important;
    }
}

/* List items in RTL sections - explicitly set LTR direction to override section RTL */
.post-content .post-section.post-section-rtl ul li,
.post-content .post-section.post-section-rtl ol li {
    direction: ltr !important;
    text-align: left !important;
}

/* Right-align blockquotes in RTL sections */
.post-content .post-section.post-section-rtl blockquote {
    text-align: right !important;
}