/* Trang giải pháp cải tạo HTXLNT (app/solutions/view.php). Dùng kèm blog.css (lưới bài viết, mục lục, .nh-prose) */

/* ảnh hero cùng tỉ lệ (ảnh công trình có ảnh dọc) */
.nh-sol .nh-lp-hero__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* phụ đề dưới H1 (nguyên văn tài liệu) */
.nh-sol-sub { margin-top: 14px; font-weight: 700; color: var(--g-dark); font-size: 16.5px; line-height: 1.55; }
.nh-sol .nh-lp-hero__lead { margin-top: 12px; }

/* 3 thông điệp dưới hero */
.nh-sol-pillars { background: var(--g-deep); color: #fff; padding: 26px 0; }
.nh-sol-pillars__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.nh-sol-pillar { display: flex; gap: 14px; align-items: flex-start; }
.nh-sol-pillar > span { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #8fe0a9; }
.nh-sol-pillar > span .ico { width: 24px; height: 24px; }
.nh-sol-pillar b { display: block; font-size: 16px; margin-bottom: 3px; }
.nh-sol-pillar p { color: #cfe6d6; font-size: 14px; line-height: 1.55; }

.nh-sol__grid { padding-top: 48px; }

/* mở bài */
.nh-sol-intro { margin-bottom: 26px; }
.nh-sol-tagline { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius); background: var(--g-tint); border: 1px solid #d7eadc; color: var(--g-deep); font-weight: 700; line-height: 1.55; }
.nh-sol-tagline .ico { flex: none; color: var(--g); margin-top: 3px; }
.nh-prose .nh-sol-up { font-size: 15px; color: var(--muted); }

/* nội dung */
.nh-sol-sec + .nh-sol-sec { margin-top: 2.6em; padding-top: .4em; }
.nh-sol-sec > h2:first-child { margin-top: 0; }
.nh-prose .nh-sol-sec > * + * { margin-top: 1em; }
.nh-prose .nh-sol-sec > h3, .nh-prose .nh-sol-sec > h4 { margin-top: 1.6em; }
.nh-prose .nh-sol-sec > h3 + p, .nh-prose .nh-sol-sec > h4 + p { margin-top: .5em; }
.nh-prose .nh-sol-callout { padding: 14px 18px; border-left: 4px solid var(--g); background: var(--g-tint); border-radius: 0 10px 10px 0; font-weight: 600; color: var(--g-deep); line-height: 1.65; }
.nh-prose .nh-sol-callout strong { color: var(--g); }
.nh-prose .nh-sol-label { margin-bottom: -.4em; }
.nh-prose li strong { color: var(--g-deep); }

/* thẻ ngắn (lợi ích, lý do chọn): lưới 2 cột, ô số nhỏ cạnh tiêu đề */
.nh-sol-cards, .nh-sol-rows { counter-reset: solcard; margin-top: 1.3em; }
.nh-sol-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nh-sol-card { counter-increment: solcard; position: relative; display: flex; flex-direction: column; }
.nh-sol-cards .nh-sol-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: #fff; font-size: 15.5px; line-height: 1.7; color: #3a4a41; transition: border-color .2s, box-shadow .2s; }
.nh-sol-cards .nh-sol-card:hover { border-color: #bfe0c9; box-shadow: 0 10px 24px rgba(16, 60, 34, .07); }
.nh-prose .nh-sol-card h3 { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: 17px; font-weight: 800; color: var(--g-deep); line-height: 1.45; }
.nh-prose .nh-sol-card h3::before { content: counter(solcard, decimal-leading-zero); flex: none; width: 32px; height: 32px; margin-top: -3px; border-radius: 9px; background: var(--g-soft); color: var(--g-dark); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.nh-prose .nh-sol-cards .nh-sol-card h3 + p { margin-top: 8px; padding-left: 44px; }

/* thẻ dài (vấn đề thường gặp…): danh sách dọc, mỗi mục một hàng */
.nh-sol-rows { border-top: 1px solid var(--line); }
.nh-sol-row { padding: 22px 0 24px 52px; border-bottom: 1px solid var(--line); }
.nh-prose .nh-sol-row h3 { margin-left: -52px; font-size: 18.5px; gap: 20px; }
.nh-prose .nh-sol-row h3::before { width: 34px; height: 34px; margin-top: -4px; background: var(--g); color: #fff; }
.nh-prose .nh-sol-row > * + * { margin-top: .6em; }
.nh-prose .nh-sol-row > h3 + * { margin-top: .5em; }
.nh-sol-row ul { padding-left: 1.2em; }
.nh-prose .nh-sol-row .nh-sol-callout { margin-top: .9em; padding: 0 0 0 14px; border-left: 3px solid var(--g); background: none; border-radius: 0; font-weight: 600; color: var(--g-dark); font-size: 15.5px; }

.nh-prose .nh-sol-card__more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--o-dark); }
.nh-prose .nh-sol-cards .nh-sol-card__more { padding-left: 44px; }
.nh-sol-card__more .ico { width: 16px; height: 16px; transition: transform .2s; }
.nh-sol-card__more:hover { color: var(--o); }
.nh-sol-card__more:hover .ico { transform: translateX(3px); }

/* quy trình */
.nh-prose .nh-sol-steps { list-style: none; padding: 0; margin-top: 1.2em; display: grid; gap: 12px; }
.nh-sol-steps > li { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0; }
.nh-sol-steps__no { display: inline-block; text-align: center; padding: 6px 0; border-radius: 8px; background: var(--g); color: #fff; font-weight: 800; font-size: 13.5px; }
.nh-sol-steps b { display: block; color: var(--g-deep); font-size: 16.5px; line-height: 1.45; }
.nh-sol-steps p { margin-top: 4px; font-size: 15.5px; line-height: 1.65; color: #34443b; }

/* CTA giữa bài */
.nh-sol-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 2.4em 0; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(120deg, var(--g-deep), var(--g-dark)); color: #fff; }
.nh-sol-band b { display: block; font-size: 18px; }
.nh-sol-band span { color: #cfe6d6; font-size: 14.5px; }
.nh-sol-band .nh-btn { flex: none; }

/* FAQ */
.nh-sol-faq { margin-top: 3em; }
.nh-sol-faq > h2 { font-size: 24px; color: var(--g-deep); margin-bottom: 18px; scroll-margin-top: 110px; }
.nh-sol-faq { scroll-margin-top: 110px; }

/* khung liên hệ cuối bài */
.nh-sol-ask { margin-top: 3em; padding: 28px 30px; border-radius: 16px; background: var(--g-tint); border: 1px solid #d7eadc; scroll-margin-top: 110px; }
.nh-sol-ask > h2 { font-size: 21px; color: var(--g-deep); line-height: 1.4; }
.nh-sol-ask > p { margin-top: 10px; color: #34443b; }
.nh-sol-ask__list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.nh-sol-ask__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.nh-sol-ask__list .nh-check { flex: none; margin-top: 2px; }
.nh-sol-ask > .nh-sol-ask__closing { margin-top: 16px; font-weight: 700; color: var(--g-deep); }
.nh-sol-ask__cta .nh-btn--white { border: 1.5px solid #cfe3d5; color: var(--g-deep); }
.nh-sol-ask__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.nh-sol-ask__area { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--muted); }
.nh-sol-ask__area .ico { flex: none; color: var(--g); margin-top: 2px; }

.nh-sol-ask > .nh-sol-ask__q { margin-top: 12px; font-weight: 700; font-size: 16.5px; color: var(--ink); }
.nh-sol-ask__co { margin-top: 22px; padding-top: 18px; border-top: 1px dashed #c6dccd; display: grid; gap: 8px; font-size: 14.5px; }
.nh-sol-ask__co > b { color: var(--g-deep); letter-spacing: .02em; }
.nh-sol-ask__ctaline { font-weight: 700; color: var(--o-dark); }
.nh-sol-ask__links a { color: var(--g); text-decoration: underline; text-underline-offset: 2px; }
.nh-sol-ask__links span { margin: 0 8px; color: var(--muted); }
.nh-sol-ask__slogan { font-style: italic; color: var(--muted); }

/* thanh bên: trang đang xem */
.nh-side-box li a.is-cur { color: var(--g); }

@media (max-width: 1100px) {
  .nh-sol-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .nh-sol-pillars__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nh-sol__grid { padding-top: 32px; }
}
@media (max-width: 640px) {
  .nh-sol-row { padding-left: 0; }
  .nh-prose .nh-sol-row h3 { margin-left: 0; gap: 12px; }
  .nh-sol-steps > li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .nh-sol-steps__no { justify-self: start; padding: 4px 12px; }
  .nh-sol-band { flex-direction: column; align-items: flex-start; }
  .nh-sol-ask { padding: 22px 18px; }
  .nh-sol-ask__list { grid-template-columns: minmax(0, 1fr); }
  .nh-sol-ask__cta .nh-btn { width: 100%; }
}

/* hình ảnh thực tế */
.nh-sol-gallery { margin-top: 3em; scroll-margin-top: 110px; }
.nh-sol-gallery h2 { font-size: 24px; font-weight: 800; color: var(--g-deep); margin: 0 0 16px; }
.nh-sol-gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nh-sol-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.nh-sol-gallery figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.nh-sol-gallery figure:hover img { transform: scale(1.03); }
.nh-sol-gallery figure .nh-pic { display: block; overflow: hidden; }
.nh-sol-gallery figcaption { padding: 10px 14px 12px; font-size: 14px; line-height: 1.5; color: #4a5a51; }
@media (max-width: 640px) { .nh-sol-gallery__grid { gap: 10px; } .nh-sol-gallery figcaption { font-size: 13px; padding: 8px 10px 10px; } }
