.news-list {
    padding-bottom: 30px;
}

.item-news-hot .wrap-img img {
    height: 215px;
    width: 100%;
    border-radius: 5px;
}


.category-news {
    display: flex;
    gap: 10px 30px;
    justify-content: center;
    margin-top: 10px;
}

.category-news .item {
    position: relative;
    font-size: 16px;
}

.category-news .item::before {
    content: "";
    height: 1px;
    width: 25px;
    background: currentColor;
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    transition: all .3s ease;
}

.category-news .item:not(:last-child)::after {
    content: "";
    width: 1px;
    height: 19px;
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: #c4c4c4;
}

.box-category {
    margin-top: 35px;
}

.box-category .title-box-wrap {
    margin-bottom: 20px;
}

.box-category .title-box {
    font-size: 24px;
}

.block-news .row {
    row-gap: 16px;
}

.item-news-hot {
    border-radius: 8px;
    box-shadow: 1px 3px 6px 0px #d2d2d275;
    padding: 10px;
    background-color: var(--color-2);
}

.item-news .wrap-img {
    border-radius: 8px;
}

.item-news-hot .wrap-img {
    margin-bottom: 10px;
    display: block;
    padding-bottom: 100%;
}

.item-news .title {
    font-size: 17px;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 44px;
}

.item-news .des {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #666;
}

.item-news .cate-time * {
    color: #999;
}

.item-news .cate-time {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.item-news .cate-time .name-cate {
    position: relative;
    padding-left: 15px;
}

.item-news .cate-time .name-cate:hover {
    color: var(--color-3);
}

.item-news .cate-time .name-cate::before {
    content: "";
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #999;
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
}

.box-category .title-box-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.box-category .title-box-wrap .kham-pha {
    display: flex;
    align-items: center;
}

.news-list .name-category {
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.news-top {
    margin-bottom: 40px;
}

.news-top .left .item-news .title {
    font-size: 22px;
    height: 57px;
    margin-top: 10px;
}

.news-top .left .item-news .des {
    -webkit-line-clamp: 2;
}

.news-top .right .item-news .title {
    margin-top: 7px;
}

.news-bottom .item-news {
    padding: 20px 0;
}

.news-bottom .item-news:not(:last-child) {
    border-bottom: 1px solid #e7e7e7;
}

.load-more-news {
    margin-top: 25px;
    text-align: center;
}

.load-more-news button {
    border-radius: 5px;
    border: 1px solid #d2d2d2;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 10px 25px;
}

.tag-link {
    padding: 0 15px 15px;
}

.tag-link ul li {
    list-style: none;
}

.tag-link ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link ul li a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 10px;
    background-color: #FFF;
}

.sidebar-news .block.tags {
    display: none;
}

@media (max-width: 992px) {
    .category-news {
        white-space: nowrap;
        overflow-x: auto;
        justify-content: start;
    }

    .category-news .item::before {
        display: none;
    }
}

@media (max-width: 550px) {
    .block-news .clm {
        padding: 0 4px;
    }

    .block-news .row {
        margin: 0 -4px;
        row-gap: 8px;
    }

    .box-category .title-box {
        font-size: 20px;
    }

    .item-news .des {
        display: none;
    }

    .item-news-hot .des {
        display: -webkit-box;
    }

    .item-news .cate-time {
        font-size: 12px;
    }

    .item-news .title {
        font-size: 15px;
        height: 39px;
    }

    .category-news .item {
        font-size: 14px;
    }

    .news-top {
        margin-bottom: 10px;
    }

    .news-list .name-category {
        font-size: 20px;
    }

    .news-top .left .item-news .title {
        font-size: 18px;
        height: 48px;
    }
}

/* Sidebar news  */
.sidebar-news {
    margin-left: 30px;
    position: sticky;
    top: 95px;
}

.sidebar-news .block {
    border: 1px solid #d2d2d2;
    border-radius: 5px;

}

.sidebar-news .block:not(:first-child) {
    margin-top: 20px;
}

.sidebar-news .title-block {
    font-weight: 500;
    background: linear-gradient(0deg, var(--color-3), var(--color-4));
    color: var(--color-2);
    padding: 15px 20px;
    font-size: 19px;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.block-news .item {
    display: grid;
    grid-template-columns: 60px auto;
    gap: 15px;
    padding: 0 15px 15px;
}

.block-news .item .wrap-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.block-news .item h3 {
    font-weight: 500;
    font-size: 15px;
}

.block-product .item .wrap-img {
    padding-bottom: 100%;
}

.block-product .item {
    padding: 10px 15px;
    margin-bottom: 10px;
}

.block-product .item:not(:last-child) {
    border-bottom: 1px solid #e7e7e7;
}

.block-product .item .name {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
}

.block-product .item .price-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.block-product .item .price-new {
    color: var(--color-5);
    font-weight: 700;
    font-size: 15px;
}

.block-product .item .price-old {
    color: #999;
    font-size: 13px;
}

@media (max-width: 992px) {
    .sidebar-news {
        display: none;
    }
}

@media (max-width: 550px) {
    .item-news .cate-time .name-cate {
        display: block;
    }

    .item-news .cate-time {
        display: block;
    }
}

/* ============================================================
   MODERN POST CATEGORY & LIST PAGE LAYOUT
============================================================ */
.news-list-section {
    padding: 30px 0;
}

.news-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e5e0;
}

.news-list-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.modern-sort-select {
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: #4a4a4a;
    background-color: #ffffff;
    border: 1px solid #e2ded8;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-sort-select:focus {
    border-color: #2b2b2b;
}

/* Post Cards Stack */
.modern-posts-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.modern-post-card {
    display: flex;
    gap: 24px;
    background: transparent;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.modern-post-thumb {
    width: 310px;
    height: 210px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: #eee;
}

.modern-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.modern-post-card:hover .modern-post-thumb img {
    transform: scale(1.05);
}

.modern-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.modern-post-badge {
    align-self: flex-start;
    background: #e8ecf3;
    color: #6b5e52;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.modern-post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    margin: 0 0 10px;
    transition: color 0.2s ease;
}

.modern-post-title a {
    color: inherit;
    text-decoration: none;
}

.modern-post-card:hover .modern-post-title {
    color: var(--color-3, #0284c7);
}

.modern-post-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-post-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: #888888;
}

.modern-post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modern-post-meta svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Sidebar Styling */
.modern-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: #f9f9f9;
    border: 1px solid #f0ece7;
    border-radius: 14px;
    padding: 24px;
}

.sidebar-widget-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2b2b2b;
    margin: 0 0 18px;
}

