/*
 * WelHire section components: icon list cards, feature cards with hover glow,
 * dark stat cards, scoring showcase, rating, testimonials.
 */

.wh-badge.wh-badge--outline {
	border: 1px solid #2d2a7b;
	background: transparent;
	color: #2d2a7b;
	font-weight: 400;
}

.wh-icon {
	flex: none;
	display: block;
}

/* ---------- Icon list cards (the problem) ---------- */

.wh-pains {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--wh-font);
}

.wh-pain {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 16px 20px;
	border: 1px solid #ebebeb;
	border-radius: 12px;
	background: #f7f7f5;
	transition: transform 0.35s var(--wh-ease), border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.wh-pain .wh-icon {
	color: #2d2a7b;
}

.wh-pain__text {
	color: rgba(0, 0, 0, 0.6);
	font-size: 16px;
	line-height: 22px;
}

.wh-pain:hover {
	transform: translateX(4px);
	border-color: #dcdff0;
	background: #fff;
	box-shadow: 0 10px 24px rgba(35, 34, 110, 0.06);
}

/* ---------- Feature card with hover glow ---------- */

.wh-fcard {
	--wh-glow-a: rgba(42, 167, 210, 0.55);
	--wh-glow-b: rgba(98, 112, 230, 0.35);
	--wh-gx: 72%;
	--wh-gy: 78%;
	position: relative;
	isolation: isolate;
	display: grid;
	gap: 24px;
	height: 100%;
	padding: 36px;
	overflow: hidden;
	border: 1px solid #e4e4e4;
	border-radius: 12px;
	background: #f7f7f5;
	box-shadow: 0 0 4px rgba(221, 221, 221, 0.25);
	font-family: var(--wh-font);
	transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.wh-fcard--split {
	grid-template-columns: minmax(0, 366px) minmax(0, 1fr);
	align-items: center;
	min-height: 384px;
}

.wh-fcard--stack {
	grid-template-rows: auto 1fr;
	min-height: 510px;
}

.wh-fcard__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.wh-fcard__title {
	margin: 0;
	color: var(--wh-ink);
	font-family: var(--wh-font);
	font-size: 35px;
	font-weight: 600;
	line-height: 39px;
	letter-spacing: -0.5px;
}

.wh-fcard__text {
	margin: 0;
	color: rgba(0, 0, 0, 0.6);
	font-size: 16px;
	line-height: 22px;
}

.wh-fcard--stack .wh-fcard__text {
	max-width: 332px;
}

.wh-fcard__media {
	display: flex;
	justify-content: center;
	align-items: center;
}

.wh-fcard--stack .wh-fcard__media {
	align-self: end;
}

.wh-fcard .wh-fcard__media img {
	display: block;
	width: 359px;
	max-width: 100%;
	height: auto;
	transform: translateY(0) scale(1);
	transition: transform 0.7s var(--wh-ease), filter 0.7s ease;
	filter: drop-shadow(0 10px 24px rgba(35, 34, 110, 0.06));
}

.wh-fcard.wh-fcard--stack .wh-fcard__media img {
	width: 289px;
}

/* Glow layer: a soft gradient rests along the bottom edge and rises up on hover. */
.wh-fcard__glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}

.wh-fcard__blob {
	position: absolute;
	bottom: 0;
	border-radius: 50%;
	background: radial-gradient(50% 50% at 50% 50%, var(--wh-glow-a) 0%, var(--wh-glow-b) 55%, transparent 100%);
	filter: blur(30px);
	will-change: transform, opacity;
	transition: transform 0.9s var(--wh-ease), opacity 0.9s var(--wh-ease);
}

/* Wide band: at rest only its top edge shows as a faint strip along the bottom. */
.wh-fcard__blob--main {
	left: var(--wh-rise-x, 50%);
	width: 115%;
	height: 80%;
	opacity: 0.7;
	transform: translate3d(-50%, 82%, 0) scale(0.9);
}

/* Second, smaller bloom that joins in on hover for depth. */
.wh-fcard__blob--side {
	left: calc(var(--wh-rise-x, 50%) - 12%);
	width: 70%;
	height: 60%;
	opacity: 0;
	transform: translate3d(-50%, 110%, 0) scale(0.8);
	transition-delay: 0.05s;
}

.wh-fcard--split {
	--wh-rise-x: 60%;
}

.wh-fcard--glow:hover {
	border-color: rgba(42, 167, 210, 0.35);
	box-shadow: 0 18px 48px rgba(35, 34, 110, 0.08);
}

.wh-fcard--glow:hover .wh-fcard__blob--main {
	opacity: 1;
	transform: translate3d(-50%, 30%, 0) scale(1.1);
}

.wh-fcard--glow:hover .wh-fcard__blob--side {
	opacity: 0.85;
	transform: translate3d(-50%, 18%, 0) scale(1);
}

.wh-fcard:hover .wh-fcard__media img {
	transform: translateY(-8px) scale(1.02);
	filter: drop-shadow(0 22px 34px rgba(35, 34, 110, 0.14));
}

@media (max-width: 1024px) {
	.wh-fcard--split {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}
}

@media (max-width: 767px) {
	.wh-fcard {
		padding: 24px;
	}

	.wh-fcard__title {
		font-size: 28px;
		line-height: 32px;
	}

	.wh-fcard--stack {
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wh-fcard__blob,
	.wh-fcard__media img,
	.wh-pain,
	.wh-tcard,
	.wh-stat,
	.wh-mpanel {
		transition: none;
	}
}

/* ---------- Dark results: stat card + metric panel ---------- */

.wh-stat,
.wh-mpanel {
	height: 100%;
	padding: 24px 26px;
	border: 1px solid #2c394b;
	border-radius: 13px;
	background: #162335;
	color: #fff;
	font-family: var(--wh-font);
	transition: border-color 0.35s ease, transform 0.35s var(--wh-ease);
}

.wh-stat:hover,
.wh-mpanel:hover {
	border-color: #3a4b63;
	transform: translateY(-3px);
}

.wh-stat__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.wh-iconbox {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 9px;
}

.wh-iconbox--blue {
	border: 1px solid rgba(99, 179, 237, 0.17);
	background: rgba(99, 179, 237, 0.09);
	color: #63b3ed;
}

.wh-iconbox--green {
	border: 1px solid rgba(81, 227, 172, 0.17);
	background: rgba(81, 227, 172, 0.09);
	color: #51e3ac;
}

.wh-stat__title {
	color: #aebbd6;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
}

.wh-stat__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.wh-stat__col,
.wh-mpanel__lead {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wh-stat__label {
	display: flex;
	align-items: center;
	min-height: 20px;
	color: #aebbd6;
	font-size: 14px;
	line-height: 20px;
}

.wh-stat .wh-stat__label--logo img {
	display: block;
	width: 64px;
	height: auto;
}

.wh-stat__value {
	color: #fff;
	font-size: 32px;
	font-weight: 600;
	line-height: 40px;
	letter-spacing: -0.64px;
	white-space: nowrap;
}

.wh-stat__value--after {
	color: #63b3ed;
}

.wh-mpanel {
	display: grid;
	grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
	align-items: center;
	gap: 30px;
	padding: 18px 20px 18px 26px;
}

.wh-mpanel__lead .wh-stat__head {
	margin-bottom: 6px;
}

.wh-mpanel__metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin: 0;
	padding: 36px 26px;
	list-style: none;
	border: 1px solid #2c5b55;
	border-radius: 13px;
}

.wh-mpanel__metric {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0 16px;
	border-left: 1px solid #2c394b;
}

.wh-mpanel__metric:first-child {
	padding-left: 0;
	border-left: 0;
}

.wh-mpanel__metric strong {
	color: #5be5a6;
	font-size: 32px;
	font-weight: 600;
	line-height: 40px;
	letter-spacing: -0.32px;
}

.wh-mpanel__metric span {
	max-width: 176px;
	color: #aebbd6;
	font-size: 14px;
	line-height: 20px;
}

@media (max-width: 767px) {
	.wh-mpanel {
		grid-template-columns: minmax(0, 1fr);
	}

	.wh-mpanel__metrics {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		padding: 20px;
	}

	.wh-mpanel__metric {
		padding: 16px 0 0;
		border-top: 1px solid #2c394b;
		border-left: 0;
	}

	.wh-mpanel__metric:first-child {
		padding-top: 0;
		border-top: 0;
	}
}

/* ---------- Scoring showcase ---------- */

.wh-score {
	display: grid;
	grid-template-columns: minmax(0, 533px) minmax(0, 523px);
	justify-content: space-between;
	align-items: center;
	gap: 48px;
	font-family: var(--wh-font);
}

.wh-score__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.wh-score__text {
	max-width: 501px;
	margin: 0;
	color: rgba(0, 0, 0, 0.6);
	font-size: 16px;
	line-height: 22px;
}

.wh-score__points {
	display: flex;
	flex-direction: column;
	gap: 15px;
	max-width: 421px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.wh-score__point {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 16px;
	margin: 0;
	color: rgba(0, 0, 0, 0.6);
	font-size: 16px;
	line-height: 22px;
	cursor: default;
	outline: none;
	transition: color 0.3s ease;
}

.wh-num {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 20px;
	margin-top: 1px;
	border-radius: 50px;
	background: #b9c4d2;
	color: #fff;
	font-family: var(--wh-font-label);
	font-size: 10px;
	line-height: 1;
	letter-spacing: -0.4px;
	transition: background-color 0.3s ease, transform 0.3s var(--wh-ease);
}

.wh-num:empty {
	display: none;
}

.wh-score__point.is-active,
.wh-score__point:focus-visible {
	color: #000;
}

.wh-score__point.is-active .wh-num,
.wh-report__sec.is-active .wh-num {
	background: var(--wh-navy);
	transform: scale(1.06);
}

.wh-report {
	overflow: hidden;
	border: 1px solid #e7e7e5;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
	color: #1e3a56;
	font-size: 13px;
	line-height: 19.5px;
}

.wh-report__sec {
	position: relative;
	padding: 16px 29px;
	transition: background-color 0.4s ease, opacity 0.4s ease;
}

.wh-report__sec::before {
	content: "";
	position: absolute;
	top: 12px;
	bottom: 12px;
	left: 0;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--wh-accent);
	opacity: 0;
	transform: scaleY(0.4);
	transition: opacity 0.35s ease, transform 0.45s var(--wh-ease);
}

.wh-score.has-active .wh-report__sec {
	opacity: 0.7;
}

.wh-score.has-active .wh-report__sec.is-active {
	opacity: 1;
	background: rgba(42, 167, 210, 0.05);
}

.wh-report__sec.is-active::before {
	opacity: 1;
	transform: scaleY(1);
}

.wh-report__head {
	padding-top: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #ededeb;
}

.wh-report__name {
	margin: 0;
	color: #0c2340;
	font-size: 18px;
	font-weight: 700;
	line-height: 27.5px;
	letter-spacing: -0.55px;
}

.wh-report__meta {
	margin: 0 0 3px;
	color: #6b7c93;
	letter-spacing: -0.3px;
}

.wh-report__scoreline {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wh-report__score {
	color: #000;
	font-size: 28px;
	font-weight: 700;
	line-height: 28px;
	letter-spacing: -0.7px;
}

.wh-report__score small {
	margin-left: 2px;
	color: #486581;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
}

.wh-report__split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-bottom: 1px solid #ededeb;
}

.wh-report__split .wh-report__sec + .wh-report__sec {
	padding-left: 20px;
}

.wh-report__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	color: #486581;
	font-size: 11px;
	font-weight: 700;
	line-height: 16.5px;
	letter-spacing: 0.55px;
	text-transform: uppercase;
}

.wh-report__label--split {
	justify-content: space-between;
}

.wh-report__label--split > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wh-report__label strong {
	color: #0f2744;
	font-size: 13px;
	letter-spacing: 0;
	text-transform: none;
}

.wh-report__rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.wh-report__rows > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wh-report__rows dt {
	font-weight: 400;
}

.wh-report__rows dd {
	margin: 0;
	color: #0f2744;
	font-weight: 700;
}

.wh-report__sec[data-wh-sec="transcript"] {
	border-bottom: 1px solid #ededeb;
}

.wh-report__q {
	margin: 0 0 8px;
	color: #0d233e;
	font-size: 13.5px;
	font-weight: 600;
}

.wh-report__ai {
	margin: 0;
	padding: 13px;
	border: 1px solid #ededeb;
	border-radius: 6px;
	background: #f7f7f5;
	color: #2b4c6b;
	font-size: 12px;
}

.wh-report__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wh-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 50px;
	font-size: 11px;
	font-weight: 600;
	line-height: 16.5px;
	white-space: nowrap;
}

