/* Blog page styles. */
/* =========================================================
   KEHETO BLOG ARCHIVE
   Thiết kế riêng cho trang danh sách bài viết
========================================================= */

/* Chuẩn hóa box-sizing trong phạm vi trang blog */
#content.blog-wrapper.blog-archive,
#content.blog-wrapper.blog-archive *,
#content.blog-wrapper.blog-archive *::before,
#content.blog-wrapper.blog-archive *::after {
    box-sizing: border-box;
}

/* Thiết lập nền và khoảng cách tổng thể */
#content.blog-wrapper.blog-archive {
    width: 100%;
    padding: 56px 20px 70px;
    background:
        radial-gradient(
            circle at 0 0,
            rgba(40, 203, 139, 0.08),
            transparent 34%
        ),
        #f6faf8;
}

/* Chia bố cục nội dung bài viết và sidebar */
#content.blog-wrapper.blog-archive > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 32px;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0;
}

/* Xóa giới hạn cột mặc định của Flatsome */
#content.blog-wrapper.blog-archive > .row > .col {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0;
    flex-basis: auto;
}

/* =========================================================
   DANH SÁCH BÀI VIẾT
========================================================= */

/* Hiển thị danh sách bài viết thành 2 cột */
#content.blog-wrapper.blog-archive #post-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

/* Xóa khoảng cách mặc định của article */
#content.blog-wrapper.blog-archive #post-list > article {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Tạo giao diện card bài viết */
#content.blog-wrapper.blog-archive .article-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(21, 74, 55, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(23, 74, 56, 0.07);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Hiệu ứng khi di chuột vào card */
#content.blog-wrapper.blog-archive .article-inner:hover {
    transform: translateY(-5px);
    border-color: rgba(40, 203, 139, 0.35);
    box-shadow: 0 18px 42px rgba(23, 74, 56, 0.13);
}

/* Sắp xếp ảnh nằm phía trên nội dung */
#content.blog-wrapper.blog-archive .entry-header {
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Khung ảnh đại diện bài viết */
#content.blog-wrapper.blog-archive .entry-image {
    order: 1;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    background: #e8f2ed;
}

/* Link ảnh chiếm toàn bộ khung */
#content.blog-wrapper.blog-archive .entry-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Căn chỉnh ảnh đại diện */
#content.blog-wrapper.blog-archive .entry-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease;
}

/* Phóng nhẹ ảnh khi hover */
#content.blog-wrapper.blog-archive .article-inner:hover .entry-image img {
    transform: scale(1.045);
}

/* Đặt phần tiêu đề dưới ảnh */
#content.blog-wrapper.blog-archive .entry-header-text {
    order: 2;
    padding: 20px 20px 0;
    text-align: left;
}

/* Ẩn divider mặc định */
#content.blog-wrapper.blog-archive .entry-header-text .entry-divider {
    display: none;
}

/* Khoảng cách danh mục */
#content.blog-wrapper.blog-archive .entry-category {
    margin: 0 0 11px;
    line-height: 1;
    text-transform: uppercase;
}

/* Thiết kế nhãn danh mục */
#content.blog-wrapper.blog-archive .entry-category a {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 6px 11px;
    color: #087c59;
    background: rgba(40, 203, 139, 0.12);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
}

/* Thiết kế tiêu đề bài viết */
#content.blog-wrapper.blog-archive .entry-title {
    margin: 0 0 10px;
    font-size: clamp(18px, 1.55vw, 22px);
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: -0.02em;
}

/* Giới hạn tiêu đề tối đa 2 dòng */
#content.blog-wrapper.blog-archive .entry-title a {
    display: -webkit-box;
    overflow: hidden;
    color: #163b30;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.25s ease;
}

/* Đổi màu tiêu đề khi hover */
#content.blog-wrapper.blog-archive .entry-title a:hover {
    color: #11a873;
}

/* Thiết kế thông tin ngày đăng và tác giả */
#content.blog-wrapper.blog-archive .entry-header-text .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    color: #789087;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.025em;
    text-transform: none;
}

/* Màu link trong thông tin bài viết */
#content.blog-wrapper.blog-archive .entry-header-text .entry-meta a {
    color: #557168;
}

/* =========================================================
   NỘI DUNG TÓM TẮT
========================================================= */

/* Giúp nội dung card có chiều cao cân bằng */
#content.blog-wrapper.blog-archive .article-inner > .entry-content {
    display: flex;
    flex: 1;
    padding: 15px 20px 0;
}

/* Khối tóm tắt bài viết */
#content.blog-wrapper.blog-archive .entry-summary {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* Giới hạn mô tả bài viết tối đa 3 dòng */
#content.blog-wrapper.blog-archive .entry-summary > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 18px;
    color: #61736d;
    font-size: 14px;
    line-height: 1.72;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Căn nút đọc tiếp về bên trái */
#content.blog-wrapper.blog-archive .entry-summary > .text-center {
    margin-top: auto;
    text-align: left;
}

/* Thiết kế nút tiếp tục đọc */
#content.blog-wrapper.blog-archive .more-link.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    padding: 9px 16px;
    color: #087c59;
    background: transparent;
    border: 1px solid rgba(8, 124, 89, 0.35);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

/* Hiệu ứng nút tiếp tục đọc */
#content.blog-wrapper.blog-archive .more-link.button:hover {
    color: #ffffff;
    background: #10a873;
    border-color: #10a873;
}

/* Khoảng cách mũi tên trong nút */
#content.blog-wrapper.blog-archive .more-link .meta-nav {
    margin-left: 7px;
    font-size: 15px;
}

/* =========================================================
   FOOTER CARD
========================================================= */

