.UITabArticle_default2 .TabList .item_title,  .summary, .date {
    font-family: "Arial", "Tahoma", "Verdana", "Helvetica", sans-serif;
}

.UITabArticle_default2 .TabList .Wrap .Container {
    padding-left: 0 !important;
}
.UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) {
    position: static !important;
}

/* --- LAYOUT CHUẨN MỚI --- */
.UITabArticle_default2 .TabList .Wrap .Container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 10px;
}

/* --- ITEM 1 = ẢNH LỚN TRÊN --- */
.UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) {
    grid-column: 1 / 5; /* full width */
}

.UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) a {
    display: flex;
    flex-direction: column;
}

.UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    margin-bottom: 10px;
}

.UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) .item_title {
    font-size: 18px;
    font-weight: 600;
}

/* --- 4 ITEM NHỎ THẲNG HÀNG (4 CỘT) --- */
.UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(n+2) {
    width: 100%;
}

.UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(n+2) img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
     aspect-ratio: 16/9;
}

/* --- TITLE ITEM NHỎ --- */
.UITabArticle_default2 .TabList .Wrap .Container .Item .item_title {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.UITabArticle_default2 .TabList .Wrap .Container .Item:hover .item_title {
    color: var(--bg-blue);
}

/* --- NGÀY THÁNG --- */
.UITabArticle_default2 .TabList .Wrap .Container .Item .date {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

@media only screen and (max-width: 768px){
        
 .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) img {
    width: 100% !important;
    min-height: 225px;
    height: auto
    object-fit: contain
}

  /* Chỉ áp dụng layout 2 cột cho các item nhỏ (từ item 2 trở đi) */
  .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(n+2) a{
    display: grid;
    grid-template-columns: 32% 1fr;
    grid-auto-rows: auto;
    column-gap: 10px;
    align-items: start;
  }

  /* Ảnh ở cột 1, chiếm 3 hàng (tiêu đề + ngày + tóm tắt) */
  .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(n+2) img{
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 100% !important;
    height: 22vw;
    object-fit: cover;
    margin: 0;
    float: none; /* xoá float cũ nếu có */
  }

  /* Tiêu đề ở cột 2, hàng 1 */
  .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(n+2) .item_title{
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    -webkit-line-clamp: 3;
  }

  /* Ngày ở cột 2, hàng 2 (ngay dưới tiêu đề) */
  .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(n+2) .date{
    grid-column: 2;
    grid-row: 2;
    margin: 0 0 6px;
    font-size: 12px;
    color: #6c757d;
  }

  /* Tóm tắt ở cột 2, hàng 3 */
  .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(n+2) .summary{
    grid-column: 2;
    grid-row: 3;
    display: block;
    font-size: 13px;
    color: #555;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
          display: none !important;
  }

  /* Item 1 (ảnh to) vẫn 1 cột */
  .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) a{
    display: block;
  }
}


/* Desktop: Item 1 = 2 cột (ảnh trái – nội dung phải) */
@media (min-width: 769px){
  /* bỏ chấm đầu dòng nếu có */
  .UITabArticle_default2 .TabList .Wrap .Container,
  .UITabArticle_default2 .TabList .Wrap .Container .Item{
    list-style: none;
  }

  .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) a{
    display: grid;
    grid-template-columns: 40% 1fr; /* ảnh ~45% - nội dung ~55% */
    column-gap: 24px;
    align-items: start;
  }

  /* Ảnh: cột 1, chiếm toàn bộ chiều cao nội dung */
  .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) img{
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 100%;
    height: 320px;          /* tuỳ chỉnh 280–360px */
    object-fit: contain;
    margin: 0;
    float: none;            /* xoá float cũ nếu có */
  }

  /* Tiêu đề: cột 2, hàng 1 */
  .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) .item_title{
    grid-column: 2;
    grid-row: 1;
    font-size: 15px;
    font-weight: bold;
    line-height: initial;
    margin: 0 0 10px;
  }

  /* Ngày tháng: cột 2, hàng 2 */
  .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) .date{
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
  }

  /* Tóm tắt: cột 2, hàng 3 */
  .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) .summary{
    grid-column: 2;
    grid-row: 3;
    display: block;
    font-size: 15px;
    color: #333;
    margin: 0;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}



@media only screen and (max-width: 1023px) {
    .TabArticleControl .Container .Item a img {
        width: 100% !important;
        height: auto !important;
        margin-right: 10px;
    }
}



