/* ==========================================================================
   Wanhe Testing — jx486.com-aligned components
   Blog list & detail, FAQ library, Factory, Solutions, case grid,
   plus hardened mobile navigation.
   Loaded after main.css so these overrides win.
   ========================================================================== */

/* ------------------------------------------------------------- Page hero */
.page-hero {
	background: linear-gradient(120deg, rgba(10, 36, 99, .94), rgba(30, 75, 148, .88));
	color: #fff;
	padding: 72px 0 64px;
	position: relative;
	overflow: hidden;
}
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(600px 300px at 85% 20%, rgba(230, 179, 37, .18), transparent 60%),
		radial-gradient(500px 320px at 10% 90%, rgba(37, 99, 235, .25), transparent 60%);
	pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
	font-size: 42px; line-height: 1.22; font-weight: 800;
	margin: 0 0 16px; color: #fff;
}
.page-hero h1 em { font-style: normal; color: #E6B325; }
.page-hero .page-hero-title { font-size: 40px; }
.page-hero-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .22);
	color: #E2E8F0; font-size: 13px; font-weight: 600;
	letter-spacing: 1.6px; text-transform: uppercase;
	padding: 7px 16px; border-radius: 30px; margin-bottom: 20px;
}
.page-hero-desc { font-size: 16px; color: #E2E8F0; max-width: 760px; line-height: 1.8; margin: 0 0 26px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-bottom: 34px; }
.hero-feature-item { display: flex; align-items: center; gap: 9px; font-size: 15px; color: #E2E8F0; }
.hero-feature-item i {
	font-style: normal; width: 20px; height: 20px; border-radius: 50%;
	background: rgba(230, 179, 37, .2); color: #E6B325;
	font-size: 12px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-btns .btn { border: none; }

/* Reference buttons */
.btn-gold { background: #E6B325; color: #0A2463; border: none !important; }
.btn-gold:hover { background: #D4A017; color: #0A2463 !important; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(230, 179, 37, .35); }
.btn-outline-hero { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .65) !important; }
.btn-outline-hero:hover { background: rgba(255, 255, 255, .14); color: #fff !important; }
.btn-outline-dark { background: transparent; color: #0A2463; border: 1.5px solid #1E4B94 !important; }
.btn-outline-dark:hover { background: #EFF6FF; color: #0A2463 !important; }

/* ------------------------------------------------------------- Blog list */
.blog-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-card {
	background: #fff; border: 1px solid #F1F5F9; border-radius: 12px;
	padding: 26px 28px; box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
	display: flex; gap: 22px; align-items: flex-start;
	transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(10, 36, 99, .15); border-color: #2563EB; }
.news-date-box {
	flex-shrink: 0; width: 72px; height: 72px; border-radius: 12px;
	background: linear-gradient(135deg, #1E4B94, #0A2463); color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
}
.news-date-box .d { font-size: 24px; font-weight: 800; }
.news-date-box .m { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #CBD5E1; }
.news-card-body { flex: 1; min-width: 0; }
.news-meta { font-size: 12.5px; color: #64748B; margin-bottom: 8px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.news-meta i { font-style: normal; color: #2563EB; font-weight: 600; }
.news-meta a { color: #2563EB; }
.news-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.45; }
.news-card h3 a { color: #0A2463; }
.news-card h3 a:hover { color: #2563EB; }
.news-card p { margin: 0 0 12px; font-size: 14.5px; color: #64748B; line-height: 1.7; }
.news-read-more { font-size: 14px; font-weight: 600; color: #2563EB; }
.news-read-more:hover { color: #1E4B94; }

/* ------------------------------------------------------------- Article detail */
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.article-card {
	background: #fff; border: 1px solid #F1F5F9; border-radius: 12px;
	padding: 44px; box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
	min-width: 0;
}
.article-meta {
	display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: #64748B;
	margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid #F1F5F9;
}
.article-meta i { font-style: normal; color: #2563EB; font-weight: 600; }
.article-head h1 { font-size: 32px; line-height: 1.3; color: #0A2463; margin: 0; }
.article-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; margin: 0 0 26px; display: block; }
.article-body { font-size: 16px; line-height: 1.9; color: #334155; }
.article-body h2 { color: #0A2463; font-size: 24px; margin: 34px 0 14px; }
.article-body h3 { color: #0A2463; font-size: 20px; margin: 26px 0 12px; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.article-body ul { padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.article-tags span { background: #EFF6FF; color: #1E4B94; font-size: 13px; padding: 5px 14px; border-radius: 20px; }
.article-nav {
	display: flex; justify-content: space-between; gap: 16px;
	margin-top: 34px; padding-top: 24px; border-top: 1px solid #F1F5F9;
	font-size: 14px; font-weight: 600;
}
.article-nav a { color: #2563EB; max-width: 48%; }
.article-nav a:first-child { color: #64748B; }
.article-nav a:hover { color: #1E4B94; }

/* ------------------------------------------------------------- Sidebar */
.side-card {
	background: #fff; border: 1px solid #F1F5F9; border-radius: 12px;
	padding: 26px; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); margin-bottom: 24px;
}
.side-card h3 {
	font-size: 16px; color: #0A2463; margin: 0 0 16px;
	padding-bottom: 12px; border-bottom: 1px solid #F1F5F9; position: relative;
}
.side-card h3::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 36px; height: 3px; background: #E6B325; border-radius: 2px; }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li { margin-bottom: 10px; }
.side-card li a { color: #334155; font-size: 14px; }
.side-card li a:hover { color: #2563EB; }
.side-recent li { display: flex; flex-direction: column; gap: 2px; }
.side-recent time { font-size: 12px; color: #94A3B8; }
.side-products .sp-link { display: flex; gap: 12px; align-items: center; }
.side-products .sp-thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.side-products .sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-products .sp-info { display: flex; flex-direction: column; min-width: 0; }
.side-products strong { font-size: 14px; color: #0A2463; }
.side-products small { font-size: 12px; color: #94A3B8; }
.side-cta p { font-size: 14px; color: #64748B; line-height: 1.7; margin: 0 0 16px; }
.side-cta .btn { width: 100%; text-align: center; }

/* ------------------------------------------------------------- FAQ library */
.faq-container { max-width: 920px; margin-left: auto; margin-right: auto; }
.faq-cat {
	background: #fff; border: 1px solid #F1F5F9; border-radius: 12px;
	padding: 28px; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); margin-bottom: 26px;
}
.faq-cat-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #F1F5F9; }
.fc-ico {
	width: 34px; height: 34px; border-radius: 9px;
	background: linear-gradient(135deg, #2563EB, #1E4B94); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.faq-cat-title { font-size: 19px; color: #0A2463; margin: 0 0 4px; }
.faq-cat-desc { font-size: 13.5px; color: #64748B; margin: 0; }
.faq-cat-count {
	margin-left: auto; flex-shrink: 0; font-size: 12px; font-weight: 600;
	color: #1E4B94; background: #EFF6FF; border: 1px solid #D9E4FB;
	padding: 4px 12px; border-radius: 20px; white-space: nowrap;
}
.faq-wrap { display: flex; flex-direction: column; }
.faq-item {
	background: #fff; border: 1px solid #F1F5F9; border-radius: 10px;
	margin-bottom: 14px; transition: all .3s cubic-bezier(.4, 0, .2, 1); overflow: hidden;
}
.faq-item:hover { box-shadow: 0 2px 8px rgba(15, 23, 42, .06); border-color: #2563EB; }
.faq-toggle { display: none; }
.faq-question {
	font-size: 16px; font-weight: 600; color: #0A2463;
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 20px 24px; cursor: pointer; user-select: none;
}
.faq-question::after { content: '+'; color: #E6B325; font-size: 22px; font-weight: 500; transition: transform .3s ease, color .3s ease; flex-shrink: 0; }
.faq-answer {
	color: #64748B; font-size: 15px; padding: 0 24px;
	max-height: 0; overflow: hidden; line-height: 1.8;
	transition: max-height .35s ease, padding .35s ease;
}
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin: 0; }
.faq-toggle:checked + .faq-question + .faq-answer { max-height: 600px; padding-top: 14px; padding-bottom: 22px; border-top: 1px solid #F1F5F9; }
.faq-toggle:checked + .faq-question { color: #2563EB; }
.faq-toggle:checked + .faq-question::after { content: '−'; transform: rotate(180deg); color: #2563EB; }
.faq-cta { text-align: center; margin-top: 34px; }
.faq-cta p { font-size: 15px; color: #64748B; margin-bottom: 16px; }

/* FAQ on product / blog detail pages */
.faq-detail-section .faq-container { max-width: 920px; }
.product-faq .faq-container, .product-faq { max-width: 100%; }
.product-faq .section-desc { text-align: center; color: #64748B; max-width: 720px; margin: 8px auto 32px; }
.section-head { text-align: center; }
.section-head .section-desc { font-size: 15px; color: #64748B; max-width: 720px; margin: 0 auto; line-height: 1.8; }
.section-head .section-title { margin-bottom: 14px; }

/* ------------------------------------------------------------- Factory */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.factory-stats { padding: 48px 0 8px; }
.data-card {
	background: #fff; border: 1px solid #F1F5F9; border-radius: 12px;
	padding: 30px 20px; text-align: center;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .06); transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.data-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(10, 36, 99, .15); }
.data-num { font-size: 40px; font-weight: 800; color: #0A2463; line-height: 1.1; display: block; }
.data-num i { font-style: normal; color: #E6B325; font-size: 24px; margin-left: 2px; }
.data-label { font-size: 14px; color: #64748B; margin-top: 8px; display: block; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item {
	border-radius: 12px; overflow: hidden; position: relative; height: 240px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
	transition: all .3s cubic-bezier(.4, 0, .2, 1); margin: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, .12); }
.gallery-item .cap {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 12px 16px; background: linear-gradient(transparent, rgba(10, 36, 99, .88));
	color: #fff; font-size: 14px; font-weight: 600; text-align: center;
}
.advantage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.strength-point {
	background: #fff; border: 1px solid #F1F5F9; border-radius: 12px;
	padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .06); transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.strength-point:hover { transform: translateY(-3px); border-color: #2563EB; }
.sp-icon {
	width: 46px; height: 46px; border-radius: 10px;
	background: linear-gradient(135deg, #EFF6FF, #DBEAFE); color: #2563EB;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sp-icon svg { width: 24px; height: 24px; }
.strength-point h3 { font-size: 16px; color: #0A2463; margin: 0 0 6px; }
.strength-point p { font-size: 14px; color: #64748B; line-height: 1.7; margin: 0; }

/* ------------------------------------------------------------- Solutions */
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.sol-card {
	background: #fff; border-radius: 12px; padding: 32px;
	border: 1px solid #F1F5F9; box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
	transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.sol-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, .12); border-color: #2563EB; }
.sol-icon {
	width: 60px; height: 60px; border-radius: 14px; font-size: 28px;
	background: linear-gradient(135deg, #EFF6FF, #DBEAFE); color: #2563EB;
	display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.sol-icon svg { width: 30px; height: 30px; }
.sol-card h3 { font-size: 18px; color: #0A2463; margin: 0 0 10px; }
.sol-card > p { font-size: 14.5px; color: #64748B; line-height: 1.75; margin: 0 0 16px; }
.sol-feature-list { list-style: none; margin: 0; padding: 0; }
.sol-feature-list li { position: relative; padding-left: 20px; font-size: 14px; color: #334155; margin-bottom: 7px; }
.sol-feature-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #E6B325; font-weight: 700; }
.sol-step {
	display: inline-flex; width: 44px; height: 44px; border-radius: 10px;
	background: linear-gradient(135deg, #2563EB, #1E4B94); color: #fff;
	font-size: 17px; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 16px;
}

/* ------------------------------------------------------------- Case grid (reference look) */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-card {
	background: #fff; border-radius: 12px; overflow: hidden;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .06); transition: all .3s cubic-bezier(.4, 0, .2, 1);
	display: flex; flex-direction: column; margin: 0;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(15, 23, 42, .14); }
.case-card-media { position: relative; display: block; height: 200px; overflow: hidden; }
.case-card-media img, .case-card-media .ph-case { width: 100%; height: 100%; object-fit: cover; }
.case-location {
	position: absolute; bottom: 12px; left: 12px;
	background: rgba(10, 36, 99, .85); color: #fff; font-size: 12px; font-weight: 600;
	padding: 4px 10px; border-radius: 20px;
}
.case-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.case-card-title { font-size: 18px; color: #0A2463; margin: 0 0 10px; }
.case-card-title a { color: #0A2463; }
.case-card-title a:hover { color: #2563EB; }
.case-card-desc { font-size: 14px; color: #64748B; line-height: 1.7; margin: 0 0 12px; flex: 1; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tag {
	display: inline-block; background: #F8FAFC; color: #2563EB;
	font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 4px;
}

/* ------------------------------------------------------------- Global Partners (logo wall) */
.client-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; }
.client-logo-item {
	height: 80px; background: #fff; border: 1px solid #F1F5F9; border-radius: 8px;
	display: flex; align-items: center; justify-content: center;
	filter: grayscale(100%); opacity: .72;
	transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.client-logo-item:hover { filter: grayscale(0); opacity: 1; box-shadow: 0 6px 18px rgba(15, 23, 42, .1); }
.client-logo-item a { display: flex; align-items: center; justify-content: center; }
.client-logo-item img { max-height: 52px; max-width: 82%; object-fit: contain; }

/* ------------------------------------------------------------- Contact team (sales reps) */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 880px; margin: 0 auto; }
.team-card {
	background: #fff; border: 1px solid #F1F5F9; border-radius: 16px; padding: 34px 28px;
	text-align: center; box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
	transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .12); }
.team-avatar {
	width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; overflow: hidden;
	background: linear-gradient(135deg, #2563EB, #1E4B94); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 30px; font-weight: 700; letter-spacing: 1px;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: 20px; color: #0A2463; margin: 0 0 4px; }
.team-role { font-size: 13px; font-weight: 600; color: #2563EB; text-transform: uppercase; letter-spacing: 1.2px; margin: 0 0 12px; }
.team-slogan { font-size: 14.5px; color: #64748B; line-height: 1.75; margin: 0 0 18px; }
.team-social { display: flex; justify-content: center; gap: 10px; }
.team-social-link {
	width: 42px; height: 42px; border-radius: 50%; background: #1E4B94; color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 3px 10px rgba(30,75,148,.22);
	transition: all .25s ease;
}
.team-social-link:hover { background: #E6B325; color: #0A2463; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(230,179,37,.35); }

/* ------------------------------------------------------------- Misc page bits */
.no-posts { text-align: center; padding: 60px 20px; color: #64748B; font-size: 15px; }
.breadcrumbs { margin-top: 18px; }
.page-body { padding: 64px 0 80px; }

/* ------------------------------------------------------------- Hardened mobile nav */
@media (max-width: 900px) {
	.main-nav {
		position: fixed;
		top: 74px; left: 0; right: 0; bottom: 0;
		width: 100%; height: calc(100vh - 74px);
		z-index: 999;
		flex-direction: column; align-items: flex-start;
		background: #fff; padding: 24px 24px 48px;
		transform: translateX(100%);
		visibility: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transition: transform .35s ease, visibility .35s ease;
		box-shadow: -12px 0 40px rgba(10, 36, 99, .12);
	}
	.main-nav.is-open { transform: translateX(0); visibility: visible; }
	.nav-menu { flex-direction: column; width: 100%; gap: 2px; }
	.nav-menu > li { width: 100%; }
	.nav-menu > li > a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid #F1F5F9; border-radius: 0; }
	.nav-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-left: 2px solid #2563EB;
		border-radius: 0; margin-left: 10px; padding: 4px 0 8px 8px;
		width: auto; min-width: 0;
	}
	.nav-menu .sub-menu a { font-size: 15px; padding: 10px 8px; }
	.nav-cta-wrap { width: 100%; padding-top: 16px; }
	.nav-cta { width: 100%; }
	.nav-toggle { display: flex; z-index: 1001; }
	.nav-toggle-bar { background: #0F172A; }

	/* Layout stacks */
	.blog-layout { grid-template-columns: 1fr; }
	.article-layout { grid-template-columns: 1fr; }
	.solution-grid { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.advantage-list { grid-template-columns: 1fr; }
	.stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.article-card { padding: 28px 22px; }
	.page-hero { padding: 56px 0 48px; }
	.page-hero h1 { font-size: 32px; }
	.news-card { padding: 20px 18px; gap: 16px; }
	.news-date-box { width: 60px; height: 60px; }
	.news-date-box .d { font-size: 20px; }
	.faq-cat { padding: 20px 16px; }
	.faq-question { padding: 17px 18px; font-size: 15px; }
	.faq-answer { padding: 0 18px; }
	.faq-toggle:checked + .faq-question + .faq-answer { padding-top: 12px; padding-bottom: 18px; }
	.sol-card { padding: 24px 20px; }
	.client-logos { grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.team-grid { gap: 20px; }
}

@media (max-width: 600px) {
	.gallery-grid { grid-template-columns: 1fr; }
	.stats-row { grid-template-columns: repeat(2, 1fr); }
	.case-grid { grid-template-columns: 1fr; }
	.hero-features { gap: 12px 18px; }
	.hero-btns .btn { width: 100%; text-align: center; }
	.article-head h1 { font-size: 26px; }
	.page-hero h1 { font-size: 28px; }
	.news-card { flex-direction: column; }
	.faq-cat-head { flex-wrap: wrap; }
	.faq-cat-count { margin-left: 50px; }
	.client-logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.client-logo-item { height: 62px; }
	.team-grid { grid-template-columns: 1fr; }
	.team-card { padding: 28px 20px; }
}

/* ------------------------------------------------------- About page */
.about-story-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.about-story-img { border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(10,36,99,.14); }
.about-story-img img { width: 100%; height: auto; display: block; }
.about-story-body .section-eyebrow { color: #2563EB; }
.about-stats { margin-top: 8px; }
.about-chips { justify-content: flex-start; }
.about-section { margin-top: 72px; }
.about-section .section-head .section-title { margin-bottom: 8px; }

.milestone-list { list-style: none; margin: 34px 0 0; padding: 0; position: relative; }
.milestone-list::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg,#2563EB,#E6B325); border-radius: 2px; }
.milestone { display: grid; grid-template-columns: 130px 1fr; gap: 26px; position: relative; padding-bottom: 30px; }
.milestone:last-child { padding-bottom: 0; }
.milestone::before { content: ''; position: absolute; left: 3px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #2563EB; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.milestone-year { font-size: 17px; font-weight: 800; color: #0A2463; padding-left: 34px; line-height: 1.4; }
.milestone-body { background: #fff; border: 1px solid #F1F5F9; border-radius: 12px; padding: 20px 24px; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.milestone-title { font-size: 17px; color: #0A2463; margin: 0 0 6px; }
.milestone-desc { font-size: 14.5px; color: #64748B; line-height: 1.75; margin: 0; }

.value-card { background: linear-gradient(160deg,#0A2463,#1E4B94); border-radius: 14px; padding: 34px 28px; color: #fff; }
.value-card:nth-child(2) { background: linear-gradient(160deg,#1E4B94,#2563EB); }
.value-card:nth-child(3) { background: linear-gradient(160deg,#2563EB,#3B82F6); }
.value-title { font-size: 21px; margin: 0 0 10px; }
.value-desc { font-size: 15px; line-height: 1.8; opacity: .92; margin: 0; }

.standard-card { background: #fff; border: 1px solid #F1F5F9; border-radius: 14px; padding: 32px 26px; text-align: center; box-shadow: 0 2px 8px rgba(15,23,42,.06); transition: all .3s ease; }
.standard-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(10,36,99,.14); }
.standard-badge { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: #EFF6FF; color: #2563EB; font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.standard-title { font-size: 18px; color: #0A2463; margin: 0 0 8px; }
.standard-desc { font-size: 14.5px; color: #64748B; line-height: 1.7; margin: 0; }

.location-card { background: linear-gradient(135deg,#F8FAFC,#EFF6FF); border: 1px solid #D9E4FB; border-radius: 16px; padding: 40px; text-align: center; }
.location-card .section-eyebrow { color: #2563EB; }
.location-title { font-size: clamp(22px,2.6vw,30px); color: #0A2463; margin: 10px 0 12px; }
.location-desc { max-width: 760px; margin: 0 auto 22px; color: #475569; font-size: 15.5px; line-height: 1.8; }
.location-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.location-chips li { font-size: 13.5px; font-weight: 600; color: #1E4B94; background: #fff; border: 1px solid #D9E4FB; border-radius: 20px; padding: 6px 16px; }

/* ----------------------------------------------------- Privacy page */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-updated { display: inline-block; background: #EFF6FF; color: #1E4B94; font-size: 13px; font-weight: 600; border-radius: 6px; padding: 6px 14px; margin-bottom: 28px; }
.legal-block { margin-bottom: 30px; padding: 26px 30px; background: #fff; border: 1px solid #F1F5F9; border-radius: 14px; box-shadow: 0 2px 8px rgba(15,23,42,.05); }
.legal-block h2 { font-size: 19px; color: #0A2463; margin: 0 0 12px; }
.legal-block p, .legal-block li { font-size: 15px; color: #475569; line-height: 1.8; }
.legal-block ul { padding-left: 20px; margin: 0; }

/* --------------------------------------------------- WhatsApp entry */
.header-wa { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #25D366; background: #F0FDF4; border: 1px solid #B9F5CF; transition: all .25s ease; }
.header-wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.nav-cta-wrap { display: flex; align-items: center; gap: 12px; }

.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 999; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 10px 28px rgba(37,211,102,.4); transition: transform .25s ease, box-shadow .25s ease; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px rgba(37,211,102,.5); }
.wa-float-tip { position: absolute; right: 64px; top: 50%; transform: translateY(-50%) translateX(6px); background: #0F172A; color: #fff; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all .25s ease; }
.wa-float-tip::after { content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: #0F172A; }
.wa-float:hover .wa-float-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

.wa-circle { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,.38); transition: all .25s ease; vertical-align: middle; }
.wa-circle svg { width: 28px; height: 28px; }
.wa-circle:hover { transform: translateY(-2px) scale(1.05); background: #1EBE5B; color: #fff; }

/* ----------------------------------------------------- Cookie banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #0F172A; color: #E2E8F0; box-shadow: 0 -8px 30px rgba(15,23,42,.25); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { max-width: 1180px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 760px; }
.cookie-banner a { color: #93C5FD; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 9px 20px; font-size: 14px; }
.cookie-banner-actions .btn-outline { color: #E2E8F0; border-color: #475569; background: transparent; }
.cookie-banner-actions .btn-outline:hover { color: #fff; border-color: #94A3B8; }

/* ------------------------------------------------- Footer social icons */
.footer-social { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social .social-link { display: inline-flex; align-items: center; gap: 8px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #E2E8F0; justify-content: center; transition: all .25s ease; }
.footer-social .social-link svg { width: 17px; height: 17px; }
.footer-social .social-name { display: none; }
.footer-social .social-link:hover { background: #2563EB; color: #fff; transform: translateY(-2px); }
.footer-subtitle { font-size: 14px; color: #94A3B8; margin: 20px 0 0; font-weight: 600; }

@media (max-width: 900px) {
	.about-story-inner { grid-template-columns: 1fr; gap: 28px; }
	.about-section { margin-top: 52px; }
	.milestone { grid-template-columns: 1fr; gap: 10px; padding-left: 34px; }
	.milestone-year { padding-left: 0; }
	.cookie-banner-inner { flex-direction: column; align-items: flex-start; }
	.wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* ------------------------------------------------ Contact form states */
.form-success, .form-error { border-radius: 10px; padding: 14px 18px; font-size: 14.5px; line-height: 1.7; margin: 0 0 20px; }
.form-success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #047857; }
.form-error { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.consent-field .consent-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: #475569; line-height: 1.7; }
.consent-field input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: #2563EB; }
.consent-field a { color: #2563EB; text-decoration: underline; }
.consent-field small { color: #94A3B8; }
.wanhe-captcha input[type="number"] { max-width: 110px; }
.wanhe-captcha .req, .consent-field .req { color: #DC2626; }

/* ------------------------------------------------ Tag chips & entry tags (4th round) */
.article-tags.entry-tags { margin-top: 30px; padding-top: 22px; border-top: 1px solid #E2E8F0; align-items: center; }
.entry-tags-label { font-size: 14px; font-weight: 700; color: #0A2463; text-transform: uppercase; letter-spacing: .8px; margin-right: 4px; }
.tag-chip {
	display: inline-block; background: #F1F5F9; color: #2563EB; font-size: 13px; font-weight: 600;
	padding: 6px 14px; border-radius: 20px; text-decoration: none; border: 1px solid #E2E8F0;
	transition: all .2s ease;
}
.tag-chip:hover { background: #2563EB; color: #fff; border-color: #2563EB; }

/* ------------------------------------------------ Tag archive pages */
.archive-count { font-size: 14px; color: #64748B; margin: 0 0 24px; }
.hero-tag-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-tag-chips .tag-chip { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.hero-tag-chips .tag-chip:hover { background: #E6B325; border-color: #E6B325; color: #0A2463; }
.tag-cloud-section .tag-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.tag-cloud a {
	display: inline-block; background: #fff; border: 1px solid #E2E8F0; border-radius: 20px;
	padding: 7px 16px; color: #1E4B94; font-weight: 600; text-decoration: none; font-size: 13px;
	transition: all .2s ease; box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
.tag-cloud a:hover { background: #1E4B94; color: #fff; border-color: #1E4B94; transform: translateY(-2px); }

/* ------------------------------------------------ Hero search (search & 404 pages) */
.hero-search { max-width: 620px; margin-bottom: 26px; }
.hero-search .search-form { display: flex; gap: 10px; }
.hero-search .search-form .search-field {
	flex: 1; min-width: 0; padding: 14px 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,.4);
	background: #fff; color: #0F172A; font-size: 15px;
}
.hero-search .search-form .search-submit {
	background: #E6B325; color: #0A2463; font-weight: 700; border: none; border-radius: 10px;
	padding: 0 26px; cursor: pointer; font-size: 14px; transition: background .2s ease;
}
.hero-search .search-form .search-submit:hover { background: #f3c448; }

/* ------------------------------------------------ Search results */
.search-result-list { display: flex; flex-direction: column; gap: 18px; }
.search-result-item {
	background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 26px 30px;
	box-shadow: 0 1px 4px rgba(15,23,42,.05); transition: all .25s ease;
}
.search-result-item:hover { border-color: #BFDBFE; box-shadow: 0 8px 24px rgba(30,75,148,.12); transform: translateY(-2px); }
.search-result-title { font-size: 20px; margin: 0 0 8px; }
.search-result-title a { color: #0A2463; text-decoration: none; }
.search-result-title a:hover { color: #2563EB; }
.search-result-type {
	display: inline-block; background: #EFF6FF; color: #1E4B94; font-size: 12px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .8px; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.search-result-excerpt { color: #64748B; font-size: 14.5px; line-height: 1.7; margin: 0 0 12px; }
.search-result-link { color: #2563EB; font-weight: 600; font-size: 14px; text-decoration: none; }
.search-result-link:hover { text-decoration: underline; }
.search-empty { text-align: center; padding: 30px 0 10px; }
.search-empty-title { font-size: 22px; font-weight: 700; color: #0A2463; margin: 0 0 8px; }
.search-empty p { color: #64748B; }
.search-empty .hero-tag-chips { justify-content: center; margin: 18px 0 26px; }
.search-empty-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------ 404 page */
.error-404-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.error-link-col h2 { font-size: 18px; color: #0A2463; margin: 0 0 16px; }
.error-link-col ul { list-style: none; margin: 0; padding: 0; }
.error-link-col ul li { margin-bottom: 10px; }
.error-link-col ul a { color: #2563EB; text-decoration: none; font-weight: 600; }
.error-link-col ul a:hover { text-decoration: underline; }
.error-tag-cloud { justify-content: flex-start; }

@media (max-width: 700px) {
	.error-404-links { grid-template-columns: 1fr; gap: 28px; }
	.hero-search .search-form { flex-direction: column; }
	.hero-search .search-form .search-submit { padding: 13px 18px; }
	.search-result-item { padding: 20px 18px; }
}


/* ------------------------------------------------ Product: Applications (jx486.com style) */
.applications-section { margin-top: 56px; }
.applications-section .section-title,
.applications-section .section-desc { text-align: center; }
.app-grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 34px;
}
.app-item {
	position: relative; background: linear-gradient(180deg, #fff 0%, #F8FAFC 100%);
	border: 1px solid #E2E8F0; border-top: 4px solid #2563EB; border-radius: 14px;
	padding: 30px 26px; transition: all .25s ease;
}
.app-item:hover { border-top-color: #E6B325; box-shadow: 0 10px 28px rgba(15,23,42,.10); transform: translateY(-4px); }
.app-title { font-size: 18px; font-weight: 700; color: #0A2463; margin: 0 0 10px; }
.app-desc { font-size: 14.5px; line-height: 1.7; color: #64748B; margin: 0; }

/* ------------------------------------------------ Product: Related Products (jx486.com style) */
.related-section { margin-top: 56px; }
.related-section .section-title,
.related-section .section-desc { text-align: center; }
.related-section .product-grid { margin-top: 34px; }

/* ------------------------------------------------ Keyword internal links */
.kw-link { color: #2563EB; text-decoration: underline; text-underline-offset: 3px; }
.kw-link:hover { color: #E6B325; }

@media (max-width: 900px) {
	.app-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.app-grid { grid-template-columns: 1fr; }
	.applications-section { margin-top: 40px; }
	.related-section { margin-top: 40px; }
}

/* ================================================================ v1.1.4
   Round 6: product archive Categories block (jx486.com style),
   product detail shell (grey background + white card), app icons,
   FAQ centering, mobile breathing space.
   ================================================================ */

/* ------------------------------------------------ Product archive: Categories block */
.categories-block { margin-top: 72px; }
.cat-cards {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
	margin-top: 40px;
}
.cat-card {
	display: flex; flex-direction: column; align-items: flex-start;
	background: #fff; border: 1px solid #E2E8F0; border-radius: 16px;
	padding: 32px 28px; transition: all .25s ease; color: inherit;
}
.cat-card:hover { border-color: #2563EB; box-shadow: 0 14px 34px rgba(15,23,42,.12); transform: translateY(-5px); text-decoration: none; color: inherit; }
.cat-card-icon {
	width: 62px; height: 62px; border-radius: 14px; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #1E4B94, #2563EB); color: #fff;
	margin-bottom: 20px; box-shadow: 0 8px 18px rgba(37,99,235,.28);
}
.cat-card-title { font-size: 19px; font-weight: 700; color: #0A2463; margin: 0 0 12px; }
.cat-card-list { list-style: none; margin: 0 0 18px; padding: 0; }
.cat-card-list li {
	position: relative; padding-left: 22px; margin: 0 0 8px;
	font-size: 14px; line-height: 1.6; color: #64748B;
}
.cat-card-list li::before {
	content: ""; position: absolute; left: 2px; top: 8px;
	width: 7px; height: 7px; border-radius: 50%; background: #E6B325;
}
.cat-card-more { margin-top: auto; font-size: 14px; font-weight: 600; color: #2563EB; }

/* ------------------------------------------------ Product detail: app icons */
.app-item { text-align: left; }
.app-icon {
	width: 56px; height: 56px; border-radius: 14px;
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #EFF6FF, #DBEAFE); color: #2563EB;
	margin-bottom: 16px;
}

/* ------------------------------------------------ Product detail: grey shell + white card */
body.wanhe-product-single { background: #f5f7f9; }
body.wanhe-product-single .site-header,
body.wanhe-product-single .site-footer,
body.wanhe-product-single .cta-section,
body.wanhe-product-single .page-hero { background-color: transparent; }
body.wanhe-product-single .page-hero { margin-bottom: -34px; }
.pd-shell {
	background: #fff; border: 1px solid #E8EDF3; border-radius: 18px;
	box-shadow: 0 10px 34px rgba(15,23,42,.07);
	padding: 48px 52px; margin-top: 34px;
}
.pd-shell .applications-section { margin-top: 64px; }
.pd-shell .product-faq { margin-top: 64px; }
.pd-shell .related-section { margin-top: 64px; }
.pd-shell .product-faq .section-title,
.pd-shell .related-section .section-title,
.pd-shell .applications-section .section-title { margin-bottom: 8px; }
.pd-shell .entry-content h2,
.pd-shell .product-content h2 { color: #0A2463; }

/* ------------------------------------------------ Mobile breathing space (global) */
@media (max-width: 600px) {
	.container { padding-left: 20px; padding-right: 20px; }
	.page-hero { padding: 56px 0 48px; }
	.pd-shell { padding: 28px 20px; border-radius: 0; border-left: 0; border-right: 0; margin-top: 0; }
	body.wanhe-product-single .page-hero { margin-bottom: 0; }
	.cat-cards { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
	.cat-card { padding: 26px 22px; }
	.categories-block { margin-top: 52px; }
	.app-grid { gap: 16px; }
}
.cat-card-desc { font-size: 14px; line-height: 1.7; color: #475569; margin: 0 0 12px; }

/* ================================================================ v1.1.5
   Round 7 fixes + new front-end widgets.
   ================================================================ */

/* ------------------------------------------------ Product detail background + FAQ centering fix */
body.wanhe-product-single .page-hero { margin-bottom: 0; }
.pd-shell { margin-top: 40px; }
.pd-shell .product-faq .section-head .section-title,
.pd-shell .related-section .section-head .section-title,
.pd-shell .applications-section .section-head .section-title { text-align: center !important; }
.pd-shell .product-faq .section-head .section-desc,
.pd-shell .related-section .section-head .section-desc,
.pd-shell .applications-section .section-head .section-desc { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------ Mobile bottom menu bar */
.wh-mbar { display: none; }
@media (max-width: 900px) {
	body.wh-mbar-on { padding-bottom: 64px; }
	.wh-mbar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
		background: #0A2463; border-top: 1px solid rgba(255,255,255,.14);
		box-shadow: 0 -6px 20px rgba(10,36,99,.25);
	}
	.wh-mbar-inner { display: flex; width: 100%; }
	.wh-mbar-item {
		flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
		gap: 3px; padding: 9px 4px 7px; color: #E2E8F0; font-size: 11px; line-height: 1.2;
		text-align: center; text-decoration: none;
	}
	.wh-mbar-item svg { width: 22px; height: 22px; }
	.wh-mbar-item:hover, .wh-mbar-item:active { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
	.wh-mbar-item.is-wa { background: #25D366; color: #fff; }
	.wh-mbar-item.is-wa:hover { background: #1EBE5B; color: #fff; }
}

/* ------------------------------------------------ Back to top button */
.wh-top {
	position: fixed; bottom: 92px; z-index: 998;
	width: 46px; height: 46px; border-radius: 12px; border: none; cursor: pointer;
	background: var(--wt-bg, #111827); color: var(--wt-ic, #FFFFFF);
	opacity: 0; visibility: hidden;
	transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 22px rgba(17,24,39,.28);
}
.wh-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.wh-top:hover { transform: translateY(-2px); }
.wh-top svg { width: 20px; height: 20px; }
.wh-top.wh-top-left { left: 18px; right: auto; }
.wh-top.wh-top-right { right: 18px; left: auto; }
@media (max-width: 900px) {
	.wh-top { bottom: 78px; }
	body.wh-mbar-on .wh-top { bottom: 150px; }
}

/* ================================================================ v1.1.6
   Round 8 fixes + new front-end widgets.
   ================================================================ */

/* ------------------------------------------------ Product detail: alternating section backgrounds (jx486.com style) */
body.wanhe-product-single .pd-sec { padding: 74px 0; }
body.wanhe-product-single .pd-sec-white { background: #F1F5F9; }
.pd-sec .section-head { text-align: center; }
.pd-sec .section-head .section-title,
.pd-sec .section-head .section-desc { text-align: center !important; margin-left: auto; margin-right: auto; }
.pd-sec .product-faq .section-head .section-title,
.pd-sec .related-section .section-head .section-title,
.pd-sec .applications-section .section-head .section-title { text-align: center !important; }
.pd-sec .product-faq .section-head .section-desc,
.pd-sec .related-section .section-head .section-desc,
.pd-sec .applications-section .section-head .section-desc { margin-left: auto; margin-right: auto; }
.pd-sec .applications-section { margin-top: 0; }
.pd-sec .related-section { margin-top: 0; }
.pd-sec .product-faq { margin-top: 0; }
body.wanhe-product-single .pd-sec .product-detail { max-width: 1240px; margin: 0 auto; }

/* ------------------------------------------------ WhatsApp float button — backend managed, sits above back-to-top */
.wa-float { right: var(--wf-mg, 24px); bottom: var(--wf-bt, 150px); }
.wa-float.wh-wa-left { left: var(--wf-mg, 24px); right: auto; }
.wa-float.wh-wa-left .wa-float-tip { right: auto; left: 64px; }
.wa-float.wh-wa-left .wa-float-tip::after { right: auto; left: -5px; border: 5px solid transparent; border-right-color: #0F172A; }
@media (max-width: 900px) {
	.wa-float { bottom: calc(var(--wf-bt, 150px) + 64px); }
	body.wh-mbar-on .wa-float { bottom: calc(var(--wf-bt, 150px) + 64px); }
}
