/**
 * Sport Ortho — Provider card and grid styles.
 *
 * Scoped entirely to .so-provider-card and .so-provider-grid.
 * No IDs, no !important. Intentionally light so Elementor global
 * styles can layer on top without conflicts.
 */

/* ── Grid ── */

.so-provider-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	width: 100%;
}

/* ── Card ── */

.so-provider-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	overflow: hidden;
	min-width: 0;
}

/* ── Headshot ── */

.so-provider-card__headshot {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f0f0f0;
}

.so-provider-card__headshot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Body ── */

.so-provider-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.25rem;
	gap: 0.75rem;
}

/* ── Name + Credentials ── */

.so-provider-card__name {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.so-provider-card__credentials {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 400;
	color: #555555;
	margin-left: 0.25rem;
}

/* ── Specialty Areas ── */

.so-provider-card__specialties {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.so-provider-card__specialties li {
	font-size: 0.8rem;
	background: #f4f4f4;
	border-radius: 3px;
	padding: 0.2em 0.5em;
	color: #333333;
}

/* ── Short Bio ── */

.so-provider-card__bio {
	font-size: 0.9rem;
	line-height: 1.5;
	color: #444444;
	margin: 0;
	flex: 1;
}

/* ── CTA Button ── */

.so-provider-card__cta {
	display: inline-block;
	margin-top: auto;
	padding: 0.6em 1.2em;
	background: var(--so-brand-primary, #005b99);
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 500;
	text-align: center;
	transition: background 0.2s ease;
}

.so-provider-card__cta:hover,
.so-provider-card__cta:focus {
	background: var(--so-brand-primary-dark, #004880);
	color: #ffffff;
}

.so-provider-card__cta:focus-visible {
	outline: 2px solid var(--so-brand-primary, #005b99);
	outline-offset: 3px;
}

/* ── Responsive: single column below 600px ── */

@media (max-width: 600px) {
	.so-provider-grid {
		grid-template-columns: 1fr;
	}
}
