/* Homepage redesign — erpsme.vn (2026-08-22) */
/* Design source: docs/design/erpsme-2026-08-22/{desktop,mobile}.png */
/* Only applies inside main.hp-redesign — does not touch other pages */

main.hp-redesign { font-family: Montserrat, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #0b1f3d; }
main.hp-redesign section { height: auto; }
main.hp-redesign .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
main.hp-redesign img { max-width: 100%; }
main.hp-redesign a { text-decoration: none; }

main.hp-redesign .hp-title { font-size: 30px; font-weight: 700; text-align: center; margin-bottom: 8px; color: #0b1f3d; }
main.hp-redesign .hp-subtitle { font-size: 16px; text-align: center; color: #5b6b85; max-width: 720px; margin: 0 auto 40px; }
main.hp-redesign .hp-section { padding: 56px 0; }
main.hp-redesign .hp-section-alt { background: #f5f9ff; }

/* Buttons */
main.hp-redesign .hp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 6px; font-weight: 600; font-size: 15px; cursor: pointer; border: 2px solid transparent; color: #fff !important; }
main.hp-redesign .hp-btn-primary { background: #1a56db !important; }
main.hp-redesign .hp-btn-primary:hover { background: #0b3fb0 !important; }
main.hp-redesign .hp-btn-outline { background: transparent !important; border-color: #fff; color: #fff !important; }
main.hp-redesign .hp-btn-outline:hover { background: rgba(255,255,255,.15) !important; }

/* 1. HERO */
main.hp-redesign .hp-hero { position: relative; overflow: hidden; padding: 28px 0; background-color: #d7e6fb; background-repeat: no-repeat; background-position: center center; background-size: 100% 100%; aspect-ratio: 1903 / 504; display: flex; align-items: center; }
main.hp-redesign .hp-hero-inner { display: flex; align-items: center; gap: 40px; position: relative; z-index: 1; width: 100%; }
main.hp-redesign .hp-hero-text { flex: 0 0 46%; }
main.hp-redesign .hp-hero-text h1 { font-size: 26px; font-weight: 800; line-height: 1.25; margin-bottom: 14px; color: #0b1f3d; }
main.hp-redesign .hp-hero-text h1 .accent { color: #ff8a00; }
main.hp-redesign .hp-hero-checklist { list-style: none; padding: 0; margin: 0 0 18px; }
main.hp-redesign .hp-hero-checklist li { position: relative; padding-left: 26px; margin-bottom: 7px; font-size: 14px; color: #26324a; }
main.hp-redesign .hp-hero-checklist li strong { color: #ff8a00; }
main.hp-redesign .hp-hero-checklist li:before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #22c55e; }
main.hp-redesign .hp-hero-checklist li:after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
main.hp-redesign .hp-hero-media { flex: 1; }
main.hp-redesign .hp-hero-media img { display: block; width: 100%; height: auto; }

/* 2. Tin tức */
main.hp-redesign .hp-news-tabs { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 28px; padding-bottom: 4px; }
main.hp-redesign .hp-news-tab { flex: 0 0 auto; padding: 9px 18px; border-radius: 20px; background: #eef3fb; color: #26324a; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; border: 1px solid #e3e9f3; }
main.hp-redesign .hp-news-tab.active,
main.hp-redesign .hp-news-tab:hover { background: #1a56db; color: #fff; border-color: #1a56db; }
main.hp-redesign .hp-news-panel { display: none; }
main.hp-redesign .hp-news-panel.active { display: block; }
main.hp-redesign .hp-news-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
main.hp-redesign .hp-news-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(11,31,61,.08); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
main.hp-redesign .hp-news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(11,31,61,.14); }
main.hp-redesign .hp-news-card .hp-news-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
main.hp-redesign .hp-news-card .hp-news-img img { width: 100%; height: 100%; object-fit: fill; transition: transform 300ms ease-in-out; }
main.hp-redesign .hp-news-card:hover .hp-news-img img { transform: scale(1.1); }
/* Nhan "MOI" cho bai chua doc - dung dung style/co che voi sis.vn
   (.hp-news-badge-new, an mac dinh, JS bat len neu id chua co trong
   localStorage "erpsme_read_news"; xem script cuoi file main.blade.php
   va news/view.blade.php). */
main.hp-redesign .hp-news-badge-new { display: none; position: absolute; top: 10px; right: 10px; z-index: 2; background: #ff1a1a; color: #fff !important; font-size: 11px; font-weight: 800; letter-spacing: .03em; padding: 3px 10px; border-radius: 100px; box-shadow: 0 2px 6px rgba(255,26,26,.5); }
main.hp-redesign .hp-news-card .hp-news-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
main.hp-redesign .hp-news-badge { align-self: flex-start; background: #fff1e0; color: #ff8a00; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; margin-bottom: 10px; }
main.hp-redesign .hp-news-card h3 { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: #0b1f3d; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
main.hp-redesign .hp-news-date { font-size: 12px; color: #8592a8; margin-top: auto; padding-top: 8px; }
main.hp-redesign .hp-news-more { text-align: center; margin-top: 20px; }

/* 3. Thống kê "Hơn 25 năm" - thu hẹp khoảng cách với block Tin tức phía trên */
main.hp-redesign #award.section_intro_area { margin-top: 0 !important; padding-top: 0 !important; }
main.hp-redesign .hp-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
main.hp-redesign .hp-stat-card { text-align: center; }
main.hp-redesign .hp-stat-icon { width: 56px; height: 56px; margin: 0 auto 12px; }
main.hp-redesign .hp-stat-icon img { width: 100%; height: 100%; object-fit: contain; }
main.hp-redesign .hp-stat-num { font-size: 28px; font-weight: 800; color: #1a56db; }
main.hp-redesign .hp-stat-label { font-size: 14px; color: #5b6b85; margin-top: 4px; }

/* 4/5. Pain points + hệ thống */
main.hp-redesign .hp-split { display: flex; align-items: center; gap: 48px; }
main.hp-redesign .hp-split-text { flex: 0 0 46%; }
main.hp-redesign .hp-split-media { flex: 1; text-align: center; }
main.hp-redesign .hp-split-media img.responsive { width: 100%; height: auto; object-fit: contain; }
main.hp-redesign .hp-split.hp-split-reverse { flex-direction: row-reverse; }
main.hp-redesign .hp-checklist-red,
main.hp-redesign .hp-checklist-green { list-style: none; padding: 0; margin: 20px 0 0; }
main.hp-redesign .hp-checklist-red li,
main.hp-redesign .hp-checklist-green li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 15px; color: #26324a; }
main.hp-redesign .hp-checklist-red li:before { content: "•"; position: absolute; left: 6px; top: 0; color: #26324a; font-weight: 700; font-size: 20px; line-height: 1.1; }
main.hp-redesign .hp-checklist-green li:before { content: "✓"; position: absolute; left: 0; top: 0; color: #22c55e; font-weight: 700; }

/* 6. Tại sao chọn */
main.hp-redesign .hp-why-title { text-transform: uppercase; font-size: 26px; letter-spacing: .01em; }
main.hp-redesign .hp-why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 32px; }
main.hp-redesign .hp-why-card { background: #fff; border: 1px solid #e9eef7; border-radius: 12px; padding: 36px 24px; text-align: center; box-shadow: 0 2px 10px rgba(11,31,61,.05); transition: transform .2s, box-shadow .2s; }
main.hp-redesign .hp-why-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(11,31,61,.12); }
main.hp-redesign .hp-why-icon { width: 72px; height: 72px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #eaf2ff; box-shadow: 0 0 0 8px #f3f8ff; color: #1a56db; }
main.hp-redesign .hp-why-icon svg { width: 30px; height: 30px; }
main.hp-redesign .hp-why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; color: #0b1f3d; }
main.hp-redesign .hp-why-card p { font-size: 14px; color: #5b6b85; line-height: 1.7; text-align: justify; }

/* 7. Hệ sinh thái */
main.hp-redesign .hp-eco-row { display: flex; align-items: flex-start; gap: 4px; margin: 32px 0 36px; }
main.hp-redesign .hp-eco-col { display: block; flex: 1 1 0; min-width: 0; text-align: center; color: inherit; }
main.hp-redesign .hp-eco-col:hover h3 { color: #1a56db; }
main.hp-redesign .hp-eco-col h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; color: #0b1f3d; margin-bottom: 4px; transition: color .2s; }
main.hp-redesign .hp-eco-col p { font-size: 12px; color: #5b6b85; line-height: 1.5; margin-bottom: 12px; min-height: 54px; }
main.hp-redesign .hp-eco-arrow { flex: 0 0 auto; align-self: flex-end; margin-bottom: 22px; color: #1a56db; font-weight: 800; font-size: 14px; letter-spacing: -2px; opacity: .7; }
main.hp-redesign .hp-eco-illustration { height: 240px; display: flex; align-items: flex-end; justify-content: center; }
main.hp-redesign .hp-eco-illustration img { width: auto; max-width: 100%; max-height: 100%; display: block; }
main.hp-redesign .hp-eco-cta { text-align: center; }

/* Cụm minh họa dựng bằng HTML/CSS cho nhóm chưa có ảnh thiết kế (vd. ERP Online) */
main.hp-redesign .hp-eco-cluster { position: relative; width: 100%; max-width: 260px; height: 300px; margin: 0 auto; }
main.hp-redesign .hp-eco-cluster-center { position: absolute; top: 44%; left: 50%; transform: translate(-50%,-50%); width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg,#1a56db,#2f7bf0); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(26,86,219,.35); z-index: 2; }
main.hp-redesign .hp-eco-cluster-center svg { width: 32px; height: 32px; }
main.hp-redesign .hp-eco-cluster-sat { position: absolute; display: flex; flex-direction: column; align-items: center; width: 84px; color: #1a56db; z-index: 2; }
main.hp-redesign .hp-eco-cluster-sat svg { width: 20px; height: 20px; background: #fff; border-radius: 50%; padding: 9px; box-shadow: 0 4px 10px rgba(11,31,61,.12); box-sizing: content-box; }
main.hp-redesign .hp-eco-cluster-sat span { font-size: 10px; font-weight: 700; color: #26324a; margin-top: 6px; line-height: 1.25; }
main.hp-redesign .hp-eco-sat-1 { top: 4%; left: 50%; transform: translateX(-50%); }
main.hp-redesign .hp-eco-sat-2 { top: 40%; right: -8%; }
main.hp-redesign .hp-eco-sat-3 { bottom: 12%; right: 2%; }
main.hp-redesign .hp-eco-sat-4 { bottom: 12%; left: 2%; }
main.hp-redesign .hp-eco-pedestal { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); width: 70%; height: 16px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(26,86,219,.5) 0%, rgba(26,86,219,0) 75%); box-shadow: 0 0 24px 4px rgba(26,86,219,.45); z-index: 1; }

/* 8. ERP theo ngành */
main.hp-redesign .hp-industry-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
main.hp-redesign .hp-industry-card { display: flex; flex-direction: column; align-items: center; background: linear-gradient(160deg,#2f7bf0,#0d3fae); border: 2px solid rgba(255,255,255,.45); border-radius: 16px; padding: 20px 16px 22px; color: #fff !important; transition: transform .2s, box-shadow .2s; box-shadow: 0 6px 18px rgba(11,31,61,.12); }
main.hp-redesign .hp-industry-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(11,31,61,.22); }
main.hp-redesign .hp-industry-card .hp-industry-icon { width: 100%; height: 84px; display: flex; align-items: center; justify-content: center; }
main.hp-redesign .hp-industry-card .hp-industry-icon img { max-width: 92%; max-height: 92%; }
main.hp-redesign .hp-industry-card .hp-industry-icon svg { width: 40px; height: 40px; }
main.hp-redesign .hp-industry-card:before { content: ""; display: block; width: 100%; height: 1px; background: rgba(255,255,255,.4); margin: 14px 0; position: relative; order: 1; }
main.hp-redesign .hp-industry-card span { font-size: 14px; font-weight: 700; text-transform: uppercase; text-align: center; line-height: 1.4; order: 2; }

/* 9. Dự án tiêu biểu */
main.hp-redesign .hp-project-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px 48px; }
main.hp-redesign .hp-project-item { display: flex; align-items: flex-start; gap: 16px; }
main.hp-redesign .hp-project-item .hp-project-thumb { flex: 0 0 auto; width: 132px; height: 88px; border-radius: 8px; overflow: hidden; }
main.hp-redesign .hp-project-item .hp-project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
main.hp-redesign .hp-project-item:hover .hp-project-thumb img { transform: scale(1.08); }
main.hp-redesign .hp-project-item .hp-project-date { font-size: 12px; color: #8592a8; margin-bottom: 6px; }
main.hp-redesign .hp-project-item h3 { font-size: 15px; font-weight: 700; color: #0b1f3d !important; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
main.hp-redesign .hp-project-item:hover h3 { color: #1a56db !important; }

/* 10. Quy trình triển khai */
main.hp-redesign .hp-process-row { display: flex; justify-content: space-between; position: relative; }
main.hp-redesign .hp-process-row:before { content: ""; position: absolute; top: 24px; left: 5%; right: 5%; height: 0; border-top: 2px dashed #c7d6f2; z-index: 0; }
main.hp-redesign .hp-process-step { flex: 1; text-align: center; position: relative; z-index: 1; padding: 0 6px; }
main.hp-redesign .hp-process-num { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: #fff; border: 2px solid #1a56db; color: #1a56db; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
main.hp-redesign .hp-process-step h4 { font-size: 13px; font-weight: 700; color: #0b1f3d; }

/* 11. Đồng hành sau triển khai */
main.hp-redesign .hp-support-band { background: linear-gradient(120deg,#0b2f77,#1a56db); border-radius: 16px; padding: 40px; color: #fff; display: flex; align-items: center; gap: 40px; }
main.hp-redesign .hp-support-media { flex: 0 0 32%; text-align: center; }
main.hp-redesign .hp-support-text { flex: 1; }
main.hp-redesign .hp-support-text h2 { font-size: 24px; font-weight: 800; margin-bottom: 20px; color: #fff; }
main.hp-redesign .hp-support-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
main.hp-redesign .hp-support-list li { position: relative; padding-left: 24px; font-size: 14px; }
main.hp-redesign .hp-support-list li:before { content: "✓"; position: absolute; left: 0; top: 0; color: #7fd858; font-weight: 700; }

/* 12. Đối tác */
main.hp-redesign .hp-partner-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
main.hp-redesign .hp-partner-card { background: #fff; border: 1px solid #e9eef7; border-radius: 10px; padding: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(11,31,61,.05); }
main.hp-redesign .hp-partner-card img { max-height: 48px; width: auto; filter: grayscale(20%); }

/* 13. Testimonial (restyle sẵn có, không đổi markup/data) */
main.hp-redesign .section-testimonial .news-item { background: #fff; border: 1px solid #e9eef7; border-radius: 12px; box-shadow: 0 2px 10px rgba(11,31,61,.06); padding: 20px; height: 100%; }
main.hp-redesign .section-testimonial .item-inner { display: flex; flex-direction: column; gap: 12px; }
main.hp-redesign .section-testimonial .item-image img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
main.hp-redesign .section-testimonial .item-title-a { font-weight: 700; font-size: 14px; color: #0b1f3d; }
main.hp-redesign .section-testimonial .item-description { font-size: 13px; color: #5b6b85; line-height: 1.6; }

/* Mobile */
@media (max-width: 768px) {
  main.hp-redesign .container { padding: 0 16px; }
  main.hp-redesign .hp-title { font-size: 22px; }
  main.hp-redesign .hp-subtitle { font-size: 14px; margin-bottom: 24px; }
  main.hp-redesign .hp-section { padding: 36px 0; }

  main.hp-redesign .hp-hero { background-image: none !important; aspect-ratio: auto; min-height: 0; padding: 32px 0; }
  main.hp-redesign .hp-hero-inner { flex-direction: column; }
  main.hp-redesign .hp-hero-text,
  main.hp-redesign .hp-hero-media { flex: none; width: 100%; }
  main.hp-redesign .hp-hero-text h1 { font-size: 24px; }
  main.hp-redesign .hp-hero-media { margin-top: 24px; }

  main.hp-redesign .hp-news-grid { grid-template-columns: 1fr; }
  main.hp-redesign .hp-news-card { flex-direction: row; }
  main.hp-redesign .hp-news-card .hp-news-img { flex: 0 0 110px; aspect-ratio: auto; }
  main.hp-redesign .hp-news-card .hp-news-body { padding: 10px 12px; }
  main.hp-redesign .hp-news-card h3 { font-size: 13px; }

  main.hp-redesign .hp-stats-grid { grid-template-columns: repeat(3,1fr); gap: 16px; }
  main.hp-redesign .hp-stat-num { font-size: 20px; }

  main.hp-redesign .hp-split,
  main.hp-redesign .hp-split.hp-split-reverse { flex-direction: column; }
  main.hp-redesign .hp-split-text,
  main.hp-redesign .hp-split-media { flex: none; width: 100%; }
  main.hp-redesign .hp-split-media { margin-top: 20px; order: 2; }

  main.hp-redesign .hp-why-grid { grid-template-columns: 1fr; }
  main.hp-redesign .hp-eco-row { flex-direction: column; gap: 28px; }
  main.hp-redesign .hp-eco-arrow { margin-top: 0; transform: rotate(90deg); }
  main.hp-redesign .hp-industry-grid { grid-template-columns: 1fr; }
  main.hp-redesign .hp-project-list { grid-template-columns: 1fr; gap: 20px; }

  main.hp-redesign .hp-process-row { flex-wrap: wrap; row-gap: 24px; }
  main.hp-redesign .hp-process-row:before { display: none; }
  main.hp-redesign .hp-process-step { flex: 0 0 33.33%; }

  main.hp-redesign .hp-support-band { flex-direction: column; padding: 28px 20px; text-align: center; }
  main.hp-redesign .hp-support-list { grid-template-columns: 1fr; text-align: left; }

  main.hp-redesign .hp-partner-grid { grid-template-columns: repeat(3,1fr); }
}