/* Header*/
.UITabArticle_default2 .TabList .HeaderWrap li a {
        display: block;
        white-space: nowrap;
}
.UITabArticle_default2 .TabList .HeaderWrap li span {
        display: block;
        white-space: nowrap;
}
.UITabArticle_default2 .TabList {
        margin-bottom: 10px;
        position: relative;
        /* padding-bottom: 10px; */
}
.UITabArticle_default2 .TabList .cate-link{
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 13px;
        color: #005ba0;
}
.UITabArticle_default2 .TabList .HeaderTitle {
        
        height: 35px;
}
.UITabArticle_default2 .TabList .HeaderTitle span {
        color: var(--bg-blue-weight);
        padding: 0 6px;
        font-size: 14px;
        font-weight: 600;
        line-height: 28px;
        display: inline-block;
}
.UITabArticle_default2 .TabList ul.HeaderWrap {
        margin-bottom: 5px;
        
        display: inline-flex;
        flex-wrap: wrap;
        padding: 0;
        list-style: none;
        width: 100%;
}
.UITabArticle_default2 .TabList .HeaderWrap .NormalTab {
    border-bottom: 2px solid #b10804;
}
.UITabArticle_default2 .TabList .HeaderWrap .ActiveTab, .NormalTab {
        cursor: pointer;
       padding-left: 10px;
        padding-right: 10px;
}
.UITabArticle_default2 .TabList .HeaderWrap .ActiveTab{
        font-size: 14px;
        text-transform: uppercase;
        font-weight: 600;
        background: linear-gradient(to bottom, var(--bg-blue) 0%, var(--bg-blue-weight) 100%);
        color: #fff;
        display: inline-block;
}
.UITabArticle_default2 .TabList .HeaderWrap .NormalTab:hover {
        font-size: 14px;
        font-weight: 600;
        background: linear-gradient(to bottom, var(--bg-blue) 0%, var(--bg-blue-weight) 100%);
        color: #fff;
        display: inline-block;
}
.UITabArticle_default2 .TabList .HeaderWrap .NormalTab:hover .text {
       color: #b10804;
}



.UITabArticle_default2 .TabList .HeaderWrap .ActiveTab .text {
       
        padding: 0 6px;
        font-size: 14px;
        font-weight: 600;
        line-height: 40px;
        display: inline-block;
    color: #b10804;
    font-family: "Arial", "Tahoma", "Verdana", "Helvetica", sans-serif;
    border-bottom: 2px
}

.UITabArticle_default2 .TabList .HeaderWrap .NormalTab .text {
        font-family: "Arial", "Tahoma", "Verdana", "Helvetica", sans-serif;
        color: #b10804;
        padding: 0 6px;
        font-size: 14px;
        font-weight: normal;
        line-height: 40px;
        display: inline-block;
        text-transform: uppercase;
}


/* Header custom */

/* ============================
   TABLIST – HEADER CSS
   ============================ */

* {
    text-rendering: geometricprecision;
}

.TabList .HeaderWrap li a {
    display: block;
    white-space: nowrap;
}

.TabList .HeaderWrap li span {
    display: block;
    white-space: nowrap;
}

.TabList {
    margin-bottom: 10px;
    position: relative;
}

.TabList .cate-link{
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 13px;
    color: #005ba0;
}

.TabList .HeaderTitle {
    
    height: 35px;
}

.TabList .HeaderTitle span {
    color: var(--bg-blue-weight);
    padding: 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 28px;
    display: inline-block;
}

.TabList ul.HeaderWrap {
    margin-bottom: 5px;
    
    display: inline-flex;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
    width: 100%;
}

.TabList .HeaderWrap .NormalTab {}

.TabList .HeaderWrap .ActiveTab,
.TabList .HeaderWrap .NormalTab {
    cursor: pointer;
    padding-left: 10px;
    padding-right: 10px;
}

/* Active tab */
.TabList .HeaderWrap .ActiveTab {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    background: #fff;
    color: #005ba0;
    display: inline-block;
    border-top: none;
    border-bottom: 2px solid #f9c41a;
    position: relative;
    
}
.TabList .HeaderWrap .ActiveTab::after {
    content: "";
    position: absolute;
    left: 40%;                 /* đặt ở đầu dòng */
    bottom: -5px;            /* canh sát border */
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #f5c400;   /* màu vàng của nhọn */
}


/* Hover tab */
.TabList .HeaderWrap .NormalTab:hover {
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(to bottom, var(--bg-blue) 0%, var(--bg-blue-weight) 100%);
    color: #fff;
    display: inline-block;
}

.TabList .HeaderWrap .NormalTab:hover .text {
    color: #005ba0;
}

/* Text trong tab */
.TabList .HeaderWrap .ActiveTab .text {
    color: #005ba0;
    padding: 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 40px;
    display: inline-block;
}

.TabList .HeaderWrap .NormalTab .text {
    color: var(--bg-blue-weight);
    padding: 0 6px;
    font-size: 14px;
    font-family: "Arial", "Tahoma", "Verdana", "Helvetica", sans-serif;
    font-weight: normal;
    line-height: 40px;
    display: inline-block;
    text-transform: uppercase;
}

/* Nền thanh tab */
.TabList .HeaderWrap {
    background: #fff;
}

/* Ẩn icon ảnh tab */
.TabList ul.HeaderWrap img {
    display: none;
}

/* Mobile */
@media only screen and (max-width: 768px){
    .TabList {
        max-width: 100%;
    }

    .TabList ul.HeaderWrap {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
    }

    .TabList .cate-link{
        position: absolute;
        bottom: 5px;
        top: unset;
        font-size: 13px;
        color: #dc3545;
    }
}
.UITabArticle_default2 .TabListPage {
    display: none;
}

.UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(n+2) .summary {
 display: none;
}


.UITabArticle_default2 .TabList .HeaderWrap {
    position: relative;
    z-index: 0; /* thấp nhất để after nằm dưới */
}

.UITabArticle_default2 .TabList .HeaderWrap::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #b10804;
    z-index: -1; 
}


@media only screen and (min-width: 1024px) {
        .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) .date {
            margin-top: -80px;
        }

        .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(1) .summary {
            margin-top: -150px;
        }
        
        
}


@media (min-width: 992px) {
    .UITabArticle_default2 .TabList .Wrap .Container .Item:nth-child(n+2):not(:last-child) {
        border-right: 1px solid #ddd;
        padding-right: 10px;
        margin-right: 10px;
    }
}
}