/* =========================================
   assets/css/pages/home.css
   ========================================= */

/* =========================================
   HERO SECTION (FIX BỐ CỤC CHUẨN GỐC)
   ========================================= */
.home-hero {
  position: relative;
  width: 100%;
  height: 700px; /* Set cứng chiều cao để ảnh nền cover đều */
  min-height: 600px;
  max-height: 85vh;
  margin-top: 80px; /* Bù lại khoảng trống của header fixed */
  overflow: hidden;
  background-color: var(--color-primary); 
  display: flex;
  align-items: center;
}

/* 1. Ảnh nền bao phủ 100% */
.home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right; /* Focus vào ngôi nhà bên phải */
}

.home-hero__slogan-overlay {
  position: absolute;
  bottom: 80px;
  left: 36%;
  font-size: 20px;
  font-weight: 700;
  color: #20242A;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

/* 2. Khối màu xanh trái - Chỉnh lại góc cắt chéo nhẹ nhàng hơn */
.home-hero__shape-left {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 55%; /* Tăng độ rộng để bọc hết text */
  background-color: var(--color-primary);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%); /* Góc chéo chuẩn */
  z-index: 2;
}

/* 3. Gradient phải - Đổ bóng đậm từ mép phải nhạt dần sang trái */
.home-hero__shape-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 35%;
  background: linear-gradient(to left, rgba(17, 27, 87, 0.95) 0%, rgba(17, 27, 87, 0.6) 40%, transparent 100%);
  z-index: 2;
}

/* 4. Layout Container */
.home-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* ===== CỘT TRÁI ===== */
.home-hero__content-left {
  width: 45%;
  max-width: 580px;
  color: var(--color-white); /* Ép toàn bộ chữ thành màu trắng */
  padding: 40px 0;
}

.home-hero__subtitle {
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
  opacity: 0.9;
}

.home-hero__title {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: 24px;
}

.home-hero__desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 90%;
}

.home-hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  align-items: center;
}

/* Nút video outline trắng */
.home-hero__actions .btn--video {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}
.home-hero__actions .btn--video:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.home-hero__badges {
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.badge-item .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.badge-item small {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 400;
}

/* ===== CỘT PHẢI ===== */
.home-hero__content-right {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  color: var(--color-white); /* Ép chữ thành màu trắng để nổi trên gradient */
}

.home-hero__layers-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.home-hero__layers-img {
  width: 100%;
  max-width: 280px; /* Giới hạn kích thước ảnh 3D không bị phóng quá to */
  height: auto;
  margin-bottom: 24px;
}

.home-hero__layers-slogan {
  font-family: 'Playfair Display', serif; 
  font-size: 28px;
  font-style: italic;
  opacity: 0.85;
  line-height: 1.3;
}

/* =========================================
   RESPONSIVE HERO
   ========================================= */
@media (max-width: 1199px) {
  .home-hero__shape-left { width: 60%; }
  .home-hero__content-left { width: 50%; }
  .home-hero__badges { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 991px) {
  .home-hero { height: auto; padding: 40px 0; }
  .home-hero__shape-left {
    width: 100%;
    clip-path: none; 
    background: linear-gradient(to bottom, rgba(17,27,87,1) 60%, transparent 100%);
  }
  .home-hero__shape-right { display: none; }
  .home-hero__inner { flex-direction: column; justify-content: flex-start; }
  .home-hero__content-left { width: 100%; max-width: 100%; margin-bottom: 40px; }
  .home-hero__content-right { width: 100%; align-items: center; text-align: center; }
  .home-hero__slogan-overlay { display: none; }
}

/* Solutions Section */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--spacing-lg);
}

.solution-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 400px;
  display: block;
  text-decoration: none;
  color: var(--color-white);
}

.solution-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.solution-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(32,36,42,0.8) 0%, rgba(32,36,42,0.2) 100%);
}

.solution-card:hover .solution-card__bg {
  transform: scale(1.05);
}

.solution-card__content {
  position: relative;
  z-index: 2;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.solution-card__title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}

.solution-card__subtitle {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 24px;
}

.solution-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-card__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

.solution-card__features .icon { width: 16px; height: 16px; }

