/* ==============================
   DANH SÁCH TIN DẠNG THẺ 2 CỘT
   ============================== */

.ArticleList,
.ArticleList * {
    box-sizing: border-box;
}

.ArticleList {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 14px;

    margin: 15px 0;
    padding: 16px;
    list-style: none;

    border: 1px solid #dbe7f3;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(0, 104, 183, 0.05), transparent 45%),
        #f7faff;
}

/* Từng thẻ tin */
.ArticleList > li.row {
    position: relative;
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 14px;

    min-height: 112px;
    margin: 0 !important;
    padding: 13px;

    overflow: hidden;
    border: 1px solid #e0e9f2;
    border-left: 4px solid #0875bd;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(25, 67, 105, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* Loại bỏ clearfix của Bootstrap */
.ArticleList > li.row::before,
.ArticleList > li.row::after {
    display: none !important;
}

.ArticleList > li.row:hover {
    z-index: 2;
    transform: translateY(-4px);
    border-color: #7fc3eb;
    border-left-color: #f59e0b;
    box-shadow: 0 12px 28px rgba(0, 91, 156, 0.16);
}

/* Ghi đè cột Bootstrap */
.ArticleList .col-lg-2,
.ArticleList .col-lg-10 {
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
        background-color: transparent !important;
}

/* Khung ảnh/icon */
.ArticleList .col-lg-2 > a {
    position: relative;
    display: flex;
    width: 84px;
    height: 84px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #edf5fb;
    border-radius: 10px;
    background: linear-gradient(135deg, #e7f3fc, #f7fbff);
    border-radius: 50px;
}

/* Lớp image */
.ArticleList .image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    object-fit: scale-down;
}

.ArticleList > li.row:hover .image {
    transform: scale(1.1);
}

/* Nội dung bên phải */
.ArticleList .col-lg-10 {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: center;
    align-items: center;
    gap: 7px 12px;
    min-width: 0;
}

/* Tiêu đề */
.ArticleList .Title {
    grid-column: 1 / -1;
    order: 1;

    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.ArticleList .Title a {
    position: relative;
    display: -webkit-box;
    padding-right: 22px;

    overflow: hidden;
    color: #12314d;
    text-decoration: none;
    text-overflow: ellipsis;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    transition: color 0.2s ease;
}

/* Mũi tên bên phải tiêu đề */
.ArticleList .Title a::after {
    content: "›";
    position: absolute;
    top: 50%;
    right: 3px;

    color: #1182c5;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;

    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.ArticleList > li.row:hover .Title a {
    color: #0068ad;
}

.ArticleList > li.row:hover .Title a::after {
    color: #f59e0b;
    transform: translate(4px, -50%);
}

/* Ngày đăng */
.ArticleList .Ngaydang {
    grid-column: 1;
    order: 2;

    display: inline-flex;
    align-items: center;
    width: max-content;

    color: #5c7388;
    font-size: 12px;
    line-height: 1.4;
    display:none;
}

.ArticleList .Ngaydang::before {
    content: "◷";
    margin-right: 5px;
    color: #1683c4;
    font-size: 15px;
}

/* Lượt xem */
.ArticleList .ArticleViewCount {
    grid-column: 2;
    order: 3;

    display: inline-flex;
    align-items: center;
    margin: 0 !important;

    color: #7a8a99;
    font-size: 12px;
}

.ArticleList .ArticleViewCount::before {
    content: "◉";
    margin-right: 5px;
    color: #f59e0b;
    font-size: 11px;
    display:none;
}

.ArticleList .cssView {
    color: inherit;
    display:none;
    
}

/* Ẩn thẻ p trống */
.ArticleList .col-lg-10 > p {
    display: none;
}

/* Tablet: chuyển về một cột */
@media (max-width: 991px) {
    .ArticleList {
        grid-template-columns: 1fr;
    }
}

/* Điện thoại */
@media (max-width: 576px) {
    .ArticleList {
        gap: 10px;
        padding: 10px;
        border-radius: 10px;
    }

    .ArticleList > li.row {
        grid-template-columns: 68px minmax(0, 1fr);
        min-height: 92px;
        gap: 11px;
        padding: 10px;
    }

    .ArticleList .col-lg-2 > a {
        width: 68px;
        height: 68px;
        border-radius: 8px;
    }

    .ArticleList .Title {
        font-size: 14px;
    }

    .ArticleList .Title a {
        padding-right: 16px;
    }

    .ArticleList .ArticleViewCount {
        display: none;
    }
}


.ArticleInMenu .Page {
        clear: both;
        display: block;
}

.ArticleInMenu .Paging {
        margin-top: 20px;
        text-align: right;
}

div.ArticleInMenu .pagination{
        justify-content: center !important;
}

div.ArticleInMenu li.page-item {
        margin: 3px;
}

div.ArticleInMenu li.page-item a {
        width: 35px;
        height: 35px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        background: #dee2e6;
        border-radius: 3px !important;
        font-family: "NotoSans", sans-serif !important;
        font-size: 13px;
        color: #212529;
        margin: 0;
}


div.ArticleInMenu .page-item.active .page-link {
        background: #1e73be;
        border: none;
        border-radius: 3px !important;
        margin: 0;
        font-size: 13px;
}

@media only screen and (max-width: 768px){
	.page-item.active .page-link, .page-item .page-link{
                margin: 0 !important;
        }

}