.bb-experts-grid {
	--bb-experts-navy: #08243c;
	--bb-experts-blue: #0563b6;
	--bb-experts-text: #40536a;
	--bb-experts-border: #d6dee8;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	width: 100%;
}

.bb-expert-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--bb-experts-border);
	border-top: 4px solid var(--bb-experts-blue);
	border-radius: 14px;
	box-shadow: 0 12px 35px rgba(8, 36, 60, 0.06);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.bb-expert-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 42px rgba(8, 36, 60, 0.12);
}

.bb-expert-photo {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #eef4f9;
	border-bottom: 1px solid var(--bb-experts-border);
}

.bb-expert-photo__image {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.bb-expert-photo__image--top {
	object-position: center top;
}

.bb-expert-photo__image--center {
	object-position: center center;
}

.bb-expert-photo__image--bottom {
	object-position: center bottom;
}

.bb-expert-photo__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--bb-experts-navy), var(--bb-experts-blue));
	color: #fff;
	font-size: clamp(42px, 7vw, 76px);
	font-weight: 800;
	letter-spacing: 0.06em;
}

.bb-expert-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 26px;
}

.bb-expert-card__body h3 {
	margin: 0 0 10px;
	color: var(--bb-experts-navy);
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 800;
	font-family: "Audiowide", sans-serif;
	line-height: 1.2;
}

.bb-expert-title {
	margin: 0 0 18px;
	color: var(--bb-experts-blue);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.bb-expert-bio {
	color: var(--bb-experts-text);
	font-size: 15px;
	line-height: 1.75;
}

.bb-expert-excerpt {
	display: block;
	margin: 0 0 14px;
	color: var(--bb-experts-text);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.75;
}

.bb-expert-profile {
	margin-bottom: 18px;
}

.bb-expert-profile summary {
	display: block;
	color: var(--bb-experts-blue);
	cursor: pointer;
	font-size: 14px;
	font-weight: 800;
	list-style: none;
}

.bb-expert-profile summary::-webkit-details-marker {
	display: none;
}

.bb-expert-profile summary:hover,
.bb-expert-profile summary:focus-visible {
	color: var(--bb-experts-navy);
	text-decoration: underline;
}

.bb-expert-bio {
	padding-top: 14px;
}

.bb-expert-profile__close-label {
	display: none;
}

.bb-expert-profile[open] .bb-expert-excerpt,
.bb-expert-profile[open] .bb-expert-profile__open-label {
	display: none;
}

.bb-expert-profile[open] .bb-expert-profile__close-label {
	display: inline;
}

.bb-expert-bio p {
	margin: 0 0 12px;
}

.bb-expert-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 16px;
}

.bb-expert-links a {
	color: var(--bb-experts-blue);
	font-weight: 700;
	text-decoration: none;
}

.bb-expert-specialties {
	margin-top: auto;
	padding-top: 17px;
	border-top: 1px solid var(--bb-experts-border);
	color: var(--bb-experts-blue);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.04em;
}

.bb-experts-empty {
	padding: 20px;
	border: 1px dashed var(--bb-experts-border);
	text-align: center;
}

@media (max-width: 1024px) {
	.bb-experts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.bb-experts-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.bb-expert-card__body {
		padding: 21px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.bb-expert-card {
		transition: none;
	}
}
