/* ============================================================================
   MOBILE.CSS — Ngày Mới Sài Gòn  ·  Mobile experience (≤768px)
   ----------------------------------------------------------------------------
   Thiết kế lại toàn diện: hiện đại, đồng bộ nhận diện thương hiệu Desktop
   (đỏ #d0021b · xanh #1993ff · serif Lora cho tiêu đề · Be Vietnam Pro).
   CSS thuần, ưu tiên hiệu năng & cảm ứng. Không phá vỡ giao diện Desktop.
   Breakpoints tinh chỉnh: 768 / 414 / 390 / 375 / 360 / 320.
   ============================================================================ */

/* Design tokens cho lớp mobile (an toàn ở mọi viewport) */
:root{
  --m-red:#d0021b;
  --m-red-dark:#a30016;
  --m-blue:#1993ff;
  --m-ink:#14171c;
  --m-sub:#6b7280;
  --m-mute:#9aa1ab;
  --m-line:#eceef1;
  --m-bg:#f4f5f7;
  --m-card:#ffffff;
  --m-serif:'Lora',Georgia,serif;
  --m-shadow-sm:0 1px 3px rgba(20,23,28,.06),0 1px 2px rgba(20,23,28,.04);
  --m-shadow:0 4px 16px rgba(20,23,28,.08);
  --m-shadow-lg:0 10px 30px rgba(20,23,28,.14);
  --m-radius:14px;
  --m-radius-sm:10px;
  --m-cat: var(--cat-color, #d0021b);
}

/* ============================================================================
   ❶ CHUYỂN ĐỔI DESKTOP ↔ MOBILE  (CSS-driven, chống nhấp nháy/FOUC)
   ============================================================================ */
@media (max-width:768px){
  .news-section{ display:none !important; }
  .mb-home-section{ display:block !important; }
}

/* ============================================================================
   ❷ NỀN TẢNG & HIỆU NĂNG
   ============================================================================ */
@media (max-width:768px){

*,*::before,*::after{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  font-family:'Roboto',sans-serif;
  font-size:14px;
  line-height:1.5;
  color:var(--m-ink);
  background:var(--m-bg);
  overflow-x:hidden;
  text-rendering:optimizeSpeed;
}
img{ max-width:100%; height:auto; display:block; }
a{ text-decoration:none; color:inherit; }
button{ font-family:inherit; }

/* Khung trang đồng nhất + an toàn tai thỏ */
.showcase,.mb-home-section,.dn-page,.tm-page,.bv-page,.home-dynamic,.footer{
  padding-left:env(safe-area-inset-left);
  padding-right:env(safe-area-inset-right);
}

/* Khối nội dung nổi trên nền xám → cảm giác “app”, có chiều sâu */
.mb-art-list,.mb-cat-block,.mb-svc-grid,.mb-lead,
.dn-duo-left,.dn-duo-right,.dn-cat-section,.dn-hero,
.tm-section-header,.tm-top-3,.tm-article-list,.bv-article{
  background:var(--m-card);
}

/* ============================================================================
   ❸ HEADER
   ============================================================================ */
.header{
  position:sticky; top:0; z-index:1200;
  width:100%; height:56px;
  display:flex; align-items:center;
  padding:0 12px;
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--m-line);
  box-shadow:none;
  transition:transform .35s cubic-bezier(.4,0,.2,1), box-shadow .3s;
}
.header--scrolled{ box-shadow:0 2px 14px rgba(20,23,28,.10); }
.header--hidden{ transform:translateY(-100%); }

/* Nút hamburger */
.menu-toggle{
  display:flex !important; flex-direction:column; justify-content:center;
  gap:5px; width:42px; height:42px; margin-left:-6px;
  border-radius:12px; cursor:pointer; flex-shrink:0; z-index:2200;
  transition:background .2s;
}
.menu-toggle:active{ background:rgba(20,23,28,.06); }
.menu-toggle span{
  display:block; width:22px; height:2px; margin:0 auto;
  background:var(--m-ink); border-radius:3px;
  transition:transform .35s cubic-bezier(.6,-.2,.3,1.4), opacity .25s;
}
.menu-toggle.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2){ opacity:0; transform:scaleX(.3); }
.menu-toggle.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
/* Khi drawer mở: ẩn hamburger (drawer đã có nút đóng riêng) */
.menu-toggle.active{ opacity:0; visibility:hidden; pointer-events:none; }

/* Logo căn giữa */
.logo{ position:absolute; left:50%; transform:translateX(-50%); display:flex; align-items:center; }
.logo img{ width:138px; height:auto; transition:width .3s; }
.header--scrolled .logo img{ width:124px; }

/* Nút tìm kiếm dạng icon tròn */
.search-container{ margin-left:auto; flex-shrink:0; }
.search-box{
  width:42px !important; height:42px !important; min-width:42px !important;
  padding:0 !important; margin-right:-4px;
  display:flex !important; align-items:center !important; justify-content:center !important;
  background:transparent !important; border:none !important;
  border-radius:50% !important; box-shadow:none !important; backdrop-filter:none !important;
  transition:background .2s !important;
}
.search-box::before{ display:none !important; }
.search-box:active{ background:rgba(20,23,28,.06) !important; }
.search-box input{ display:none !important; }
.search-icon{ color:var(--m-ink); width:21px; height:21px; }

