﻿#ulmenu1Product {
    display: none;
}

.page-heading {
    margin: 0 0 12px;
    padding-bottom: 10px;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
}


/* =========================
   THAM KHẢO / TỪ KHÓA
========================= */

.thamkhaotinaspx {
    margin-bottom: 20px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
}

    .thamkhaotinaspx a {
        color: #2563eb;
        text-decoration: none;
    }

        .thamkhaotinaspx a:hover {
            text-decoration: underline;
        }


/* =========================
   DANH SÁCH TIN TỨC
========================= */

.ul-tintuc-all {
    margin: 0;
    padding: 0;
    list-style: none;
}

.li-tintuc-all {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

    .li-tintuc-all:first-child {
        padding-top: 0;
    }

    .li-tintuc-all:last-child {
        border-bottom: 0;
    }


/* =========================
   HÌNH ẢNH TIN TỨC
========================= */

.tintuc-all-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
}

    .tintuc-all-img a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .tintuc-all-img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s ease;
    }

    .tintuc-all-img:hover img {
        transform: scale(1.04);
    }


/* =========================
   NỘI DUNG TIN
========================= */
.title-ul-item30-all {
    font-size: 20px;
    border-left: 5px solid #0095ff;
    text-transform: uppercase;
    font-weight: 600;
    padding-left: 8px;
    margin: 10px 0px;
}
.tintuc-all-info {
    min-width: 0;
}

.title-tintuc-all {
    margin-bottom: 8px;
}

    .title-tintuc-all a {
        display: block;
        font-size: 19px;
        line-height: 1.4;
        font-weight: 700;
        color: #111827;
        text-decoration: none;
        transition: color .2s ease;
    }

        .title-tintuc-all a:hover {
            color: #dc2626;
        }

.tintuc-all-info p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================
   SẢN PHẨM LIÊN QUAN
========================= */

.ul-item30-all {
    margin: 0;
    padding: 0;
    list-style: none;
}

.li-item30-all {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

    .li-item30-all:first-child {
        padding-top: 0;
    }

    .li-item30-all:last-child {
        border-bottom: 0;
    }


/* =========================
   HÌNH SẢN PHẨM LIÊN QUAN
========================= */

.item30-all-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 7px;
    background: #f5f5f5;
}

    .item30-all-img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
        box-sizing: border-box;
        transition: transform .25s ease;
    }

    .item30-all-img:hover img {
        transform: scale(1.05);
    }


/* =========================
   TÊN SẢN PHẨM
========================= */

.li-item30-all span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    color: #1f2937;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* =========================
   PHÂN TRANG
   Có thể chỉnh class theo HTML paging của bạn
========================= */
.pagebreak {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 25px 0 10px;
    justify-content: center;
}
    .pagebreak a,
    .pagebreak span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        box-sizing: border-box;
        border: 1px solid #dcdfe5;
        border-radius: 6px;
        background: #fff;
        color: #333;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: all .2s ease;
    }

    /* Trang đang chọn */
    .pagebreak .active {
        background: #e60012;
        border-color: #e60012;
        color: #fff;
    }

    /* Hover */
    .pagebreak a:hover {
        background: #e60012;
        border-color: #e60012;
        color: #fff;
    }

    /* Dấu ... */
    .pagebreak .dots {
        min-width: auto;
        padding: 0 5px;
        border: 0;
        background: transparent;
        color: #777;
    }

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .title-ul-item30-all {font-size:16px;}
        .li-tintuc-all {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 14px;
    }

    .title-tintuc-all a {
        font-size: 17px;
    }

    .tintuc-all-info p {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .li-item30-all {
        grid-template-columns: 75px minmax(0, 1fr);
    }
}


@media (max-width: 600px) {

    .page-heading {
        font-size: 23px;
    }

    .li-tintuc-all {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 0;
    }

    .tintuc-all-img {
        aspect-ratio: 4 / 3;
    }

    .title-tintuc-all {
        margin-bottom: 5px;
    }

        .title-tintuc-all a {
            font-size: 16px;
            line-height: 1.35;
        }

    .tintuc-all-info p {
        font-size: 13px;
        line-height: 1.55;
        -webkit-line-clamp: 2;
    }

    .li-item30-all {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 10px;
    }
    .pagebreak {
        gap: 4px;
        margin-top: 20px;
    }

        .pagebreak a,
        .pagebreak span {
            min-width: 34px;
            height: 34px;
            padding: 0 8px;
            font-size: 13px;
        }
}


@media (max-width: 420px) {

    .li-tintuc-all {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
    }

    .title-tintuc-all a {
        font-size: 15px;
    }

    .tintuc-all-info p {
        -webkit-line-clamp: 2;
    }
}
