/**
 * Elementor: Feature value grid, certification grid, vertical timeline.
 */

/* -------------------------------------------------------------------------
   Feature / Values grid
   ------------------------------------------------------------------------- */
.heb-fvg__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.heb-fvg__card {
	--heb-fvg-hover-accent: #003366;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 20px 18px 18px;
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 4px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
	transition:
		border-color 0.28s ease,
		box-shadow 0.28s ease,
		transform 0.28s ease;
}

.heb-fvg__card:hover {
	border-color: rgba(0, 51, 102, 0.35);
	box-shadow: 0 12px 32px rgba(0, 51, 102, 0.1);
	transform: translateY(-4px);
}

.heb-fvg__icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	border-radius: 8px;
	background: #f0f7ff;
	color: #003366;
	transition:
		background-color 0.28s ease,
		color 0.28s ease;
}

.heb-fvg__card:hover .heb-fvg__icon-wrap {
	background-color: var(--heb-fvg-hover-accent, #003366);
	color: #ffffff;
}

.heb-fvg__icon-wrap .heb-fvg__icon-el {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
	color: inherit;
}

/* Elementor / FA SVG 常带内联 fill，会盖住父级 color — 强制跟 currentColor */
.heb-fvg__icon-wrap .heb-fvg__icon-el svg {
	width: 1em;
	height: 1em;
}

.heb-fvg__icon-wrap .heb-fvg__icon-el svg,
.heb-fvg__icon-wrap .heb-fvg__icon-el svg * {
	fill: currentColor !important;
}

.heb-fvg__icon-wrap .heb-fvg__icon-el svg [fill="none"],
.heb-fvg__icon-wrap .heb-fvg__icon-el svg *[fill="none"] {
	fill: none !important;
}

.heb-fvg__icon-wrap .heb-fvg__icon-el svg [stroke]:not([stroke="none"]),
.heb-fvg__icon-wrap .heb-fvg__icon-el svg *[stroke]:not([stroke="none"]) {
	stroke: currentColor !important;
}

/* 字体图标（<i class="eicon|fa">） */
.heb-fvg__icon-wrap .heb-fvg__icon-el::before {
	color: inherit;
}

.heb-fvg__title {
	margin: 0 0 10px;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.heb-fvg__desc {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.heb-fvg__empty {
	margin: 0;
	padding: 12px;
	color: #666;
}

/* -------------------------------------------------------------------------
   Certification grid
   ------------------------------------------------------------------------- */
.heb-cert__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.heb-cert__cell {
	--heb-cert-hover-border: #003366;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 0;
	padding: 14px 12px;
	background: #fff;
	border: 2px solid #eeeeee;
	border-radius: 4px;
	transition:
		border-color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.25s ease;
}

/* 可选：与列宽等高的正方形（在小组件里打开「Square cells」） */
.heb-cert--square-cells .heb-cert__cell {
	aspect-ratio: 1 / 1;
	min-height: 88px;
}

.heb-cert__cell:hover {
	border-color: var(--heb-cert-hover-border, #003366);
	box-shadow: 0 10px 28px rgba(0, 51, 102, 0.14);
	transform: translateY(-3px);
}

.heb-cert__main {
	display: block;
	font-weight: 700;
	font-size: clamp(1.125rem, 2.5vw, 1.5rem);
	line-height: 1.2;
	margin-bottom: 6px;
}

.heb-cert__sub {
	display: block;
	font-size: 0.8125rem;
	line-height: 1.35;
}

.heb-cert__empty {
	margin: 0;
	color: #666;
}

/* -------------------------------------------------------------------------
   Vertical timeline
   ------------------------------------------------------------------------- */
.heb-tl {
	position: relative;
	max-width: 920px;
	margin-inline: auto;
	padding: 8px 0 16px;
}

.heb-tl__line {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	margin-left: -1px;
	background-color: #1a2b44;
	z-index: 0;
	pointer-events: none;
}

.heb-tl__rows {
	position: relative;
	z-index: 1;
}

.heb-tl__row {
	display: grid;
	grid-template-columns: 1fr 88px 1fr;
	gap: 20px 16px;
	align-items: flex-start;
	margin-bottom: 32px;
}

.heb-tl__row:last-child {
	margin-bottom: 0;
}

.heb-tl__row--left .heb-tl__card {
	grid-column: 1;
	grid-row: 1;
}

.heb-tl__row--left .heb-tl__marker {
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
}

.heb-tl__row--left .heb-tl__spacer {
	grid-column: 3;
	grid-row: 1;
}

.heb-tl__row--right .heb-tl__spacer {
	grid-column: 1;
	grid-row: 1;
}

.heb-tl__row--right .heb-tl__marker {
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
}

.heb-tl__row--right .heb-tl__card {
	grid-column: 3;
	grid-row: 1;
}

.heb-tl__marker {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 4px;
}

.heb-tl__year {
	display: inline-block;
	padding: 6px 12px;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: #fff;
	background: #27ae60;
	border-radius: 3px;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(39, 174, 96, 0.35);
}

.heb-tl__card {
	--heb-tl-accent: #27ae60;
	margin: 0;
	padding: 20px 22px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
	border-left: 4px solid var(--heb-tl-accent, #27ae60);
	transition:
		box-shadow 0.3s ease,
		transform 0.3s ease,
		border-color 0.3s ease;
}

.heb-tl__row--right .heb-tl__card {
	border-left: none;
	border-right: 4px solid var(--heb-tl-accent, #27ae60);
}

.heb-tl__card:hover {
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
	transform: translateY(-5px);
}

.heb-tl__row--left .heb-tl__card:hover {
	border-left-color: var(--heb-tl-accent, #27ae60);
}

.heb-tl__row--right .heb-tl__card:hover {
	border-right-color: var(--heb-tl-accent, #27ae60);
}

.heb-tl__title {
	margin: 0 0 10px;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
}

.heb-tl__desc {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.heb-tl__empty {
	margin: 0;
	color: #666;
}

/* Timeline: mobile — line left, marker + card stacked */
@media (max-width: 767px) {
	.heb-tl__line {
		left: 26px;
		margin-left: 0;
		transform: none;
	}

	.heb-tl__row {
		grid-template-columns: 52px minmax(0, 1fr);
		gap: 14px;
	}

	.heb-tl__row--left .heb-tl__card,
	.heb-tl__row--right .heb-tl__card {
		grid-column: 2;
		grid-row: 1;
	}

	.heb-tl__row--left .heb-tl__marker,
	.heb-tl__row--right .heb-tl__marker {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}

	.heb-tl__row--left .heb-tl__spacer,
	.heb-tl__row--right .heb-tl__spacer {
		display: none;
	}

	.heb-tl__row--right .heb-tl__card {
		border-right: none;
		border-left: 4px solid var(--heb-tl-accent, #27ae60);
	}
}
