/* رعايتي — الأطباء */
.r3d, .r3d *, .r3d *::before, .r3d *::after { box-sizing: border-box; }
.r3d {
	--p: #0b56a4; --pd: #062f6e; --pl: #eaf1fb; --g: #1fa34a; --gd: #17863c; --gl: #e7f6ec; --wa: #25d366;
	--ink: #12313a; --mut: #5d7177; --line: #e3eaf3; --bg: #f5f8fc;
	font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	direction: rtl; text-align: right; color: var(--ink); line-height: 1.7;
	background: var(--bg); width: 100%; max-width: 100%; overflow-x: hidden; overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
.r3d a { text-decoration: none; color: inherit; box-shadow: none; }
.r3d a:hover, .r3d a:focus { color: inherit; text-decoration: none; }
.r3d h1, .r3d h2, .r3d h3, .r3d p, .r3d ul { margin: 0; padding: 0; font-family: inherit; letter-spacing: 0; }
.r3d ul { list-style: none; }
.r3d svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
.r3d img { display: block; max-width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.r3d .r3d-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.r3d .r3d-hero {
	position: relative; padding: 46px 0 96px; text-align: center; color: #fff; overflow: hidden;
	background:
		radial-gradient(ellipse 50% 80% at 85% 0%, rgba(31,163,74,.32), transparent 60%),
		radial-gradient(ellipse 45% 70% at 5% 100%, rgba(27,127,196,.45), transparent 60%),
		linear-gradient(135deg, #04245a, #062f6e 55%, #0b56a4);
}
.r3d .r3d-hero::before {
	content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
	background-image: radial-gradient(rgba(255,255,255,.13) 1.2px, transparent 1.2px); background-size: 24px 24px;
	-webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%); mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}
.r3d .r3d-hero .r3d-wrap { position: relative; z-index: 1; }
.r3d .r3d-crumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; color: #a9c2e6; margin-bottom: 12px; }
.r3d .r3d-crumb a { color: #fff; font-weight: 700; }
.r3d .r3d-crumb span { opacity: .6; }
.r3d .r3d-hero-t { font-size: 40px; font-weight: 900; line-height: 1.3; color: #fff; margin: 0 0 10px; }
.r3d .r3d-hero-t em { font-style: normal; background: linear-gradient(90deg, #7ee2a0, #3ec7e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.r3d .r3d-hero-s { font-size: 17px; color: #c9d9f1; max-width: 660px; margin: 0 auto; }
.r3d .r3d-hero-sm { padding: 26px 0 84px; }
.r3d .r3d-hero-sm .r3d-crumb { justify-content: flex-start; margin: 0; }

.r3d .r3d-sec { position: relative; z-index: 2; margin-top: -60px; padding-bottom: 72px; }
.r3d .r3d-empty { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px 20px; text-align: center; color: var(--mut); font-weight: 700; }

/* ---------- Doctors grid ---------- */
.r3d .r3d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 270px)); justify-content: center; gap: 24px; }
.r3d .r3d-card {
	display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
	border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(6,47,110,.08);
	transition: transform .25s ease, box-shadow .25s ease;
}
.r3d .r3d-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(6,47,110,.16); }
.r3d .r3d-card-ph { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--pl); overflow: hidden; }
.r3d .r3d-card-ph img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .5s ease; }
.r3d .r3d-ph-bg { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(20px) saturate(1.1); opacity: .55; transform: scale(1.1); }
.r3d .r3d-side-ph .r3d-ph-bg { display: none; }
.r3d .r3d-side-ph img { position: static; width: 100%; height: auto; }
.r3d .r3d-card:hover .r3d-card-ph img { transform: scale(1.03); }
.r3d .r3d-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b9cbe4; font-size: 90px; }
.r3d .r3d-card-b { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 0; }
.r3d .r3d-card-role { align-self: flex-start; font-size: 12.5px; font-weight: 800; color: var(--gd); background: var(--gl); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.r3d .r3d-card-n { font-size: 18px; font-weight: 900; color: var(--pd); line-height: 1.45; margin-bottom: 14px; }
.r3d .r3d-card-n:has(+ .r3d-card-s) { margin-bottom: 0; }
.r3d .r3d-card-s { font-size: 13.5px; color: var(--mut); line-height: 1.65; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.r3d .r3d-card-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 14px 0 16px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 800; }
.r3d .r3d-card-c { display: inline-flex; align-items: center; gap: 5px; color: var(--g); }
.r3d .r3d-card-c svg { font-size: 16px; }
.r3d .r3d-card-go { display: inline-flex; align-items: center; gap: 4px; color: var(--p); margin-inline-start: auto; }
.r3d .r3d-card-go svg { font-size: 18px; transition: transform .2s; }
.r3d .r3d-card:hover .r3d-card-go svg { transform: translateX(-4px); }

/* ---------- Single doctor ---------- */
.r3d .r3d-prof {
	display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: start;
	background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px;
	box-shadow: 0 16px 44px rgba(6,47,110,.10);
}
.r3d .r3d-side { position: sticky; top: 110px; }
.r3d .r3d-side-ph { position: relative; border-radius: 18px; overflow: hidden; background: var(--pl); }
.r3d .r3d-side-ph .r3d-noimg { position: static; aspect-ratio: 4 / 5; }
.r3d .r3d-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.r3d .r3d-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 14px; font-size: 15.5px; font-weight: 800; transition: transform .2s, filter .2s; }
.r3d .r3d-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.r3d .r3d-btn svg { font-size: 20px; }
.r3d .r3d-btn-wa, .r3d .r3d-btn-wa:hover { background: var(--wa); color: #fff; }
.r3d .r3d-btn-tel, .r3d .r3d-btn-tel:hover { background: var(--pl); color: var(--pd); }

.r3d .r3d-head { padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.r3d .r3d-role { display: inline-block; font-size: 14px; font-weight: 800; color: var(--gd); background: var(--gl); padding: 3px 14px; border-radius: 999px; margin-bottom: 8px; }
.r3d .r3d-name { font-size: 34px; font-weight: 900; color: var(--pd); line-height: 1.35; margin: 0; }
.r3d .r3d-spec { font-size: 17px; font-weight: 600; color: var(--mut); margin-top: 6px; }
.r3d .r3d-block { padding-top: 20px; }
.r3d .r3d-block h2, .r3d .r3d-certs h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 900; color: var(--pd); margin: 0 0 12px; line-height: 1.4; }
.r3d .r3d-block h2::before { content: ""; width: 5px; height: 20px; border-radius: 4px; background: var(--g); }
.r3d .r3d-bio { font-size: 15.5px; color: var(--ink); }
.r3d .r3d-list { display: grid; gap: 10px; }
.r3d .r3d-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; line-height: 1.7; }
.r3d .r3d-list li svg { font-size: 14px; width: 22px; height: 22px; padding: 4px; margin-top: 2px; border-radius: 50%; background: var(--g); color: #fff; }
.r3d .r3d-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.r3d .r3d-chips span { font-size: 14px; font-weight: 700; color: var(--p); background: var(--pl); padding: 5px 14px; border-radius: 999px; }

.r3d .r3d-certs { margin-top: 36px; }
.r3d .r3d-certs h2 { font-size: 24px; margin-bottom: 16px; }
.r3d .r3d-certs h2 span { font-size: 14px; color: var(--gd); background: var(--gl); padding: 1px 12px; border-radius: 999px; }
.r3d .r3d-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.r3d .r3d-cert { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(6,47,110,.07); cursor: zoom-in; transition: transform .25s, box-shadow .25s; }
.r3d .r3d-cert:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(6,47,110,.14); }
.r3d .r3d-cert-im { position: relative; display: block; aspect-ratio: 3 / 4; background: #eef3f9; overflow: hidden; }
.r3d .r3d-cert-im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.r3d .r3d-cert-im i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(6,47,110,.35); color: #fff; font-size: 40px; opacity: 0; transition: opacity .2s; }
.r3d .r3d-cert:hover .r3d-cert-im i { opacity: 1; }
.r3d .r3d-cert-t { display: block; padding: 12px 14px; font-size: 14.5px; font-weight: 800; color: var(--pd); line-height: 1.5; }

.r3d .r3d-backwrap { margin-top: 32px; text-align: center; }
.r3d .r3d-back { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--pd); font-weight: 800; font-size: 15px; }
.r3d .r3d-back svg { font-size: 18px; transform: scaleX(-1); }

