.blog-archive {

	padding-top:0px !important;
}

/* Breadcrumb */
.blog-archive .section_breadcrumb_bar {
    background: #ececec;
    padding: 8px 0 !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
}

.blog-archive .section_breadcrumb_bar .section-content,
.blog-archive .section_breadcrumb_bar .row,
.blog-archive .section_breadcrumb_bar .col {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.blog-archive .section_breadcrumb_bar .breadcrumbs {
    margin: 0 !important;
    color: #777;
    font-size: 13px !important;
    line-height: 1.4;
    text-transform: none !important;
}

.blog-archive .section_breadcrumb_bar .breadcrumbs a {
    color: var(--color-black);
    text-decoration: none;
	font-weight:bold;
}

/* Tiêu đề trang */
.blog-archive .archive-page-header {
    padding: 0 !important;
    margin: 0 !important;
}

.blog-archive .archive-page-header .page-title {
    margin: 18px 0 24px !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    color: var(--news-red) !important;
    text-align: center;
    text-transform: uppercase;
}

.blog-archive .archive-page-header .page-title span {
    color: inherit !important;
}

/* Ẩn sidebar, mở rộng vùng bài viết */
.blog-archive .post-sidebar {
    display: none !important;
}

.blog-archive .large-9.col {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    border-right: 0 !important;
}

/*
 * Chỉ chọn row có các post-item trực tiếp.
 * Bỏ chiều cao do masonry tính để dùng CSS Grid.
 */
.blog-archive .row:has(> .post-item) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 20px;

    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch;
}

/* Không cho phần tử giả chiếm ô trong grid */
.blog-archive .row:has(> .post-item)::before,
.blog-archive .row:has(> .post-item)::after {
    content: none !important;
}

/* Bỏ vị trí tuyệt đối do masonry đặt */
.blog-archive .row > .post-item {
    position: relative !important;
    inset: auto !important;
    transform: none !important;

    display: flex !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    height: auto !important;
    flex-basis: auto !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Khung thẻ bằng chiều cao */
.blog-archive .post-item > .col-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100% !important;
    margin: 0 !important;
    background: var(--color-white);
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
}

.blog-archive .post-item .box,
.blog-archive .post-item .box > a.plain {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100% !important;
}

/* Ảnh luôn cùng tỷ lệ 4:3 */
.blog-archive .post-item .box-image {
    width: 100% !important;
    margin: 0 !important;
    flex: 0 0 auto;
}

.blog-archive .post-item .box-image > div {
    position: relative !important;
    width: 100%;
    height: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 75% 0 0 !important;
    overflow: hidden;
}

.blog-archive .post-item .box-image img {
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
}

/* Vùng chữ */
.blog-archive .post-item .box-text {
    position: static !important;
    width: 100% !important;
    flex: 1 0 auto;
    padding: 12px 14px 16px !important;
    background: var(--color-white);
    text-align: left !important;
}

/* Tiêu đề: dành đúng 2 dòng, kể cả bài có tên ngắn */
.blog-archive .post-item .post-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    height: 2.8em !important;
    min-height: 2.8em !important;
    margin: 0 !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--news-text) !important;
}

.blog-archive .post-item .post-title a {
    font: inherit !important;
    color: inherit !important;
    text-decoration: none;
}

.blog-archive .post-item .post-title:hover {
    color: var(--news-red) !important;
}

/* Ngày: cùng vị trí trên mọi thẻ */
.blog-archive .post-item .custom-post-date {
    display: block !important;
    height: auto !important;
    min-height: 18px;
    margin: 7px 0 !important;
    font-size: 12px !important;
    font-style: italic !important;
    font-weight: 400 !important;
    line-height: 18px !important;
    text-transform: none !important;
    color: var(--news-muted) !important;
}

/* Mô tả: dành đúng 3 dòng */
.blog-archive .post-item .from_the_blog_excerpt {
   display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    height: max-content !important;
    /* min-height: 4.5em !important; */
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--news-text);
}

/* Bỏ các chi tiết phụ */
.blog-archive .post-item .badge,
.blog-archive .post-item .is-divider,
.blog-archive .post-item .from_the_blog_comments {
    display: none !important;
}

/* Phân trang */
.blog-archive .nav-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 30px 0 40px !important;
}

