.hospa-doctor-directory {
	--hospa-dd-columns: 4;
	--mainColor: #9588e8;
	--optionalColor: #0b55e5;
	--hospa-dd-ink: #152b38;
	--hospa-dd-muted: #647782;
	--hospa-dd-line: #dce6e7;
	--hospa-dd-soft: #f3f8f7;
	--hospa-dd-white: #fff;
	color: var(--hospa-dd-ink);
	font-family: inherit;
	position: relative;
}

.hospa-dd-filter-panel {
	background: var(--hospa-dd-soft);
	border: 1px solid var(--hospa-dd-line);
	border-radius: 18px;
	box-shadow: 0 12px 35px rgba(19, 52, 61, 0.07);
	margin-bottom: 32px;
	padding: 24px;
}

.hospa-dd-filter-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.hospa-dd-control {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	min-width: 0;
}

.hospa-dd-control > span {
	color: var(--hospa-dd-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.hospa-dd-control input,
.hospa-dd-control select {
	appearance: none;
	background-color: var(--hospa-dd-white);
	border: 1px solid var(--hospa-dd-line);
	border-radius: 10px;
	box-shadow: none;
	color: var(--hospa-dd-ink);
	font: inherit;
	font-size: 15px;
	height: 50px;
	line-height: 1.3;
	margin: 0;
	outline: 0;
	padding: 0 44px 0 15px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

.hospa-dd-control select {
	background-image: linear-gradient(45deg, transparent 50%, var(--mainColor) 50%),
		linear-gradient(135deg, var(--mainColor) 50%, transparent 50%);
	background-position: calc(100% - 19px) 22px, calc(100% - 14px) 22px;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
}

.hospa-dd-control input:focus,
.hospa-dd-control select:focus {
	border-color: var(--mainColor);
	box-shadow: 0 0 0 3px rgba(13, 110, 97, 0.12);
}

.hospa-dd-control select:disabled {
	background-color: #edf1f1;
	color: #8c999f;
	cursor: not-allowed;
}

.hospa-dd-search-control {
	position: relative;
}

.hospa-dd-search-control::after {
	border: 2px solid var(--mainColor);
	border-radius: 50%;
	bottom: 17px;
	content: "";
	height: 11px;
	pointer-events: none;
	position: absolute;
	right: 19px;
	width: 11px;
}

.hospa-dd-search-control::before {
	background: var(--mainColor);
	bottom: 16px;
	content: "";
	height: 2px;
	pointer-events: none;
	position: absolute;
	right: 16px;
	transform: rotate(45deg);
	width: 7px;
}

.hospa-dd-filter-footer {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-top: 18px;
}

.hospa-dd-summary {
	color: var(--hospa-dd-muted);
	font-size: 14px;
	font-weight: 600;
	margin: 0;
}

.hospa-dd-reset {
	background: transparent;
	border: 0;
	color: var(--mainColor);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	padding: 4px 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hospa-dd-results-wrap {
	min-height: 120px;
	position: relative;
}

.hospa-dd-results {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(var(--hospa-dd-columns), minmax(0, 1fr));
	transition: opacity 0.2s ease;
}

.hospa-dd-card {
	background: var(--hospa-dd-white);
	border: 1px solid var(--hospa-dd-line);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(18, 55, 65, 0.07);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hospa-dd-card:hover {
	box-shadow: 0 18px 42px rgba(18, 55, 65, 0.13);
	transform: translateY(-4px);
}

.hospa-dd-card-media {
	background: #eaf3f2;
	display: block;
	overflow: hidden;
	position: relative;
}

.hospa-dd-card-image {
	aspect-ratio: 4 / 3;
	display: block;
	height: auto;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.35s ease;
	width: 100%;
}

.hospa-dd-card:hover .hospa-dd-card-image {
	transform: scale(1.025);
}

.hospa-dd-card-placeholder {
	align-items: center;
	aspect-ratio: 4 / 3;
	display: flex;
	justify-content: center;
}

.hospa-dd-card-placeholder svg {
	fill: none;
	height: 44%;
	stroke: rgba(13, 110, 97, 0.38);
	stroke-linecap: round;
	stroke-width: 3;
	width: 44%;
}

.hospa-dd-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.hospa-dd-speciality {
	color: var(--mainColor);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.4;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.hospa-dd-card-title {
	font-size: clamp(19px, 1.8vw, 23px);
	font-weight: 750;
	line-height: 1.25;
	margin: 0 0 6px;
}

.hospa-dd-card-title a {
	color: var(--hospa-dd-ink);
	text-decoration: none;
}

.hospa-dd-card-title a:hover {
	color: var(--mainColor);
}

.hospa-dd-designation,
.hospa-dd-qualification,
.hospa-dd-excerpt {
	color: var(--hospa-dd-muted);
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 7px;
}

.hospa-dd-designation {
	color: #405762;
	font-weight: 700;
}

.hospa-dd-excerpt {
	border-top: 1px solid #edf1f2;
	margin-top: 7px;
	padding-top: 12px;
}

.hospa-dd-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 12px;
	list-style: none;
	margin: 12px 0 18px;
	padding: 0;
}

.hospa-dd-meta li {
	align-items: center;
	color: var(--hospa-dd-muted);
	display: inline-flex;
	font-size: 13px;
	gap: 6px;
	line-height: 1.35;
	margin: 0;
}

.hospa-dd-meta li span {
	color: var(--mainColor);
	font-weight: 800;
}

.hospa-dd-profile-button {
	align-items: center;
	align-self: flex-start;
	background: var(--mainColor);
	border-radius: 9px;
	color: var(--hospa-dd-white);
	display: inline-flex;
	font-size: 14px;
	font-weight: 750;
	gap: 10px;
	justify-content: center;
	margin-top: auto;
	min-height: 43px;
	padding: 10px 16px;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.hospa-dd-profile-button:hover,
.hospa-dd-profile-button:focus {
	background: var(--optionalColor);
	color: var(--hospa-dd-white);
	transform: translateY(-1px);
}

.hospa-dd-profile-button span {
	font-size: 18px;
	line-height: 1;
}

.hospa-dd-loading {
	align-items: center;
	background: rgba(255, 255, 255, 0.7);
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 0.2s ease;
	z-index: 5;
}

.is-loading .hospa-dd-loading {
	opacity: 1;
	pointer-events: auto;
}

.is-loading .hospa-dd-results {
	opacity: 0.55;
}

.hospa-dd-spinner {
	animation: hospa-dd-spin 0.75s linear infinite;
	border: 3px solid rgba(13, 110, 97, 0.2);
	border-radius: 50%;
	border-top-color: var(--mainColor);
	height: 34px;
	width: 34px;
}

@keyframes hospa-dd-spin {
	to {
		transform: rotate(360deg);
	}
}

.hospa-dd-empty {
	align-items: center;
	background: var(--hospa-dd-soft);
	border: 1px dashed #bfd0d0;
	border-radius: 15px;
	display: flex;
	flex-direction: column;
	grid-column: 1 / -1;
	justify-content: center;
	min-height: 220px;
	padding: 36px;
	text-align: center;
}

.hospa-dd-empty-icon {
	align-items: center;
	background: var(--hospa-dd-white);
	border: 2px solid var(--mainColor);
	border-radius: 50%;
	color: var(--mainColor);
	display: flex;
	font-size: 27px;
	height: 50px;
	justify-content: center;
	margin-bottom: 13px;
	transform: rotate(45deg);
	width: 50px;
}

.hospa-dd-empty p {
	color: var(--hospa-dd-muted);
	font-size: 16px;
	margin: 0;
}

.hospa-dd-pagination {
	display: flex;
	justify-content: center;
	margin-top: 34px;
	min-height: 1px;
}

.hospa-dd-load-more {
	background: var(--mainColor);
	border: 0;
	border-radius: 10px;
	color: var(--hospa-dd-white);
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 750;
	min-height: 46px;
	padding: 11px 24px;
}

.hospa-dd-number-pagination {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.hospa-dd-number-pagination button {
	align-items: center;
	background: var(--hospa-dd-white);
	border: 1px solid var(--hospa-dd-line);
	border-radius: 8px;
	color: var(--hospa-dd-ink);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	height: 42px;
	justify-content: center;
	min-width: 42px;
	padding: 0 10px;
}

.hospa-dd-number-pagination button:hover,
.hospa-dd-number-pagination button.is-current {
	background: var(--mainColor);
	border-color: var(--mainColor);
	color: var(--hospa-dd-white);
}

.hospa-dd-number-pagination button:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

.hospa-dd-infinite-sentinel {
	height: 2px;
	width: 100%;
}

.hospa-dd-infinite-fallback {
	background: var(--mainColor);
	border-radius: 10px;
	color: var(--hospa-dd-white);
	cursor: pointer;
	height: auto;
	padding: 12px 24px;
	text-align: center;
	width: auto;
}

.hospa-dd-error {
	background: #fff2f2;
	border: 1px solid #e7bcbc;
	border-radius: 9px;
	color: #8b2929;
	margin-top: 20px;
	padding: 12px 16px;
	text-align: center;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 767px) {
	.hospa-dd-filter-panel {
		border-radius: 14px;
		padding: 18px;
	}

	.hospa-dd-filter-grid {
		grid-template-columns: 1fr;
	}

	.hospa-dd-filter-footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.hospa-dd-results {
		gap: 18px;
	}

	.hospa-dd-card-body {
		padding: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hospa-dd-card,
	.hospa-dd-card-image,
	.hospa-dd-profile-button,
	.hospa-dd-results,
	.hospa-dd-loading {
		transition: none;
	}

	.hospa-dd-spinner {
		animation-duration: 1.5s;
	}
}
