/* ==========================================================================
   Front page hero — DTKA 东特矿安 (independent of style.css)
   Loaded only on the front page (see functions.php: dtka_scripts).
   Image-only slider: slides + dots + arrows.
   ========================================================================== */
.home-hero {
	position: relative;
	background: #eef2f7;
}

/* SEO / screen-reader-only heading (visually hidden) */
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.home-hero-slides {
	position: relative;
	max-width: 1590px;

	margin: 0 auto;
	overflow: hidden;
}
.home-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .8s ease;
}
.home-hero-slide.is-active { opacity: 1; position: relative; }
.home-hero-slide img {
	width: 100%;
	height: auto;
	display: block;
}

/* Dots */
.home-hero-dots {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	z-index: 6;
	display: flex;
	gap: 8px;
}
.home-hero-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(15, 23, 42, .25);
	cursor: pointer;
	border: 0;
	padding: 0;
	transition: background .2s ease, transform .2s ease;
}
.home-hero-dot.is-active { background: var(--dtka-blue, #004DA5); transform: scale(1.15); }

/* Arrows */
.home-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .82);
	color: #0f172a;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	transition: background .2s ease, color .2s ease;
}
.home-hero-arrow svg { width: 24px; height: 24px; }
.home-hero-arrow:hover { background: var(--dtka-blue, #004DA5); color: #fff; }
.home-hero-arrow-prev { left: 22px; }
.home-hero-arrow-next { right: 22px; }

@media (max-width: 767px) {
	/* On phones the source is far larger than the viewport, so cropping here is a downscale (stays sharp). */
	.home-hero-slide img { height: 300px; object-fit: cover; object-position: center; }
	.home-hero-arrow { width: 38px; height: 38px; }
	.home-hero-arrow-prev { left: 12px; }
	.home-hero-arrow-next { right: 12px; }
}

/* ==========================================================================
   Product Center — 3 category tabs, up to 8 products each, 4 per row
   ========================================================================== */
.product-center {
	padding: 56px 0 72px;
	background: #ffffff;
}
.pc-head { text-align: center; margin-bottom: 0; }

/* Unified module title */
.home-title {
	position: relative;
	text-align: center;
	font-size: clamp(26px, 3.2vw, 34px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--dtka-heading, #0f172a);
	margin: 0 0 44px;
}
.home-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	background: var(--dtka-blue, #0b57c2);
	border-radius: 2px;
	margin: 14px auto 0;
}
.home-title--tight { margin-bottom: 16px; }
.home-title--left { text-align: left; margin-bottom: 18px; }
.home-title--left::after { margin-left: 0; }

/* Tabs */
.pc-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 34px;
}
.pc-tab {
	border: 1px solid var(--dtka-border, #e6e8eb);
	background: #fff;
	color: var(--dtka-text, #1f2937);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	padding: 12px 26px;
	border-radius: 999px;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.pc-tab:hover { border-color: var(--dtka-blue, #0b57c2); color: var(--dtka-blue, #0b57c2); }
.pc-tab.is-active {
	background: var(--dtka-blue, #0b57c2);
	border-color: var(--dtka-blue, #0b57c2);
	color: #fff;
}

/* Panels */
.pc-panel { display: none; }
.pc-panel.is-active { display: block; }

/* Grid: 4 per row */
.pc-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}
.pc-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--dtka-border, #e6e8eb);
	border-radius: var(--dtka-radius, 6px);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}
.pc-card:hover { transform: translateY(-4px); box-shadow: var(--dtka-shadow, 0 12px 30px rgba(2,16,48,.12)); }
.pc-card-media {
	display: block;
	aspect-ratio: 1 / 1;
	background: #eef2f7;
	overflow: hidden;
}
.pc-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 18px;
}
.pc-card-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--dtka-heading, #0f172a);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
}
.pc-empty { text-align: center; color: var(--dtka-muted, #6b7280); padding: 40px 0; }

@media (max-width: 1024px) {
	.pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.product-center { padding: 40px 0 52px; }
	.pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	/* Keep the category tabs on one row: equal thirds, label wraps inside the pill.
	   A 4th category added later wraps onto its own row instead of crowding three. */
	.pc-tabs { gap: 8px; margin-bottom: 26px; }
	.pc-tab {
		flex: 1 1 30%;
		min-width: 0;
		padding: 9px 6px;
		font-size: 13px;
		line-height: 1.25;
		white-space: normal;
		text-align: center;
		overflow-wrap: anywhere;
	}
}
@media (max-width: 600px) {
	/* Homepage cards stay 2-up (≈160px wide) while the catalog drops to 3-up, so the
	   shared .prod-spec mobile sizing tuned for 105px cards is too small here. */
	.pc-card .prod-card-specs { font-size: 11.5px; }
	.pc-card .prod-spec-k { font-size: 10.5px; }
}
@media (max-width: 360px) {
	.pc-tabs { gap: 6px; }
	.pc-tab { font-size: 12px; padding: 8px 4px; }
}

/* ==========================================================================
   About Us — image + condensed intro, highlights and CTA
   ========================================================================== */
.about-us { padding: 72px 0; background: #f7f9fc; }
.about-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 52px;
	align-items: center;
}
.about-media {
	border-radius: var(--dtka-radius, 6px);
	overflow: hidden;
	box-shadow: var(--dtka-shadow, 0 12px 30px rgba(2,16,48,.12));
	background: #eef2f7;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
/* The clip is 1280x720, so matching 16/9 keeps it uncropped (4/3 cut ~25% of the width). */
.about-media video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #0f172a; }
.about-lead { font-size: 15px; line-height: 1.75; color: var(--dtka-text, #1f2937); margin: 0 0 22px; }
.about-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.about-item {
	position: relative;
	padding-left: 20px;
	border-left: 3px solid var(--dtka-blue, #0b57c2);
}
.about-item-title { display: block; font-size: 15px; font-weight: 700; color: var(--dtka-heading, #0f172a); margin-bottom: 2px; }
.about-item-text { display: block; font-size: 14px; line-height: 1.6; color: var(--dtka-muted, #6b7280); }
.about-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--dtka-blue, #0b57c2);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	padding: 13px 26px;
	border-radius: 999px;
	transition: background .18s ease;
}
.about-btn span { font-size: 18px; line-height: 1; }
.about-btn:hover { background: var(--dtka-blue-dark, #08408f); color: #fff; }

@media (max-width: 900px) {
	.about-us { padding: 48px 0; }
	.about-inner { grid-template-columns: 1fr; gap: 28px; }
	.about-media { order: -1; }
}

/* ==========================================================================
   Core Manufacturing Capability — heading + 4 icon columns
   ========================================================================== */
.core-cap { padding: 72px 0; background: #ffffff; }
.core-cap-head { text-align: center; max-width: 860px; margin: 0 auto 46px; }
.core-cap-lead { font-size: 15px; line-height: 1.75; color: var(--dtka-text, #1f2937); margin: 0; }
.core-cap-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}
.core-cap-item { text-align: center; }
.core-cap-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 108px;
	height: 108px;
	border-radius: 50%;
	border: 2px solid var(--dtka-blue, #0b57c2);
	color: var(--dtka-blue, #0b57c2);
	margin-bottom: 20px;
	transition: background .18s ease, color .18s ease;
}
.core-cap-icon svg { width: 52px; height: 52px; }
.core-cap-item:hover .core-cap-icon { background: var(--dtka-blue, #0b57c2); color: #fff; }
.core-cap-item-title { font-size: 17px; font-weight: 700; color: var(--dtka-heading, #0f172a); margin: 0 0 10px; }
.core-cap-item-text { font-size: 14px; line-height: 1.7; color: var(--dtka-muted, #6b7280); margin: 0; }

@media (max-width: 1024px) {
	.core-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
}
@media (max-width: 560px) {
	.core-cap { padding: 48px 0; }
	.core-cap-grid { grid-template-columns: 1fr; }
	.core-cap-icon { width: 92px; height: 92px; }
	.core-cap-icon svg { width: 44px; height: 44px; }
}

/* ==========================================================================
   Applications & Solutions — 6 image+text scenario cards
   ========================================================================== */
.app-module { padding: 72px 0; background: #f7f9fc; }
.app-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}
.app-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--dtka-border, #e6e8eb);
	border-radius: var(--dtka-radius, 6px);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--dtka-shadow, 0 12px 30px rgba(2,16,48,.12)); }
.app-media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #eef2f7;
	overflow: hidden;
}
.app-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.app-card:hover .app-media img { transform: scale(1.05); }
.app-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.app-card-title { font-size: 18px; font-weight: 700; color: var(--dtka-heading, #0f172a); margin: 0; }
.app-card-text { font-size: 14px; line-height: 1.7; color: var(--dtka-muted, #6b7280); margin: 0; }

@media (max-width: 1024px) {
	.app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.app-module { padding: 48px 0; }
	.app-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Certificate — heading + row of framed certificate images
   ========================================================================== */
.cert-module {
	padding: 72px 0;
	background: #ffffff;
}
.cert-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 22px;
}
.cert-card { margin: 0; }
.cert-frame {
	display: block;
	background: #fff;
	border: 1px solid var(--dtka-border, #e6e8eb);
	border-radius: var(--dtka-radius, 6px);
	padding: 10px;
	box-shadow: 0 6px 18px rgba(2, 16, 48, .08);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}
.cert-frame img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	display: block;
	border-radius: 3px;
}
.cert-card:hover .cert-frame { transform: translateY(-5px); box-shadow: var(--dtka-shadow, 0 12px 30px rgba(2,16,48,.12)); }
.cert-caption {
	margin-top: 12px;
	text-align: center;
	font-size: 13px;
	line-height: 1.5;
	color: var(--dtka-muted, #6b7280);
}

@media (max-width: 1024px) {
	.cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 640px) {
	.cert-module { padding: 48px 0; }
	.cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.home-title { margin-bottom: 30px; }
}

/* ==========================================================================
   Global reach — exported-countries banner; the map bleeds to viewport width
   ========================================================================== */
.reach-module {
	background: #ffffff;
	padding: 56px 0 72px;
}
.reach-title {
	text-align: center;
	text-transform: uppercase;
	font-size: clamp(24px, 3.2vw, 34px);
	font-weight: 800;
	line-height: 1.3;
	color: var(--dtka-heading, #0f172a);
	margin: 0 0 12px;
}
.reach-title em {
	font-style: italic;
	color: #fa8c00;
}
.reach-sub {
	text-align: center;
	font-size: 15px;
	line-height: 1.7;
	color: var(--dtka-muted, #6b7280);
	margin: 0 0 26px;
}
.reach-map { margin: 0; }
/* The source is 1584px wide; past that the browser would upscale it and the map
   turns soft, so cap at 1:1 and centre — the section is white like the image. */
.reach-map img { display: block; width: 100%; max-width: 1584px; height: auto; margin: 0 auto; }

/* Featured products under the map — the doubled class outranks .pc-grid's own
   media rules, which drop to 3 columns and would leave an orphan card here. */
.reach-grid.reach-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; }

@media (max-width: 1024px) {
	.reach-grid.reach-grid { gap: 16px; }
}
@media (max-width: 767px) {
	.reach-module { padding-bottom: 46px; }
	.reach-grid.reach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
}

@media (max-width: 640px) {
	.reach-module { padding-top: 40px; }
	.reach-sub { font-size: 13.5px; margin-bottom: 18px; }
}

/* ==========================================================================
   News — latest blog posts, 3 rectangular cards per row
   ========================================================================== */
.news-module { padding: 72px 0; background: #f7f9fc; }
.news-grid {
	display: grid;
	gap: 26px;
}
.news-grid--1 { grid-template-columns: 1fr; }
.news-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--dtka-border, #e6e8eb);
	border-radius: var(--dtka-radius, 6px);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--dtka-shadow, 0 12px 30px rgba(2,16,48,.12)); }
.news-media {
	display: block;
	aspect-ratio: 16 / 9;
	background: #eef2f7;
	overflow: hidden;
}
.news-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--dtka-muted, #6b7280); }
.news-cat {
	color: var(--dtka-blue, #0b57c2);
	font-weight: 600;
	background: var(--dtka-blue-soft, #eef4ff);
	padding: 3px 10px;
	border-radius: 999px;
}
.news-card-title { font-size: 18px; font-weight: 700; line-height: 1.4; margin: 0; }
.news-card-title a { color: var(--dtka-heading, #0f172a); }
.news-card-title a:hover { color: var(--dtka-blue, #0b57c2); }
.news-excerpt { font-size: 14px; line-height: 1.7; color: var(--dtka-muted, #6b7280); margin: 0; }
.news-more {
	margin-top: auto;
	align-self: flex-start;
	font-size: 14px;
	font-weight: 600;
	color: var(--dtka-blue, #0b57c2);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.news-more:hover { color: var(--dtka-blue-dark, #08408f); gap: 10px; }

/* Lone post: wide horizontal card so it fills the row instead of leaving a gap */
.news-grid--1 .news-card { flex-direction: row; }
.news-grid--1 .news-media { flex: 0 0 44%; width: 44%; aspect-ratio: auto; }
.news-grid--1 .news-body { flex: 1; justify-content: center; padding: 30px 36px; }
.news-grid--1 .news-card-title { font-size: 22px; }

@media (max-width: 1024px) {
	.news-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.news-module { padding: 48px 0; }
	.news-grid--2, .news-grid--3 { grid-template-columns: 1fr; }
	.news-grid--1 .news-card { flex-direction: column; }
	.news-grid--1 .news-media { flex: none; width: 100%; aspect-ratio: 16 / 9; }
	.news-grid--1 .news-body { padding: 18px 20px 22px; }
	.news-grid--1 .news-card-title { font-size: 18px; }
}