/* Thiết kế footer mỗi card */
#content.blog-wrapper.blog-archive .article-inner > footer.entry-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 20px 0;
    padding: 14px 0 18px;
    color: #85968f;
    border-top: 1px solid #edf2ef;
    font-size: 11px;
    line-height: 1.5;
}

/* Màu link trong footer card */
#content.blog-wrapper.blog-archive footer.entry-meta a {
    color: #527066;
}

/* Hiệu ứng link trong footer */
#content.blog-wrapper.blog-archive footer.entry-meta a:hover {
    color: #0b9f6e;
}

/* Ẩn tag dài để card gọn hơn */
#content.blog-wrapper.blog-archive footer.entry-meta .sep,
#content.blog-wrapper.blog-archive footer.entry-meta .tags-links {
    display: none;
}

/* Căn phần bình luận về bên phải */
#content.blog-wrapper.blog-archive footer.entry-meta .comments-link {
    float: none;
    margin-left: auto;
    text-align: right;
}

/* =========================================================
   BADGE NGÀY ĐĂNG DẠNG MỘT HÀNG
========================================================= */

/* Chuyển badge ngày sang dạng ngang */
#content.blog-wrapper.blog-archive .entry-image > .post-date {
    position: absolute;
    top: 14px;
    left: 14px;
    right: auto;
    width: auto;
    min-width: 78px;
    height: 38px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(12, 64, 47, 0.15);
}

/* Căn ngày và tháng trên cùng một hàng */
#content.blog-wrapper.blog-archive
.entry-image
> .post-date
.badge-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 100%;
    padding: 5px 11px;
    color: #ffffff;
    background: rgba(8, 124, 89, 0.94);
    border: 0;
    line-height: 1;
    white-space: nowrap;
}

/* Ẩn thẻ xuống dòng có sẵn trong HTML */
#content.blog-wrapper.blog-archive
.entry-image
> .post-date
.badge-inner
br {
    display: none;
}

/* Thiết kế số ngày trong badge */
#content.blog-wrapper.blog-archive .entry-image .post-date-day {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* Thiết kế tháng trong badge */
#content.blog-wrapper.blog-archive .entry-image .post-date-month {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

/* =========================================================
   SIDEBAR
========================================================= */

/* Giữ sidebar khi cuộn trên desktop */
#content.blog-wrapper.blog-archive #secondary {
    display: grid;
    position: sticky;
    top: 110px;
    gap: 18px;
}

/* Thiết kế card widget sidebar */
#content.blog-wrapper.blog-archive #secondary .widget {
    margin: 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid rgba(21, 74, 55, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(23, 74, 56, 0.06);
}

/* Tiêu đề widget */
#content.blog-wrapper.blog-archive #secondary .widget-title {
    display: block;
    margin: 0;
    color: #153e31;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

/* Divider bên dưới tiêu đề widget */
#content.blog-wrapper.blog-archive #secondary .is-divider {
    width: 38px;
    max-width: 38px;
    height: 3px;
    margin: 10px 0 17px;
    background: #28cb8b;
    border-radius: 999px;
}

/* Xóa bullet danh mục */
#content.blog-wrapper.blog-archive .widget_categories ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Thiết kế từng dòng danh mục */
#content.blog-wrapper.blog-archive .widget_categories li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 11px 0;
    color: #8a9993;
    border-bottom: 1px solid #edf2ef;
    font-size: 13px;
}

/* Xóa đường kẻ danh mục cuối */
#content.blog-wrapper.blog-archive .widget_categories li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

/* Thiết kế link danh mục */
#content.blog-wrapper.blog-archive .widget_categories a {
    flex: 1;
    color: #48645a;
    font-weight: 600;
}

/* Hiệu ứng link danh mục */
#content.blog-wrapper.blog-archive .widget_categories a:hover {
    color: #0a9e6d;
}

/* Sắp xếp tag cloud */
#content.blog-wrapper.blog-archive .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Thiết kế tag dạng pill */
#content.blog-wrapper.blog-archive .tagcloud a {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    margin: 0;
    padding: 7px 11px;
    color: #527168;
    background: #f0f7f4;
    border: 1px solid #e2eee9;
    border-radius: 999px;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 1;
}

/* Hiệu ứng tag khi hover */
#content.blog-wrapper.blog-archive .tagcloud a:hover {
    color: #ffffff;
    background: #0fa873;
    border-color: #0fa873;
}

/* Xóa style danh sách bài mới mặc định */
#content.blog-wrapper.blog-archive .flatsome_recent_posts ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Thiết kế từng bài viết mới */
#content.blog-wrapper.blog-archive .recent-blog-posts-li {
    margin: 0;
    border-bottom: 1px solid #edf2ef;
}

/* Xóa đường kẻ bài mới cuối */
#content.blog-wrapper.blog-archive .recent-blog-posts-li:last-child {
    border-bottom: 0;
}

/* Căn nội dung bài viết mới */
#content.blog-wrapper.blog-archive .recent-blog-posts {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
}

/* Badge ngày trong sidebar */
#content.blog-wrapper.blog-archive .recent-blog-posts .post-date {
    width: 43px;
    height: 43px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
}

/* Nền badge ngày sidebar */
#content.blog-wrapper.blog-archive
.recent-blog-posts
.badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 3px;
    color: #087c59;
    background: rgba(40, 203, 139, 0.12);
    border: 0;
}

