/*
 * Khối mới của trang chủ bản viết lại.
 * Class nào styles.css có rồi thì dùng lại, ở đây chỉ chứa phần thật sự mới.
 */

/* Lưới giữ nguyên của styles.css (6 cột, mỗi thẻ chiếm 3 → 2 thẻ mỗi hàng).
   KHÔNG ghi đè grid-template-columns ở đây: các thẻ đã khai `grid-column: span 3`,
   đổi số cột là mỗi thẻ chiếm trọn hàng và mục dài gấp đôi. */
.problems-section .problem-grid-four article strong {
  display: block;
  margin-top: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--gold-dark);
}

/* Khối số liệu thị trường — phải đọc ra ngay rằng đây là số của tổng thị trường,
   không phải kết quả của chúng tôi. Vì vậy tách hẳn khung và ghi nguồn tại chỗ. */
.market-context {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--premium-line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--premium-shadow-sm);
}

.market-context > strong {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.5;
  color: var(--premium-950);
}

.market-context ul {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding-left: 20px;
}

.market-context li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--premium-ink);
}

.market-context cite {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.5;
  color: var(--premium-muted);
}

.market-context-note {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--premium-gold);
  border-radius: 0 10px 10px 0;
  background: var(--premium-surface);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--premium-muted);
}

@media (max-width: 540px) {
  .market-context ul {
    padding-left: 18px;
  }
}

/* Đầu trang: khách từ quảng cáo chủ yếu dùng máy tính, nên trên laptop 1366×768
   phải thấy đủ tiêu đề, lợi ích, nút tải và số lượt tải mà không cần cuộn. */
.hero-offer-list {
  margin-bottom: 20px;
}

.hero-lead strong {
  color: #fff;
  font-weight: 600;
}

.hero-note strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.hero-note b {
  color: #efd38d;
}

.hero-media-link {
  display: block;
  border-radius: 20px;
  cursor: pointer;
}

.hero-media-link img {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), filter 280ms ease;
}

.hero-media-link:hover img {
  filter: brightness(1.06);
  transform: translateY(-3px);
}

.hero-media-link:focus-visible {
  outline: 3px solid #efd38d;
  outline-offset: 4px;
}

@media (min-width: 1081px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: center;
    gap: clamp(40px, 5vw, 88px);
    min-height: 0;
    padding-block: clamp(26px, 2.6vw, 44px) clamp(56px, 4.5vw, 72px);
  }

  /* CSS cũ ghim cột chữ lên trên và cho mỗi khối một max-width riêng → mép phải lởm chởm.
     Ở đây mọi khối dùng chung mép cột, ảnh thu lại cho cao gần bằng cột chữ rồi căn giữa cả hai. */
  .hero-copy {
    align-self: center;
  }

  .hero-lead,
  .hero-note,
  .download-counter {
    max-width: none;
  }

  .hero-offer-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-offer-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-media {
    width: 100%;
    max-width: 600px;
    justify-self: end;
  }

  /* Chú thích lặp y chữ đã in trong ảnh, chỉ làm ảnh cao hơn cột chữ. */
  .hero-media figcaption {
    display: none;
  }

  .hero .eyebrow {
    margin-bottom: 14px;
  }

  .hero h1 {
    max-width: none;
    margin-bottom: 16px;
    font-size: clamp(2.5rem, 3.3vw, 3.9rem);
  }

  .hero-lead {
    margin-bottom: 16px;
    font-size: clamp(1rem, 1.15vw, 1.14rem);
    line-height: 1.7;
  }

  .hero-actions {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }

  .hero-actions .button-primary {
    min-height: 64px;
    font-size: 1.06rem;
  }

  .hero-note {
    margin-top: 12px;
    margin-bottom: 14px;
  }
}