.wh-chip--ok {
	background: #e7f7ef;
	color: #1b8c58;
}

.wh-chip--warn {
	background: #fcedd7;
	color: #935919;
}

.wh-chip--bad {
	background: #ffefef;
	color: #dc4c38;
}

.wh-report__scoreline .wh-chip {
	margin-left: 8px;
	font-size: 12px;
}

@media (max-width: 1024px) {
	.wh-score {
		grid-template-columns: minmax(0, 1fr);
	}

	.wh-report {
		max-width: 560px;
	}
}

@media (max-width: 600px) {
	.wh-report__split {
		grid-template-columns: minmax(0, 1fr);
	}

	.wh-report__split .wh-report__sec + .wh-report__sec {
		padding-left: 20px;
		border-top: 1px solid #ededeb;
	}

	.wh-report__sec {
		padding-right: 20px;
		padding-left: 20px;
	}
}

/* ---------- Rating ---------- */

.wh-rating {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-family: var(--wh-font);
}

.wh-rating__faces {
	display: flex;
}

.wh-rating .wh-rating__faces img {
	width: 29px;
	height: 29px;
	margin-left: -5px;
	border: 2px solid #fff;
	border-radius: 50%;
	object-fit: cover;
}

.wh-rating .wh-rating__faces img:first-child {
	margin-left: 0;
}

