/* ==========================================================================
   Doctors – listing, cards, profile
   ========================================================================== */

/* Doctor card – portrait card, glass panel that reveals details on hover */
.sw-doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sw-dcard {
	--dc-teal: color-mix(in srgb, var(--sw-primary) 70%, var(--sw-dark));
	position: relative;
	height: clamp(440px, 36vw, 500px);
	border-radius: 26px;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(90% 55% at 50% 105%, color-mix(in srgb, var(--sw-primary) 42%, #fff) 0%, transparent 70%),
		radial-gradient(60% 45% at 85% 8%, rgba(255, 255, 255, .9) 0%, transparent 70%),
		linear-gradient(165deg, #F3F8FA 0%, color-mix(in srgb, var(--sw-primary) 16%, #EEF6F9) 100%);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 0 0 1px color-mix(in srgb, var(--sw-dark) 6%, transparent);
	transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s cubic-bezier(.22, .61, .36, 1);
}
.sw-dcard.is-hidden { display: none; }
.sw-dcard:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--sw-primary) 25%, transparent), 0 34px 60px -30px rgba(10, 34, 51, .45); }
.sw-dcard__link { position: absolute; inset: 0; z-index: 4; }

/* Big soft ring behind the doctor */
.sw-dcard::before {
	content: ""; position: absolute; z-index: -1;
	left: 50%; top: 14%; width: 84%; aspect-ratio: 1;
	transform: translateX(-50%);
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--sw-primary) 22%, transparent);
	background: radial-gradient(circle, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, 0) 68%);
	transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.sw-dcard:hover::before { transform: translateX(-50%) scale(1.08); }

.sw-dcard__media { position: absolute; inset: 0; }
.sw-dcard__img {
	position: absolute; left: 50%; bottom: 0;
	height: 80%; width: auto; max-width: none;
	transform: translateX(-50%);
	transform-origin: 50% 100%;
	transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}
.sw-dcard:hover .sw-dcard__img { transform: translateX(-50%) scale(1.04); }

