.news-list {
    margin-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: 25px;
}

.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 12px 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;
}

.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: 12px;
    }

    .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;
        margin-bottom: 0px;
    } */

    .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;
    }
}

/* Custom Posts List UI overrides */
.news_item .news-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    margin-bottom: 40px;
}

.news_item .news-link {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Gap between title, image, and button */
}

.news_item .news-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #0b1a30;
    margin: 0;
    height: auto;
    /* Allow height to auto wrap */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Still clamp to 2 lines to keep grid aligned */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news_item .news-link:hover .news-title {
    color: #35b38c;
    /* Hover green-teal color */
}

.news_item .news-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    /* Standard aspect ratio */
    border-radius: 4px;
    /* Slightly rounded corners */
    overflow: hidden;
}

.news_item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news_item .news-readmore-wrap {
    display: flex;
    margin-top: 5px;
}

.news_item .news-readmore-btn {
    display: inline-block;
    background-color: #35b38c;
    /* Theme teal-green button */
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-transform: none;
    /* No forced uppercase */
}

.news_item .news-link:hover .news-readmore-btn {
    background-color: #2b9373;
}

/* Sidebar custom styles override */
.sidebar-wrap {
    margin-top: 0;
}

.welfull-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-left: 20px;
}

.welfull-search-form {
    position: relative;
    width: 100%;
}

.welfull-search-form input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #cbd5e1;
    padding: 10px 35px 10px 0;
    font-size: 16px;
    color: #334155;
    background: transparent;
    outline: none;
    transition: border-bottom-color 0.2s ease;
}

.welfull-search-form input:focus {
    border-bottom-color: #35b38c;
}

.welfull-search-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.welfull-search-submit svg {
    width: 18px;
    height: 18px;
    transition: color 0.2s ease;
}

.welfull-search-submit:hover svg {
    color: #35b38c;
}

.welfull-widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #0b1a30;
    margin: 0 0 20px 0;
}

.welfull-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.welfull-widget-list li {
    line-height: 1.6;
}

.welfull-widget-list li a {
    font-size: 15px;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s ease;
}

.welfull-widget-list li a:hover {
    color: #35b38c;
}

/* Sidebar responsive adjustments */
@media (max-width: 992px) {
    .welfull-sidebar {
        padding-left: 0;
        margin-top: 40px;
        gap: 30px;
    }
}

/* Sidebar Social and Products Custom Styles */
.welfull-social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welfull-social-links a {
    color: #4a5568;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
}

.welfull-social-links a:hover {
    color: #35b38c;
    transform: translateY(-2px);
}

.welfull-social-svg {
    width: 22px;
    height: 22px;
}

.welfull-products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.welfull-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welfull-product-thumb {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welfull-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welfull-product-details {
    flex-grow: 1;
}

.welfull-product-title-link {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #0b1a30;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.welfull-product-title-link:hover {
    color: #35b38c;
}

/* CSS for Welfull Articles Grid Section */
.welfull-articles-grid-section {
    background-color: #ffffff;
    padding: 60px 0 100px 0;
    box-sizing: border-box;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.welfull-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.welfull-article-card {
    display: flex;
    flex-direction: column;
}

.welfull-article-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: inherit;
}

.welfull-article-link:hover {
    text-decoration: none;
}

.welfull-article-img-wrap {
    width: 100%;
    aspect-ratio: 1.5;
    /* 3:2 ratio matching 4:3 or 16:10 */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welfull-article-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.welfull-article-card:hover .welfull-article-img-wrap img {
    transform: scale(1.03);
}

.welfull-article-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: #1a202c;
    margin: 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.welfull-article-card:hover .welfull-article-title {
    color: #35b38c;
}

/* Responsiveness for Articles Grid */
@media (max-width: 992px) {
    .welfull-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}

@media (max-width: 768px) {
    .welfull-articles-grid-section {
        padding: 40px 0 60px 0;
    }

    .welfull-article-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .welfull-articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