.wh-rating__caption {
	margin: 0;
	color: rgba(0, 0, 0, 0.6);
	font-size: 16px;
	font-weight: 500;
	line-height: 22px;
}

.wh-rating__line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #000;
	font-size: 12px;
	line-height: 24px;
}

/* Grey star row with a gold overlay clipped to the rating. */
.wh-rating__stars {
	--wh-star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 1.5l2.32 4.7 5.18.75-3.75 3.65.89 5.16L9 13.33l-4.64 2.43.89-5.16L1.5 6.95l5.18-.75L9 1.5z'/%3E%3C/svg%3E");
	position: relative;
	display: inline-flex;
	color: #e3e3e0;
}

.wh-rating__stars::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: calc(var(--wh-stars) * 20%);
	background: #ffc000;
	-webkit-mask: var(--wh-star-mask) repeat-x left center / 18px 18px;
	mask: var(--wh-star-mask) repeat-x left center / 18px 18px;
}

.wh-star {
	width: 18px;
	height: 18px;
	padding: 1.5px;
}

/* ---------- Testimonials ---------- */

.wh-tgrid {
	column-count: 3;
	column-gap: 12px;
	font-family: var(--wh-font);
}

.wh-tcard {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 0 12px;
	padding: 20px;
	break-inside: avoid;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	background: #f7f7f5;
	transition: transform 0.35s var(--wh-ease), box-shadow 0.35s ease, background-color 0.35s ease;
}