.blog-archive .nav-pagination > li {
    margin: 0 !important;
    padding: 0 !important;
}

.blog-archive .nav-pagination > li > .page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px !important;
    margin: 0 0 0 -1px !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    background: var(--color-white);
    color: #333;
    font-size: 13px;
    font-weight: 400;
    line-height: 1 !important;
}

.blog-archive .nav-pagination > li > .page-number.current {
    position: relative;
    z-index: 1;
    border-color: #555 !important;
    background: #555 !important;
    color: var(--color-white) !important;
}

.blog-archive .nav-pagination > li > a.page-number:hover {
    background: #f3f3f3 !important;
    color: #222 !important;
}
/* TRANG CHI TIẾT BÀI VIẾT — FLATSOME
   Chỉ áp dụng cho .blog-single */
#content.blog-single {
    padding-top: 0 !important;
    padding-bottom: 30px;
    background: var(--color-white);
    color: #222;
}

/* 1. Breadcrumb nền xám */
.blog-single .section_breadcrumb_bar {
    margin: 0 0 18px !important;
    padding: 8px 0 !important;
    background: #ececec;
}

.blog-single .section_breadcrumb_bar .row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.blog-single .section_breadcrumb_bar .col {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.blog-single .section_breadcrumb_bar .breadcrumbs {
    margin: 0 !important;
    color: #777;
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.6;
    text-transform: none !important;
    overflow-wrap: anywhere;
}

.blog-single .section_breadcrumb_bar .breadcrumbs a {
    color: #555;
    text-decoration: none;
}

.blog-single .section_breadcrumb_bar .breadcrumbs a:hover {
    color: var(--color-main);
}

.blog-single .section_breadcrumb_bar .divider {
    margin: 0 5px;
    color: #aaa;
}

/* 2. Mở rộng cột bài viết trong container hiện có */
#content.blog-single > .row > .large-10.col {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    padding-bottom: 0 !important;
}

.blog-single article,
.blog-single .article-inner {
    margin-bottom: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* 3. Tiêu đề và ngày */
.blog-single .entry-header-text {
    padding: 0 !important;
    margin: 0 0 22px !important;
}

/* Ẩn dòng danh mục và gạch trang trí */
.blog-single .entry-header .entry-category,
.blog-single .entry-header .entry-divider {
    display: none !important;
}

.blog-single .entry-header .entry-title {
    margin: 0 0 14px !important;
    padding: 0;
    color: var(--color-main) !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

/* Ngày căn trái, chữ nhỏ */
.blog-single .entry-header .entry-meta {
    display: block !important;
    margin: 0 !important;
    color: #888 !important;
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.6;
    text-align: left !important;
    text-transform: none !important;
}

.blog-single .entry-meta .posted-on,
.blog-single .entry-meta .posted-on a,
.blog-single .entry-meta time {
    color: inherit !important;
    font: inherit;
    text-decoration: none;
}

/* Ẩn tác giả */
.blog-single .entry-meta .byline {
    display: none !important;
}

.blog-single .entry-header > .entry-image {
    display: none !important;
}

/* 4. Nội dung bài */
.blog-single .entry-content.single-page {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-black);
    overflow-wrap: break-word;
}

.blog-single .entry-content .content-main {
    width: 100%;
    margin: 0;
}

.blog-single .entry-content p {
    margin: 0 0 12px;
}

/* Đồng bộ các span đang có font-size inline */
.blog-single .entry-content h2 {
    margin: 24px 0 12px;
    font-size: 23px;
    line-height: 1.4;
}

.blog-single .entry-content h3 {
    margin: 20px 0 10px;
    font-size: 19px;
    line-height: 1.4;
}

.blog-single .entry-content ul,
.blog-single .entry-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.blog-single .entry-content li {
    margin-bottom: 5px;
}

.blog-single .entry-content a {
    color: #1769aa;
    text-decoration: none;
}

.blog-single .entry-content a:hover {
    color: var(--color-main);
    text-decoration: underline;
}

/* 5. Ảnh nội dung: căn giữa, giữ nguyên tỷ lệ */
.blog-single .entry-content .content-main img {
    display: block;
    width: auto;
    max-width: 100% !important;
    height: auto !important;
    margin: 16px auto !important;
}

.blog-single .entry-content .wp-caption {
    max-width: 100%;
    margin: 16px auto;
}

.blog-single .entry-content .wp-caption-text {
    margin-top: 6px;
    color: #777;
    font-size: 12px;
    text-align: center;
}
/* Hai khung bên dưới nội dung bài */
.blog-single .news-post-bottom {
    clear: both;
    margin-top: 28px;
    font-size: 13px;
    line-height: 1.5;
}

.blog-single .news-share,
.blog-single .news-related {
    padding: 12px 14px;
    border: 0;
    border-radius: 3px;
    background: #ececec;
    box-shadow: none;
}

.blog-single .news-share {
    margin-bottom: 10px;
}

/* Tiêu đề nhỏ giống mẫu */
.blog-single .news-post-bottom .news-bottom-heading {
    margin: 0 0 8px !important;
    padding: 0;
    color: #333;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
}

/* Chia sẻ */
.blog-single .news-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-single .news-share-links a {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid #d5d5d5;
    border-radius: 2px;
    background: var(--color-white);
    color: #555;
    font-size: 12px;
    text-decoration: none;
}

.blog-single .news-share-links .news-share-facebook {
    border-color: #1877f2;
    background: #1877f2;
    color: var(--color-white);
}

/* Danh sách bài viết */
.blog-single .news-related-list {
    margin: 0 !important;
    padding: 0 0 0 16px !important;
    list-style: disc outside;
}

.blog-single .news-related-list li {
    margin: 0 0 3px !important;
    padding: 0;
    color: #333;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.blog-single .news-related-list a {
    color: #333;
    text-decoration: none;
}

.blog-single .news-related-list a:hover {
    color: var(--color-main);
    text-decoration: underline;
}

.blog-single .news-related-list time {
    color: #555;
    white-space: nowrap;
}

/* Phân trang riêng của bài viết khác */
.blog-single .news-related-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 12px;
}