.solution-card__btn {
  margin-top: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.solution-card__product {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 200px;
  z-index: 2;
  transition: transform 0.3s ease;
}

.solution-card:hover .solution-card__product {
  transform: translateY(-10px);
}

/* =========================================
   CÔNG NGHỆ TẠO NÊN KHÁC BIỆT (BÁM SÁT MẪU ẢNH NGANG)
   ========================================= */
.home-technology {
  /* Thay 'tech-bg.jpg' bằng đúng tên file ảnh của bạn trong thư mục images */
  background-image: linear-gradient(rgba(32, 36, 42, 0.6), rgba(32, 36, 42, 0.8)), url('../../images/home-6.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 70px 0; 
}

.home-tech__grid {
  display: flex;
  justify-content: space-between; /* Đẩy khối trái và khối phải dạt ra 2 bên */
  align-items: center;
  gap: 40px;
}

.home-tech__left {
  max-width: 500px;
}

/* Khối bên phải xếp 1 hàng dọc, 4 items */
.home-tech__right {
  display: flex;
  flex-direction: column;
  gap: 24px; /* Khoảng cách đều giữa 4 tính năng */
  min-width: 320px;
}

.tech-item {
  display: flex;
  align-items: center; /* Căn giữa icon và chữ */
  gap: 16px;
  color: var(--color-white);
  margin-bottom: 0;
}

.tech-item__icon {
  flex-shrink: 0;
}

.tech-item__icon img { 
  width: 40px; 
  height: 40px; 
  object-fit: contain;
  /* Chuyển bất kỳ màu gốc nào của SVG thành màu trắng */
  filter: brightness(0) invert(1); 
}

.tech-item__title { 
  font-size: 15px; 
  font-weight: 700; 
  margin-bottom: 4px; 
  color: var(--color-white);
  line-height: 1.3;
}

.tech-item__desc { 
  font-size: 13px; 
  opacity: 0.8; 
  line-height: 1.4; 
  margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .home-technology {
    padding: 50px 0;
  }
  .home-tech__grid {
    flex-direction: column; /* Đẩy thành 1 cột trên tablet/mobile */
    align-items: flex-start;
  }
  .home-tech__left {
    max-width: 100%;
    margin-bottom: 16px;
  }
}

/* =========================================
   COLOR DEMO SECTION (CHUẨN BẢN GỐC)
   ========================================= */
.home-color-demo {
  padding: 80px 0;
}

/* Header gióng hàng chính xác theo 2 cột bên dưới */
.color-demo__header {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: flex-end;
  margin-bottom: 28px;
}

.color-demo__header-right {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.color-demo__header-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: #555A64;
  margin: 0;
}

.color-demo__header-link {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Grid nội dung chính */
.color-demo__body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: stretch;
}

/* Khối ảnh Preview bên trái */
.color-demo__preview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 380px;
  background-color: #E6E9EF;
}

.color-demo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.color-demo__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-white);
}

.color-demo__caption {
  flex-grow: 1;
}

.color-demo__caption-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px;
}

.color-demo__caption-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.4;
}

.color-demo__nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-text);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.color-demo__nav-btn:hover {
  background-color: var(--color-cta);
  color: var(--color-white);
  transform: scale(1.05);
}

.color-demo__nav-btn .icon {
  width: 18px;
  height: 18px;
}

/* Khối Swatches 6 cột đứng bên phải */
.color-demo__swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  height: 100%;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
}

