/* Section Tin tức có tab, trang chủ (anh Phát 05/11/2026): template-parts/phg/tin-trang-chu.php. Thẻ .kl-the là component trang Tin tức; trang chủ không nạp kho.css nên khai lại đúng phần dùng, cỡ chữ theo thang trang chủ. */
.tc2-tin{padding:var(--phg-khoang) var(--le); background-color:var(--nen-cuon); color:var(--chu-cuon); transition:background-color var(--tg-nen) var(--cd-nen), color var(--tg-nen) var(--cd-nen);}
.tc2-tin__nhan{margin:0 0 var(--k-2) !important; color:var(--chu-phu-cuon);}
.tc2-tin__xem{margin-top:var(--k-2); align-self:end;}
@media (min-width:768px){ .tc2-tin__xem{margin-top:0; justify-self:end;} }

/* tab: cùng kiểu thanh lọc trang Tin tức, gạch cam dưới tab đang chọn */
.tc2-tin__tabs{display:flex; gap:var(--k-4); margin-top:var(--k-4); border-bottom:1px solid var(--ke-cuon); overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch;}
.tc2-tin__tabs::-webkit-scrollbar{display:none;}
.tc2-tin__tab{position:relative; flex:none; min-height:48px; padding:0; border:0; background:transparent; font:inherit; font-size:var(--tc-than); font-weight:700; color:var(--chu-phu-cuon); cursor:pointer; white-space:nowrap;}
.tc2-tin__tab::after{content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--tc-cam); transform:scaleX(0); transform-origin:0 50%; transition:transform .3s ease;}
.tc2-tin__tab.is-chon{color:var(--chu-cuon);}
.tc2-tin__tab.is-chon::after, .tc2-tin__tab:focus-visible::after{transform:scaleX(1);}
@media (hover:hover){ .tc2-tin__tab:hover::after{transform:scaleX(1);} }

/* 3 tab chồng cùng 1 ô: khung luôn cao bằng tab cao nhất nên đổi tab không dịch trang. Tắt JS: xếp dọc */
.tc2-tin__cac{margin-top:var(--k-5);}
html.tc2-js .tc2-tin__cac{display:grid; grid-template-columns:minmax(0, 1fr);}
html.tc2-js .tc2-tin__pan{grid-area:1 / 1; min-width:0; opacity:0; visibility:hidden; transition:opacity .3s ease, visibility 0s linear .3s;}
html.tc2-js .tc2-tin__pan.is-chon{opacity:1; visibility:visible; transition:opacity .3s ease;}
.tc2-tin__pan + .tc2-tin__pan{margin-top:var(--k-5);}
html.tc2-js .tc2-tin__pan + .tc2-tin__pan{margin-top:0;}

/* lưới 4 cột trong khung; dưới 1024 vuốt ngang: 1,2 thẻ điện thoại, 2,2 thẻ máy bảng */
.tc2-tin__luoi{--so:1.2; --khe-so:1; display:flex; gap:var(--phg-gutter-luoi); margin:0; padding:0; list-style:none; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch;}
.tc2-tin__luoi::-webkit-scrollbar{display:none;}
.tc2-tin .kl-the{flex:none; width:calc((100% - var(--phg-gutter-luoi) * var(--khe-so)) / var(--so)); margin:0; scroll-snap-align:start; min-width:0;}
@media (min-width:768px){ .tc2-tin__luoi{--so:2.2; --khe-so:2;} }
@media (min-width:1024px){
  .tc2-tin__luoi{display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); overflow:visible;}
  .tc2-tin .kl-the{width:auto;}
}

/* thẻ tin */
.tc2-tin .kl-the__lien{display:flex; flex-direction:column; height:100%; color:inherit; text-decoration:none;}
.tc2-tin .kl-the__anh{display:block; position:relative; overflow:hidden;}
.tc2-tin .kl-the__anh .phg-khung{width:100%;}
.tc2-tin .kl-the__anh img{transition:transform .6s cubic-bezier(.2,.7,.2,1);}
@media (hover:hover){ .tc2-tin .kl-the__lien:hover .kl-the__anh img{transform:scale(1.03);} }
.tc2-tin .kl-the__lien:focus-visible .kl-the__anh img{transform:scale(1.03);}
.tc2-tin .kl-the__chu{display:flex; flex-direction:column;}
.tc2-tin .kl-the__nhan{display:block; margin-top:var(--k-2); font-size:var(--tc-nhan); line-height:1.4; letter-spacing:.14em; font-weight:700; color:var(--chu-phu-cuon); font-variant-numeric:tabular-nums;}
.tc2-tin .kl-the__ten{margin:var(--k-1) 0 0; font-size:var(--tc-tieu-nho); line-height:1.3; font-weight:700; letter-spacing:-.005em; color:var(--chu-cuon); text-wrap:pretty; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; min-height:calc(1.3em * 3);}
.tc2-tin .kl-the__mo{display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; margin-top:var(--k-1); font-size:var(--tc-than); line-height:1.5; color:var(--chu-phu-cuon); text-align:left; min-height:calc(1.5em * 2);}
.tc2-tin .kl-the__mui{display:none;}
@media (prefers-reduced-motion:reduce){ html.tc2-js .tc2-tin__pan, .tc2-tin__tab::after, .tc2-tin .kl-the__anh img{transition:none;} }
