/* OMETRA Directory — matches the site's navy/teal palette (Manrope / IBM Plex Sans Arabic inherited from the theme). */
.om-dir {
	--om-navy: #062744;
	--om-navy-2: #0a3254;
	--om-ink: #ffffff;
	--om-muted: rgba(228, 238, 242, 0.74);
	--om-teal: #087f82;
	--om-teal-light: #9de0dc;
	--om-line: rgba(255, 255, 255, 0.14);
	--om-radius: 6.4px;
	background: var(--om-navy);
	color: var(--om-ink);
	font-family: "Manrope", system-ui, sans-serif;
	padding: clamp(64px, 8vw, 112px) 16px;
	box-sizing: border-box;
}
.om-dir *, .om-dir *::before, .om-dir *::after { box-sizing: border-box; }
.om-dir[dir="rtl"], .om-dir[dir="rtl"] .om-modal { font-family: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif; }
.om-dir h2, .om-dir h3, .om-dir h4, .om-dir p, .om-dir li, .om-dir button, .om-dir a { font-family: inherit; }
[lang="ar"].om-lab__name-alt, .om-dir__title-alt[lang="ar"] { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }
.om-dir__inner { max-width: 1180px; margin: 0 auto; }
.om-dir__head { max-width: 720px; margin: 0 0 clamp(36px, 5vw, 56px); }
.om-dir__eyebrow {
	margin: 0 0 14px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--om-teal-light);
}
.om-dir[dir="rtl"] .om-dir__eyebrow { letter-spacing: 0; font-size: 13px; }
.om-dir__title {
	margin: 0 0 14px;
	font-family: inherit;
	font-size: clamp(32px, 4.4vw, 52px);
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--om-ink);
}
.om-dir[dir="rtl"] .om-dir__title { letter-spacing: 0; line-height: 1.35; }
.om-dir__title-alt { display: block; margin-top: 6px; color: var(--om-teal-light); font-weight: 500; font-size: 0.55em; letter-spacing: 0; line-height: 1.4; }
.om-dir__lead { margin: 0; color: var(--om-muted); font-size: 17px; line-height: 1.7; }

