/* Nika Growth Hub – Mega menu & trang dịch vụ. Màu nhận diện Nika: xanh lá #218738 / #5fc53f. */
:root {
	--ngh-g1: #218738; --ngh-g2: #5fc53f; --ngh-ink: #14231a; --ngh-mute: #5d6b62;
	--ngh-bg: #f3f8f4; --ngh-line: #e2ebe4; --ngh-orange: #f7931e; --ngh-r: 16px;
}

/* ---------- Thumb chữ cái theo nhóm ---------- */
.ngh-thumb { width: 80px; height: 60px; flex: 0 0 80px; border-radius: 12px; object-fit: cover;
	display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: #fff;
	background: linear-gradient(135deg, var(--ngh-g1), var(--ngh-g2)); letter-spacing: .5px; }
.ngh-mega, .ngh-mega *, .ngh-lp, .ngh-lp *, .ngh-cards, .ngh-cards * { box-sizing: border-box; }
.ngh-thumb--website, .ngh-tab__icon { background: linear-gradient(135deg, var(--ngh-g1), var(--ngh-g2)); }
.ngh-thumb--marketing { background: linear-gradient(135deg, #0f5132, #2fb36a); }
.ngh-thumb--brand { background: linear-gradient(135deg, #8a3ffc, #d16ba5); }
.ngh-thumb--media { background: linear-gradient(135deg, #c2410c, #f59e0b); }
.ngh-thumb--ai { background: linear-gradient(135deg, #312e81, #7c3aed 60%, #06b6d4); }
.ngh-thumb--infra { background: linear-gradient(135deg, #0c4a6e, #0ea5e9); }
.ngh-thumb--partner { background: linear-gradient(135deg, #7c2d12, #f7931e); }

/* ---------- Mega menu (desktop) ---------- */
.ngh-mega { display: grid; grid-template-columns: 300px 1fr; gap: 24px; width: min(1180px, 96vw); padding: 20px;
	background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(20, 35, 26, .14); text-align: left; font-size: 15px; }
.ngh-mega__side { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--ngh-bg); border-radius: var(--ngh-r); }
.ngh-tab { display: flex; gap: 12px; align-items: center; width: 100%; margin: 0; padding: 12px 14px; border: 2px solid transparent;
	background: transparent; border-radius: 14px; cursor: pointer; text-align: left; text-transform: none; letter-spacing: 0; min-height: 0; line-height: 1.3; }
.ngh-tab:hover, .ngh-tab.is-active { background: #fff; border-color: var(--ngh-g2); }
.ngh-tab__icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; }
.ngh-tab__txt strong { display: block; color: var(--ngh-ink); font-size: 15px; }
.ngh-tab.is-active .ngh-tab__txt strong { color: var(--ngh-g1); }
.ngh-tab__txt small { display: block; color: var(--ngh-mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.ngh-hotline { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; color: var(--ngh-ink) !important; }
.ngh-hotline__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--ngh-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.ngh-hotline strong { display: block; font-size: 20px; letter-spacing: .5px; }
.ngh-hotline small { color: var(--ngh-mute); }

.ngh-pane { display: none; }
.ngh-pane.is-active { display: block; }
.ngh-pane__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--ngh-line); }
.ngh-pane__title { margin: 0; font-size: 24px; font-weight: 800; color: var(--ngh-ink); }
.ngh-pane__sub { margin: 0; color: var(--ngh-mute); }
.ngh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.ngh-item { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; color: var(--ngh-ink) !important; transition: background .15s; }
.ngh-item:hover { background: var(--ngh-bg); }
.ngh-item strong { display: block; font-size: 16px; line-height: 1.3; }
.ngh-item small { display: block; color: var(--ngh-mute); font-size: 13.5px; line-height: 1.45; margin-top: 3px; }
.ngh-badge { margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: #fff3e0; color: #c2410c; font-size: 11px; font-style: normal; font-weight: 700; vertical-align: middle; }
.ngh-pane__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--ngh-bg); font-weight: 700; }
.ngh-pane__foot a { color: var(--ngh-g1) !important; }

/* Flatsome: dropdown chứa mega menu – bỏ chia cột/chiều cao cố định của CSS menu cũ (thang.css: column-count 3) */
.nav-dropdown .ngh-mega { margin: 0 auto; }
.has-dropdown .nav-dropdown:has(.ngh-mega),
.menu-item-has-block .nav-dropdown:has(.ngh-mega) {
	padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
	min-width: 0; width: auto !important; height: auto !important; max-height: none !important;
	columns: auto !important; column-count: auto !important; column-gap: normal !important; white-space: normal !important;
}
.nav-dropdown:has(.ngh-mega)::before, .nav-dropdown:has(.ngh-mega)::after { display: none !important; }
/* Căn giữa mega menu theo thanh menu chính (không tràn mép màn hình) */
.header-nav-main > li.menu-item-has-block:has(.ngh-mega),
.header-nav-main:has(.ngh-mega),
.header-inner .flex-col:has(.ngh-mega) { position: static !important; }
.header-main:has(.ngh-mega) { position: relative; }
.header-nav-main > li.menu-item-has-block > .nav-dropdown:has(.ngh-mega) .ngh-mega { width: min(1180px, calc(100vw - 32px)); }
.header-nav-main > li.menu-item-has-block > .nav-dropdown:has(.ngh-mega) { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; margin: 0 !important; top: 100% !important; }
.header-nav-main > li.menu-item-has-block:has(.ngh-mega)::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; } /* cầu nối hover */
.ngh-mega .ngh-tab, .ngh-mega .ngh-item { break-inside: avoid; }

/* ---------- Mega menu mobile ---------- */
.ngh-mmobile details { border-bottom: 1px solid var(--ngh-line); }
.ngh-mmobile summary { padding: 12px 4px; font-weight: 700; cursor: pointer; list-style: none; }
.ngh-mmobile summary::after { content: '+'; float: right; color: var(--ngh-g1); }
.ngh-mmobile details[open] summary::after { content: '–'; }
.ngh-mmobile ul { margin: 0 0 10px; padding: 0 0 0 10px; list-style: none; }
.ngh-mmobile li a { display: block; padding: 8px 0; }
.ngh-mmobile__call { display: block; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--ngh-g1); color: #fff !important; text-align: center; font-weight: 700; }

/* ---------- Lưới thẻ dịch vụ ---------- */
.ngh-cards { display: grid; gap: 16px; }
.ngh-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ngh-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ngh-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ngh-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--ngh-line); border-radius: var(--ngh-r); background: #fff; color: var(--ngh-ink) !important; transition: transform .15s, box-shadow .15s; }
.ngh-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 35, 26, .08); }
.ngh-card strong { font-size: 17px; }
.ngh-card span:last-child { color: var(--ngh-mute); font-size: 14.5px; }

/* ---------- Landing ---------- */
.ngh-lp { color: var(--ngh-ink); }
.ngh-wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.ngh-hero { padding: 64px 0 48px; background: radial-gradient(1200px 400px at 80% -10%, #e4f7e6 0, transparent 60%), linear-gradient(#fbfffb, #fff); }
.ngh-eyebrow { margin: 0 0 10px; color: var(--ngh-g1); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.ngh-hero h1 { margin: 0 0 16px; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; font-weight: 800; max-width: 900px; }
.ngh-lead { font-size: 18px; line-height: 1.6; color: #34433a; max-width: 820px; }
.ngh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.ngh-chips li { margin: 0; padding: 6px 12px; border: 1px solid var(--ngh-line); border-radius: 99px; background: #fff; font-size: 14px; }
.ngh-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 28px; }
.ngh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 99px; font-weight: 700; border: 2px solid var(--ngh-g1); text-decoration: none !important; }
.ngh-btn--primary { background: linear-gradient(90deg, var(--ngh-g2), var(--ngh-g1)); color: #fff !important; border-color: transparent; }
.ngh-btn--ghost { color: var(--ngh-g1) !important; background: #fff; }
.ngh-btn--light { background: #fff; color: var(--ngh-g1) !important; border-color: #fff; }
.ngh-summary { max-width: 860px; padding: 18px 22px; border-left: 4px solid var(--ngh-g2); border-radius: 12px; background: var(--ngh-bg); }
.ngh-summary__t { margin: 0 0 6px; font-weight: 800; }
.ngh-summary ul { margin: 0; padding-left: 18px; }
.ngh-summary li { margin: 4px 0; }

.ngh-proof { background: var(--ngh-ink); color: #fff; }
.ngh-proof ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin: 0; padding: 18px 16px; list-style: none; font-weight: 700; }
.ngh-proof li { margin: 0; }
.ngh-proof li::before { content: '✓ '; color: var(--ngh-g2); }

.ngh-sec { padding: 56px 0; }
.ngh-sec--alt { background: var(--ngh-bg); }
.ngh-sec h2 { margin: 0 0 14px; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; font-weight: 800; }
.ngh-sec h3 { font-size: 18px; margin: 0 0 6px; }
.ngh-intro { color: var(--ngh-mute); max-width: 820px; margin-bottom: 22px; }
.ngh-pain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.ngh-pain li { margin: 0; padding: 16px 18px 16px 46px; border-radius: 14px; background: #fff7f5; position: relative; }
.ngh-pain li::before { content: '!'; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 50%; background: #e5484d; color: #fff; font-size: 13px; font-weight: 800; text-align: center; line-height: 20px; }
.ngh-offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ngh-offer__card { position: relative; padding: 22px; border-radius: var(--ngh-r); background: #fff; border: 1px solid var(--ngh-line); scroll-margin-top: 120px; }
.ngh-offer__card p { margin: 0; color: #3f4d44; }
.ngh-tag { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 99px; background: #e7f6ea; color: var(--ngh-g1); font-size: 12px; font-weight: 700; }
.ngh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: s; }
.ngh-steps li { margin: 0; padding: 20px; border-radius: var(--ngh-r); border: 1px solid var(--ngh-line); counter-increment: s; }
.ngh-steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 28px; font-weight: 800; color: var(--ngh-g2); margin-bottom: 6px; }
.ngh-steps p { margin: 0; color: #3f4d44; }
.ngh-pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ngh-pkg { display: flex; flex-direction: column; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--ngh-line); }
.ngh-pkg.is-hot { border: 2px solid var(--ngh-g2); box-shadow: 0 16px 40px rgba(33, 135, 56, .12); }
.ngh-pkg__for { color: var(--ngh-mute); margin: 0 0 10px; }
.ngh-pkg__price { font-size: 20px; font-weight: 800; color: var(--ngh-g1); margin: 0 0 12px; }
.ngh-pkg ul { flex: 1; margin: 0 0 18px; padding-left: 18px; }
.ngh-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ngh-why > div { padding: 20px; border-radius: var(--ngh-r); background: var(--ngh-bg); }
.ngh-why p { margin: 0; color: #3f4d44; }
.ngh-rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ngh-rel a { display: flex; flex-direction: column; gap: 10px; color: var(--ngh-ink) !important; }
.ngh-rel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.ngh-faq details { border-bottom: 1px solid var(--ngh-line); }
.ngh-faq summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.ngh-faq p { margin: 0 0 16px; color: #3f4d44; }
.ngh-cta { padding: 56px 0; background: linear-gradient(120deg, var(--ngh-g1), #145c27); color: #fff; }
.ngh-cta .ngh-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.ngh-cta h2 { color: #fff; margin: 0 0 10px; }
.ngh-cta p { color: #e6f4e9; margin: 0; }
.ngh-cta__form { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .1); }
.ngh-cta__form label, .ngh-cta__form .wpcf7 { color: #fff; }
.ngh-anchor { display: block; position: relative; top: -120px; visibility: hidden; }

/* ---------- Icon ảnh (icon cũ nika.vn + bộ SVG 3D mới) ---------- */
.ngh-thumb--img { width: 64px; height: 64px; flex: 0 0 64px; background: none !important; object-fit: contain; border-radius: 0; filter: drop-shadow(0 6px 10px rgba(20, 35, 26, .12)); transition: transform .2s; }
.ngh-item:hover .ngh-thumb--img, .ngh-card:hover .ngh-thumb--img { transform: translateY(-3px) rotate(-3deg) scale(1.04); }
.ngh-tab__icon--img { background: none !important; width: 42px; height: 42px; flex-basis: 42px; }
.ngh-tab__icon--img img { width: 42px; height: 42px; object-fit: contain; }

/* ---------- Hero 2 cột + ảnh 3D ---------- */
.ngh-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.ngh-hero__art { margin: 24px 0 0; align-self: start; }
.ngh-hero__art img { width: 100%; height: auto; display: block; animation: ngh-float 6s ease-in-out infinite; }
@keyframes ngh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Dải khách hàng chạy ngang ---------- */
.ngh-marquee { overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .12); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ngh-marquee__track { display: flex; width: max-content; gap: 40px; padding: 14px 0; animation: ngh-marquee 45s linear infinite; }
.ngh-marquee:hover .ngh-marquee__track { animation-play-state: paused; }
.ngh-marquee__track span { white-space: nowrap; color: #cfe8d5; font-weight: 600; font-size: 15px; }
.ngh-marquee .ngh-dup { display: contents; }
@keyframes ngh-marquee { to { transform: translateX(-50%); } }

/* ---------- Thẻ giải pháp có số thứ tự ---------- */
.ngh-offer__card { overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ngh-offer__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 35, 26, .1); border-color: var(--ngh-g2); }
.ngh-offer__num { position: absolute; right: 16px; top: 8px; font-size: 44px; font-weight: 800; color: var(--ngh-bg); line-height: 1; }

/* ---------- Bài phân tích ---------- */
.ngh-narrow { max-width: 860px; }
.ngh-article p { font-size: 17px; line-height: 1.75; color: #2f3d34; margin: 0 0 14px; }
.ngh-article h2 { position: relative; padding-left: 18px; }
.ngh-article h2::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 5px; background: linear-gradient(var(--ngh-g2), var(--ngh-g1)); }

/* ---------- Bảng so sánh ---------- */
.ngh-table { overflow-x: auto; border-radius: var(--ngh-r); border: 1px solid var(--ngh-line); }
.ngh-table table { width: 100%; min-width: 620px; border-collapse: collapse; margin: 0; }
.ngh-table th, .ngh-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--ngh-line); font-size: 15px; vertical-align: top; }
.ngh-table thead th { background: var(--ngh-ink); color: #fff; font-weight: 700; }
.ngh-table tbody th { font-weight: 700; background: #fafcfb; }
.ngh-table .is-nika { background: #eaf7ed; color: #14502a; font-weight: 700; }
.ngh-table thead .is-nika { background: linear-gradient(90deg, var(--ngh-g2), var(--ngh-g1)); color: #fff; }

/* ---------- Thẻ dự án ---------- */
.ngh-case { padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--ngh-line); transition: transform .2s, box-shadow .2s; }
.ngh-case:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 35, 26, .1); }
.ngh-case__img { display: block; overflow: hidden; border-radius: 12px; background: var(--ngh-bg); aspect-ratio: 16 / 10; }
.ngh-case__img img { transition: transform .4s; }
.ngh-case:hover .ngh-case__img img { transform: scale(1.05); }
.ngh-case .ngh-tag { align-self: flex-start; margin: 4px 0 0; }
.ngh-case__more { color: var(--ngh-g1); font-weight: 700; font-size: 14px; }

/* ---------- Hiện dần khi cuộn (CSS scroll-driven, trình duyệt cũ hiển thị bình thường) ---------- */
@supports (animation-timeline: view()) {
	.ngh-reveal > .ngh-wrap { animation: ngh-in linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
	@keyframes ngh-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 1024px) {
	.ngh-offer, .ngh-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ngh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ngh-cols-3, .ngh-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 849px) {
	.ngh-hero__grid { grid-template-columns: 1fr; }
	.ngh-hero__art { max-width: 520px; margin: 0 auto; }
	.ngh-mega { grid-template-columns: 1fr; width: 100%; box-shadow: none; }
	.ngh-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.ngh-hero { padding: 40px 0 32px; }
	.ngh-offer, .ngh-rel, .ngh-steps, .ngh-pain, .ngh-cols-2, .ngh-cols-3, .ngh-cols-4 { grid-template-columns: 1fr; }
	.ngh-cta .ngh-wrap { grid-template-columns: 1fr; }
	.ngh-btn { width: 100%; }
	.ngh-proof ul { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.ngh-card, .ngh-item, .ngh-offer__card, .ngh-case, .ngh-thumb--img { transition: none; }
	.ngh-hero__art img, .ngh-marquee__track, .ngh-reveal > .ngh-wrap { animation: none !important; }
	.ngh-marquee__track { flex-wrap: wrap; width: auto; }
	.ngh-marquee .ngh-dup { display: none; }
}

/* ---------- Bài viết liên quan (NGH_Linker) ---------- */
.ngh-related { margin: 40px 0 10px; padding-top: 24px; border-top: 1px solid #e2ebe4; }
.ngh-related__t { font-size: 22px; margin: 0 0 14px; }
.ngh-related__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ngh-related__item { display: flex; flex-direction: column; gap: 8px; color: #14231a !important; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.ngh-related__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.ngh-related__svc { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; background: #f3f8f4; }
.ngh-autolink { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 849px) { .ngh-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