.wh-tcard:hover {
	transform: translateY(-4px);
	background: #fff;
	box-shadow: 0 16px 36px rgba(35, 34, 110, 0.08);
}

.wh-tcard__quote {
	margin: 0;
	padding: 0;
	border: 0;
	color: #000;
	font-size: 16px;
	font-style: normal;
	line-height: 1.4;
}

.wh-tcard__by {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid #e6e8ec;
}

.wh-tcard img.wh-tcard__avatar {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.wh-tcard__who {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	font-size: 14px;
	line-height: 1.4;
}

.wh-tcard__who strong {
	color: #000;
	font-weight: 700;
}

.wh-tcard__who span {
	color: rgba(60, 60, 67, 0.5);
}

.wh-tcard img.wh-tcard__logo {
	flex: none;
	width: auto;
	max-width: 90px;
	height: 22px;
	object-fit: contain;
}

.wh-tcard__company {
	color: #14163a;
	font-size: 14px;
	font-weight: 800;
}

@media (max-width: 1024px) {
	.wh-tgrid {
		column-count: 2;
	}
}

@media (max-width: 767px) {
	.wh-tgrid {
		column-count: 1;
	}
}


/* ---------- Compare table ---------- */

.wh-compare {
	--wh-cmp-brand: #2d2a7b;
	--wh-cmp-tint: #f0f6fd;
	overflow: hidden;
	border: 1px solid #e6e8ec;
	border-radius: 12px;
	background: #fff;
	font-family: var(--wh-font);
}

.wh-compare .wh-compare__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.wh-compare .wh-compare__table th,
.wh-compare .wh-compare__table td {
	padding: 22px 20px;
	border: 0;
	background: transparent;
	color: #6b6b6b;
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	text-align: left;
	vertical-align: top;
	transition: background-color 0.25s ease;
}

.wh-compare thead th:nth-child(1) { width: 17%; }
.wh-compare thead th:nth-child(2) { width: 20%; }
.wh-compare thead th:nth-child(3) { width: 20%; }
.wh-compare thead th:nth-child(4) { width: 24%; }
.wh-compare thead th:nth-child(5) { width: 19%; }

.wh-compare .wh-compare__table thead th {
	padding-top: 24px;
	padding-bottom: 24px;
	background: #f2f2f0;
	color: #101010;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	vertical-align: middle;
}

.wh-compare .wh-compare__table thead th.is-brand {
	background: var(--wh-cmp-brand);
	color: #fff;
}

.wh-compare .wh-compare__table thead th.is-brand img {
	display: block;
	width: auto;
	height: 20px;
}

.wh-compare .wh-compare__table tbody th,
.wh-compare .wh-compare__table tbody td {
	border-top: 1px solid #ececea;
}

.wh-compare .wh-compare__table tbody th {
	color: #101010;
	font-weight: 500;
}

.wh-compare .wh-compare__table tbody td.is-brand {
	background: var(--wh-cmp-tint);
	color: #101010;
}

.wh-compare .wh-compare__table tbody td.is-days {
	background: color-mix(in srgb, var(--wh-cmp-tint) 55%, #fff);
	color: #101010;
	font-size: 13px;
}

.wh-compare .wh-compare__table tbody tr:hover th,
.wh-compare .wh-compare__table tbody tr:hover td:not(.is-brand):not(.is-days) {
	background: #fafaf8;
}

.wh-compare .wh-compare__table tbody tr:hover td.is-brand {
	background: color-mix(in srgb, var(--wh-cmp-tint) 80%, #2aa7d2 8%);
}

.wh-compare__win {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.wh-compare__win .wh-icon {
	margin-top: 0;
	color: #2aa7d2;
}

@media (max-width: 900px) {
	.wh-compare {
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.wh-compare .wh-compare__table,
	.wh-compare .wh-compare__table tbody,
	.wh-compare .wh-compare__table tr,
	.wh-compare .wh-compare__table th,
	.wh-compare .wh-compare__table td {
		display: block;
		width: 100%;
	}

	.wh-compare .wh-compare__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.wh-compare .wh-compare__table tbody {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.wh-compare .wh-compare__table tbody tr {
		padding: 18px;
		border: 1px solid #e6e8ec;
		border-radius: 12px;
		background: #fff;
	}

	.wh-compare .wh-compare__table tbody th,
	.wh-compare .wh-compare__table tbody td {
		padding: 6px 0;
		border-top: 0;
	}

	.wh-compare .wh-compare__table tbody th {
		padding-top: 0;
		font-size: 17px;
		font-weight: 600;
	}

	.wh-compare .wh-compare__table tbody td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		color: #8a8a8a;
		font-size: 11px;
		font-weight: 600;
		letter-spacing: 0.3px;
		text-transform: uppercase;
	}

	.wh-compare .wh-compare__table tbody td.is-brand,
	.wh-compare .wh-compare__table tbody td.is-days {
		margin-top: 8px;
		padding: 12px;
		border-radius: 10px;
	}

	.wh-compare .wh-compare__table tbody td.is-brand::before {
		color: var(--wh-cmp-brand);
	}
}
