h4.archive-heading {
    padding: 0;
    margin: 0;
    font-size: 21px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
/* Phần tìm kiếm */
.blog-search-section {
    margin-bottom: 40px;
    padding: 0 15px;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-field {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-field:focus {
    border-color: #00AEEF;
    outline: none;
    box-shadow: 0 2px 15px rgba(0,174,239,0.1);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #00AEEF;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: #0088cc;
}

/* Danh mục bài viết */
.blog-categories {
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-list {
    display: flex;
    gap: 10px;
    padding: 0 15px;
    list-style: none;
    margin: 0;
    flex-wrap: nowrap;
}

.category-list li {
    flex-shrink: 0;
}

.category-list a {
    display: block;
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 30px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-list a:hover,
.category-list li.active a {
    background: #00AEEF;
    color: white;
}

/* Responsive */

.highlight-left > a{
    display: flex;
    height: 100%;
    width: 100%;
}
.highlight-right {
    display: flex;
    flex-wrap: wrap;
}
.zoom-img.slow:hover img, .zoom-img:hover img {
    transform: scale(1.05);
}
.zoom-img img {
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    transition: all .5s cubic-bezier(.4,0,.2,1) !important;
}
.item_post{
    margin-bottom: 30px;
}
.item_post.big{
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #FFFFFF;
}
.item_post.small .item_post_inner{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
}
.item_post .item_post_img{
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    overflow: hidden;
}
.item_post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.item_post .item_post_content{
    position: relative;
    flex: 1;
    padding: 1.5em 0 2em;
    margin: 0 1.2em;
    transition-duration: .3s;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
}
.item_post .item_post_content::after {
    content: ""; /* 🔥 PHẢI CÓ */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 10%;
    height: 3px;
    background-color: var(--cl-main);
    transition: width 0.3s ease;
}

.item_post .item_post_content:hover::after {
    width: 20%;
}
.load-more-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 20px 0;
}

.load-more-btn.btn {
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    color: var(--cl-white);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    gap: 10px;
    align-items: center;
}

.load-more-btn:hover {
    opacity: 0.9;
}

.loading-dots {
    margin-top: 15px;
}

.loading-dots .dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 0.6s infinite alternate;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    to {
        transform: translateY(-8px);
    }
}


.item_post h4 {
    color: var(--cl-text);
    text-transform: capitalize;
    font-weight: 700;

    display: -webkit-box;
    -webkit-line-clamp: 2;     /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item_post.big h4{
    font-size: 24px;
    line-height: 1.5;
    margin:0 0 15px;
}
.item_post.small h4{
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 10px;
}
.item_post .post_excerpt {
    color: var(--cl-text);
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item_post.big .post_excerpt {
    font-size: 18px;
}
.item_post.small .post_excerpt {
    font-size: 14px;
}
/* single */
.single-post .full-content {
    background-color: #FFFFFF;
}
.single-post .full-content .inner-content {
    padding: 50px 0;
}
.single-post .post-title {
    margin-bottom: 20px;
    line-height: 1.25;
    font-size: 2em;
    --tw-text-opacity: 1;
    color: var(--cl-text);
    font-weight: 700;
}
/*css muc lục*/
.entry-content #ez-toc-container {
    border: none;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    position: relative;
    z-index: 10;
    padding: 10px 20px 20px 20px;
}
.entry-content div#ez-toc-container p.ez-toc-title {
    display: flex;
    width: 100%;
    font-size: 1.5em;
    color: var(--cl-main);
    font-weight: 700;
    position: relative;
    padding: 10px 0;
}
.entry-content div#ez-toc-container p.ez-toc-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 1px;
    background-color: #333333;
    width: 100%;
}
.entry-content div#ez-toc-container .ez-toc-title-toggle{
    position: absolute;
    top: 20px;
    right: 20px;
}
.entry-content div#ez-toc-container .ez-toc-pull-right{
    margin: 0;
}
.entry-content #ez-toc-container .ez-toc-toggle label{
    left: 0;
    border-radius: 0;
    border: none;
}
.entry-content #ez-toc-container li,
.entry-content #ez-toc-container ul li,
.entry-content div.ez-toc-widget-container,
.entry-content div.ez-toc-widget-container li {
    margin: 5px 0;
}
.entry-content #ez-toc-container ul > li.ez-toc-heading-level-2 > a.ez-toc-link{
    font-weight: 600;
    color: var(--cl-text);
    font-size: 1.3em;
}
#ez-toc-container a.ez-toc-link{
    font-size: 1.2em;
}
.entry-content #ez-toc-container a.ez-toc-link:hover {
    color: var(--cl-main);
}
body .ez-toc-open-icon {
    top: 50%;
    padding: 10px;
    font-size: 20px;
}
body .ez-toc-open-icon span.arrow {
    display: none;

}
/* Phần entry content */
.entry-content {
    line-height: 1.8;
}

