  :root {
    /* Màu xanh chủ đạo từ logo NamVietLift */
    --brand: #58A618;
    --brand2: #468413;
    --text: #1b1b1b;
    --muted: #6b7280;
    --card: #ffffff;
    --border: #e5e7eb;
    --soft: #f9fafb;
    --softGreen: #f0f9f0;
    --radius: 12px;
    --shadow: 0 10px 25px rgba(0,0,0,.05);
    --shadow2: 0 4px 12px rgba(0,0,0,.08);
  }

  * { box-sizing: border-box; }
  body { color: var(--text); font-family: system-ui, -apple-system, sans-serif; line-height: 1.5; background-color: #fff; }
  a { text-decoration: none; transition: .2s; }

  .home-wrap { max-width: 1280px; margin: 0 auto; padding: 0 15px; }
  .section { margin-top: 40px; }

  /* ===== SECTION HEAD (FIX MOBILE) ===== */
  .sec-head{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;   /* title giữa */
    gap:12px;
    margin-bottom:18px;
    padding:14px 0;
  }

  /* thanh dài phía sau */
  .sec-head::before{
    content:"";
    position:absolute;
    left:0; right:0;
    top:50%;
    transform:translateY(-50%);
    height:44px;
    border-radius:999px;

    background:
      linear-gradient(to bottom, rgba(255,255,255,.55), rgba(255,255,255,0)) 0 0/100% 50% no-repeat,
      linear-gradient(to right,
        var(--brand2) 0%,
        var(--brand) 12%,
        #f5f5f5 12%,
        #dcdcdc 50%,
        #f5f5f5 88%,
        var(--brand) 88%,
        var(--brand2) 100%);

    box-shadow: inset 0 2px 8px rgba(0,0,0,.12),
                0 8px 18px rgba(0,0,0,.06);
    z-index:0;
  }

  .sec-head h2{
    position:relative;
    z-index:1;
    margin:0;
    padding:9px 22px;
    border-radius:999px;
    background:rgba(255,255,255,.92);
    border:1px solid rgba(0,0,0,.08);

    font-size:20px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.4px;
    color:var(--brand2);
    line-height:1.15;
    text-align:center;
  }
  .sec-head h2::after{ content:none !important; }

  /* nút (desktop: bên phải) */
  .sec-head .btn{
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    z-index:2;

    display:inline-flex;
    align-items:center;
    padding:8px 18px;
    border-radius:999px;
    background:var(--brand);
    color:#fff;
    font-weight:700;
    font-size:13px;
  }
  .sec-head .btn:hover{
    background:var(--brand2);
    box-shadow:0 8px 18px rgba(0,0,0,.10);
  }

  /* MOBILE: cho nút xuống dưới, thanh nền chỉ nằm phía title (không phủ nút) */
  @media (max-width:768px){
    .sec-head{
      flex-direction:column;
      align-items:center;
      gap:10px;
      padding:10px 0 0;
    }
    .sec-head::before{
      top:22px;     /* thanh nằm vùng title */
      height:38px;
    }
    .sec-head h2{
      width:100%;
      max-width:520px;
      font-size:18px;
      padding:8px 14px;
      white-space:normal; /* title dài thì xuống dòng */
    }
    .sec-head .btn{
      position:relative;
      right:auto; top:auto;
      transform:none;
      margin-top:8px;
    }
  }

  /* ===== Box 1: Hero slider Full Width (FIX TRÀN MOBILE) ===== */
  .hero.full-width-hero { width: 100%; margin-top: 0; overflow: hidden; }
  .hero-slider { position: relative; width: 100%; background: #fff; border-radius: 0; }
  
  .hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease-in-out; display: flex; align-items: center; }
  .hero-slide.active { opacity: 1; position: relative; }
  .hero-slide a { width: 100%; display: block; }
  
  .hero-slide img { 
    width: 100%; 
    height: auto; 
    max-height: 550px; 
    object-fit: cover; /* Desktop cắt ảnh để đầy màn hình */
    display: block; 
  }

  @media (max-width: 768px) {
    .hero-slide img { 
      object-fit: contain; /* Mobile hiện toàn bộ hình, không bị mất chi tiết */
      max-height: unset;
      background: #f0f0f0; 
    }
    .hero-slider { aspect-ratio: 16 / 9; } /* Giữ khung hình chuẩn tránh bị nhảy trang */
  }

  .hero-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; pointer-events: none; z-index: 5; }
  .hero-btn { 
    pointer-events: auto; border: none; width: 40px; height: 40px; border-radius: 50%; 
    background: rgba(255,255,255,.8); color: var(--brand); cursor: pointer; font-size: 24px;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow2); 
  }
  .hero-dots { position: absolute; left: 0; right: 0; bottom: 15px; display: flex; justify-content: center; gap: 8px; z-index: 5; }
  .hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.2); cursor: pointer; }
  .hero-dot.active { background: var(--brand); width: 20px; border-radius: 10px; }

  /* ===== Cards (Sửa nút màu logo) ===== */
  .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: .3s; }
  .card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
  .card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
  .card .body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
  .card .title { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #333; line-height: 1.4; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .desc { margin-bottom: 15px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .actions { margin-top: auto; }
  .card .actions a { display: block; text-align: center; padding: 8px; background: #fff; border: 1px solid var(--brand); color: var(--brand); border-radius: 6px; font-weight: 700; font-size: 13px; }
  .card .actions a:hover { background: var(--brand); color: #fff; }

  /* ===== Box 2: Carousel ===== */
  .carousel-track { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scroll-behavior: smooth; scrollbar-width: none; }
  .carousel-track::-webkit-scrollbar { display: none; }
  .carousel-item { flex: 0 0 280px; }

  /* ===== Grid Layouts ===== */
  .grid { display: grid; gap: 20px; grid-template-columns: repeat(5, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

  /* ===== Box 7: Service Features (Màu logo) ===== */
  .feature-wrap { background: var(--softGreen); border-radius: 20px; padding: 30px 20px; margin-top: 50px; }
  .feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(5, 1fr); }
  .feature { background: #fff; border-radius: 15px; padding: 20px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.03); }
  .feature .ico { width: 50px; height: 50px; margin: 0 auto 15px; background: var(--softGreen); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
  .feature .ico svg path { stroke: var(--brand); }
  .feature h3 { font-size: 14px; font-weight: 800; color: var(--brand2); margin: 0 0 8px; }
  .feature p { font-size: 12px; color: #555; margin: 0; line-height: 1.5; }

  /* ===== Box 8: Partners ===== */
  .partner-grid { display: grid; gap: 15px; grid-template-columns: repeat(6, 1fr); margin-top: 20px; }
  .partner { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px; height: 80px; display: flex; align-items: center; justify-content: center; }
  .partner img { max-width: 90%; max-height: 50px; filter: grayscale(1); opacity: 0.6; transition: .3s; }
  .partner:hover img { filter: grayscale(0); opacity: 1; }

  /* Responsive Fixes */
  @media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 768px) {
    .grid, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-grid { grid-template-columns: repeat(3, 1fr); }
    .carousel-item { flex: 0 0 220px; }
  }
  @media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
  }

  /* ===== Carousel wrapper + buttons ===== */
  .carousel{ position:relative; }
  .car-btn{
    position:absolute;
    top:40%;
    transform:translateY(-50%);
    z-index:3;
    width:42px;height:42px;
    border:none;border-radius:50%;
    background:rgba(255,255,255,.85);
    box-shadow: var(--shadow2);
    cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    font-size:26px; line-height:1;
    color: var(--brand);
  }
  .car-btn.prev{ left:-10px; }
  .car-btn.next{ right:-10px; }

  @media (max-width:768px){
    .car-btn.prev{ left:0; }
    .car-btn.next{ right:0; }
  }

  /* ===== Testimonials Grid ===== */
  .testimonial .tgrid{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  @media (max-width: 992px){
    .testimonial .tgrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 768px){
    .testimonial .tgrid{ grid-template-columns: 1fr; }
  }

  .tcard{
    background:#fff;
    border:1px solid var(--border);
    border-radius: var(--radius);
    padding:16px;
    box-shadow: 0 4px 10px rgba(0,0,0,.03);
    height:100%;
  }

  .thead{ display:flex; gap:12px; align-items:center; margin-bottom:12px; }
  .timg{
    width:56px; height:56px;
    border-radius:999px;
    object-fit:cover;
    border:1px solid var(--border);
  }
  .tname{ font-weight:900; color:var(--brand2); }
  .torg{ font-size:12px; color:var(--muted); margin-top:2px; }
  .ttext{ font-size:13px; color:#333; line-height:1.65; }

  /* Subtitle căn giữa riêng cho testimonials */
  .sec-sub-center{
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  .sec-sub{
    margin: -8px 0 16px;
    color: var(--muted);
    font-size: 13px;
  }

  /* =========================================================
     FIX BỔ SUNG THEO YÊU CẦU
     1) Blog <=520px về 1 cột
     2) Mobile ẩn nút bé, dùng tiêu đề bấm được (sec-h2-link)
     3) Fix nền footer trùng màu logo
     ========================================================= */

  /* 1) BLOG: <=520px ép 1 cột */
  @media (max-width:520px){
    .grid.cols-4{ grid-template-columns: 1fr !important; }
  }

  /* 2) Title bấm được */
  .sec-h2-link{
    color: inherit;
    text-decoration: none;
    display: block; /* bấm full vùng pill */
  }

  /* Mobile: ẩn nút "Xem ..." và thêm mũi tên gợi ý */
  @media (max-width:768px){
    .sec-head .btn{ display:none !important; }

    .sec-h2-link{
      position: relative;
      padding-right: 26px;
    }
    .sec-h2-link::after{
      content: "›";
      position: absolute;
      right: 6px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 22px;
      font-weight: 900;
      color: var(--brand);
    }
  }

  /* 3) FIX LOGO FOOTER */
  footer img, .site-footer img, .footer img, #footer img{
    max-width: 100%;
    height: auto;
  }
  footer .logo img,
  footer .footer-logo img,
  .site-footer .logo img,
  .site-footer .footer-logo img,
  .footer .logo img,
  .footer .footer-logo img,
  #footer .logo img,
  #footer .footer-logo img{
    background: #fff;
    padding: 6px;
    border-radius: 12px;
  }

/* ===== FIX MENU SỔ CHỚP CHỚP KHÔNG NHẤN ĐƯỢC ===== */
header.site-header, .site-header, .header-bottom { overflow: visible !important; z-index: 10050 !important; }
.desktop-nav .nav-list { flex-wrap: nowrap !important; overflow: visible !important; }
.has-sub { position: relative !important; }
.has-sub::after { content: "" !important; position: absolute !important; left: 0 !important; right: 0 !important; top: 100% !important; height: 18px !important; background: transparent !important; pointer-events: auto !important; z-index: 12089 !important; }
.has-sub > .submenu { position: absolute !important; top: 100% !important; left: 0 !important; margin-top: 0 !important; padding-top: 8px !important; transform: none !important; transition: opacity .15s ease !important; z-index: 12090 !important; pointer-events: none; opacity: 0; visibility: hidden; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.is-open > .submenu, .has-sub > .submenu:hover { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transform: none !important; }

/* ===== GOOGLE SHOPPING PRODUCT CARD ENHANCEMENTS (HOMEPAGE) ===== */
.card-img-wrap { position: relative; display: block; overflow: hidden; }
.card-sku {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}
.card-spec {
  font-size: 12.5px;
  color: #475569;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 10px;
  font-weight: 600;
}
.card-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.card-price {
  font-size: 16px;
  font-weight: 800;
  color: #3E7610;
}
.card-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: var(--brand);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
}
.card-buy:hover {
  background: var(--brand2);
}
