.hhg-team-grid {
	display: grid;
	gap: 24px;
	margin: 18px 0;
	align-items: start;
}

.hhg-team-grid-wrap {
	position: relative;
}

.hhg-team-grid.columns-1 {
	grid-template-columns: 1fr;
}

.hhg-team-grid.columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hhg-team-grid.columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hhg-team-grid.columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hhg-team-group-section {
	margin: 32px 0;
}

.hhg-team-group-title {
	font-size: clamp(1.25rem, 2vw, 1.7rem);
	margin: 0 0 14px;
	font-weight: 700;
}

.hhg-team-card {
	perspective: 1200px;
	min-height: 380px;
	outline: none;
}

.hhg-team-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 380px;
	transition: transform .8s cubic-bezier(.2, .8, .2, 1);
	transform-style: preserve-3d;
	border-radius: 20px;
	box-shadow: 0 14px 40px rgba(6, 15, 35, 0.16);
}

.hhg-team-card:hover .hhg-team-card-inner,
.hhg-team-card:focus .hhg-team-card-inner,
.hhg-team-card:focus-within .hhg-team-card-inner,
.hhg-team-card.is-flipped .hhg-team-card-inner {
	transform: rotateY(180deg);
}

.hhg-team-card.is-mobile {
	perspective: none;
}

.hhg-team-card.is-mobile .hhg-team-card-inner {
	transform-style: flat;
	display: flex;
	transition: none;
}

.hhg-team-card.is-mobile .hhg-team-card-face {
	position: static;
	transform: none !important;
	-webkit-backface-visibility: visible;
	backface-visibility: visible;
}

.hhg-team-card-face {
	position: absolute;
	inset: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #F5F5F5;
	display: flex!important;
}

.hhg-team-card-front {
	background: #F5F5F5;
}

.hhg-team-image-wrap {
	position: relative;
	height: auto;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
}

.hhg-team-image-wrap::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, rgba(13, 47, 111, 0) 0%, rgba(13, 47, 111, .28) 50%, rgba(13, 47, 111, 0) 100%);
	pointer-events: none;
}

.hhg-team-image {
	width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
	transition: transform .5s ease;
	padding: 6px 6px 0px 6px;
}

.hhg-team-card:hover .hhg-team-image,
.hhg-team-card:focus-within .hhg-team-image {
	transform: scale(1.06);
}

.hhg-team-placeholder {
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 30% 30%, #8ec5ff, #2f67d8);
}

.hhg-team-front-content {
	padding: 14px 16px 16px;
	margin-top: 0;
	background: #F5F5F5;
	border-top: 0;
}

.hhg-team-name,
.hhg-team-title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.2;
	font-weight: 700;
}

.hhg-team-position {
	margin: 3px 0 0;
	font-size: .95rem;
	opacity: .78;
}

.hhg-team-card-back {
	transform: rotateY(180deg);
	background: #861D42;
	color: #fff;
	overflow: hidden;
}

.hhg-team-card-back::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--card-bg-img);
	background-size: cover;
	background-position: center top;
	opacity: 0.10;
	z-index: 0;
	pointer-events: none;
}

.hhg-team-back-content {
	padding: 6px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	height: 100%;
	gap: 6px;
	overflow: hidden;
	position: relative;
	z-index: 1;
}

.hhg-team-back-header {
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 10px;
}

.hhg-team-back-header .hhg-team-name,
.hhg-team-back-header .hhg-team-title {
	color: #fff!important;
}

.hhg-team-back-header .hhg-team-position {
	color: rgba(255, 255, 255, 0.8);
}


.hhg-team-bio {
	margin: 0;
	line-height: 1.6;
	font-size: .7rem;
	flex: 1;
	overflow-y: auto;
	padding: 10px 12px;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.65) rgba(255, 255, 255, 0.12);
}

.hhg-team-bio p {
	margin-top: 4px !important;
}
.hhg-team-bio a {
	color: #fff;
	text-decoration: underline;
}

.hhg-team-bio a:hover,
.hhg-team-bio a:focus {
	color: #fff;
	opacity: .9;
}

.hhg-team-bio::-webkit-scrollbar {
	width: 8px;
}

.hhg-team-bio::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
}

.hhg-team-bio::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.65);
	border-radius: 10px;
	border: 2px solid rgba(255, 255, 255, 0.12);
}

.hhg-team-bio::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.85);
}