/* No photo yet: large initials + a soft icon */
.sw-dcard__initials {
	position: absolute; left: 0; right: 0; top: 16%;
	text-align: center;
	font-size: clamp(6rem, 9vw, 8.5rem); font-weight: 600; letter-spacing: -0.06em; line-height: 1;
	background: linear-gradient(180deg, color-mix(in srgb, var(--sw-primary) 55%, #fff) 0%, color-mix(in srgb, var(--sw-primary) 12%, #fff) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}
.sw-dcard:hover .sw-dcard__initials { transform: translateY(-6px); }
.sw-dcard__silhouette {
	position: absolute; left: 50%; top: calc(16% + clamp(6.6rem, 10vw, 9.3rem));
	display: grid; place-items: center;
	width: 52px; height: 52px; transform: translateX(-50%);
	border-radius: 50%; background: rgba(255, 255, 255, .8);
	color: var(--dc-teal);
	box-shadow: 0 10px 24px -14px rgba(10, 34, 51, .4);
}
.sw-dcard__silhouette .sw-icon { width: 24px; height: 24px; }

/* Top row */
.sw-dcard__top { position: absolute; left: 16px; right: 16px; top: 16px; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none; }
.sw-dcard__spec {
	padding: 7px 13px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .72);
	border: 1px solid rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	font-size: .76rem; font-weight: 500; line-height: 1.2; color: var(--dc-teal);
}
.sw-dcard__go {
	flex: none; display: grid; place-items: center;
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--sw-dark); color: #fff;
	transition: transform .45s cubic-bezier(.22, .61, .36, 1), background-color .3s;
}
.sw-dcard__go .sw-icon { width: 18px; height: 18px; }
.sw-dcard:hover .sw-dcard__go { transform: rotate(45deg); background: var(--sw-primary); }
.sw-dcard__badge {
	margin-bottom: 8px;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 11px 5px 8px; border-radius: 999px;
	background: var(--sw-dark); color: #fff; font-size: .74rem; font-weight: 500;
}
.sw-dcard__badge .sw-icon { width: 14px; height: 14px; color: color-mix(in srgb, var(--sw-primary) 60%, #fff); }

/* Glass info panel – details slide in on hover */
.sw-dcard__panel {
	position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
	padding: 16px 18px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .82);
	border: 1px solid rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
	box-shadow: 0 18px 40px -22px rgba(10, 34, 51, .45);
	pointer-events: none;
}
.sw-dcard__name { margin: 0 0 3px; font-size: 1.3rem; letter-spacing: -0.025em; line-height: 1.15; }
.sw-dcard__role { margin: 0; font-size: .86rem; line-height: 1.4; color: var(--sw-muted); }
.sw-dcard__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.22, .61, .36, 1); }
.sw-dcard__more > div { overflow: hidden; }
.sw-dcard:hover .sw-dcard__more,
.sw-dcard:focus-within .sw-dcard__more { grid-template-rows: 1fr; }
.sw-dcard__deg { display: flex; gap: 8px; margin: 12px 0 14px; padding-top: 12px; border-top: 1px solid var(--sw-border); font-size: .8rem; line-height: 1.45; color: var(--sw-dark); }
.sw-dcard__deg .sw-icon { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--sw-primary); }
.sw-dcard__actions { display: flex; gap: 8px; }
.sw-dcard__btn, .sw-dcard__book {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	height: 42px; padding: 0 16px; border-radius: 999px;
	font-size: .86rem; font-weight: 500;
}
.sw-dcard__btn { flex: 1; background: var(--sw-dark); color: #fff; }
.sw-dcard__book { position: relative; z-index: 5; pointer-events: auto; background: var(--sw-primary); color: #fff; transition: background-color .25s; }
.sw-dcard__book:hover { background: var(--sw-primary-hover); }
.sw-dcard__book .sw-icon { width: 16px; height: 16px; }

/* Touch screens: details always visible */
@media (hover: none), (max-width: 620px) {
	.sw-dcard__more { grid-template-rows: 1fr; }
}
@media (max-width: 1023px) { .sw-doc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
	.sw-dcard { height: 480px; }
}

/* Monogram when no photo yet */
.sw-monogram {
	position: absolute; inset: 0;
	display: grid; place-content: center; justify-items: center; gap: 10px;
}
.sw-monogram span {
	display: grid; place-items: center;
	width: 112px; height: 112px; border-radius: 50%;
	background: var(--sw-white);
	box-shadow: 0 18px 40px -20px rgba(15, 26, 32, .35);
	font-size: 2.3rem; font-weight: 600; letter-spacing: -0.03em;
	color: color-mix(in srgb, var(--sw-primary) 70%, var(--sw-dark));
}
.sw-monogram small { font-size: .75rem; color: var(--sw-muted); letter-spacing: .04em; }

/* ---------- Profile ---------- */
.sw-dprof__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sw-dprof__visual {
	position: relative;
	height: clamp(440px, 40vw, 580px);
	border-radius: var(--sw-radius); overflow: hidden;
	background:
		radial-gradient(75% 55% at 50% 100%, color-mix(in srgb, var(--sw-primary) 30%, var(--sw-white)) 0%, transparent 75%),
		linear-gradient(180deg, color-mix(in srgb, var(--sw-primary) 5%, var(--sw-light)) 0%, color-mix(in srgb, var(--sw-primary) 15%, var(--sw-white)) 100%);
}
.sw-dprof__visual::before {
	content: ""; position: absolute; left: 50%; bottom: 18%; width: 74%; aspect-ratio: 1; transform: translateX(-50%);
	border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .25) 55%, transparent 72%);
}
.sw-dprof__img { position: absolute; left: 50%; bottom: -5%; height: min(97%, 580px); width: auto; max-width: none; transform: translateX(-50%); z-index: 1; }
.sw-dprof__visual .sw-monogram span { width: 150px; height: 150px; font-size: 3rem; }
.sw-dprof__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sw-tag--accent { background: var(--sw-dark); border-color: var(--sw-dark); color: var(--sw-white); }
.sw-dprof__name { margin: 0 0 6px; font-size: clamp(2.3rem, 1.4rem + 2.4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.04em; }
.sw-dprof__role { margin: 0 0 14px; font-size: 1.05rem; font-weight: 500; color: color-mix(in srgb, var(--sw-primary) 70%, var(--sw-dark)); }
.sw-dprof__deg { display: flex; gap: 10px; margin: 0 0 14px; font-size: .92rem; line-height: 1.5; }
.sw-dprof__deg .sw-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--sw-primary); flex: none; }
.sw-dprof__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .9rem; color: var(--sw-muted); }
.sw-dprof__facts li { display: flex; align-items: center; gap: 8px; }
.sw-dprof__facts .sw-icon { width: 17px; height: 17px; color: var(--sw-primary); }
.sw-dprof__intro { margin: 0 0 22px; max-width: 600px; color: var(--sw-muted); line-height: 1.65; }
.sw-dprof__hl { margin-bottom: 26px; }

/* Body with sticky booking box */
.sw-dbody__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.sw-dblock { padding: clamp(24px, 3vw, 34px) 0; border-top: 1px solid var(--sw-border); }
.sw-dblock:first-child { border-top: 0; padding-top: 0; }
.sw-dblock__title { margin: 0 0 18px; font-size: clamp(1.45rem, 1.1rem + .9vw, 1.9rem); letter-spacing: -0.03em; }
.sw-dblock .sw-prose { color: color-mix(in srgb, var(--sw-dark) 80%, var(--sw-white)); }
.sw-dblock .sw-prose p:last-child { margin-bottom: 0; }
.sw-dblock--split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.sw-exp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sw-exp__item { padding: 20px; border-radius: 16px; background: var(--sw-light); transition: background-color .3s var(--sw-ease); }
.sw-exp__item:hover { background: color-mix(in srgb, var(--sw-primary) 10%, var(--sw-white)); }
.sw-exp__num { display: block; margin-bottom: 10px; font-size: .8rem; font-weight: 600; color: var(--sw-primary); }
.sw-exp__item h3 { margin: 0 0 6px; font-size: 1.05rem; letter-spacing: -0.015em; }
.sw-exp__item p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--sw-muted); }