.swatch-color {
  flex-grow: 1;
  min-height: 270px;
  border-radius: 6px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.swatch-item:hover .swatch-color {
  transform: translateY(-4px);
}

/* Trạng thái Active: Viền đỏ bọc ngoài + icon trắng bên trong */
.swatch-item.is-active .swatch-color {
  box-shadow: 0 0 0 1.0px var(--color-cta);
  transform: translateY(-4px);
}

.swatch-active-dot {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-cta);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.swatch-item.is-active .swatch-active-dot {
  display: flex;
}

.swatch-meta {
  padding-top: 10px;
  text-align: center;
}

.swatch-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.swatch-sub {
  display: block;
  font-size: 11px;
  color: #717680;
  margin-top: 2px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1199px) {
  .color-demo__header,
  .color-demo__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .color-demo__swatches {
    gap: 10px;
  }
  .swatch-color {
    min-height: 220px;
  }
}

@media (max-width: 767px) {
  .color-demo__header-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .color-demo__preview {
    height: 280px;
  }
  /* Trên màn hình nhỏ cuộn ngang để giữ dáng 6 cột thanh đứng nguyên bản */
  .color-demo__swatches {
    display: flex;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    gap: 12px;
  }
  .swatch-item {
    flex: 0 0 85px;
    scroll-snap-align: start;
  }
  .swatch-color {
    min-height: 180px;
  }
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  margin-top: 40px;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s;
}

.product-card:hover { box-shadow: var(--shadow-md); }

.product-card__img-wrap {
  padding: 30px;
  background: radial-gradient(circle, #fff 0%, #f0f0f0 100%);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.product-card__img { height: 180px; width: auto; object-fit: contain; }

.product-card__body { padding: 20px; }

.product-card__title { font-size: 16px; font-weight: bold; color: var(--color-primary); margin-bottom: 4px; }
.product-card__cat { font-size: 13px; color: #666; margin-bottom: 16px; }

.product-card__features { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.product-card__features li { font-size: 12px; display: flex; align-items: center; gap: 4px; background: var(--color-bg-light); padding: 4px 8px; border-radius: 20px; }
.product-card__features .icon { width: 12px; height: 12px; color: #000 }

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-top: 40px;
}
.project-card__body.d-flex-between {
  align-items: center; /* Căn giữa nút "Xem dự án" với cụm bên trái */
}
.project-card { text-decoration: none; color: inherit; display: block; }
.project-card__img-wrap { border-radius: var(--border-radius-md); overflow: hidden; margin-bottom: 16px; }
.project-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.3s; }
.project-card:hover .project-card__img { transform: scale(1.05); }
.project-card__title { font-weight: bold; font-size: 18px; margin-bottom: 4px; }
.project-card__loc { font-size: 14px; color: #666; display: flex; align-items: center; gap: 4px; }
.project-card__loc .icon { width: 16px; height: 16px; }


/* =========================================
   ĐỒNG HÀNH CÙNG ĐẠI LÝ (CHUẨN BẢN GỐC)
   ========================================= */
.home-partners { 
  background-color: var(--color-primary); 
  /* Nếu thiết kế có ảnh nền vân mờ, bạn có thể thêm background-image vào đây */
  padding: 60px 0; 
}

.home-partners__grid { 
  display: flex; 
  align-items: center;
  justify-content: space-between;
  gap: 32px; 
}

/* 1. Khối bên trái: Text & Button */
.partners-col--text {
  flex: 0 0 32%; /* Giữ khoảng 32% chiều rộng */
  max-width: 400px;
}

.partners-col--text .heading-primary {
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.partners-col--text p {
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* 2. Khối ở giữa: Bản đồ & Các con số (Nằm ngang) */
.partners-col--stats { 
  flex: 1; 
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px; /* Khoảng cách giữa bản đồ và các con số */
}

/* Bản đồ hiển thị rõ ràng, không làm mờ */
.partners-map { 
  height: 160px; /* Cân đối chiều cao bản đồ */
  width: auto;
  object-fit: contain;
}

.stat-items { 
  display: flex; 
  gap: 48px; /* Khoảng cách giữa 3 cột số liệu */
}

.stat-item {
  text-align: center;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  /* Chuyển icon sang màu trắng nếu gốc là màu đen */
  filter: brightness(0) invert(1);
}

.stat-item h4 { 
  font-size: 26px; 
  font-weight: 700;
  margin-bottom: 4px; 
  color: var(--color-white);
}

.stat-item p { 
  font-size: 13px; 
  opacity: 0.8; 
  margin: 0;
}

/* 3. Khối bên phải: Slogan & Gạch ngang đỏ */
.partners-col--slogan { 
  flex: 0 0 20%;
  border-left: 1px solid rgba(255, 255, 255, 0.2); /* Vạch kẻ dọc phân cách */
  padding-left: 32px; 
  color: var(--color-white); 
}

.partners-col--slogan p {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

/* Thêm vạch ngang màu đỏ (CTA) dưới slogan */
.partners-col--slogan::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background-color: var(--color-cta);
}

/* =========================================
   RESPONSIVE CHO KHỐI ĐẠI LÝ
   ========================================= */
@media (max-width: 1199px) {
  .home-partners__grid {
    gap: 24px;
  }
  .partners-col--stats {
    gap: 24px;
  }
  .stat-items {
    gap: 24px;
  }
  .partners-map {
    height: 120px;
  }
}

@media (max-width: 991px) {
  .home-partners__grid {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .partners-col--text {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .partners-col--stats {
    flex-direction: column;
    padding: 32px 0;
  }
  .partners-map {
    height: 160px;
  }
  .partners-col--slogan {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .home-hero { 
    height: auto; 
    max-height: none !important; /* Mở khóa giới hạn chiều cao */
    align-items: flex-start !important; /* Ép nội dung đổ từ mép trên xuống, không bị đẩy ngược lên đỉnh */
    padding: 20px 0 40px; /* Thêm padding-top để cách header ra một chút cho thoáng */
  }
}

@media (max-width: 767px) {
  .stat-items {
    flex-direction: column;
    gap: 32px;
  }
}

/* =========================================
   TIN TỨC & CẢM HỨNG (CHUẨN BẢN GỐC)
   ========================================= */
.home-news {
  padding: 80px 0;
}

.home-news .section__header {
  margin-bottom: 32px;
}

/* Lưới tin tức - Bỏ gap để dùng padding & border-right tạo vạch ngăn cách */
.news-list { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 0; 
}

/* Card ngang có vạch kẻ */
.news-card-hz { 
  display: flex; 
  gap: 16px; 
  background: transparent; 
  padding: 0 24px; /* Tạo khoảng trống 2 bên vạch kẻ */
  border-right: 1px solid var(--color-border);
  border-radius: 0;
}

/* Thẻ đầu tiên sát mép trái */
.news-card-hz:first-child {
  padding-left: 0;
}

/* Thẻ cuối cùng sát mép phải, không có vạch */
.news-card-hz:last-child {
  padding-right: 0;
  border-right: none;
}

.news-card-hz__img-wrap { 
  width: 180px; /* Thu nhỏ ảnh để nhường chỗ cho text */
  flex-shrink: 0; 
}

.news-card-hz__img-wrap img { 
  width: 100%; 
  height: auto;
  aspect-ratio: 4 / 4; /* Tỷ lệ ảnh ngang chuẩn */
  object-fit: cover; 
  border-radius: 4px; 
}

.news-date { 
  font-size: 12px; 
  color: #717680; 
  margin-bottom: 6px; 
  display: block; 
}

.news-title { 
  font-size: 15px; 
  font-weight: 700; 
  margin-bottom: 8px; 
  line-height: 1.4; 
}

.news-title a { 
  color: var(--color-text); 
  text-decoration: none; 
}

.news-title a:hover { 
  color: var(--color-primary); 
}

.news-excerpt { 
  font-size: 13px; 
  color: #555A64; 
  margin-bottom: 12px; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
  line-height: 1.5;
}

/* Đổi nút đọc thêm sang màu đỏ tĩnh theo mẫu */
.news-card-hz .btn--text {
  color: var(--color-cta);
  font-size: 13px;
}

/* ================= Responsive ================= */
@media (max-width: 1199px) {
  .news-card-hz__img-wrap { width: 110px; }
}

@media (max-width: 991px) {
  .home-news .section__header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 16px;
  }
  .section__header-right {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .news-list { 
    grid-template-columns: 1fr; 
    gap: 24px;
  }
  .news-card-hz {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
  }
  .news-card-hz:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Utility (for quick layout) */
.d-flex-between { display: flex; justify-content: space-between; }
.align-end { align-items: flex-end; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: 8px; }
.mb-sm { margin-bottom: 16px; }
.mb-lg { margin-bottom: 32px; }
.w-100 { width: 100%; }
.color-white { color: var(--color-white); }
.opacity-80 { opacity: 0.8; }

/* Responsive Adjustments */
@media (max-width: 1199px) {
  .home-hero { grid-template-columns: 1fr 1fr; height: auto; }
  .home-hero__col--right { display: none; /* Hide layers graphic on smaller screens */ }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .solutions-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .home-tech__grid, .color-demo__layout, .home-consultation__inner, .home-partners__grid { grid-template-columns: 1fr; }
  .partners-col--slogan { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); padding-left: 0; padding-top: 24px; text-align: center; }
}
@media (max-width: 767px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero__content { padding: 40px 20px; }
  .home-hero__main-img { height: 400px; }
  .solutions-grid, .product-grid, .project-grid, .news-list, .color-demo__swatches { grid-template-columns: 1fr; }
  .news-card-hz { flex-direction: column; }
  .news-card-hz__img-wrap { width: 100%; height: 200px; }
  .d-flex-between { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section__header-right { text-align: left; }
  .news-card-hz__content {padding-left: 10px; margin-top: 20px;}
}

/* Ép cuộn ngang cho danh sách sản phẩm trên Mobile */
@media (max-width: 767px) {
  .product-grid { 
    display: flex !important;
    flex-wrap: nowrap !important; /* Cấm rớt dòng xuống dưới */
    overflow-x: auto; /* Mở khóa cuộn ngang */
    scroll-snap-type: x mandatory; /* Bật hiệu ứng khấc dừng */
    gap: 16px;
    padding-bottom: 20px; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; /* Ẩn thanh cuộn xấu xí */
  }
  
  .product-grid::-webkit-scrollbar {
    display: none; 
  }

  /* Ép từng card sản phẩm có chiều rộng cố định để trượt */
  .product-grid .product-card {
    flex: 0 0 85% !important; /* Chiếm 85% màn hình để hở ra card tiếp theo */
    max-width: 85% !important;
    scroll-snap-align: start; /* Điểm neo khi dừng vuốt */
  }
  .partners-col--stats {
    display: none !important;
  }
}