/* ---------- Lightbox ---------- */
.r3d-lb { position: fixed; inset: 0; z-index: 2147483000; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 16px 24px; background: rgba(4,20,48,.94); font-family: "Cairo", system-ui, sans-serif; direction: rtl; }
.r3d-lb.is-on { display: flex; }
.r3d-lb img { max-width: min(100%, 920px); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.r3d-lb p { margin: 0; color: #fff; font-weight: 800; text-align: center; }
.r3d-lb button { position: absolute; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: #062f6e; font-size: 26px; line-height: 46px; padding: 0; cursor: pointer; font-family: inherit; }
.r3d-lb .r3d-lb-x { top: 12px; left: 12px; }
.r3d-lb .r3d-lb-p, .r3d-lb .r3d-lb-n { top: 50%; margin-top: -23px; }
.r3d-lb .r3d-lb-p { right: 12px; }
.r3d-lb .r3d-lb-n { left: 12px; }

/* ---------- Laptop ---------- */
@media (max-width: 1100px) {
	.r3d .r3d-prof { grid-template-columns: 270px minmax(0, 1fr); gap: 28px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
	.r3d .r3d-wrap { padding: 0 18px; }
	.r3d .r3d-hero { padding: 36px 0 86px; }
	.r3d .r3d-hero-t { font-size: 32px; }
	.r3d .r3d-hero-s { font-size: 15.5px; }
	.r3d .r3d-hero-sm { padding: 20px 0 76px; }
	.r3d .r3d-prof { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
	.r3d .r3d-side { position: static; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: end; }
	.r3d .r3d-cta { margin-top: 0; }
	.r3d .r3d-name { font-size: 28px; }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
	.r3d .r3d-wrap { padding: 0 14px; }
	.r3d .r3d-hero { padding: 28px 0 78px; }
	.r3d .r3d-hero-t { font-size: 26px; }
	.r3d .r3d-hero-s { font-size: 14.5px; }
	.r3d .r3d-sec { margin-top: -56px; padding-bottom: 48px; }

	.r3d .r3d-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.r3d .r3d-grid.is-one { grid-template-columns: minmax(0, 330px); }
	.r3d .r3d-card { border-radius: 16px; }
	.r3d .r3d-card-b { padding: 12px 12px 0; }
	.r3d .r3d-card-role { font-size: 11px; padding: 1px 8px; margin-bottom: 6px; }
	.r3d .r3d-card-n { font-size: 15px; }
	.r3d .r3d-card-s { font-size: 12.5px; }
	.r3d .r3d-card-f { padding: 10px 0 12px; font-size: 12px; }
	.r3d .r3d-card-s { margin-bottom: 10px; }
	.r3d .r3d-grid:not(.is-one) .r3d-card-c { display: none; }
	.r3d .r3d-grid.is-one .r3d-card-n { font-size: 18px; }
	.r3d .r3d-grid.is-one .r3d-card-s { font-size: 13.5px; }
	.r3d .r3d-grid.is-one .r3d-card-f { font-size: 13.5px; }

	.r3d .r3d-prof { padding: 14px; border-radius: 20px; gap: 18px; }
	.r3d .r3d-side { grid-template-columns: 1fr; gap: 12px; }
	.r3d .r3d-side-ph { border-radius: 14px; }
	.r3d .r3d-cta { flex-direction: row; }
	.r3d .r3d-cta .r3d-btn { flex: 1; font-size: 14px; padding: 10px 8px; }
	.r3d .r3d-head { text-align: center; }
	.r3d .r3d-name { font-size: 25px; }
	.r3d .r3d-spec { font-size: 15px; }
	.r3d .r3d-list li { font-size: 14.5px; }
	.r3d .r3d-chips span { font-size: 13px; padding: 4px 12px; }
	.r3d .r3d-certs { margin-top: 28px; }
	.r3d .r3d-certs h2 { font-size: 20px; }
	.r3d .r3d-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.r3d .r3d-cert-t { font-size: 12.5px; padding: 9px 10px; }
	.r3d .r3d-cert-im i { display: none; }
}
