/**
 * MyDodoLife Experts — shortcode styles.
 */

.mdl-experts {
	--mdl-expert-text: #31616e;
	--mdl-expert-card-bg: #f0f0f0;
	--mdl-expert-accent: #fecb0a;
	width: 100%;
	max-width: 100%;
	color: var(--mdl-expert-text);
	font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mdl-experts__grid {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: start;
}

.mdl-experts--grid .mdl-experts__grid {
	column-gap: clamp(2rem, 4.5vw, 3.5rem);
	row-gap: clamp(2.25rem, 5vw, 4rem);
}

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

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

.mdl-expert {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 0;
}

.mdl-expert--card {
	background: var(--mdl-expert-card-bg);
	border-radius: 16px;
	padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.75rem);
	height: 100%;
	box-sizing: border-box;
}

.mdl-expert__photo {
	width: clamp(7.5rem, 12vw, 9.5rem);
	height: clamp(7.5rem, 12vw, 9.5rem);
	margin: 0;
	border-radius: 50%;
	overflow: hidden;
	background: #d9e2e5;
	flex-shrink: 0;
}

.mdl-expert__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mdl-expert__name {
	margin: 1.75rem 0 0;
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
}

.mdl-expert__roles {
	margin: 1.15rem 0 0;
	font-size: clamp(0.9rem, 1.15vw, 1rem);
	font-weight: 500;
	line-height: 1.4;
	color: inherit;
}

.mdl-expert--card .mdl-expert__roles {
	font-weight: 700;
}

.mdl-expert__description {
	margin: 1.35rem 0 0;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.55;
	color: inherit;
	flex: 1 1 auto;
}

.mdl-expert__description p {
	margin: 0 0 0.75rem;
}

.mdl-expert__description p:last-child {
	margin-bottom: 0;
}

.mdl-expert-button {
	position: relative;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	column-gap: 18px;
	margin-top: 1.5rem;
	padding: 6px 10px 6px 22px;
	border-radius: 15px;
	background-color: #31616e;
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	transition: filter 0.2s ease;
}

.mdl-expert-button:hover,
.mdl-expert-button:focus-visible {
	filter: brightness(1.06);
	color: #ffffff;
}

.mdl-expert-button__text {
	position: relative;
	z-index: 1;
}

.mdl-expert-button__icon {
	position: relative;
	z-index: 1;
	display: block;
	width: 39px;
	height: 39px;
	flex-shrink: 0;
}

.mdl-expert-button__icon svg {
	display: block;
	width: 100%;
	height: auto;
}

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

	.mdl-experts__grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mdl-experts__grid--4,
	.mdl-experts__grid--3 {
		grid-template-columns: 1fr;
		max-width: 22rem;
		margin-inline: auto;
	}
}