/* Số ngày trong sidebar */
#content.blog-wrapper.blog-archive
.recent-blog-posts
.post-date-day {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

/* Tháng trong sidebar */
#content.blog-wrapper.blog-archive
.recent-blog-posts
.post-date-month {
    margin-top: 3px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}

/* Tiêu đề bài viết mới */
#content.blog-wrapper.blog-archive
.recent-blog-posts
.flex-grow
> a {
    display: -webkit-box;
    overflow: hidden;
    color: #39584e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Hiệu ứng tiêu đề bài viết mới */
#content.blog-wrapper.blog-archive
.recent-blog-posts
.flex-grow
> a:hover {
    color: #0a9e6d;
}

/* =========================================================
   TABLET NGANG
========================================================= */

@media screen and (max-width: 1024px) {

    /* Thu nhỏ sidebar và khoảng cách bố cục */
    #content.blog-wrapper.blog-archive > .row {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 24px;
    }

    /* Giảm khoảng cách giữa các card */
    #content.blog-wrapper.blog-archive #post-list {
        gap: 20px;
    }

    /* Giảm padding phần tiêu đề card */
    #content.blog-wrapper.blog-archive .entry-header-text {
        padding: 18px 18px 0;
    }

    /* Giảm padding phần mô tả card */
    #content.blog-wrapper.blog-archive
    .article-inner
    > .entry-content {
        padding: 14px 18px 0;
    }

    /* Giảm lề footer card */
    #content.blog-wrapper.blog-archive
    .article-inner
    > footer.entry-meta {
        margin-right: 18px;
        margin-left: 18px;
    }
}

/* =========================================================
   TABLET DỌC
========================================================= */

@media screen and (max-width: 849px) {

    /* Chuyển nội dung và sidebar thành một cột */
    #content.blog-wrapper.blog-archive > .row {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Bỏ sticky và chia sidebar thành 2 cột */
    #content.blog-wrapper.blog-archive #secondary {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        top: auto;
    }

    /* Widget bài mới chiếm toàn bộ chiều ngang */
    #content.blog-wrapper.blog-archive
    #secondary
    .flatsome_recent_posts {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 549px) {

    /* Giảm khoảng cách ngoài trang */
    #content.blog-wrapper.blog-archive {
        padding: 28px 12px 44px;
    }

    /* Hiển thị mỗi hàng một card */
    #content.blog-wrapper.blog-archive #post-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    /* Giảm bo góc card */
    #content.blog-wrapper.blog-archive .article-inner {
        border-radius: 13px;
    }

    /* Tắt hiệu ứng nâng card trên thiết bị cảm ứng */
    #content.blog-wrapper.blog-archive .article-inner:hover {
        transform: none;
    }

    /* Điều chỉnh tỷ lệ ảnh mobile */
    #content.blog-wrapper.blog-archive .entry-image {
        aspect-ratio: 16 / 9.5;
    }

    /* Giảm padding tiêu đề */
    #content.blog-wrapper.blog-archive .entry-header-text {
        padding: 17px 16px 0;
    }

    /* Giảm kích thước tiêu đề */
    #content.blog-wrapper.blog-archive .entry-title {
        font-size: 18px;
        line-height: 1.4;
    }

    /* Giảm padding nội dung */
    #content.blog-wrapper.blog-archive
    .article-inner
    > .entry-content {
        padding: 13px 16px 0;
    }

    /* Điều chỉnh mô tả trên mobile */
    #content.blog-wrapper.blog-archive .entry-summary > p {
        font-size: 13px;
        line-height: 1.65;
    }

    /* Chuyển footer card thành dạng dọc */
    #content.blog-wrapper.blog-archive
    .article-inner
    > footer.entry-meta {
        align-items: flex-start;
        flex-direction: column;
        margin-right: 16px;
        margin-left: 16px;
        padding-bottom: 16px;
    }

    /* Căn bình luận về bên trái */
    #content.blog-wrapper.blog-archive
    footer.entry-meta
    .comments-link {
        margin-left: 0;
        text-align: left;
    }

    /* Sidebar mobile hiển thị một cột */
    #content.blog-wrapper.blog-archive #secondary {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    /* Hủy thiết lập chiếm hai cột của bài viết mới */
    #content.blog-wrapper.blog-archive
    #secondary
    .flatsome_recent_posts {
        grid-column: auto;
    }

    /* Giảm padding widget mobile */
    #content.blog-wrapper.blog-archive #secondary .widget {
        padding: 19px 17px;
        border-radius: 13px;
    }

    /* Thu nhỏ badge ngang trên mobile */
    #content.blog-wrapper.blog-archive .entry-image > .post-date {
        top: 12px;
        left: 12px;
        min-width: 72px;
        height: 36px;
    }

    /* Thu nhỏ khoảng cách trong badge */
    #content.blog-wrapper.blog-archive
    .entry-image
    > .post-date
    .badge-inner {
        gap: 4px;
        padding: 5px 10px;
    }

    /* Thu nhỏ số ngày */
    #content.blog-wrapper.blog-archive
    .entry-image
    .post-date-day {
        font-size: 15px;
    }

    /* Thu nhỏ tháng */
    #content.blog-wrapper.blog-archive
    .entry-image
    .post-date-month {
        font-size: 9px;
    }
}










/* =========================================================
   KEHETO - TRANG CHI TIẾT BÀI VIẾT
   Chỉ áp dụng cho .blog-wrapper.blog-single
   Không ảnh hưởng trang danh sách .blog-archive
========================================================= */

/* Chuẩn hóa kích thước trong phạm vi trang chi tiết */
.blog-wrapper.blog-single,
.blog-wrapper.blog-single *,
.blog-wrapper.blog-single *::before,
.blog-wrapper.blog-single *::after {
    box-sizing: border-box;
}

/* Thiết lập nền và khoảng cách tổng thể */
.blog-wrapper.blog-single {
    width: 100%;
    padding: 56px 20px 72px;
    background:
        radial-gradient(
            circle at 0 0,
            rgba(40, 203, 139, 0.08),
            transparent 32%
        ),
        #f6faf8;
}

