/* ============================================================
   KMTrend Blog, Article & Legal V6
   Bố cục sạch, thống nhất, responsive; không dùng khối vá nối tiếp.
   ============================================================ */
.blog-skip-link{position:fixed;z-index:9999;top:10px;left:10px;padding:10px 14px;transform:translateY(-160%);border-radius:10px;color:#fff;background:#111827;font-weight:700;text-decoration:none}.blog-skip-link:focus{transform:translateY(0)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.blog-category{display:inline-flex;align-items:center;width:max-content;padding:6px 10px;border-radius:999px;color:#d92d20;background:#fff1ee;font-size:11px;font-weight:700;line-height:1;text-transform:uppercase;letter-spacing:.035em}.blog-category--hero{color:#ff5a3c;background:#fff1ee;border:1px solid #ffd5cb}.button-block{display:flex;width:100%;justify-content:center}

/* Trang thư viện */
.blog-hub-hero{padding:50px 0 34px;background:linear-gradient(135deg,#fff 0%,#f7f8fa 62%,#fff5f1 100%)}
.blog-hub-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:42px;align-items:center}
.blog-hub-hero h1{max-width:760px;margin:10px 0 14px;font-size:clamp(31px,2.65vw,40px);line-height:1.1;letter-spacing:-.04em;font-weight:700;text-wrap:pretty;word-break:normal;overflow-wrap:normal}
.blog-hub-hero p{max-width:720px;margin:0;color:#596273;font-size:15px;line-height:1.72}
.blog-hub-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.blog-hub-stats div{min-height:102px;padding:18px;border:1px solid #e1e5ea;border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 12px 30px rgba(17,24,39,.045)}
.blog-hub-stats strong{display:block;font-size:28px;line-height:1;font-weight:700}.blog-hub-stats span{display:block;margin-top:9px;color:#667085;font-size:12px;line-height:1.45}

.blog-toolbar{position:sticky;z-index:30;top:88px;padding:14px 0;border-bottom:1px solid #e7ebf0;background:rgba(248,250,252,.92);backdrop-filter:blur(16px)}
.blog-toolbar-inner{display:grid;grid-template-columns:minmax(270px,320px) minmax(0,1fr);gap:18px;align-items:start;padding:15px 16px;border:1px solid #e2e7ed;border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(15,23,42,.055)}
.blog-toolbar-label{display:block;margin:0 0 8px;color:#667085;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.blog-search{position:relative;min-width:0}.blog-search:before{position:absolute;z-index:1;left:17px;bottom:14px;width:14px;height:14px;border:2px solid #98a2b3;border-radius:50%;content:'';box-sizing:border-box}.blog-search:after{position:absolute;z-index:1;left:29px;bottom:12px;width:7px;height:2px;border-radius:2px;background:#98a2b3;content:'';transform:rotate(45deg);transform-origin:left center}
.blog-search input{width:100%;height:46px;padding:0 16px 0 45px;border:1px solid #d7dde5;border-radius:14px;color:#172033;background:#fbfcfd;font:inherit;font-size:14px;outline:none;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.blog-search input::placeholder{color:#98a2b3}.blog-search input:hover{background:#fff}.blog-search input:focus{border-color:#ff765a;background:#fff;box-shadow:0 0 0 4px rgba(255,90,60,.1)}
.blog-filter-group{min-width:0}.blog-filters{display:flex;flex-wrap:wrap;gap:8px}.blog-filter{min-height:40px;padding:0 15px;border:1px solid #d8dfe7;border-radius:12px;color:#3c4759;background:#fff;font-size:13px;font-weight:650;line-height:1.2;text-align:center;white-space:nowrap;cursor:pointer;transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease}.blog-filter:hover{border-color:#bcc6d1;background:#f8fafc;transform:translateY(-1px)}.blog-filter.is-active{color:#fff;border-color:#152033;background:#152033;box-shadow:0 7px 16px rgba(21,32,51,.16)}

.blog-library{padding:38px 0 88px}.blog-library-heading{margin-bottom:24px}.blog-library-heading h2{margin:7px 0 0;font-size:clamp(27px,2.15vw,34px);line-height:1.2;letter-spacing:-.03em;font-weight:700;text-wrap:pretty}
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:24px}
.blog-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid #e0e4e9;border-radius:21px;background:#fff;box-shadow:0 13px 35px rgba(15,23,42,.05);transition:transform .22s ease,box-shadow .22s ease}.blog-card:hover{transform:translateY(-3px);box-shadow:0 20px 44px rgba(15,23,42,.085)}.blog-card.is-hidden,.blog-card[hidden]{display:none!important}
.blog-card-image{display:block;aspect-ratio:16/9;overflow:hidden;background:#eef1f4}.blog-card-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .32s ease}.blog-card:hover .blog-card-image img{transform:scale(1.018)}
.blog-card-body{display:flex;flex:1;flex-direction:column;padding:18px 18px 20px}.blog-card-meta,.home-news-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#667085;font-size:12px}
.blog-card h2{margin:12px 0 10px;font-size:clamp(17px,1.12vw,19px);line-height:1.34;letter-spacing:-.018em;font-weight:700;text-wrap:pretty;word-break:normal;overflow-wrap:normal;hyphens:none}.blog-card h2 a,.home-news-section h3 a,.article-related-card h3 a{color:inherit;text-decoration:none}
.blog-card p{display:-webkit-box;overflow:hidden;margin:0 0 16px;color:#596273;font-size:14px;line-height:1.62;-webkit-line-clamp:3;-webkit-box-orient:vertical}.blog-card-link,.home-news-link,.article-related-link{margin-top:auto;color:#f04421;font-size:13px;font-weight:700;text-decoration:none}
.blog-empty{padding:50px;text-align:center;border:1px dashed #cfd5dc;border-radius:18px;color:#667085}.blog-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:38px}.blog-page-button{min-width:42px;height:42px;padding:0 13px;border:1px solid #d8dce2;border-radius:11px;color:#344054;background:#fff;font-weight:700;cursor:pointer}.blog-page-button:hover{background:#f8fafc}.blog-page-button:disabled{opacity:.45;cursor:not-allowed}.blog-page-button.is-active{color:#fff;border-color:#ff4f2b;background:#ff4f2b}

/* Bốn bài ngoài trang chủ */
.home-news-section{background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}
.home-news-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:28px}.home-news-heading h2{margin:.35rem 0 .5rem;font-size:clamp(27px,2.15vw,34px);line-height:1.2;letter-spacing:-.028em;text-wrap:pretty}.home-news-heading p{max-width:700px;margin:0;color:#606a78;font-size:14px;line-height:1.68}.home-news-heading .button{white-space:nowrap}
.home-news-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}.home-news-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid #e0e4e9;border-radius:20px;background:#fff;box-shadow:0 13px 36px rgba(15,23,42,.055)}
.home-news-card-image{display:block;aspect-ratio:16/9;overflow:hidden;background:#eef1f4}.home-news-card-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .32s ease}.home-news-card:hover .home-news-card-image img{transform:scale(1.018)}
.home-news-card-body{display:flex;flex:1;flex-direction:column;padding:16px}.home-news-card h3{margin:10px 0 8px;font-size:16px;line-height:1.38;letter-spacing:-.012em;font-weight:700;text-wrap:pretty;word-break:normal;overflow-wrap:normal}.home-news-card p{display:-webkit-box;overflow:hidden;margin:0 0 12px;color:#667085;font-size:13px;line-height:1.55;-webkit-line-clamp:2;-webkit-box-orient:vertical}.home-news-card .blog-category{font-size:10px;padding:5px 8px}

/* Trang chi tiết */
.article-breadcrumb{min-height:50px;display:flex;align-items:center;gap:9px;overflow:hidden;color:#667085;font-size:12px;white-space:nowrap}.article-breadcrumb a{color:#667085;text-decoration:none}.article-breadcrumb strong{overflow:hidden;color:#111827;text-overflow:ellipsis}
.article-hero{padding:36px 0 24px;color:#0f172a;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}.article-hero-inner{max-width:1180px;text-align:left}.article-hero h1{max-width:1080px;margin:14px 0 14px;font-size:clamp(30px,2.55vw,38px);line-height:1.14;letter-spacing:-.036em;font-weight:700;text-wrap:pretty;word-break:normal;overflow-wrap:normal;hyphens:none}.article-hero p{max-width:900px;margin:0;color:#475467;font-size:15px;line-height:1.72}.article-meta{display:flex;justify-content:flex-start;gap:17px;margin-top:17px;color:#667085;font-size:12px}
.article-cover{position:relative;width:min(calc(100% - 40px),980px);margin:24px auto 0}.article-cover img{display:block;width:100%;aspect-ratio:16/9;max-height:550px;object-fit:cover;object-position:center;border-radius:22px;box-shadow:0 16px 42px rgba(15,23,42,.11)}
.article-layout{display:block;padding-top:38px;padding-bottom:82px}.article-body{max-width:820px;margin:0 auto;font-size:15px}.article-body p{margin:0 0 18px;color:#3f4857;font-size:15px;line-height:1.82}.article-lead{color:#344054;font-size:16px;font-weight:500;line-height:1.74}
.article-toc{margin:10px 0 32px;padding:22px 24px;border:1px solid #e2e6eb;border-radius:18px;background:#f8fafc}.article-toc strong{display:block;margin-bottom:12px}.article-toc ol{display:grid;grid-template-columns:1fr 1fr;gap:8px 24px;margin:0;padding-left:20px}.article-toc li{font-size:14px;line-height:1.6}.article-toc a{color:#344054;text-decoration:none}
.article-section{scroll-margin-top:120px}.article-section h2{margin:42px 0 15px;font-size:clamp(24px,1.9vw,28px);line-height:1.24;letter-spacing:-.025em;font-weight:700;text-wrap:pretty;word-break:normal;overflow-wrap:normal}.article-section h3{font-size:19px;line-height:1.38;text-wrap:pretty}
.article-steps{display:grid;gap:12px;margin:22px 0 28px;padding:0;list-style:none}.article-steps li{padding:16px 18px;border:1px solid #e2e6eb;border-radius:14px;background:#fff;font-size:14px}
.article-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.article-action-card{padding:20px;border:1px solid #e2e6eb;border-radius:16px;background:#fff}.article-action-card h3{margin:0 0 8px;font-size:18px}.article-action-card p{margin:0;font-size:14px;line-height:1.68}
.article-metric-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:18px 0 26px;padding:0;list-style:none}.article-metric-list li{padding:13px 15px;border-radius:12px;color:#344054;background:#f2f4f7;font-size:14px;font-weight:600}
.article-warning-list,.article-checklist{display:grid;gap:10px;margin:18px 0 26px;padding:0;list-style:none}.article-warning-list li{position:relative;padding:14px 18px 14px 44px;border:1px solid #fed7cc;border-radius:14px;background:#fff7f4;font-size:14px}.article-warning-list li:before{position:absolute;left:17px;top:14px;content:'!';display:grid;width:19px;height:19px;place-items:center;border-radius:50%;color:#fff;background:#f04421;font-size:11px;font-weight:900}.article-checklist li{position:relative;padding:14px 18px 14px 46px;border:1px solid #e2e6eb;border-radius:14px;background:#fafbfc;font-size:14px}.article-checklist li:before{position:absolute;left:17px;top:13px;content:'✓';color:#f04421;font-weight:900}
.article-faq{margin-top:44px}.article-faq h2{margin:8px 0 18px;font-size:clamp(25px,2vw,30px);line-height:1.22}.article-faq details{padding:16px 18px;border:1px solid #e2e6eb;border-radius:14px;background:#fff}.article-faq details+details{margin-top:10px}.article-faq summary{cursor:pointer;font-size:15px;font-weight:600}.article-faq details p{margin:11px 0 0;font-size:14px;line-height:1.68}
.article-note{margin-top:26px;padding:21px 23px;border-radius:17px;background:#fff7f4}.article-note p{margin:8px 0 0}
.article-sidebar{display:none}
.article-related{padding-top:0;background:#f7f9fc}.article-related .section-heading{margin-bottom:24px}.article-related .section-heading h2{font-size:clamp(27px,2.15vw,34px);line-height:1.2}.article-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.article-related-card{display:flex;overflow:hidden;flex-direction:column;border:1px solid #e0e4e9;border-radius:20px;background:#fff}.article-related-image{display:block;aspect-ratio:16/9;overflow:hidden}.article-related-image img{display:block;width:100%;height:100%;object-fit:cover}.article-related-card>div{display:flex;flex:1;flex-direction:column;padding:17px}.article-related-card h3{margin:11px 0 9px;font-size:18px;line-height:1.4;text-wrap:pretty}.article-related-card p{margin:0 0 14px;color:#667085;font-size:13px;line-height:1.62}

/* Pháp lý */
.legal-hero{padding:52px 0 42px;background:linear-gradient(135deg,#f8fafc 0%,#fff 58%,#fff2ed 100%)}.legal-hero h1{max-width:800px;margin:12px 0 15px;font-size:clamp(30px,2.55vw,38px);line-height:1.12;letter-spacing:-.035em}.legal-hero p{max-width:760px;margin:0;color:#596273;font-size:15px;line-height:1.7}.legal-meta{display:flex;gap:9px;margin-top:20px;flex-wrap:wrap}.legal-meta span{padding:7px 11px;border:1px solid #e0e4e9;border-radius:999px;background:#fff;color:#667085;font-size:12px;font-weight:650}.legal-section{background:#fff}.legal-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:54px;align-items:start}.legal-toc{position:sticky;top:100px;display:grid;gap:5px;padding:17px;border:1px solid #e1e5ea;border-radius:17px;background:#f8fafc}.legal-toc strong{padding:7px 8px 10px}.legal-toc a{padding:8px 9px;border-radius:9px;color:#596273;font-size:13px;text-decoration:none}.legal-toc a:hover{color:#111827;background:#fff}.legal-content{max-width:820px}.legal-notice{margin-bottom:32px;padding:19px 21px;border-left:4px solid #ff4f2b;border-radius:0 13px 13px 0;background:#fff7f4;color:#475467;line-height:1.7}.legal-content section{scroll-margin-top:110px;padding:28px 0;border-top:1px solid #e4e7ec}.legal-content section:first-of-type{border-top:0}.legal-content h2{margin:0 0 14px;font-size:clamp(24px,1.9vw,28px);line-height:1.25}.legal-content p,.legal-content li{color:#475467;line-height:1.76}.legal-content ul{padding-left:22px}.legal-contact{display:grid;gap:7px;margin-top:21px;padding:19px;border-radius:13px;background:#f3f5f7}.legal-contact strong{margin-bottom:4px;color:#111827}.legal-contact a{color:#111827;font-weight:700}.legal-disclaimer{margin-top:17px;font-size:13px}

@media(max-width:1180px){.blog-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.home-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){
  .blog-hub-hero-grid{grid-template-columns:1fr}.blog-hub-stats{max-width:440px}.blog-toolbar{top:72px}.blog-toolbar-inner{grid-template-columns:1fr;gap:14px}.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-related-grid{grid-template-columns:1fr 1fr}.legal-layout{grid-template-columns:1fr}.legal-toc{position:static;grid-template-columns:repeat(3,1fr)}.legal-toc strong{grid-column:1/-1}
}
@media(max-width:700px){
  .blog-hub-hero{padding:40px 0 27px}.blog-hub-hero h1{font-size:clamp(29px,8vw,36px);line-height:1.14}.blog-hub-stats{grid-template-columns:1fr 1fr;gap:10px}.blog-hub-stats div{min-height:0;padding:15px}.blog-toolbar{position:static;padding:12px 0;background:#f8fafc}.blog-toolbar-inner{grid-template-columns:1fr;gap:14px;padding:13px;border-radius:18px}.blog-search input{height:46px}.blog-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.blog-filter{width:100%;min-height:42px;padding:7px 8px;font-size:12px;white-space:normal}.blog-library{padding:30px 0 70px}.blog-grid{grid-template-columns:1fr;gap:18px}.blog-card h2{font-size:18px}.home-news-heading{align-items:flex-start;flex-direction:column}.home-news-heading .button{width:100%;justify-content:center}.home-news-grid{grid-template-columns:1fr}.article-hero{padding:34px 0 22px}.article-hero h1{font-size:clamp(28px,7.5vw,34px);line-height:1.17;letter-spacing:-.026em}.article-hero p{font-size:14px}.article-meta{flex-wrap:wrap;gap:7px 13px;font-size:11px}.article-cover{width:calc(100% - 28px);margin-top:18px}.article-cover img{border-radius:16px}.article-layout{padding-top:30px;padding-bottom:68px}.article-body{font-size:14.5px}.article-body p{font-size:14.5px;line-height:1.76}.article-lead{font-size:15px}.article-toc{padding:18px}.article-toc ol{grid-template-columns:1fr}.article-section h2{margin-top:34px;font-size:23px;line-height:1.28}.article-action-grid,.article-metric-list{grid-template-columns:1fr}.article-related-grid{grid-template-columns:1fr}.article-related .section-heading h2{font-size:27px}.legal-hero{padding:42px 0 36px}.legal-hero h1{font-size:30px}.legal-layout{gap:30px}.legal-toc{grid-template-columns:1fr 1fr;padding:14px}.legal-content section{padding:24px 0}
}
@media(max-width:390px){.blog-hub-stats{grid-template-columns:1fr}.blog-filters{grid-template-columns:1fr 1fr}.legal-toc{grid-template-columns:1fr}.article-hero h1{font-size:28px}}