.sw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sw-chips li { padding: 8px 15px; border: 1px solid var(--sw-border); border-radius: 999px; font-size: .88rem; }

.sw-approach {
	position: relative;
	margin: 8px 0 clamp(24px, 3vw, 34px);
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--sw-radius);
	color: var(--sw-white);
	background:
		radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--sw-primary) 45%, transparent) 0%, transparent 70%),
		linear-gradient(135deg, #0A2233 0%, var(--sw-overlay) 100%);
}
.sw-approach span { display: block; margin-bottom: 12px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--sw-primary) 70%, #fff); }
.sw-approach p { margin: 0; font-size: clamp(1.1rem, .95rem + .5vw, 1.35rem); line-height: 1.5; letter-spacing: -0.015em; }

.sw-timeline { margin: 0; padding: 0; list-style: none; }
.sw-timeline li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 0 0 18px 24px; }
.sw-timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--sw-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sw-primary) 18%, transparent); }
.sw-timeline li::after { content: ""; position: absolute; left: 4.5px; top: 22px; bottom: 2px; width: 1px; background: var(--sw-border); }
.sw-timeline li:last-child::after { display: none; }
.sw-timeline li:last-child { padding-bottom: 0; }
.sw-timeline b { font-weight: 600; font-size: .92rem; }
.sw-timeline span { font-size: .95rem; line-height: 1.5; }
.sw-timeline li.no-year { grid-template-columns: 1fr; }
.sw-ticks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sw-ticks li { display: flex; gap: 10px; font-size: .93rem; line-height: 1.45; }
.sw-ticks .sw-icon { width: 17px; height: 17px; margin-top: 2px; color: var(--sw-primary); flex: none; }

/* Booking box */
.sw-dbody__side { position: sticky; top: 100px; }
.sw-bookbox { padding: 22px; border-radius: var(--sw-radius); background: var(--sw-light); }
.sw-bookbox__doc { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--sw-border); }
.sw-bookbox__ph { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--sw-primary) 16%, var(--sw-white)); }
.sw-bookbox__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 5%; }
.sw-bookbox__ph .sw-monogram span { width: 52px; height: 52px; font-size: 1rem; box-shadow: none; background: transparent; }
.sw-bookbox__ph .sw-monogram small { display: none; }
.sw-bookbox__doc b { display: block; font-size: 1rem; }
.sw-bookbox__doc small { font-size: .82rem; color: var(--sw-muted); }
.sw-bookbox__title { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -0.02em; }
.sw-bookbox > p { margin: 0 0 16px; font-size: .9rem; color: var(--sw-muted); }
.sw-bookbox__clinics { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sw-border); }
.sw-bookbox__clinics p { display: flex; gap: 10px; margin: 0 0 12px; font-size: .84rem; line-height: 1.45; color: var(--sw-muted); }
.sw-bookbox__clinics p:last-child { margin-bottom: 0; }
.sw-bookbox__clinics .sw-icon { width: 17px; height: 17px; margin-top: 1px; color: var(--sw-primary); flex: none; }
.sw-bookbox__clinics b { display: block; color: var(--sw-dark); font-weight: 500; }

@media (max-width: 1023px) {
	.sw-dbody__grid { grid-template-columns: 1fr; }
	.sw-dbody__side { position: static; }
}
@media (max-width: 860px) {
	.sw-pagehead__row, .sw-dprof__grid { grid-template-columns: 1fr; }
	.sw-dprof__visual { height: 440px; }
	.sw-help { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
	.sw-doc-grid { grid-template-columns: 1fr; }
	.sw-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--sw-gutter) * -1); padding-inline: var(--sw-gutter); }
	.sw-filter::-webkit-scrollbar { display: none; }
	.sw-filter__btn { white-space: nowrap; }
	.sw-exp, .sw-dblock--split { grid-template-columns: 1fr; }
	.sw-timeline li { grid-template-columns: 1fr; gap: 2px; }
	.sw-dprof__visual { height: 400px; }
	.sw-blog__head { flex-direction: column; align-items: flex-start; }
}
.sw-dcard__deg span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-doc-featured { margin-bottom: 22px; }
.sw-doc-featured[hidden] { display: none; }
.sw-filter { gap: 6px; }

/* Full photos (JPG with background) fill the frame instead of floating */
.sw-dcard__img.is-full,
.sw-dprof__img.is-full { left: 0; bottom: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 18%; transform: none; transform-origin: 50% 50%; }
.sw-dcard:hover .sw-dcard__img.is-full { transform: scale(1.04); }
.sw-dprof__img.is-full { z-index: 1; }
body .sw-dcard__img.is-full, body .sw-dprof__img.is-full, body .sw-wdoc__img.is-full { height: 100%; }
