/**
 * Leadership Directory Styles
 *
 * @package CJDNG
 * @since 1.8.3
 */

.cjdng-leadership-directory {
	margin: 2rem 0;
}

.cjdng-ldr-section {
	margin-bottom: 3rem;
}

.cjdng-ldr-heading {
	margin: 0 0 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--cjndg-color-primary, #DD183B);
	font-size: 1.75rem;
}

.cjdng-ldr-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
}

.cjdng-ldr-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.25rem;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
}

.cjdng-ldr-photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1rem;
}

/* Placeholder avatar when no photo is set. */
.cjdng-ldr-photo-placeholder {
	display: inline-block;
	background-color: #e5e5e5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b0b0b0'%3E%3Cpath d='M12 12c2.7 0 4.9-2.2 4.9-4.9S14.7 2.2 12 2.2 7.1 4.4 7.1 7.1 9.3 12 12 12zm0 2.4c-3.3 0-9.8 1.6-9.8 4.9v2.5h19.6v-2.5c0-3.3-6.5-4.9-9.8-4.9z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 70%;
}

.cjdng-ldr-body {
	width: 100%;
}

.cjdng-ldr-name {
	margin: 0 0 0.25rem;
	font-size: 1.15rem;
	line-height: 1.3;
}

.cjdng-ldr-role {
	margin: 0 0 0.25rem;
	font-weight: 600;
	color: var(--cjndg-color-primary, #DD183B);
}

.cjdng-ldr-centre {
	margin: 0;
	font-size: 0.95rem;
	color: #555555;
}

.cjdng-ldr-bio {
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid #ececec;
	text-align: left;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #444444;
}

.cjdng-ldr-bio p {
	margin: 0 0 0.75rem;
}

.cjdng-ldr-bio p:last-child {
	margin-bottom: 0;
}

@media (max-width: 480px) {
	.cjdng-ldr-grid {
		grid-template-columns: 1fr;
	}

	.cjdng-ldr-photo {
		width: 96px;
		height: 96px;
	}
}