/* Buttons (mirror the site's button styles) */
.om-dir .om-btn,
.om-modal .om-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 14px 24px;
	border-radius: 4.8px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.om-btn--outline {
	background: rgba(157, 224, 220, 0.1);
	border: 1px solid rgba(157, 224, 220, 0.3);
	color: var(--om-teal-light, #9de0dc);
}
.om-btn--outline:hover, .om-btn--outline:focus-visible { background: rgba(157, 224, 220, 0.2); border-color: rgba(157, 224, 220, 0.6); color: #fff; }
.om-btn--solid { background: #087f82; border: 1px solid #087f82; color: #fff !important; }
.om-btn--solid:hover, .om-btn--solid:focus-visible { background: #0a9497; border-color: #0a9497; }
.om-btn--ghost { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); color: #fff !important; }
.om-btn--ghost:hover, .om-btn--ghost:focus-visible { background: rgba(255,255,255,0.16); }
.om-btn__arrow { transition: transform .2s ease; }
.om-btn:hover .om-btn__arrow { transform: translateX(3px); }
.om-dir[dir="rtl"] .om-btn:hover .om-btn__arrow { transform: translateX(-3px); }
.om-dir button:focus-visible, .om-modal button:focus-visible, .om-modal a:focus-visible { outline: 2px solid var(--om-teal-light, #9de0dc); outline-offset: 3px; }

/* ---------- Lab departments grid ---------- */
.om-labs__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 32px;
}
.om-lab {
	display: flex;
	flex-direction: column;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--om-line);
}
.om-lab__media {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 0;
	margin: 0 0 22px;
	border: 1px solid var(--om-line);
	border-radius: var(--om-radius);
	background: #0b2a5c;
	overflow: hidden;
	cursor: pointer;
}
.om-lab__media { position: relative; isolation: isolate; }
.om-lab__media::before {
	content: "";
	position: absolute;
	inset: -20px;
	z-index: -1;
	background: var(--om-bg) center / cover no-repeat;
	filter: blur(18px) brightness(0.7) saturate(1.1);
}
.om-lab__media img {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .5s ease;
}
.om-lab__media:hover img { transform: scale(1.04); }
.om-lab__body { display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.om-lab__name {
	margin: 0;
	font-family: inherit;
	font-size: 21.6px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.015em;
	color: #fff;
}
.om-dir[dir="rtl"] .om-lab__name { letter-spacing: 0; }
.om-lab__name-alt {
	margin: 4px 0 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--om-teal-light);
}
.om-lab__summary {
	margin: 12px 0 22px;
	font-size: 14.4px;
	line-height: 1.8;
	color: var(--om-muted);
	flex: 1;
}

/* ---------- Doctors ---------- */
.om-docs__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 32px;
}
.om-docs--single .om-docs__grid { grid-template-columns: 1fr; }
.om-doc { display: flex; flex-direction: column; }
.om-doc__photo {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	border-radius: var(--om-radius);
	overflow: hidden;
	background: var(--om-navy-2);
	cursor: pointer;
}
.om-doc__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.om-doc__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, #0a3254, #062744); }
.om-doc__specialty {
	margin: 0 0 10px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--om-teal-light, #9de0dc);
}
.om-dir[dir="rtl"] .om-doc__specialty, .om-modal[dir="rtl"] .om-doc__specialty { letter-spacing: 0; font-size: 14px; }
.om-doc__name {
	margin: 0 0 8px;
	font-family: inherit;
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #fff;
}
.om-doc__position { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: #ecf4f5; }
.om-doc__location { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 14px; color: var(--om-muted, rgba(228,238,242,.74)); }
.om-doc__location svg { flex: 0 0 auto; color: var(--om-teal-light, #9de0dc); }
.om-doc__bio p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.85; color: rgba(236, 244, 245, 0.86); }
.om-doc__quote {
	margin: 22px 0 0;
	padding: 4px 0;
	padding-inline-start: 18px;
	border: 0;
	border-inline-start: 3px solid #087f82;
	font-size: 19px;
	font-weight: 600;
	font-style: normal;
	color: #fff;
}
.om-doc__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.om-doc__body { display: flex; flex-direction: column; align-items: flex-start; }
.om-doc__body > .om-btn { margin-top: 6px; }

/* Featured (single doctor or inside profile modal) */
.om-doc--feature {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}
.om-docs--single .om-doc--feature {
	padding: clamp(20px, 3vw, 36px);
	border: 1px solid var(--om-line);
	border-radius: 12px;
	background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
}
.om-doc--feature .om-doc__photo { margin: 0; cursor: default; position: sticky; top: 120px; }
.om-doc--feature .om-doc__name { font-size: clamp(28px, 3.2vw, 40px); }

/* ---------- Modal ---------- */
.om-modal {
	--om-teal-light: #9de0dc;
	--om-muted: rgba(228, 238, 242, 0.74);
	width: min(860px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 48px);
	padding: 0;
	margin: auto;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: #062744;
	color: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	font-family: inherit;
	overflow: hidden;
}
.om-modal--doc { width: min(1040px, calc(100vw - 32px)); }
.om-modal::backdrop { background: rgba(2, 14, 26, 0.72); backdrop-filter: blur(3px); }
.om-modal[open] { animation: om-pop .22s ease-out; }
@keyframes om-pop { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.om-modal__box {
	position: relative;
	max-height: calc(100dvh - 50px);
	overflow-y: auto;
	padding: clamp(24px, 4vw, 44px);
	overscroll-behavior: contain;
}
.om-modal__close {
	position: sticky;
	top: 0;
	float: right;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: -8px -8px 0 12px;
	padding: 0;
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 50%;
	background: rgba(6, 39, 68, 0.9);
	color: #fff;
	cursor: pointer;
}
.om-modal[dir="rtl"] .om-modal__close, [dir="rtl"] .om-modal__close { float: left; margin: -8px 12px 0 -8px; }
.om-modal__close:hover { background: #087f82; border-color: #087f82; }
.om-modal__head { margin-bottom: 20px; }
.om-modal__head .om-dir__eyebrow { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.06em; color: #9de0dc; text-transform: none; font-weight: 600; }
.om-modal__title { margin: 0; font-family: inherit; font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: #fff; }
.om-modal__headline { margin: 10px 0 0; font-size: 17px; font-weight: 500; color: #9de0dc; }
.om-modal__intro p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.85; color: rgba(236, 244, 245, 0.86); }
.om-modal__sub {
	margin: 28px 0 14px;
	padding-top: 22px;
	border-top: 1px solid rgba(255,255,255,0.14);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9de0dc;
}
[dir="rtl"] .om-modal__sub { letter-spacing: 0; font-size: 15px; }
.om-tests__group { clear: both; margin: 20px 0 10px; font-family: inherit; font-size: 16px; font-weight: 600; color: #fff; }
.om-tests__group:first-child { margin-top: 0; }
.om-tests__list {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 32px;
}
.om-tests__list li {
	position: relative;
	break-inside: avoid;
	margin: 0;
	padding: 9px 0;
	padding-inline-start: 22px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	font-size: 14.5px;
	line-height: 1.55;
	color: #ecf4f5;
}
.om-tests__list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 2px;
	top: 16px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #087f82;
	box-shadow: 0 0 0 3px rgba(8,127,130,0.25);
}
.om-modal__message {
	margin: 26px 0 0;
	padding: 16px 18px;
	border-radius: 6px;
	background: rgba(157, 224, 220, 0.08);
	border-inline-start: 3px solid #087f82;
	font-size: 15px;
	line-height: 1.7;
	color: #fff;
}
.om-modal__note { margin: 16px 0 0; font-size: 13px; line-height: 1.7; color: rgba(228, 238, 242, 0.6); }
.om-modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.om-modal .om-doc--feature .om-doc__photo { position: static; }
html.om-modal-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.om-labs__grid, .om-docs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.om-dir { padding: 56px 16px; }
	.om-labs__grid, .om-docs__grid { grid-template-columns: 1fr; gap: 32px; }
	.om-doc--feature { grid-template-columns: 1fr; }
	.om-doc--feature .om-doc__photo { position: static; max-width: 420px; }
	.om-tests__list { columns: 1; }
	.om-modal { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
	.om-modal__box { max-height: calc(100dvh - 18px); padding: 22px 18px 26px; }
	.om-modal__actions .om-btn, .om-doc__actions .om-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.om-modal[open] { animation: none; }
	.om-lab__media img, .om-btn__arrow { transition: none; }
}

/* Neutralise theme (Hello) button colours inside the directory */
.om-dir button.om-btn--outline, .om-dir button.om-btn--outline:hover, .om-dir button.om-btn--outline:focus { text-decoration: none; }
.om-dir button.om-btn--outline { background-color: rgba(157, 224, 220, 0.1); border: 1px solid rgba(157, 224, 220, 0.3); color: #9de0dc; }
.om-dir button.om-btn--outline:hover, .om-dir button.om-btn--outline:focus-visible { background-color: rgba(157, 224, 220, 0.2); border-color: rgba(157, 224, 220, 0.6); color: #fff; }
.om-dir button.om-btn--outline:focus:not(:focus-visible) { background-color: rgba(157, 224, 220, 0.1); color: #9de0dc; }
.om-dir button.om-lab__media, .om-dir button.om-lab__media:hover, .om-dir button.om-lab__media:focus,
.om-dir button.om-doc__photo, .om-dir button.om-doc__photo:hover, .om-dir button.om-doc__photo:focus { background-color: #0b2a5c; color: inherit; }
.om-dir button.om-lab__media { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 6.4px; }
.om-dir button.om-doc__photo { border: 0; border-radius: 6.4px; }
.om-modal button.om-modal__close, .om-modal button.om-modal__close:focus { background-color: rgba(6, 39, 68, 0.9); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; border-radius: 50%; padding: 0; }
.om-modal button.om-modal__close:hover, .om-modal button.om-modal__close:focus-visible { background-color: #087f82; border-color: #087f82; color: #fff; }