/* ============================================================================
   ❹ HAMBURGER DRAWER — hiện đại, có branding + màu danh mục
   (header trong drawer được chèn bằng JS: .drawer-head)
   ============================================================================ */
.navbar{
  position:fixed; top:0; left:0;
  width:84%; max-width:330px; height:100%; height:100dvh;
  background:#fff; z-index:2100;
  display:flex !important; flex-direction:column;
  padding:0; overflow-y:auto; overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  transform:translateX(-102%);
  visibility:hidden;
  box-shadow:18px 0 50px rgba(20,23,28,.28);
  transition:transform .4s cubic-bezier(.22,.61,.36,1), visibility 0s linear .4s;
}
.navbar.active{ transform:translateX(0); visibility:visible; transition:transform .42s cubic-bezier(.22,.61,.36,1); }

/* Header bên trong drawer (logo + nút đóng) — JS chèn */
.drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px 13px;
  background:#fff; border-bottom:2px solid var(--m-red);
  position:sticky; top:0; z-index:2;
}
.drawer-head img{ width:134px; height:auto; }
.drawer-close{
  width:36px; height:36px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:#f3f4f6; border:none; border-radius:50%;
  color:var(--m-ink); cursor:pointer; transition:background .2s, transform .2s;
}
.drawer-close:active{ background:#e6e8eb; transform:scale(.92); }

.nav-list{
  flex-direction:column !important; align-items:stretch !important;
  gap:0 !important; list-style:none; padding:8px 0 0; margin:0; width:100%;
}
.nav-list li{ width:100%; border-bottom:1px solid #f2f3f5; opacity:0; transform:translateX(-14px); }
.navbar.active .nav-list li{ animation:drawerItemIn .42s cubic-bezier(.22,.61,.36,1) forwards; }
.navbar.active .nav-list li:nth-child(1){ animation-delay:.06s; }
.navbar.active .nav-list li:nth-child(2){ animation-delay:.10s; }
.navbar.active .nav-list li:nth-child(3){ animation-delay:.14s; }
.navbar.active .nav-list li:nth-child(4){ animation-delay:.18s; }
.navbar.active .nav-list li:nth-child(5){ animation-delay:.22s; }
.navbar.active .nav-list li:nth-child(6){ animation-delay:.26s; }
.navbar.active .nav-list li:nth-child(7){ animation-delay:.30s; }
@keyframes drawerItemIn{ to{ opacity:1; transform:translateX(0); } }

.nav-link{
  display:flex !important; align-items:center; gap:12px;
  padding:15px 18px; width:100%;
  font-size:15.5px; font-weight:600; color:var(--m-ink);
  position:relative; transition:background .18s, color .18s, padding-left .18s;
}
.nav-link::after{ display:none !important; }
/* Chấm màu danh mục đầu mỗi mục (đồng bộ màu nav Desktop) */
.nav-link::before{
  content:''; width:8px; height:8px; border-radius:50%;
  background:var(--accent,#cbd0d6); flex-shrink:0; transition:transform .2s;
}
.nav-link:active{ background:#f7f8fa; padding-left:22px; }
.nav-link.active{ color:var(--accent,var(--m-red)); font-weight:700; background:#fafbfc; }
.nav-link.active::before{ transform:scale(1.5); background:var(--accent,var(--m-red)); }
/* Bảng màu danh mục (khớp Desktop .nav-list li:nth-child) */
.nav-list li:nth-child(1) .nav-link{ --accent:#d0021b; }
.nav-list li:nth-child(2) .nav-link{ --accent:#1c5fb0; }
.nav-list li:nth-child(3) .nav-link{ --accent:#e0851d; }
.nav-list li:nth-child(4) .nav-link{ --accent:#0e9488; }
.nav-list li:nth-child(5) .nav-link{ --accent:#e0392b; }
.nav-list li:nth-child(6) .nav-link{ --accent:#7c3aed; }
.nav-list li:nth-child(7) .nav-link{ --accent:#db2777; }

/* Khối thông tin nhỏ ở chân drawer — JS chèn */
.drawer-foot{ margin-top:auto; padding:18px; border-top:1px solid #f2f3f5; }
.drawer-foot .df-label{ font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--m-mute); margin-bottom:10px; }
.drawer-foot .df-social{ display:flex; gap:10px; }
.drawer-foot .df-social a{
  width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:#fff; transition:transform .2s;
}
.drawer-foot .df-social a:active{ transform:scale(.9); }
.df-fb{ background:#1877f2; } .df-yt{ background:#ff0000; } .df-za{ background:#0068ff; font-weight:800; } .df-ig{ background:linear-gradient(45deg,#f09433,#dc2743,#bc1888); }

/* Overlay */
.menu-overlay{
  display:block; position:fixed; inset:0; z-index:2000;
  background:rgba(15,18,22,.5); -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
  opacity:0; visibility:hidden; transition:opacity .35s, visibility .35s;
}
.menu-overlay.active{ opacity:1; visibility:visible; }

/* ============================================================================
   ❺ PROMO BAR (top-banner) — gọn gàng, gradient sạch, bỏ artifact tia sét
   ============================================================================ */
.showcase{ background:var(--m-bg); }
.top-banner{
  height:auto; min-height:auto; margin:0; border-radius:0;
  padding:11px 14px;
  background:linear-gradient(120deg,var(--m-red) 0%,#e21b34 55%,var(--m-red-dark) 100%);
  position:relative; overflow:hidden;
}
.top-banner > img,.banner-overlay,.shine{ display:none !important; }
.top-banner::after{ /* ánh kim mảnh, nhẹ */
  content:''; position:absolute; top:0; bottom:0; width:40%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.16),transparent);
  transform:skewX(-18deg); animation:promoShine 5.5s ease-in-out infinite;
}
@keyframes promoShine{ 0%{left:-50%} 55%,100%{left:130%} }
.banner-content{
  position:static; transform:none; display:flex; align-items:stretch;
  justify-content:space-between; gap:0; max-width:560px; margin:0 auto;
}
.sale-box{
  flex:1; text-align:center; padding:2px 6px;
  border-right:1px solid rgba(255,255,255,.22);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.sale-box::before{ display:none; }
.sale-box:last-child{ border-right:none; }
.sale-box span{ font-size:9.5px; font-weight:600; color:rgba(255,255,255,.9); margin:0 0 2px; letter-spacing:.02em; }
.sale-box h2{ font-size:20px; font-weight:800; color:#fff; line-height:1; margin:0; }
.sale-box p{ font-size:8.5px; font-weight:700; color:#ffe08a; margin:2px 0 0; }

/* ============================================================================
   ❻ MAGAZINE STRIP — cuộn ngang, snap, peek
   ============================================================================ */
.magazine-wrapper{
  display:flex !important; flex-direction:row !important;
  gap:10px; padding:12px 14px;
  overflow-x:auto; scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch; scrollbar-width:none;
  background:var(--m-card); border-bottom:1px solid var(--m-line);
}
.magazine-wrapper::-webkit-scrollbar{ display:none; }
.mag-card{
  flex:0 0 92px; width:92px; height:130px; margin:0;
  border-radius:var(--m-radius-sm); overflow:hidden; scroll-snap-align:start;
  box-shadow:var(--m-shadow-sm); transition:transform .25s;
  transform:none !important; /* tắt tilt 3D của JS trên mobile */
}
.mag-card:active{ transform:scale(.96) !important; }
.mag-card img{ width:100%; height:100%; object-fit:cover; }
.mag-card::before,.mag-card::after,.card-overlay{ display:none !important; }

/* ============================================================================
   ❼ HERO SLIDER — gradient sâu, tiêu đề serif, dots gọn
   ============================================================================ */
.hero-slider{
  height:auto !important; aspect-ratio:16/10; max-height:280px;
  margin:0 !important; border-radius:0 !important; overflow:hidden; position:relative;
}
.hero-track{ height:100%; }
.hero-slide{ border-radius:0 !important; height:100%; }
.hero-slide img{ width:100%; height:100%; object-fit:cover; }
.slide-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(10,12,16,0) 28%,rgba(10,12,16,.45) 58%,rgba(10,12,16,.86) 100%);
}
.hero-content{
  left:16px !important; right:16px !important; bottom:16px; max-width:none;
  position:absolute; z-index:2;
}
.hero-content .tag{
  display:inline-block; font-size:10px; font-weight:700; letter-spacing:.06em;
  padding:4px 11px; border-radius:30px; margin-bottom:9px;
  background:var(--m-red); color:#fff; box-shadow:0 3px 10px rgba(208,2,27,.4);
}
.hero-content h1{
  font-family:var(--m-serif); font-size:19px !important; font-weight:700;
  line-height:1.28; color:#fff; margin:0 0 8px;
  text-shadow:0 2px 14px rgba(0,0,0,.45);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.hero-content p{
  font-size:12.5px !important; line-height:1.5; color:rgba(255,255,255,.86);
  margin:0 0 11px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.hero-content button{
  padding:9px 20px; font-size:12px; font-weight:700; letter-spacing:.03em;
  border:none; border-radius:30px; background:#fff; color:var(--m-red);
  box-shadow:0 6px 18px rgba(0,0,0,.25); transition:transform .2s;
}
.hero-content button:active{ transform:scale(.95); }
.slider-arrow{ display:none !important; }
.slider-dots{ bottom:10px; gap:6px; z-index:3; }
.dot{ width:7px; height:7px; background:rgba(255,255,255,.55); }
.dot.active{ width:20px; border-radius:5px; background:#fff; }
.dot.active::after{ display:none; }

/* ============================================================================
   ❽ ADS STRIP — dải quảng cáo cuộn
   ============================================================================ */
.ads-wrapper{ overflow:hidden; background:var(--m-card); padding:10px 0; border-bottom:1px solid var(--m-line); }
.ad-card{
  width:128px !important; height:72px !important; margin:0 6px;
  border-radius:var(--m-radius-sm); overflow:hidden; box-shadow:var(--m-shadow-sm);
}
.ad-card img{ width:100%; height:100%; object-fit:cover; }
.ad-card:hover{ transform:none; }

/* ============================================================================
   ❾ MOBILE HOME SECTIONS  (.mb-*)  — bố cục tạp chí hiện đại
   ============================================================================ */
.mb-home-section{ background:var(--m-bg); padding-bottom:8px; }

/* Tiêu đề section: thanh accent + nhãn + “xem tất cả” dạng chip */
.mb-sec-hd{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 16px 10px; background:transparent; border:none; margin:0;
}
.mb-sec-title{
  display:flex; align-items:center; gap:9px;
  font-size:16px; font-weight:800; color:var(--m-ink); letter-spacing:.01em;
}
.mb-sec-title::before{
  content:''; width:4px; height:19px; border-radius:3px;
  background:linear-gradient(180deg,var(--m-red),var(--m-red-dark)); flex-shrink:0;
}
.mb-sec-link{
  display:inline-flex; align-items:center; gap:3px;
  font-size:11.5px; font-weight:700; color:var(--m-red);
  padding:5px 11px; border-radius:30px; background:rgba(208,2,27,.07);
  white-space:nowrap; transition:background .2s, transform .15s;
}
.mb-sec-link:active{ background:rgba(208,2,27,.16); transform:scale(.96); }

/* Danh sách bài: card trắng bo góc, hàng ảnh-trái */
.mb-art-list{
  border-radius:var(--m-radius); margin:0 12px; overflow:hidden;
  box-shadow:var(--m-shadow-sm); padding:4px 0;
}
.mb-art-item{
  display:flex; gap:13px; padding:12px 14px; align-items:flex-start;
  border-bottom:1px solid var(--m-line); position:relative;
  transition:background .18s;
}
.mb-art-item:last-child{ border-bottom:none; }
.mb-art-item:active{ background:#f7f8fa; }
.mb-art-thumb{
  flex:0 0 104px; width:104px; height:72px; border-radius:var(--m-radius-sm);
  overflow:hidden; background:var(--m-line); position:relative;
}
.mb-art-thumb::after{ content:''; position:absolute; inset:0; box-shadow:inset 0 0 0 1px rgba(20,23,28,.04); border-radius:inherit; }
.mb-art-thumb img{ width:100%; height:100%; object-fit:cover; }
.mb-art-body{ flex:1; min-width:0; display:flex; flex-direction:column; }
.mb-art-tag{
  font-size:10px; font-weight:700; color:var(--m-red);
  text-transform:uppercase; letter-spacing:.05em; margin-bottom:4px;
}
.mb-art-title{
  font-family:var(--m-serif); font-size:14.5px; font-weight:600; line-height:1.36; color:var(--m-ink);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.mb-art-item:active .mb-art-title{ color:var(--m-red); }
.mb-art-date{ font-size:11px; color:var(--m-mute); margin-top:6px; }

/* Khối danh mục (ảnh + tiêu đề) — item ĐẦU thành “lead card” lớn */
.mb-cat-block{
  border-radius:var(--m-radius); margin:0 12px; overflow:hidden;
  box-shadow:var(--m-shadow-sm); padding:4px 0;
}
.mb-cat-item{
  display:flex; gap:13px; padding:12px 14px; align-items:flex-start;
  border-bottom:1px solid var(--m-line); transition:background .18s;
}
.mb-cat-item:last-child{ border-bottom:none; }
.mb-cat-item:active{ background:#f7f8fa; }
.mb-cat-thumb{
  flex:0 0 104px; width:104px; height:72px; border-radius:var(--m-radius-sm);
  overflow:hidden; background:var(--m-line);
}
.mb-cat-thumb img{ width:100%; height:100%; object-fit:cover; }
.mb-cat-title{
  flex:1; min-width:0; font-family:var(--m-serif);
  font-size:14.5px; font-weight:600; line-height:1.36; color:var(--m-ink);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
/* Item đầu = lead card nổi bật (ảnh full + tiêu đề chồng) */
.mb-cat-block .mb-cat-item:first-child{
  flex-direction:column; gap:0; padding:0; border-bottom:1px solid var(--m-line);
}
.mb-cat-block .mb-cat-item:first-child .mb-cat-thumb{
  flex:none; width:100%; height:200px; border-radius:0; position:relative;
}
.mb-cat-block .mb-cat-item:first-child .mb-cat-thumb::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg,transparent 40%,rgba(10,12,16,.78));
}
.mb-cat-block .mb-cat-item:first-child .mb-cat-title{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding:14px; color:#fff; font-size:16px; line-height:1.32;
  text-shadow:0 2px 12px rgba(0,0,0,.5);
}

/* Dịch vụ: lưới 2 cột card đứng */
.mb-svc-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
  padding:4px; margin:0 12px; border-radius:var(--m-radius);
  box-shadow:var(--m-shadow-sm); background:var(--m-card);
}
.mb-svc-card{
  display:flex; flex-direction:column; padding:6px;
  border-radius:var(--m-radius-sm); transition:background .18s;
}
.mb-svc-card:active{ background:#f7f8fa; }
.mb-svc-thumb{
  width:100%; aspect-ratio:3/2; border-radius:var(--m-radius-sm);
  overflow:hidden; background:var(--m-line); margin-bottom:8px;
}
.mb-svc-thumb img{ width:100%; height:100%; object-fit:cover; }
.mb-svc-title{
  font-size:12.5px; font-weight:600; line-height:1.4; color:var(--m-ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.mb-svc-date{ font-size:10.5px; color:var(--m-mute); margin-top:5px; }

/* ============================================================================
   ❿ HOME-DYNAMIC SECTIONS (.hs-*) — đồng bộ Desktop, tinh chỉnh mobile
   ============================================================================ */
.home-dynamic{ margin-top:8px !important; }
.home-dynamic__grid{ display:block !important; padding:0 !important; gap:0 !important; }
.home-dynamic__rail{ display:none !important; }
.home-sec{ padding:8px 0 4px !important; }
.home-sec--alt{ background:transparent !important; }
.home-sec__inner{ padding:0 !important; }

.hs-head{ padding:14px 16px 10px; margin:0; border:none !important; }
.hs-head::after{ display:none !important; }
.hs-head__bar{ height:19px; width:4px; }
.hs-head h2{ font-size:16px; font-weight:800; }
.hs-head__eyebrow{ font-size:10px; }
.hs-more{
  font-size:11.5px; font-weight:700; color:var(--m-red);
  padding:5px 11px; border-radius:30px; background:rgba(208,2,27,.07);
}
.hs-more svg{ width:13px; height:13px; }

/* Feature: lead card đứng + danh sách */
.hs-feature{ display:block; padding:0 12px; }
.hs-lead{ display:block; margin:0 0 12px; border-radius:var(--m-radius); box-shadow:var(--m-shadow-sm); }
.hs-lead:hover{ transform:none; box-shadow:var(--m-shadow-sm); }
.hs-lead__media{ aspect-ratio:16/9; }
.hs-lead__body{ padding:13px 14px 15px; }
.hs-lead__title{ font-size:17px; line-height:1.3; }
.hs-lead__desc{ font-size:12.5px; -webkit-line-clamp:2; }
.hs-lead__meta{ font-size:11px; margin-top:9px; }
.hs-list{ background:var(--m-card); border-radius:var(--m-radius); box-shadow:var(--m-shadow-sm); padding:4px 14px; }
.hs-row{ padding:12px 0; gap:13px; }
.hs-row__thumb{ width:104px; height:72px; border-radius:var(--m-radius-sm); }
.hs-row__title{ font-family:var(--m-serif); font-size:14px; }

/* Carousel: thẻ ngang cuộn, ẩn nút mũi tên (dùng vuốt) */
.hs-carousel{ padding:0 0 0 12px; }
.hs-arrow{ display:none !important; }
.hs-track{ gap:12px; padding:2px 12px 4px 0; scroll-snap-type:x proximity; }
.hs-track > *{ scroll-snap-align:start; }
.hs-card{ flex:0 0 78%; max-width:300px; border-radius:var(--m-radius); box-shadow:var(--m-shadow-sm); }
.hs-card:hover{ transform:none; box-shadow:var(--m-shadow-sm); }
.hs-card__media{ aspect-ratio:16/10; }
.hs-card__body{ padding:12px 13px 14px; }
.hs-card__title{ font-family:var(--m-serif); font-size:14.5px; line-height:1.32; }
.hs-card__desc{ font-size:12px; -webkit-line-clamp:2; }
.hs-card__date{ font-size:10.5px; padding-top:9px; }

/* Grid: 1 cột danh sách card ngang gọn */
.hs-grid{ display:block !important; padding:0 12px; }
.hs-grid .hs-card{
  display:flex !important; flex-direction:row; max-width:none; flex:none;
  margin-bottom:12px; align-items:stretch;
}
.hs-grid .hs-card__media{ flex:0 0 132px; aspect-ratio:auto; height:auto; }
.hs-grid .hs-card__body{ flex:1; padding:11px 13px; }
.hs-grid .hs-card__desc{ -webkit-line-clamp:2; }

/* Reveal mượt hơn (khoảng dịch nhỏ) */
.reveal-ready .hs-reveal{ transform:translateY(16px); }

/* ============================================================================
   ⓫ TRANG DANH MỤC (doanhnghiep.html / category_page)
   ============================================================================ */
.dn-page{ display:flex !important; flex-direction:column !important; padding:0; gap:0; }
.dn-sidebar-col{ display:none !important; }
.dn-content{ width:100% !important; }
.dn-brands-full{ display:none !important; }

.dn-hero{ height:auto; aspect-ratio:16/10; max-height:260px; border-radius:0; margin:0; position:relative; }
.dn-hero > img{ width:100%; height:100%; object-fit:cover; }
.dn-hero-overlay{ position:absolute; inset:0; background:linear-gradient(180deg,transparent 35%,rgba(10,12,16,.85)); }
.dn-hero-inner{ padding:16px; bottom:0; }
.dn-hero-inner h1{ font-family:var(--m-serif); font-size:22px; line-height:1.25; margin-bottom:8px; text-shadow:0 2px 12px rgba(0,0,0,.5); }
.dn-hero-inner p{ font-size:12.5px; margin-bottom:11px; -webkit-line-clamp:2; display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
.dn-hero-tags{ gap:7px; flex-wrap:wrap; }
.dn-tag{ font-size:11px; padding:5px 13px; border-radius:30px; }
.dn-hero-dots{ display:none; }

.dn-duo-row{ display:flex !important; flex-direction:column !important; gap:0; margin:8px 0 0; }
.dn-duo-left,.dn-duo-right{ width:100% !important; padding:14px 16px; margin:0 0 8px; border-radius:0; }
.dn-feat-card{ margin-top:8px; }
.dn-feat-thumb{ aspect-ratio:16/9; height:auto; border-radius:var(--m-radius-sm); overflow:hidden; }
.dn-feat-title{ font-family:var(--m-serif); font-size:16px; margin-top:11px; line-height:1.32; }
.dn-feat-desc{ font-size:12.5px; color:var(--m-sub); margin-top:7px; line-height:1.55; }

.dn-today-list{ gap:0; }
.dn-today-item{ display:flex !important; gap:12px; padding:11px 0; border-bottom:1px solid var(--m-line); align-items:flex-start; }
.dn-today-item:last-child{ border-bottom:none; }
.dn-today-thumb{ flex:0 0 92px; width:92px; height:64px; border-radius:var(--m-radius-sm); overflow:hidden; }
.dn-today-thumb img{ width:100%; height:100%; object-fit:cover; }
.dn-today-title{ font-size:13px; line-height:1.4; font-weight:600; }

.dn-cat-section{ padding:14px 16px; margin:0 0 8px; }
.dn-cat-section .cat-title{ margin-bottom:12px; }
.dn-grid-3{ display:flex !important; flex-direction:column !important; gap:0; }
.dn-grid-3 > a{ border-bottom:1px solid var(--m-line); display:block; }
.dn-grid-3 > a:last-child{ border-bottom:none; }
.dn-card{ display:flex !important; flex-direction:row !important; gap:12px; padding:11px 0; align-items:flex-start; }
.dn-card-thumb{ flex:0 0 100px !important; width:100px !important; height:68px !important; border-radius:var(--m-radius-sm); overflow:hidden; }
.dn-card-thumb img{ width:100%; height:100%; object-fit:cover; }
.dn-card-title{ font-family:var(--m-serif); font-size:13.5px; font-weight:600; line-height:1.38; flex:1; }

/* ============================================================================
   ⓬ TRANG TIỂU MỤC (tieumuc.html)
   ============================================================================ */
.tm-page{ display:flex !important; flex-direction:column !important; padding:0; }
.tm-sidebar{ display:none !important; }
.tm-content{ width:100% !important; }
.tm-section-header{ padding:16px; margin:0 0 8px; }
.tm-section-header .cat-title{ margin-bottom:6px; }
.tm-section-header .bv-breadcrumb{ margin-top:8px !important; }

.tm-top-3{ display:block !important; grid-template-columns:none !important; margin:0 0 8px; padding:4px 0; }
.tm-top-card{ display:flex !important; flex-direction:row !important; gap:12px; padding:12px 16px; border-bottom:1px solid var(--m-line); align-items:flex-start; }
.tm-top-card:last-child{ border-bottom:none; }
.tm-top-thumb{ flex:0 0 104px !important; width:104px !important; height:72px !important; border-radius:var(--m-radius-sm); overflow:hidden; }
.tm-top-thumb img{ width:100%; height:100%; object-fit:cover; }
.tm-top-link{ display:block; }
.tm-top-title{ font-family:var(--m-serif); font-size:14px; font-weight:600; line-height:1.38; flex:1; }

.tm-article-list{ margin:0 0 8px; padding:4px 0; }
.tm-article{ display:flex !important; flex-direction:row !important; gap:12px; padding:12px 16px !important; border-bottom:1px solid var(--m-line); align-items:flex-start; }
.tm-article:last-child{ border-bottom:none; }
.tm-art-thumb{ flex:0 0 104px !important; width:104px !important; height:72px !important; min-width:104px !important; border-radius:var(--m-radius-sm); overflow:hidden; }
.tm-art-thumb img{ width:100%; height:100%; object-fit:cover; }
.tm-art-body{ flex:1; min-width:0; }
.tm-art-title{ font-family:var(--m-serif); font-size:14px; font-weight:600; line-height:1.38; }
.tm-art-desc{ display:none; }

.tm-pagination{ padding:18px 14px !important; gap:5px !important; }
.tm-pagination a,.tm-pagination span{ min-width:38px !important; height:38px !important; font-size:13px !important; border-radius:10px !important; }

/* ============================================================================
   ⓭ TRANG BÀI VIẾT (baiviet.html)
   ============================================================================ */
.bv-page{ display:flex !important; flex-direction:column !important; padding:0; gap:0; }
.bv-sidebar{ display:none !important; }
.bv-article{ padding:18px 16px !important; }
.bv-breadcrumb{ display:flex; flex-wrap:wrap; align-items:center; gap:5px; font-size:11px; color:var(--m-mute); margin-bottom:12px; }
.bv-breadcrumb a{ color:var(--m-mute); }
.bv-title{ font-family:var(--m-serif); font-size:23px !important; line-height:1.28 !important; font-weight:700; margin-bottom:12px !important; }
.bv-meta{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; align-items:center; }
.bv-date{ font-size:12px; color:var(--m-mute); }
.bv-social{ display:flex; gap:7px; }
.bv-social-btn{ width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:10px; }
.bv-sapo{ font-size:15px !important; line-height:1.6; font-style:italic; color:#3a3f47; border-left:3px solid var(--m-red); padding-left:13px; margin-bottom:16px; }
.bv-figure{ margin-bottom:16px; }
.bv-figure-img{ border-radius:var(--m-radius-sm); overflow:hidden; }
.bv-caption{ font-size:12px; }
.bv-body{ padding:0; }
.bv-body p{ font-size:15.5px !important; line-height:1.78; margin-bottom:15px; }
.bv-body img{ border-radius:var(--m-radius-sm); }
.bv-body table,.bv-body blockquote{ font-size:14px; }
.bv-quote p{ font-size:16px; }
.bv-tags{ margin-top:18px; }
.bv-related{ margin-top:8px; }
.bv-related-grid{ grid-template-columns:1fr 1fr !important; gap:12px !important; }
.bv-related-thumb{ aspect-ratio:3/2; height:auto !important; border-radius:var(--m-radius-sm); overflow:hidden; }
.bv-related-title{ font-family:var(--m-serif); font-size:12.5px; line-height:1.36; margin-top:7px; }

/* ============================================================================
   ⓮ CHUNG: cat-title, sidebar, back-to-top, skeleton
   ============================================================================ */
.cat-title{ padding:0; margin-bottom:12px; display:flex; align-items:center; gap:9px; }
.cat-title h2{ font-size:15px; font-weight:800; }
.cat-title-bar{ width:4px; height:19px; border-radius:3px; }

.back-to-top{
  width:44px !important; height:44px !important; right:14px !important; bottom:16px !important;
  border-radius:50%; box-shadow:var(--m-shadow-lg) !important;
}

/* Skeleton shimmer cho mọi ô ảnh trong khi tải */
.mb-art-thumb,.mb-cat-thumb,.mb-svc-thumb,
.hs-card__media,.hs-lead__media,.hs-row__thumb,
.dn-card-thumb,.dn-today-thumb,.dn-feat-thumb,
.tm-art-thumb,.tm-top-thumb,.bv-related-thumb{
  background-image:linear-gradient(100deg,#eceef1 30%,#f6f7f9 50%,#eceef1 70%);
  background-size:200% 100%;
  animation:mShimmer 1.3s ease-in-out infinite;
}
.mb-art-thumb img,.mb-cat-thumb img,.mb-svc-thumb img,
.hs-card__media img,.hs-lead__media img,.hs-row__thumb img,
.dn-card-thumb img,.dn-today-thumb img,.dn-feat-thumb img,
.tm-art-thumb img,.tm-top-thumb img,.bv-related-thumb img{ position:relative; z-index:1; }
@keyframes mShimmer{ 0%{ background-position:200% 0; } 100%{ background-position:-200% 0; } }

/* Tap feedback chung cho card kiểu lưới */
.hs-card:active,.mb-svc-card:active,.dn-feat-card:active{ transform:scale(.985); }
.hs-card,.mb-svc-card,.dn-feat-card{ transition:transform .18s ease, box-shadow .25s; }

/* ============================================================================
   ⓯ FOOTER MOBILE — accordion
   ============================================================================ */
.footer{ background:#15171c; color:#fff; }
.footer-sitemap{ padding:0; }
.footer-container{ flex-direction:column !important; padding:0; }
.footer-sitemap .footer-container{ display:flex !important; grid-template-columns:none !important; gap:0 !important; }
.footer-col{ border-bottom:1px solid rgba(255,255,255,.09); padding:0; }
.footer-col-title{
  font-size:14px; font-weight:700; color:#fff; padding:15px 18px; margin:0;
  display:flex; align-items:center; justify-content:space-between; cursor:pointer; user-select:none;
}
.footer-col-title::after{ content:'⌄'; font-size:18px; color:rgba(255,255,255,.5); transition:transform .3s; line-height:1; }
.footer-col.open .footer-col-title::after{ transform:rotate(180deg); }
.footer-col ul{ display:none; list-style:none; padding:0 18px 14px; margin:0; }
.footer-col.open ul{ display:block; }
.footer-col ul li{ padding:7px 0; border-bottom:1px solid rgba(255,255,255,.05); }
.footer-col ul li:last-child{ border-bottom:none; }
.footer-col ul li::before{ display:none; }
.footer-col ul li a{ font-size:13px; color:rgba(255,255,255,.72); }

.footer-divider{ border-color:rgba(255,255,255,.09); }
.footer-info{ padding:0; }
.footer-bottom-grid{ display:flex !important; flex-direction:column !important; gap:0 !important; padding:0; }
.footer-brand{ padding:26px 18px 22px; text-align:center; border-bottom:1px solid rgba(255,255,255,.09); }
.footer-logo{ width:154px; margin:0 auto 13px; filter:brightness(0) invert(1); }
.footer-brand-desc{ font-size:13px; color:rgba(255,255,255,.62); line-height:1.65; margin-bottom:16px; }
.footer-social{ display:flex; justify-content:center; gap:11px; }
.social-btn{ width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; transition:transform .2s; }
.social-btn:active{ transform:scale(.9); }
.social-btn.facebook{ background:#1877f2; color:#fff; }
.social-btn.youtube{ background:#ff0000; color:#fff; }
.social-btn.zalo{ background:#0068ff; color:#fff; }
.social-btn.instagram{ background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color:#fff; }
.footer-contact,.footer-company,.footer-copyright-col{ padding:18px; border-bottom:1px solid rgba(255,255,255,.09); }
.footer-info-title{ font-size:14px; font-weight:700; color:#fff; margin-bottom:11px; padding-bottom:9px; border-bottom:1px solid rgba(255,255,255,.14); }
.footer-contact p,.footer-company p,.footer-copyright-col p{ font-size:12.5px; color:rgba(255,255,255,.66); line-height:1.7; margin-bottom:5px; }
.footer-link-highlight{ color:#f5a623 !important; }

} /* ====== END @media (max-width:768px) ====== */


/* ============================================================================
   BREAKPOINTS TINH CHỈNH
   ============================================================================ */

/* ── ≤414px (iPhone Plus/Pro Max) ───────────────────────────────────────── */
@media (max-width:414px){
  .mb-art-thumb,.mb-cat-thumb,.tm-art-thumb,.tm-top-thumb{ flex-basis:98px; width:98px; height:68px; }
}

/* ── ≤390px (iPhone 12–15) ──────────────────────────────────────────────── */
@media (max-width:390px){
  .hero-content h1{ font-size:18px !important; }
  .sale-box h2{ font-size:19px; }
  .mag-card{ flex-basis:88px; width:88px; height:124px; }
}

/* ── ≤375px (iPhone SE/Mini) ────────────────────────────────────────────── */
@media (max-width:375px){
  .mb-art-thumb,.mb-cat-thumb,.tm-art-thumb,.tm-top-thumb,.dn-card-thumb{ flex-basis:92px; width:92px; height:64px; }
  .mb-sec-title,.hs-head h2{ font-size:15px; }
  .mb-art-title,.mb-cat-title,.hs-card__title{ font-size:13.8px; }
  .hs-grid .hs-card__media{ flex-basis:118px; }
  .hero-content h1{ font-size:17px !important; }
}

/* ── ≤360px (Android phổ thông) ─────────────────────────────────────────── */
@media (max-width:360px){
  .logo img{ width:122px; }
  .mb-svc-grid{ gap:9px; }
  .sale-box span{ font-size:9px; }
  .sale-box h2{ font-size:17px; }
  .sale-box p{ font-size:8px; }
}

/* ── ≤320px (iPhone SE 1 / nhỏ nhất) ────────────────────────────────────── */
@media (max-width:320px){
  .header{ height:52px; padding:0 8px; }
  .logo img{ width:112px; }
  .menu-toggle,.search-box{ width:38px !important; height:38px !important; }
  .mb-art-thumb,.mb-cat-thumb,.tm-art-thumb,.tm-top-thumb,.dn-card-thumb{ flex-basis:84px; width:84px; height:58px; }
  .mb-art-list,.mb-cat-block,.mb-svc-grid{ margin:0 8px; }
  .mb-art-item,.mb-cat-item{ padding:11px 12px; gap:11px; }
  .mb-sec-hd{ padding:15px 12px 9px; }
  .hero-slider{ max-height:230px; }
  .hero-content h1{ font-size:16px !important; -webkit-line-clamp:2; }
  .sale-box h2{ font-size:16px; }
  .hs-grid .hs-card__media{ flex-basis:108px; }
  .bv-title{ font-size:21px !important; }
  .bv-body p{ font-size:15px !important; }
}

/* ── Tôn trọng giảm chuyển động ─────────────────────────────────────────── */
@media (max-width:768px) and (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation:none !important; transition:none !important; }
  .top-banner::after{ display:none; }
}