/* ============================================================
   Organization chart — about2 (Organization Structure)
   BOWO Automotive Electronics Co.,Ltd.
   All classes are prefixed .orgx- so they never touch site styles.
   ============================================================ */

.orgx {
	width: 100%;
	float: left;
	padding: 0 0 40px;
}
.orgx-lead {
	max-width: 1000px;
	margin: 18px auto 32px;
	text-align: center;
	font-size: 14px;
	line-height: 24px;
	color: #777;
}

.orgx-canvas {
	--line: #c8161d;
	max-width: 1280px;
	margin: 0 auto;
}

/* ---------- Governance level ---------- */
.orgx-seat {
	position: relative;
	display: flex;
	justify-content: center;
}
.orgx-lv1 {
	width: 238px;
	background: #fff;
	border-left: 6px solid var(--line);
	border-top: 4px solid var(--line);
	padding: 12px 14px;
	text-align: center;
	font-size: 17px;
	line-height: 24px;
	font-weight: 700;
	letter-spacing: .3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
}
.orgx-msys {
	position: absolute;
	left: 50%;
	margin-left: 152px;
	top: 50%;
	transform: translateY(-50%);
	background: #fff;
	border-left: 6px solid var(--line);
	padding: 9px 12px;
	font-size: 13px;
	line-height: 20px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
}
.orgx-msys::before {
	content: "";
	position: absolute;
	right: 100%;
	top: 50%;
	margin-top: -1px;
	width: 32px;
	height: 2px;
	background-image: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 10px);
}
.orgx-stem {
	width: 2px;
	height: 26px;
	margin: 0 auto;
	background: var(--line);
}
.orgx-lv2 {
	width: 238px;
	margin: 0 auto;
	background: #fff;
	border-left: 6px solid var(--line);
	border-top: 4px solid var(--line);
	padding: 12px 14px;
	text-align: center;
	font-size: 17px;
	line-height: 24px;
	font-weight: 700;
	letter-spacing: .3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
}

/* ---------- Departments: horizontal bus ---------- */
.orgx-kids {
	list-style: none;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	position: relative;
	margin: 26px 0 0;
	padding: 0;
}
.orgx-kids::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -26px;
	width: 2px;
	height: 26px;
	background: var(--line);
}
.orgx-kids > li {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	margin-top: 32px;
	list-style: none;
}
.orgx-kids > li::before,
.orgx-kids > li::after {
	content: "";
	position: absolute;
	top: -32px;
	width: 50%;
	height: 2px;
	background: var(--line);
}
.orgx-kids > li::before { right: 50%; }
.orgx-kids > li::after { left: 50%; }
.orgx-kids > li:first-child::before,
.orgx-kids > li:last-child::after { display: none; }

/* ---------- Department card ---------- */
.orgx-dept {
	position: relative;
	background: #fff;
	border-top: 4px solid var(--line);
	border-left: 6px solid var(--line);
	padding: 10px 8px;
	text-align: center;
	font-size: 13px;
	line-height: 19px;
	font-weight: 700;
	min-height: 78px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
}
.orgx-dept::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -32px;
	width: 2px;
	height: 32px;
	background: var(--line);
}

/* ---------- Sub units: left-rail tree ---------- */
.orgx-tree {
	position: relative;
	margin: 10px 0 0 8px;
	padding-left: 11px;
}
.orgx-tree::before {
	content: "";
	position: absolute;
	left: 0;
	top: -10px;
	bottom: 8px;
	width: 2px;
	background: rgba(200, 22, 29, .55);
}
.orgx-branch { position: relative; margin-top: 10px; }
.orgx-branch:first-child { margin-top: 0; }
.orgx-branch::before {
	content: "";
	position: absolute;
	left: -11px;
	top: 16px;
	width: 11px;
	height: 2px;
	background: rgba(200, 22, 29, .8);
}
.orgx-unit {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-left: 3px solid var(--line);
	padding: 8px 7px;
	text-align: center;
	font-size: 12px;
	line-height: 17px;
	font-weight: 700;
	color: #333;
}
.orgx-leafs {
	list-style: none;
	position: relative;
	margin: 6px 0 0 4px;
	padding: 0 0 0 9px;
	border-left: 2px solid rgba(200, 22, 29, .4);
}
.orgx-leafs li {
	position: relative;
	margin: 0 0 5px;
	padding: 4px 6px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-left: 2px solid rgba(200, 22, 29, .75);
	text-align: center;
	font-size: 11px;
	line-height: 15px;
	color: #3f3f3f;
	list-style: none;
}
.orgx-leafs li:last-child { margin-bottom: 0; }
.orgx-leafs li::before {
	content: "";
	position: absolute;
	left: -9px;
	top: 10px;
	width: 9px;
	height: 2px;
	background: rgba(200, 22, 29, .55);
}
.orgx-deep {
	margin: 5px 0 0 6px;
	padding-left: 8px;
	border-left: 2px dotted rgba(200, 22, 29, .4);
}
.orgx-deep li {
	padding: 3px 5px;
	font-size: 10.5px;
	line-height: 14px;
	color: #5f5f5f;
	border-color: #ececec;
	border-left-color: rgba(200, 22, 29, .5);
}
.orgx-deep li::before {
	left: -8px;
	width: 8px;
	top: 9px;
	background: rgba(200, 22, 29, .4);
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1180px) {
	.orgx-lv1, .orgx-lv2 { width: 210px; font-size: 16px; }
	.orgx-msys { margin-left: 134px; }
	.orgx-kids { gap: 8px; }
	.orgx-dept { font-size: 12px; line-height: 17px; padding: 9px 6px; min-height: 82px; }
}
@media (max-width: 900px) {
	.orgx-lead { font-size: 13px; line-height: 22px; margin-bottom: 24px; }
	.orgx-seat { flex-direction: column; align-items: center; }
	.orgx-msys { position: static; margin: 10px 0 0; transform: none; }
	.orgx-msys::before { display: none; }
	.orgx-kids { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
	.orgx-kids > li::before,
	.orgx-kids > li::after,
	.orgx-dept::before { display: none; }
	.orgx-kids > li { margin-top: 0; }
	.orgx-dept { min-height: 0; font-size: 13px; line-height: 19px; }
	.orgx-tree { margin-top: 8px; }
	.orgx-leafs li { font-size: 11.5px; line-height: 17px; }
}
@media (max-width: 560px) {
	.orgx-kids { grid-template-columns: 1fr; }
}
