/* Chỉnh màu nền của header và footer ngoài trang chủ (blog,tag,category) */
body:not(.home) .elementor-element-0b0c07b,
.elementor-element-cb973f9 {
    background: #eaeaea !important;
}

/* Chỉnh footer ngoài trang chủ (blog,tag,category) */
/* body:not(.home) .elementor-element-cb973f9 {
    margin-top: 50px;
}
.site-main{
	margin-top:70px;
} */

/* CSS từ đây trờ xuống là của page Blog */

/* ===== Style Tag bài viết ===== */

.post-tags {
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* chữ Thẻ */
.post-tags::before {
    content: "Thẻ:";
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* container tag */
.post-tags .tag-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0;
}

.post-tags .tag-links a {
    display: inline-block;
    padding: 6px 14px;
    background: #eef2ff;
    color: #1e40af;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.post-tags .tag-links a:hover {
    background: #1e40af;
    color: #ffffff;
}

/* FIX WIDTH SINGLE POST - Hello Elementor */
@media (min-width: 1200px) {

    body.single-post:not([class*="elementor-page-"]) .site-main,
    body:not([class*=elementor-page-]) .site-main {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-header .entry-title {
        max-width: 1200px;

    }
}

@media (min-width: 768px) {
    .elementor-1731 .elementor-element.elementor-element-f94923e {
        --width: 1220px;
    }
}

/* CSS cho related post cuối mỗi post */
.zam-related-posts {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.zam-related-posts h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.zam-related-posts ul {
    list-style: none;
    padding-left: 0;
}

.zam-related-posts li {
    margin-bottom: 10px;
}

.zam-related-posts li a {
    text-decoration: none;
    color: #000;
    transition: 0.3s;
}

.zam-related-posts li a:hover {
    color: #0068ff;
}

.zam-related-posts ul {
    list-style: none;
    padding-left: 0;
}

.zam-related-posts li::before {
    content: "›";
    margin-right: 8px;
    color: black;
    font-weight: bold;
}

/* ===================================== */
/* ZAM BLOG LIST (THAY WP SHOW POSTS) */
/* ===================================== */

.zam-post-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* card bài viết */

.zam-post-item {
    display: flex;
    flex-direction: column;
}

/* thumbnail */

.zam-post-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* title */

.zam-post-title {
    margin-top: 12px;
    font-size: 20px;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zam-post-title a {
    color: #000;
    text-decoration: none;
    transition: 0.3s;
}

.zam-post-title a:hover {
    color: rgb(0, 104, 255);
}

/* excerpt */

.zam-post-excerpt {
    margin-top: 10px;
    color: #555;
    font-size: 14px;
}

/* ===================================== */
/* PAGINATION */
/* ===================================== */

.zam-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.zam-pagination .page-numbers {

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    background: #f4f6f8;
    border-radius: 10px;

    text-decoration: none;
    font-size: 14px;
    color: #333;

    transition: all .25s ease;
}

/* hover */

.zam-pagination a.page-numbers:hover {
    background: #e8eefc;
    color: #0068ff;
}

/* current */

.zam-pagination .current {
    background: #0068ff;
    color: #fff;
}

/* ============================= */
/* RESPONSIVE BLOG GRID */
/* ============================= */

/* Tablet trở xuống */

@media (max-width: 1024px) {

    .zam-post-list {
        grid-template-columns: 1fr;
    }

}

/* AUTHOR BOX */

.zam-author-box {
    display: flex;
    gap: 20px;

    margin-top: 40px;
    padding-top: 20px;

    border-top: 1px solid #eee;
}

.zam-author-info {
    flex: 1;
}

.zam-author-name {
    margin: 0;
    font-size: 18px;
}

.zam-author-name a {
    color: #000;
    text-decoration: none;
}

.zam-author-name a:hover {
    color: #0068ff;
}

.zam-author-bio {
    margin-top: 6px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.elementor-heading-title a {
    color: inherit;
}

/* CSS từ đây trờ lên là của page Blog */

/* CSS của phần Home (Tin tức) */

.zam-content {
    max-width: 1200px;
    margin: 40px auto;
/*     padding: 0 20px; */
    box-sizing: border-box;
}

.zam-content .blog-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
}

.zam-content .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.zam-content .blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.zam-content .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.zam-content .blog-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
/*     object-fit: cover; */
}

.zam-content .blog-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.zam-content .blog-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zam-content .blog-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.zam-content .blog-meta {
    font-size: 13px;
    font-weight: 500;
    color: #2563eb;
}

@media (max-width:1024px) {
    .zam-content .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:640px) {
    .zam-content .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Kết thúc Home (Tin tức) */