.entry-content p {
    font-size: 16px;
    margin-bottom: 1em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.entry-content h2 {
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--cl-text);
    position: relative;
    padding-bottom: 10px;
}

.entry-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--cl-main);
}

/* Sidebar related posts */
.related-posts-sidebar {
    position: relative;
}

.sidebar-inner {
    position: sticky;
    top: 20px;
    background: #f9f9f9;
    padding: 25px 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.sidebar-inner:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

h4.sidebar-heading {
    margin-bottom: 25px;
    line-height: 1.25;
    font-size: 18px;
    --tw-text-opacity: 1;
    color: var(--cl-text);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

h4.sidebar-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--cl-main);
}

.related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts-list li {
    padding: 15px 0;
    margin: 0;
    position: relative;
    border-bottom: 1px dashed #e0e0e0;
    transition: all 0.3s ease;
}

.related-posts-list li:last-child {
    border-bottom: none;
}

.related-posts-list li:hover {
    padding-left: 5px;
}

.related-posts-list li a {
    font-size: 15px;
    color: var(--cl-text);
    line-height: 1.5;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-posts-list li a:hover {
    color: var(--cl-main);
}

.related-posts-list li:hover::before {
    opacity: 1;
}
.related-posts-list li ul{
    padding-left: 15px;
}
/* page */
.page-heading {
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    margin-bottom: 5px;
    color: rgb(66, 70, 78);
    font-size: 38px;
    font-weight: 600;
    line-height: 52px;
}

/* Phần breadcrumbs */
.breadcrumbs {
    font-size: 16px;
    margin-top: 5px;
    color: #666;
}

.breadcrumbs a {
    line-height: 1.5;
    color: var(--cl-text);
    transition: all 0.3s ease;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--cl-main);
    text-decoration: underline;
}

.breadcrumb-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-wrapper .separator {
    margin: 0 8px;
    color: #999;
}
/* Responsive */
@media (max-width: 991px) {
    .related-posts-sidebar {
        padding-left: 0;
        margin-top: 50px;
        border-top: 1px solid #eee;
        border-left: none;
        width: 100%;
    }

    .sidebar-inner {
        padding: 20px;
    }

    .related-posts-list li {
        padding: 12px 0;
    }
}

@media only screen and (max-width: 768px) {
    .post_excerpt {font-size: 11px;}
    .item_post h4 {font-size: 13px;}
    .post_date {font-size: 10px;margin-top: 0px;}
    .post_excerpt p {margin: 0;}
    .search-field {
        padding: 12px 45px 12px 15px;
        font-size: 15px;
    }

    .category-list {
        gap: 8px;
    }

    .category-list a {
        padding: 8px 15px;
        font-size: 14px;
    }
}
@media (max-width: 576px) {
    .blog-search-section {
        margin-bottom: 30px;
    }

    .blog-categories {
        margin-bottom: 30px;
    }
}