/**
 * Doctor grid shortcodes — card layout inspired by clean medical marketing grids.
 */

.orthonc-doctor-grid {
	--orthonc-cols: 3;
	--orthonc-cols-t: 2;
	--orthonc-cols-m: 1;
	display: grid;
	grid-template-columns: repeat(var(--orthonc-cols), minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 0.5rem 0 2rem;
}

@media (max-width: 980px) {
	.orthonc-doctor-grid {
		grid-template-columns: repeat(var(--orthonc-cols-t), minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.orthonc-doctor-grid {
		grid-template-columns: repeat(var(--orthonc-cols-m), minmax(0, 1fr));
	}
}

.orthonc-doctor-grid__empty {
	text-align: center;
	color: var(--orthonc-color-text, #3d4554);
	padding: 2rem 1rem;
	margin: 0 auto;
	max-width: 720px;
}

.orthonc-doctor-card {
	background: var(--orthonc-color-surface, #fff);
	border: 1px solid var(--orthonc-color-border, #e6e8ec);
	border-radius: var(--orthonc-radius, 4px);
	box-shadow: 0 8px 24px rgba(26, 43, 74, 0.06);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.orthonc-doctor-card:hover {
	box-shadow: 0 12px 32px rgba(26, 43, 74, 0.1);
	transform: translateY(-2px);
}

.orthonc-doctor-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--orthonc-color-page, #f4f5f7);
	overflow: hidden;
}

.orthonc-doctor-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.orthonc-doctor-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8ecf2, #f4f5f7);
}

.orthonc-doctor-card__body {
	padding: clamp(1rem, 2.5vw, 1.5rem);
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.5rem;
}

.orthonc-doctor-card__position {
	margin: 0;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	font-family: var(--orthonc-font-body, system-ui, sans-serif);
}

.orthonc-doctor-card__title {
	margin: 0;
	font-family: var(--orthonc-font-heading, Georgia, serif);
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	line-height: 1.35;
	font-weight: 700;
	color: var(--orthonc-color-heading, #1a2b4a);
}

.orthonc-doctor-card__title a {
	color: inherit;
	text-decoration: none;
}

.orthonc-doctor-card__title a:hover,
.orthonc-doctor-card__title a:focus {
	color: var(--orthonc-color-accent, #b8956a);
}

.orthonc-doctor-card__excerpt {
	margin: 0;
	font-size: 0.95rem;
	color: var(--orthonc-color-text, #3d4554);
	line-height: 1.55;
	flex: 1;
	font-family: var(--orthonc-font-body, system-ui, sans-serif);
}

.orthonc-doctor-card__more {
	margin-top: 0.25rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--orthonc-color-accent, #b8956a);
	text-decoration: none;
	align-self: flex-start;
	font-family: var(--orthonc-font-body, system-ui, sans-serif);
}

.orthonc-doctor-card__more:hover,
.orthonc-doctor-card__more:focus {
	text-decoration: underline;
}

/* [post_doctor] Load More */
.orthonc-doctor-posts {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.orthonc-doctor-posts .orthonc-doctor-grid {
	max-width: none;
}

.orthonc-doctor-posts__more-wrap {
	display: flex;
	justify-content: center;
	padding: 0.5rem 0 2rem;
}

.orthonc-doctor-posts__load-more {
	appearance: none;
	border: 1px solid var(--orthonc-color-accent, #b8956a);
	background: var(--orthonc-color-accent, #b8956a);
	color: #fff;
	font-family: var(--orthonc-font-body, system-ui, sans-serif);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 0.75rem 1.75rem;
	cursor: pointer;
	border-radius: var(--orthonc-radius, 4px);
	transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.orthonc-doctor-posts__load-more:hover,
.orthonc-doctor-posts__load-more:focus {
	background: #a07f55;
	border-color: #a07f55;
}

.orthonc-doctor-posts__load-more:disabled {
	opacity: 0.7;
	cursor: wait;
}

/* [blog_title_of_doctor] */
h2.orthonc-blog-title-of-doctor,
.orthonc-blog-title-of-doctor {
	font-family: Merriweather, Georgia, "Times New Roman", serif;
	font-style: normal;
	font-weight: 500;
	color: rgb(42, 61, 96);
	font-size: 26px;
	line-height: 31px;
	margin: 0 0 1.25rem;
	padding: 0;
}

.orthonc-blog-title-of-doctor__prefix,
.orthonc-blog-title-of-doctor__name {
	font: inherit;
	color: inherit;
}

/* [dynamic_row] stats bar */
.orthonc-dynamic-row-wrap {
	width: 100%;
}

.orthonc-dynamic-row {
	--orthonc-dynamic-cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--orthonc-dynamic-cols), minmax(0, 1fr));
	background-color: #3c5164;
	width: 100%;
}

.orthonc-dynamic-row__col {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 48px 24px;
	border-right: 1px solid #3b4858;
	box-sizing: border-box;
}

.orthonc-dynamic-row__col:last-child {
	border-right: none;
}

.orthonc-dynamic-row__figure {
	font-family: Merriweather, Georgia, "Times New Roman", serif;
	font-style: normal;
	font-weight: 700;
	color: rgb(175, 148, 91);
	font-size: 32px;
	line-height: 38px;
	margin: 0;
}

.orthonc-dynamic-row__title {
	font-family: Merriweather, Georgia, "Times New Roman", serif;
	font-style: normal;
	font-weight: 500;
	color: rgb(255, 255, 255);
	font-size: 20px;
	line-height: 24px;
	margin: 0;
}

.orthonc-dynamic-row__figure + .orthonc-dynamic-row__title {
	margin-top: 4px;
}

@media (max-width: 980px) {
	.orthonc-dynamic-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.orthonc-dynamic-row__col {
		border-right: none;
	}

	.orthonc-dynamic-row__col:nth-child(odd):not(:last-child) {
		border-right: 1px solid #3b4858;
	}
}

@media (max-width: 600px) {
	.orthonc-dynamic-row {
		grid-template-columns: 1fr;
	}

	.orthonc-dynamic-row__col {
		border-right: none;
		border-bottom: 1px solid #3b4858;
		padding: 36px 20px;
	}

	.orthonc-dynamic-row__col:last-child {
		border-bottom: none;
	}
}
