/* Dr. Dad Experts — Wall of Fame + card styles. Namespaced to .drdad-* to avoid theme/page-builder conflicts. */

.drdad-expert-wall {
	max-width: var(--drdad-container, 1200px);
	margin: 0 auto;
	padding: 8px 0 40px;
}

/* Intro heading */
.drdad-wall-intro {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 36px;
}
.drdad-wall-title {
	font-size: 30px;
	font-weight: 700;
	color: var(--drdad-text, #0f1b3d);
	margin: 0 0 12px;
	line-height: 1.25;
}
.drdad-wall-subtitle {
	font-size: 15px;
	line-height: 1.7;
	color: #6b7280;
	margin: 0;
}

/* Controls: centered stack, not stretched edge-to-edge */
.drdad-wall-controls {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	margin-bottom: 40px;
}

.drdad-wall-search {
	display: flex;
	width: 100%;
	max-width: 420px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
	transition: border-color .15s ease;
}
.drdad-wall-search:focus-within { border-color: var(--drdad-primary, #d6336c); }
.drdad-wall-search input[type="text"] {
	flex: 1;
	border: none;
	outline: none;
	padding: 12px 18px;
	font-size: 14px;
	background: transparent;
}
.drdad-wall-search button {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--drdad-primary, #d6336c);
	color: #fff;
	border: none;
	width: 44px;
	flex-shrink: 0;
	cursor: pointer;
}
.drdad-wall-search button:hover { opacity: .92; }

.drdad-wall-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.drdad-filter-pill {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #374151;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
.drdad-filter-pill:hover { background: #fdf2f8; color: var(--drdad-primary, #d6336c); }
.drdad-filter-pill.is-active { background: var(--drdad-primary, #d6336c); color: #fff; }

/* Grid: cards keep a natural width and never stretch to fill an
   under-populated row, so a page with only 1–3 experts still looks
   intentional instead of leaving a huge blank void. */
.drdad-expert-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
}
.drdad-expert-grid .drdad-expert-card {
	flex: 1 1 260px;
	max-width: calc((100% - (var(--drdad-wall-columns, 4) - 1) * 28px) / var(--drdad-wall-columns, 4));
	min-width: 240px;
}
.drdad-expert-grid-single .drdad-expert-card {
	flex: 0 1 300px;
	max-width: 300px;
}

.drdad-expert-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border: 1px solid #eef0f4;
	border-radius: var(--drdad-radius, 12px);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15,27,61,.04);
	transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.drdad-expert-card:hover {
	box-shadow: 0 16px 32px rgba(15,27,61,.12);
	transform: translateY(-4px);
	border-color: #f4d6e2;
}

.drdad-expert-card-photo { position: relative; aspect-ratio: 1 / 1; background: #f9fafb; }
.drdad-expert-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drdad-expert-card-photo-placeholder {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%;
	font-size: 42px; font-weight: 700;
	color: var(--drdad-primary, #d6336c);
	background: #fdf2f8;
}

.drdad-expert-card-body {
	padding: 18px 18px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.drdad-expert-card-name { font-size: 17px; font-weight: 700; margin: 0 0 4px; color: var(--drdad-text, #0f1b3d); line-height: 1.3; }
.drdad-expert-card-type { font-size: 13px; color: var(--drdad-primary, #d6336c); font-weight: 600; margin: 0 0 8px; }

.drdad-expert-card-meta { font-size: 12.5px; color: #6b7280; margin: 0 0 12px; line-height: 1.6; }
.drdad-expert-card-qualification, .drdad-expert-card-years { margin: 0; }

.drdad-pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.drdad-pill {
	display: inline-block;
	background: #fdf2f8;
	color: var(--drdad-primary, #d6336c);
	font-size: 13px;
	font-weight: 500;
	padding: 6px 12px;
	border-radius: 999px;
}
.drdad-pill-sm { font-size: 11.5px; padding: 4px 10px; }
.drdad-pill-list-sm { margin: 0 0 16px; }

.drdad-expert-card-link {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--drdad-primary, #d6336c);
	padding-top: 12px;
	border-top: 1px solid #f3f4f6;
}
.drdad-expert-card:hover .drdad-expert-card-link { gap: 9px; }

.drdad-wall-empty {
	text-align: center;
	color: #6b7280;
	padding: 60px 20px;
	background: #fafafa;
	border-radius: var(--drdad-radius, 12px);
}

@media (max-width: 900px) {
	.drdad-expert-grid .drdad-expert-card { max-width: calc((100% - 28px) / 3); }
}
@media (max-width: 680px) {
	.drdad-expert-grid .drdad-expert-card { max-width: calc((100% - 28px) / 2); }
	.drdad-wall-title { font-size: 24px; }
}
@media (max-width: 420px) {
	.drdad-expert-grid .drdad-expert-card { max-width: 100%; flex-basis: 100%; }
}

/* Admin repeater fields (reused here to avoid a second stylesheet in wp-admin) */
.drdad-repeater-table input[type="text"] { width: 100%; }
.drdad-faq-row { border: 1px solid #e5e7eb; padding: 12px; border-radius: 6px; margin-bottom: 10px; }