.hhg-team-socials {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

.hhg-social-link {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 100px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	text-decoration: none;
	transition: all .2s ease;
}

.hhg-social-link:hover,
.hhg-social-link:focus {
	background: rgba(255, 255, 255, .28);
	transform: translateY(-1px);
}

.hhg-social-link svg {
	width: 18px;
	height: 18px;
	display: block;
	flex-shrink: 0;
}

.hhg-team-empty {
	margin: 8px 0;
	opacity: .8;
}

.hhg-team-grid.hhg-team-swiper {
	display: flex;
	align-items: stretch;
	overflow-x: auto;
	overflow-y: hidden;
	gap: 14px;
	padding: 4px 2px 10px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	direction: ltr;
	align-items: flex-start;
	touch-action: pan-y;
	cursor: grab;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.hhg-team-grid.hhg-team-swiper.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.hhg-team-grid.hhg-team-swiper::-webkit-scrollbar {
	display: none;
}

.hhg-team-grid.hhg-team-swiper > .hhg-team-card {
	flex: 0 0 min(88vw, 380px);
	scroll-snap-align: start;
	direction: ltr;
	user-select: none;
}

.hhg-team-swiper-progress {
	position: relative;
	height: 4px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.08);
	margin: 2px 2px 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(2px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}

.hhg-team-swiper-progress.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.hhg-team-swiper-progress-bar {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #a53a61 0%, #861D42 100%);
	transform-origin: left center;
	transform: scaleX(0);
	transition: transform .1s linear;
}

.hhg-team-grid.hhg-team-swiper .hhg-team-card {
	perspective: none;
	min-height: auto;
	height: auto;
	align-self: stretch;
	display: flex;
	flex-direction: column;
}

.hhg-team-grid.hhg-team-swiper .hhg-team-card .hhg-team-card-inner {
	transform: none !important;
	transform-style: flat;
	display: flex;
	flex-direction: column;
	flex: 1;
	height: 100%;
	transition: none;
	min-height: auto;
	box-shadow: none;
}

.hhg-team-grid.hhg-team-swiper .hhg-team-card .hhg-team-card-face {
	flex: 1;
	height: auto;
}

.hhg-team-grid.hhg-team-swiper .hhg-team-card .hhg-team-card-face {
	position: static;
	transform: none !important;
	-webkit-backface-visibility: visible;
	backface-visibility: visible;
}

.hhg-team-grid.hhg-team-swiper .hhg-team-card .hhg-team-card-back {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.hhg-team-grid.hhg-team-swiper .hhg-team-card:hover .hhg-team-image,
.hhg-team-grid.hhg-team-swiper .hhg-team-card:focus-within .hhg-team-image {
	transform: none;
}

.hhg-team-grid.hhg-team-swiper .hhg-team-image-wrap {
	height: 160px;
	aspect-ratio: unset;
	flex-shrink: 0;
}

.hhg-team-grid.hhg-team-swiper .hhg-team-card-back::before {
	display: none;
}

@media (max-width: 1100px) {
	.hhg-team-grid.columns-4,
	.hhg-team-grid.columns-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.hhg-team-grid.columns-4,
	.hhg-team-grid.columns-3,
	.hhg-team-grid.columns-2 {
		grid-template-columns: 1fr;
	}

	.hhg-team-card {
		min-height: auto;
	}

	.hhg-team-card.is-mobile {
		min-height: auto;
	}

	.hhg-team-card.is-mobile .hhg-team-card-inner {
		min-height: auto;
		flex-direction: column;
		box-shadow: none;
		height: 100%;
	}

	.hhg-team-card.is-mobile .hhg-team-card-front,
	.hhg-team-card.is-mobile .hhg-team-card-back {
		position: static;
		display: block;
		transform: none !important;
	}

	.hhg-team-card.is-mobile .hhg-team-card-front {
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
		flex: 0 0 auto;
	}

	.hhg-team-grid.hhg-team-swiper .hhg-team-card.is-mobile .hhg-team-card-front {
		flex: 0 0 auto;
	}

	.hhg-team-card.is-mobile .hhg-team-card-back {
		border-top-left-radius: 0;
		border-top-right-radius: 0;
		background: none!important;
		flex: 1 1 auto;
		min-height: 0;
	}

	.hhg-team-grid.hhg-team-swiper .hhg-team-card.is-mobile .hhg-team-card-back {
		flex: 1 1 auto;
		min-height: 0;
	}

	.hhg-team-card.is-mobile .hhg-team-image-wrap {
		height: 80px;
		aspect-ratio: unset;
		margin-top: 10px;
	}

	.hhg-team-front-content {
		padding: 12px 14px 0 14px;
	}

	.hhg-team-name {
		font-size: 1rem;
	}

	.hhg-team-position {
		font-size: .85rem;
	}
	.hhg-team-title,
	.hhg-team-position{
		margin-top:3px!important;
	}
	.hhg-team-back-content {
		padding: 0;
		min-height: 180px;
		background: #F5F5F5;
		color: #000;
	}

	.hhg-team-socials{
		padding: 12px 12px 20px 12px;
	}

	.hhg-team-socials a{
		background: #861D42;
	}

	.hhg-team-bio {
		font-size: .66rem;
		max-height: 250px;
		text-align: left;
		padding:5px 20px 5px 20px!important;
		position: relative;
		scrollbar-width: auto;
		scrollbar-color: rgba(0, 0, 0, 0.55) rgba(0, 0, 0, 0.1);
	}

	.hhg-team-bio a {
		color: #000;
	}

	.hhg-team-bio::-webkit-scrollbar {
		width: 10px;
	}

	.hhg-team-bio::-webkit-scrollbar-track {
		background: rgba(0, 0, 0, 0.08);
	}

	.hhg-team-bio::-webkit-scrollbar-thumb {
		background: rgba(0, 0, 0, 0.45);
		border: 2px solid rgba(245, 245, 245, 0.9);
	}

	.hhg-team-bio::-webkit-scrollbar-thumb:hover {
		background: rgba(0, 0, 0, 0.6);
	}

	.hhg-team-grid.hhg-team-swiper .hhg-team-bio {
		font-size: .85rem;
	}

	.hhg-team-grid.hhg-team-swiper .hhg-team-back-header {
		display: none;
	}

	.hhg-team-grid.hhg-team-swiper .hhg-team-image-wrap {
		height: 110px;
		aspect-ratio: unset;
	}
}