/* Chia bố cục nội dung chính và sidebar */
.blog-wrapper.blog-single > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 32px;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0;
}

/* Xóa giới hạn cột mặc định của Flatsome */
.blog-wrapper.blog-single > .row > .col {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0;
    flex-basis: auto;
}

/* =========================================================
   CARD BÀI VIẾT CHÍNH
========================================================= */

/* Tạo khung card cho toàn bộ bài viết */
.blog-wrapper.blog-single article .article-inner {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(21, 74, 55, 0.1);
    border-radius: 20px;
    box-shadow: 0 12px 38px rgba(23, 74, 56, 0.08);
}

/* Sắp xếp phần header bài viết */
.blog-wrapper.blog-single .entry-header {
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Thiết kế khu vực tiêu đề bài viết */
.blog-wrapper.blog-single .entry-header-text {
    padding: 40px 48px 30px;
    text-align: center;
}

/* Thiết kế nhãn danh mục bài viết */
.blog-wrapper.blog-single .entry-category {
    margin: 0 0 14px;
    line-height: 1;
    text-transform: uppercase;
}

/* Tạo dạng pill cho danh mục */
.blog-wrapper.blog-single .entry-category a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 7px 13px;
    color: #087c59;
    background: rgba(40, 203, 139, 0.12);
    border: 1px solid rgba(40, 203, 139, 0.18);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-decoration: none;
}

/* Thiết kế tiêu đề chính */
.blog-wrapper.blog-single .entry-title {
    max-width: 820px;
    margin: 0 auto;
    color: #153e31;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

/* Thiết kế đường phân cách dưới tiêu đề */
.blog-wrapper.blog-single
.entry-header-text
.entry-divider {
    width: 48px;
    max-width: 48px;
    height: 3px;
    margin: 20px auto 16px;
    background: #28cb8b;
    border-radius: 999px;
}

/* Căn thông tin ngày đăng và tác giả */
.blog-wrapper.blog-single
.entry-header-text
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    color: #71877f;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* Màu liên kết phần metadata */
.blog-wrapper.blog-single
.entry-header-text
.entry-meta a {
    color: #43685b;
    text-decoration: none;
    transition: color 0.25s ease;
}

/* Hiệu ứng liên kết metadata */
.blog-wrapper.blog-single
.entry-header-text
.entry-meta a:hover {
    color: #0a9e6d;
}

/* =========================================================
   ẢNH ĐẠI DIỆN BÀI VIẾT
========================================================= */

/* Tạo khung ảnh đại diện */
.blog-wrapper.blog-single .entry-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8.7;
    margin: 0;
    overflow: hidden;
    background: #e8f1ed;
}

/* Link ảnh chiếm toàn bộ khung */
.blog-wrapper.blog-single .entry-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Chuẩn hóa kích thước ảnh */
.blog-wrapper.blog-single .entry-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

/* Phóng nhẹ ảnh khi hover */
.blog-wrapper.blog-single
.article-inner:hover
.entry-image img {
    transform: scale(1.025);
}

/* =========================================================
   BADGE NGÀY ĐĂNG MỘT HÀNG
========================================================= */

/* Định vị badge trên ảnh */
.blog-wrapper.blog-single
.entry-image
> .post-date {
    position: absolute;
    top: 18px;
    left: 18px;
    right: auto;
    width: auto;
    min-width: 80px;
    height: 40px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(12, 64, 47, 0.18);
}

/* Căn ngày và tháng trên cùng một hàng */
.blog-wrapper.blog-single
.entry-image
> .post-date
.badge-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 100%;
    padding: 6px 12px;
    color: #ffffff;
    background: rgba(8, 124, 89, 0.95);
    border: 0;
    line-height: 1;
    white-space: nowrap;
}

/* Ẩn thẻ xuống dòng có sẵn trong HTML */
.blog-wrapper.blog-single
.entry-image
> .post-date
.badge-inner br {
    display: none;
}