.blog-single .news-related-pagination > a,
.blog-single .news-related-pagination > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    margin: 0 0 0 -1px;
    padding: 3px 8px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: var(--color-white);
    color: #666;
    font-size: 11px;
    line-height: 1.3;
    text-decoration: none;
}

.blog-single .news-related-pagination > .current {
    position: relative;
    border-color: #555;
    background: #555;
    color: var(--color-white);
}

.blog-single .news-related-pagination > a:hover {
    background: #f5f5f5;
    color: var(--color-main);
}

.blog-single #news-related {
    scroll-margin-top: 100px;
}

/* HIỆU ỨNG VỆT SÁNG CHÉO BẢN RỘNG: TRÊN-PHẢI XẸT XUỐNG DƯỚI-TRÁI */
.blog-archive .post-item .box-image {
    position: relative !important;
    overflow: hidden !important;
}

.blog-archive .post-item .box-image::before {
    content: "" !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 280%;
    height: 300px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 30%,
        rgba(255, 255, 255, 0.75) 50%, 
        rgba(255, 255, 255, 0.25) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 5;

    /* Vị trí ban đầu: trên cao góc phải */
    transform: rotate(45deg) translate3d(60%, -400px, 0);
    transform-origin: center center;
    transition: transform 0s;
}

/* KHI HOVER: Xẹt chéo từ Trên-Phải qua Dưới-Trái */
.blog-archive .post-item:hover .box-image::before {
    transform: rotate(45deg) translate3d(-60%, 550px, 0);
    transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Ảnh trong mẫu chiếm khoảng nửa chiều rộng bài */
@media (min-width: 850px) {
    .blog-single .entry-content .content-main img {
        max-width: 55% !important;
    }
}

/* 6. Điện thoại */
@media (max-width: 549px) {
    .blog-single .section_breadcrumb_bar {
        margin-bottom: 14px !important;
    }

    .blog-single .section_breadcrumb_bar .breadcrumbs {
        font-size: 11px !important;
    }

    .blog-single .entry-header .entry-title {
        font-size: 23px !important;
    }

    .blog-single .entry-content.single-page {
        font-size: 15px;
        line-height: 1.7;
    }
}
/* Tablet */
@media (max-width: 849px) {
    .blog-archive .row:has(> .post-item) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Điện thoại */
@media (max-width: 549px) {
    .blog-archive .row:has(> .post-item) {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-archive .archive-page-header .page-title {
        font-size: 23px !important;
    }
}