/* Search Widget */
.sidebar-search-box {
    margin-bottom: 4px;
}

.sidebar-search-form {
    display: flex;
    align-items: center;
    background: #f9f8f6;
    border: 1px solid #e8e5e0;
    border-radius: 10px;
    overflow: hidden;
}

.sidebar-search-input {
    flex-grow: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: none;
    outline: none;
    color: #1a1a1a;
}

.sidebar-search-btn {
    width: 41px;
    height: 41px;
    background: var(--color-3);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.sidebar-search-btn:hover {
    background: #231915;
}

/* Category List Widget */
.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-category-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-category-item a:hover {
    color: var(--color-3, #0284c7);
}

.sidebar-category-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-category-left svg {
    width: 18px;
    height: 18px;
    color: #666666;
}

.sidebar-category-count {
    font-size: 13px;
    color: #888888;
    font-weight: 500;
}

/* Featured Posts Widget */
.sidebar-featured-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-featured-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
}

.sidebar-featured-thumb {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
}

.sidebar-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sidebar-featured-item:hover .sidebar-featured-thumb img {
    transform: scale(1.06);
}

.sidebar-featured-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-featured-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.sidebar-featured-item:hover .sidebar-featured-title {
    color: var(--color-3, #0284c7);
}

.sidebar-featured-date {
    font-size: 12px;
    color: #888888;
}

/* Tags Widget */
.sidebar-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag-pill {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #4a4a4a;
    background: #ece8e1;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-tag-pill:hover {
    background: var(--color-3);
    color: #ffffff;
}

/* Promo Banner Widget */
.sidebar-banner-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background-size: cover;
    background-position: center;
    background-color: #2b2b2b;
}

.sidebar-banner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
}

.sidebar-banner-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.sidebar-banner-sub {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
    display: block;
}

.sidebar-banner-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.sidebar-banner-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.sidebar-banner-btn:hover {
    background: #ffffff;
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 991px) {
    .modern-post-card {
        flex-direction: column;
    }

    .modern-post-thumb {
        width: 100%;
        height: 240px;
    }
}