/* Thiết kế số ngày */
.blog-wrapper.blog-single
.entry-image
.post-date-day {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* Thiết kế tháng */
.blog-wrapper.blog-single
.entry-image
.post-date-month {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

/* =========================================================
   NỘI DUNG CHI TIẾT BÀI VIẾT
========================================================= */

/* Thiết lập vùng nội dung bài viết */
.blog-wrapper.blog-single
.entry-content.single-page {
    padding: 42px 52px 24px;
    color: #435c53;
    font-size: 16px;
    line-height: 1.85;
}

/* Khoảng cách đoạn văn */
.blog-wrapper.blog-single
.entry-content.single-page p {
    margin: 0 0 24px;
}

/* Xóa khoảng cách trên phần tử đầu */
.blog-wrapper.blog-single
.entry-content.single-page
> *:first-child {
    margin-top: 0;
}

/* Thiết kế tiêu đề cấp 2 trong nội dung */
.blog-wrapper.blog-single
.entry-content.single-page h2 {
    margin: 42px 0 18px;
    color: #153e31;
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

/* Thiết kế tiêu đề cấp 3 trong nội dung */
.blog-wrapper.blog-single
.entry-content.single-page h3 {
    margin: 34px 0 15px;
    color: #194b3a;
    font-size: clamp(21px, 2.5vw, 26px);
    font-weight: 700;
    line-height: 1.35;
}

/* Thiết kế tiêu đề cấp 4 trong nội dung */
.blog-wrapper.blog-single
.entry-content.single-page h4 {
    margin: 28px 0 13px;
    color: #205744;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

/* Thiết kế liên kết trong bài */
.blog-wrapper.blog-single
.entry-content.single-page
a:not(.button) {
    color: #07865e;
    text-decoration: underline;
    text-decoration-color: rgba(7, 134, 94, 0.3);
    text-underline-offset: 3px;
    transition:
        color 0.25s ease,
        text-decoration-color 0.25s ease;
}

/* Hiệu ứng liên kết trong bài */
.blog-wrapper.blog-single
.entry-content.single-page
a:not(.button):hover {
    color: #0aaf78;
    text-decoration-color: #0aaf78;
}

/* Khoảng cách danh sách */
.blog-wrapper.blog-single
.entry-content.single-page ul,
.blog-wrapper.blog-single
.entry-content.single-page ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

/* Khoảng cách từng mục danh sách */
.blog-wrapper.blog-single
.entry-content.single-page li {
    margin-bottom: 9px;
    padding-left: 4px;
}

/* Màu bullet danh sách */
.blog-wrapper.blog-single
.entry-content.single-page li::marker {
    color: #0da875;
}

/* Thiết kế trích dẫn */
.blog-wrapper.blog-single
.entry-content.single-page blockquote {
    position: relative;
    margin: 32px 0;
    padding: 22px 24px 22px 28px;
    color: #315b4c;
    background: #f0f8f4;
    border-left: 4px solid #28cb8b;
    border-radius: 0 12px 12px 0;
    font-size: 17px;
    font-style: italic;
    line-height: 1.75;
}

/* Xóa margin cuối trong trích dẫn */
.blog-wrapper.blog-single
.entry-content.single-page blockquote p:last-child {
    margin-bottom: 0;
}

/* Chuẩn hóa ảnh chèn trong nội dung */
.blog-wrapper.blog-single
.entry-content.single-page img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 14px;
}

/* Thiết kế chú thích ảnh */
.blog-wrapper.blog-single
.entry-content.single-page
.wp-caption {
    max-width: 100%;
    margin: 30px auto;
}

/* Thiết kế nội dung chú thích ảnh */
.blog-wrapper.blog-single
.entry-content.single-page
.wp-caption-text {
    margin: 9px 0 0;
    color: #768981;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* Cho phép bảng kéo ngang trên màn hình nhỏ */
.blog-wrapper.blog-single
.entry-content.single-page
table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    border-spacing: 0;
}

/* Thiết kế ô bảng */
.blog-wrapper.blog-single
.entry-content.single-page
th,
.blog-wrapper.blog-single
.entry-content.single-page
td {
    padding: 13px 15px;
    border: 1px solid #dfeae5;
    text-align: left;
    vertical-align: top;
}

/* Thiết kế tiêu đề bảng */
.blog-wrapper.blog-single
.entry-content.single-page th {
    color: #174936;
    background: #eff8f4;
    font-weight: 700;
}

/* =========================================================
   CHIA SẺ BÀI VIẾT
========================================================= */

/* Tạo khung chia sẻ */
.blog-wrapper.blog-single .blog-share {
    margin: 38px 0 10px;
    padding: 22px;
    background: #f6faf8;
    border: 1px solid #e3eee9;
    border-radius: 14px;
}

/* Thiết kế divider chia sẻ */
.blog-wrapper.blog-single
.blog-share
.is-divider {
    width: 42px;
    max-width: 42px;
    height: 3px;
    margin: 0 auto 18px;
    background: #28cb8b;
    border-radius: 999px;
}

/* Căn các biểu tượng chia sẻ */
.blog-wrapper.blog-single
.blog-share
.share-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

/* Thiết kế nút chia sẻ */
.blog-wrapper.blog-single
.blog-share
.share-icons
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    color: #087c59;
    background: #ffffff;
    border: 1px solid rgba(8, 124, 89, 0.28);
    border-radius: 50%;
    box-shadow: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

/* Hiệu ứng nút chia sẻ */
.blog-wrapper.blog-single
.blog-share
.share-icons
.button:hover {
    color: #ffffff;
    background: #0b9f6e;
    border-color: #0b9f6e;
    transform: translateY(-2px);
}

/* =========================================================
   FOOTER THÔNG TIN BÀI VIẾT
========================================================= */

/* Thiết kế thông tin danh mục và liên kết thường trực */
.blog-wrapper.blog-single
.article-inner
> footer.entry-meta {
    margin: 0 52px;
    padding: 18px 0;
    color: #7a8e86;
    border-top: 1px solid #e7efeb;
    border-bottom: 1px solid #e7efeb;
    font-size: 12px;
    line-height: 1.7;
    text-align: left;
}

/* Thiết kế liên kết footer */
.blog-wrapper.blog-single
.article-inner
> footer.entry-meta a {
    color: #087c59;
    font-weight: 600;
    text-decoration: none;
}

/* Hiệu ứng liên kết footer */
.blog-wrapper.blog-single
.article-inner
> footer.entry-meta a:hover {
    color: #0bb17a;
}

/* =========================================================
   THÔNG TIN TÁC GIẢ
========================================================= */

/* Tạo card tác giả */
.blog-wrapper.blog-single
.entry-author.author-box {
    margin: 28px 52px;
    padding: 22px;
    background: #f4faf7;
    border: 1px solid #e0ece6;
    border-radius: 14px;
}

/* Căn nội dung tác giả */
.blog-wrapper.blog-single
.entry-author
.flex-row {
    display: flex;
    align-items: center;
    gap: 17px;
}

/* Loại bỏ margin Flatsome của cột ảnh */
.blog-wrapper.blog-single
.entry-author
.flex-col.mr {
    margin-right: 0;
}

/* Chuẩn hóa ảnh đại diện tác giả */
.blog-wrapper.blog-single
.blog-author-image img {
    display: block;
    width: 66px;
    height: 66px;
    min-width: 66px;
    margin: 0;
    object-fit: cover;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(23, 74, 56, 0.12);
}

/* Thiết kế tên tác giả */
.blog-wrapper.blog-single
.entry-author
.author-name {
    margin: 0;
    padding: 0;
    color: #164735;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
}

/* Thiết kế mô tả tác giả */
.blog-wrapper.blog-single
.entry-author
.author-desc {
    margin: 6px 0 0;
    color: #71867e;
    font-size: 13px;
    line-height: 1.65;
}

/* Ẩn khoảng trắng khi mô tả tác giả không có nội dung */
.blog-wrapper.blog-single
.entry-author
.author-desc:empty {
    display: none;
}

/* =========================================================
   ĐIỀU HƯỚNG BÀI TRƯỚC VÀ BÀI SAU
========================================================= */

/* Tạo khu vực điều hướng */
.blog-wrapper.blog-single
.navigation-post {
    margin: 0 52px 38px;
}

/* Chia hai cột điều hướng */
.blog-wrapper.blog-single
.navigation-post
.next-prev-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    border: 0;
}

/* Xóa giới hạn flex mặc định */
.blog-wrapper.blog-single
.navigation-post
.next-prev-nav
> .flex-col {
    width: 100%;
    max-width: none;
}

/* Thiết kế từng nút điều hướng */
.blog-wrapper.blog-single
.navigation-post
.nav-previous a,
.blog-wrapper.blog-single
.navigation-post
.nav-next a {
    display: flex;
    align-items: center;
    min-height: 68px;
    padding: 15px 18px;
    color: #315a4b;
    background: #ffffff;
    border: 1px solid #dfebe5;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

/* Căn bài sau về bên phải */
.blog-wrapper.blog-single
.navigation-post
.nav-next a {
    justify-content: flex-end;
    text-align: right;
}

/* Hiệu ứng nút điều hướng */
.blog-wrapper.blog-single
.navigation-post
.nav-previous a:hover,
.blog-wrapper.blog-single
.navigation-post
.nav-next a:hover {
    color: #087c59;
    background: #f1faf6;
    border-color: rgba(40, 203, 139, 0.42);
    transform: translateY(-2px);
}

/* Khoảng cách biểu tượng điều hướng */
.blog-wrapper.blog-single
.navigation-post i {
    margin: 0 7px;
}

/* =========================================================
   KHU VỰC BÌNH LUẬN
========================================================= */

/* Tạo card bình luận bên dưới bài viết */
.blog-wrapper.blog-single
.comments-area {
    margin-top: 24px;
    padding: 32px 36px;
    background: #ffffff;
    border: 1px solid rgba(21, 74, 55, 0.1);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(23, 74, 56, 0.07);
}

/* Thiết kế tiêu đề bình luận */
.blog-wrapper.blog-single
.comment-reply-title {
    margin: 0 0 20px;
    color: #153e31;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;
}

/* Thiết kế thông tin đăng nhập */
.blog-wrapper.blog-single
.comment-form
.logged-in-as {
    margin: 0 0 20px;
    color: #6d827a;
    font-size: 13px;
    line-height: 1.7;
}

/* Thiết kế link trong form */
.blog-wrapper.blog-single
.comment-form a {
    color: #087c59;
    text-decoration: none;
}

/* Hiệu ứng link form */
.blog-wrapper.blog-single
.comment-form a:hover {
    color: #0bb17a;
}

/* Thiết kế label form */
.blog-wrapper.blog-single
.comment-form label {
    display: block;
    margin: 0 0 8px;
    color: #31584a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

/* Đổi màu dấu bắt buộc */
.blog-wrapper.blog-single
.comment-form .required {
    color: #e55151;
}

/* Thiết kế ô nhập liệu */
.blog-wrapper.blog-single
.comment-form input[type="text"],
.blog-wrapper.blog-single
.comment-form input[type="email"],
.blog-wrapper.blog-single
.comment-form input[type="url"],
.blog-wrapper.blog-single
.comment-form textarea {
    width: 100%;
    margin: 0;
    padding: 13px 15px;
    color: #29483d;
    background: #fbfdfc;
    border: 1px solid #d8e6df;
    border-radius: 10px;
    outline: none;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.65;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Chiều cao tối thiểu của textarea */
.blog-wrapper.blog-single
.comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* Trạng thái focus ô nhập liệu */
.blog-wrapper.blog-single
.comment-form input[type="text"]:focus,
.blog-wrapper.blog-single
.comment-form input[type="email"]:focus,
.blog-wrapper.blog-single
.comment-form input[type="url"]:focus,
.blog-wrapper.blog-single
.comment-form textarea:focus {
    background: #ffffff;
    border-color: #28cb8b;
    box-shadow: 0 0 0 3px rgba(40, 203, 139, 0.12);
}

/* Khoảng cách nút gửi */
.blog-wrapper.blog-single
.comment-form
.form-submit {
    margin: 18px 0 0;
}

/* Thiết kế nút gửi bình luận */
.blog-wrapper.blog-single
.comment-form
.submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 11px 22px;
    color: #ffffff;
    background: #087c59;
    border: 1px solid #087c59;
    border-radius: 9px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

/* Hiệu ứng nút gửi bình luận */
.blog-wrapper.blog-single
.comment-form
.submit:hover {
    background: #0aa873;
    border-color: #0aa873;
    transform: translateY(-2px);
}

/* =========================================================
   SIDEBAR
========================================================= */

/* Giữ sidebar khi cuộn trên desktop */
.blog-wrapper.blog-single
.post-sidebar
.widget-area {
    display: grid;
    position: sticky;
    top: 110px;
    gap: 18px;
}

/* Tạo card widget sidebar */
.blog-wrapper.blog-single
.post-sidebar
.widget {
    margin: 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid rgba(21, 74, 55, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(23, 74, 56, 0.06);
}

/* Thiết kế tiêu đề widget */
.blog-wrapper.blog-single
.post-sidebar
.widget-title {
    display: block;
    margin: 0;
    color: #153e31;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

/* Thiết kế divider widget */
.blog-wrapper.blog-single
.post-sidebar
.is-divider {
    width: 38px;
    max-width: 38px;
    height: 3px;
    margin: 10px 0 17px;
    background: #28cb8b;
    border-radius: 999px;
}

/* =========================================================
   DANH MỤC SIDEBAR
========================================================= */

/* Xóa bullet danh mục */
.blog-wrapper.blog-single
.widget_categories ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Thiết kế từng dòng danh mục */
.blog-wrapper.blog-single
.widget_categories li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 11px 0;
    color: #85968f;
    border-bottom: 1px solid #edf2ef;
    font-size: 13px;
}

/* Xóa đường kẻ danh mục cuối */
.blog-wrapper.blog-single
.widget_categories li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

/* Thiết kế link danh mục */
.blog-wrapper.blog-single
.widget_categories a {
    flex: 1;
    color: #48645a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

/* Hiệu ứng link danh mục */
.blog-wrapper.blog-single
.widget_categories a:hover {
    color: #0a9e6d;
}

/* =========================================================
   TAG CLOUD SIDEBAR
========================================================= */

/* Sắp xếp tag thành nhiều hàng */
.blog-wrapper.blog-single .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Thiết kế tag dạng pill */
.blog-wrapper.blog-single
.tagcloud a {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    margin: 0;
    padding: 7px 11px;
    color: #527168;
    background: #f0f7f4;
    border: 1px solid #e2eee9;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

/* Hiệu ứng tag */
.blog-wrapper.blog-single
.tagcloud a:hover {
    color: #ffffff;
    background: #0fa873;
    border-color: #0fa873;
}

/* =========================================================
   BÀI VIẾT MỚI SIDEBAR
========================================================= */

/* Xóa style danh sách mặc định */
.blog-wrapper.blog-single
.flatsome_recent_posts ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Thiết kế từng bài viết mới */
.blog-wrapper.blog-single
.recent-blog-posts-li {
    margin: 0;
    border-bottom: 1px solid #edf2ef;
}

/* Xóa đường kẻ bài viết cuối */
.blog-wrapper.blog-single
.recent-blog-posts-li:last-child {
    border-bottom: 0;
}

/* Căn dòng bài viết mới */
.blog-wrapper.blog-single
.recent-blog-posts {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
}

/* Xóa margin mặc định bên cạnh badge */
.blog-wrapper.blog-single
.recent-blog-posts
.flex-col.mr-half {
    margin-right: 0;
}

/* Chuyển badge sidebar thành dạng ngang */
.blog-wrapper.blog-single
.recent-blog-posts
.post-date {
    width: auto;
    min-width: 66px;
    height: 34px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 9px;
}

/* Căn ngày và tháng cùng một hàng */
.blog-wrapper.blog-single
.recent-blog-posts
.badge-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    padding: 5px 9px;
    color: #087c59;
    background: rgba(40, 203, 139, 0.12);
    border: 0;
    white-space: nowrap;
}

/* Ẩn xuống dòng badge sidebar */
.blog-wrapper.blog-single
.recent-blog-posts
.badge-inner br {
    display: none;
}

/* Thiết kế ngày badge sidebar */
.blog-wrapper.blog-single
.recent-blog-posts
.post-date-day {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* Thiết kế tháng badge sidebar */
.blog-wrapper.blog-single
.recent-blog-posts
.post-date-month {
    margin: 0;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

/* Thiết kế tiêu đề bài viết mới */
.blog-wrapper.blog-single
.recent-blog-posts
.flex-grow
> a {
    display: -webkit-box;
    overflow: hidden;
    color: #39584e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.25s ease;
}

/* Hiệu ứng tiêu đề bài viết mới */
.blog-wrapper.blog-single
.recent-blog-posts
.flex-grow
> a:hover {
    color: #0a9e6d;
}

/* =========================================================
   KHẢ NĂNG TRUY CẬP
========================================================= */

/* Hiển thị focus rõ ràng khi dùng bàn phím */
.blog-wrapper.blog-single a:focus-visible,
.blog-wrapper.blog-single button:focus-visible,
.blog-wrapper.blog-single input:focus-visible,
.blog-wrapper.blog-single textarea:focus-visible {
    outline: 3px solid rgba(40, 203, 139, 0.35);
    outline-offset: 3px;
}

/* =========================================================
   TABLET NGANG
========================================================= */

@media screen and (max-width: 1100px) {

    /* Thu nhỏ sidebar và khoảng cách cột */
    .blog-wrapper.blog-single > .row {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 24px;
    }

    /* Giảm padding tiêu đề */
    .blog-wrapper.blog-single
    .entry-header-text {
        padding: 34px 38px 26px;
    }

    /* Giảm padding nội dung bài */
    .blog-wrapper.blog-single
    .entry-content.single-page {
        padding-right: 42px;
        padding-left: 42px;
    }

    /* Đồng bộ lề các thành phần cuối bài */
    .blog-wrapper.blog-single
    .article-inner
    > footer.entry-meta,
    .blog-wrapper.blog-single
    .entry-author.author-box,
    .blog-wrapper.blog-single
    .navigation-post {
        margin-right: 42px;
        margin-left: 42px;
    }
}

/* =========================================================
   TABLET DỌC
========================================================= */

@media screen and (max-width: 849px) {

    /* Chuyển nội dung và sidebar thành một cột */
    .blog-wrapper.blog-single > .row {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Bỏ sticky và chia widget sidebar thành hai cột */
    .blog-wrapper.blog-single
    .post-sidebar
    .widget-area {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        top: auto;
    }

    /* Widget bài viết mới chiếm toàn bộ chiều ngang */
    .blog-wrapper.blog-single
    .post-sidebar
    .flatsome_recent_posts {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 549px) {

    /* Giảm khoảng cách ngoài trang */
    .blog-wrapper.blog-single {
        padding: 28px 12px 46px;
    }

    /* Giảm bo góc bài viết */
    .blog-wrapper.blog-single
    article
    .article-inner {
        border-radius: 14px;
    }

    /* Thu gọn phần tiêu đề */
    .blog-wrapper.blog-single
    .entry-header-text {
        padding: 26px 18px 22px;
    }

    /* Giảm kích thước tiêu đề chính */
    .blog-wrapper.blog-single
    .entry-title {
        font-size: 28px;
        line-height: 1.23;
    }

    /* Thu gọn thông tin ngày và tác giả */
    .blog-wrapper.blog-single
    .entry-header-text
    .entry-meta {
        font-size: 11px;
    }

    /* Điều chỉnh tỷ lệ ảnh trên mobile */
    .blog-wrapper.blog-single
    .entry-image {
        aspect-ratio: 16 / 10.5;
    }

    /* Thu nhỏ badge ảnh */
    .blog-wrapper.blog-single
    .entry-image
    > .post-date {
        top: 12px;
        left: 12px;
        min-width: 72px;
        height: 36px;
    }

    /* Thu nhỏ nội dung badge */
    .blog-wrapper.blog-single
    .entry-image
    > .post-date
    .badge-inner {
        gap: 4px;
        padding: 5px 10px;
    }

    /* Thu nhỏ số ngày badge */
    .blog-wrapper.blog-single
    .entry-image
    .post-date-day {
        font-size: 15px;
    }

    /* Thu nhỏ tháng badge */
    .blog-wrapper.blog-single
    .entry-image
    .post-date-month {
        font-size: 9px;
    }

    /* Thu gọn vùng nội dung bài */
    .blog-wrapper.blog-single
    .entry-content.single-page {
        padding: 28px 18px 18px;
        font-size: 15px;
        line-height: 1.78;
    }

    /* Giảm khoảng cách đoạn văn */
    .blog-wrapper.blog-single
    .entry-content.single-page p {
        margin-bottom: 20px;
    }

    /* Thu nhỏ tiêu đề cấp 2 */
    .blog-wrapper.blog-single
    .entry-content.single-page h2 {
        margin-top: 32px;
        font-size: 25px;
    }

    /* Thu nhỏ tiêu đề cấp 3 */
    .blog-wrapper.blog-single
    .entry-content.single-page h3 {
        margin-top: 28px;
        font-size: 21px;
    }

    /* Thu gọn card chia sẻ */
    .blog-wrapper.blog-single
    .blog-share {
        margin-top: 30px;
        padding: 18px 14px;
    }

    /* Thu nhỏ nút chia sẻ */
    .blog-wrapper.blog-single
    .blog-share
    .share-icons
    .button {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
    }

    /* Đồng bộ lề các phần cuối bài */
    .blog-wrapper.blog-single
    .article-inner
    > footer.entry-meta,
    .blog-wrapper.blog-single
    .entry-author.author-box,
    .blog-wrapper.blog-single
    .navigation-post {
        margin-right: 18px;
        margin-left: 18px;
    }

    /* Căn footer thông tin về bên trái */
    .blog-wrapper.blog-single
    .article-inner
    > footer.entry-meta {
        padding: 16px 0;
        font-size: 11px;
    }

    /* Thu gọn card tác giả */
    .blog-wrapper.blog-single
    .entry-author.author-box {
        margin-top: 22px;
        margin-bottom: 22px;
        padding: 17px;
    }

    /* Thu nhỏ ảnh tác giả */
    .blog-wrapper.blog-single
    .blog-author-image img {
        width: 54px;
        height: 54px;
        min-width: 54px;
    }

    /* Chuyển điều hướng bài viết thành một cột */
    .blog-wrapper.blog-single
    .navigation-post
    .next-prev-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Căn bài sau về bên trái trên mobile */
    .blog-wrapper.blog-single
    .navigation-post
    .nav-next a {
        justify-content: flex-start;
        text-align: left;
    }

    /* Thu gọn chiều cao nút điều hướng */
    .blog-wrapper.blog-single
    .navigation-post
    .nav-previous a,
    .blog-wrapper.blog-single
    .navigation-post
    .nav-next a {
        min-height: 58px;
        padding: 13px 15px;
    }

    /* Thu gọn card bình luận */
    .blog-wrapper.blog-single
    .comments-area {
        margin-top: 18px;
        padding: 24px 18px;
        border-radius: 14px;
    }

    /* Thu nhỏ tiêu đề bình luận */
    .blog-wrapper.blog-single
    .comment-reply-title {
        font-size: 22px;
    }

    /* Giảm chiều cao textarea */
    .blog-wrapper.blog-single
    .comment-form textarea {
        min-height: 135px;
    }

    /* Sidebar mobile hiển thị một cột */
    .blog-wrapper.blog-single
    .post-sidebar
    .widget-area {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    /* Hủy thiết lập chiếm hai cột của bài mới */
    .blog-wrapper.blog-single
    .post-sidebar
    .flatsome_recent_posts {
        grid-column: auto;
    }

    /* Thu gọn widget sidebar */
    .blog-wrapper.blog-single
    .post-sidebar
    .widget {
        padding: 19px 17px;
        border-radius: 13px;
    }
}