:root {
  --profile-blue: #003087;
  --profile-sky: #0878d1;
  --profile-ink: #073b55;
  --profile-muted: #526f7e;
  --profile-line: rgba(10, 99, 157, 0.18);
  --profile-glass: rgba(255, 255, 255, 0.78);
}

.rainbow_doctor_profile_page {
  color: var(--profile-ink);
  background: radial-gradient(circle at 10% 20%, rgba(63, 181, 228, 0.13), transparent 30%), radial-gradient(circle at 88% 58%, rgba(91, 126, 216, 0.12), transparent 28%), #f6fbfe;
}

.rainbow_doctor_profile_page main { padding-top: 18px; }
.rainbow_doctor_profile_page .rainbow_synced_header { position: relative; z-index: 50; }

.rainbow_profile_breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; color: var(--profile-muted); font-size: 15px; }
.rainbow_profile_breadcrumb a { color: var(--profile-sky); }

.rainbow_profile_hero { padding: 34px 0 70px; }
.rainbow_profile_hero__card {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background: var(--profile-glass);
  box-shadow: 0 28px 70px rgba(8, 67, 109, 0.14);
}
.rainbow_profile_portrait { min-height: 580px; background: linear-gradient(145deg, #e8f7fc, #e9efff); }
.rainbow_profile_portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.rainbow_profile_summary { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 6vw, 86px); }
.rainbow_profile_department { width: fit-content; margin: 0 0 18px; padding: 9px 15px; border-radius: 999px; color: #006fc4; background: #e5f5ff; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rainbow_profile_executive_role { display: inline-flex; width: max-content; max-width: 100%; margin: -6px 0 14px; padding: 6px 10px; border-radius: 999px; color: var(--profile-sky); background: rgba(8, 126, 209, 0.1); font-size: 14px; font-weight: 600; line-height: 1.3; }
.rainbow_profile_executive_role[hidden] { display: none; }
.rainbow_profile_summary h1 { margin: 0 0 18px; color: var(--profile-blue); font-size: clamp(44px, 5vw, 76px); line-height: 1.03; }
.rainbow_profile_qualifications { margin: 0 0 9px; color: var(--profile-sky); font-size: clamp(20px, 2vw, 27px); font-weight: 700; }
.rainbow_profile_speciality { max-width: 660px; margin: 0 0 25px; color: var(--profile-ink); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.35; }
.rainbow_profile_experience { display: flex; gap: 11px; align-items: center; width: fit-content; margin-bottom: 30px; padding: 12px 16px; border: 1px solid rgba(8, 120, 209, 0.18); border-radius: 13px; color: var(--profile-blue); background: rgba(232, 247, 255, 0.75); font-weight: 700; }
.rainbow_profile_actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rainbow_profile_actions a, .rainbow_profile_safety__card > a { display: inline-flex; gap: 10px; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border-radius: 10px; font-weight: 700; }
.rainbow_profile_primary { color: white; background: linear-gradient(100deg, #0649a1, #0787d9); box-shadow: 0 12px 26px rgba(4, 83, 164, 0.22); }
.rainbow_profile_primary:hover { color: white; transform: translateY(-2px); }
.rainbow_profile_secondary { border: 1px solid #0b76c6; color: var(--profile-blue); background: rgba(255, 255, 255, 0.68); }

.rainbow_profile_expertise { padding: 10px 0 80px; }
.rainbow_profile_expertise__layout { display: grid; grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr); gap: clamp(34px, 6vw, 90px); align-items: start; }
.rainbow_profile_section_heading > p { width: fit-content; margin: 0 0 15px; padding: 8px 12px; border-radius: 8px; color: #0574c6; background: rgba(255,255,255,.8); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rainbow_profile_section_heading h2 { margin: 0 0 18px; color: var(--profile-blue); font-size: clamp(36px, 4vw, 58px); line-height: 1.1; }
.rainbow_profile_section_heading span { display: block; color: var(--profile-muted); font-size: 18px; line-height: 1.7; }
.rainbow_profile_expertise__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.rainbow_profile_expertise__list li { position: relative; min-height: 82px; padding: 20px 20px 20px 52px; border: 1px solid rgba(255,255,255,.9); border-radius: 17px; color: var(--profile-ink); background: rgba(255,255,255,.75); box-shadow: 0 13px 34px rgba(14, 73, 111, .08); font-size: 17px; line-height: 1.45; }
.rainbow_profile_expertise__list li::before { position: absolute; top: 23px; left: 20px; content: '\f00c'; color: #0878d1; font-family: 'Font Awesome 6 Free'; font-weight: 900; }

.rainbow_profile_safety { padding: 0 0 90px; }
.rainbow_profile_safety__card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 30px; border: 1px solid rgba(255,255,255,.9); border-radius: 23px; background: linear-gradient(110deg, rgba(225,246,255,.88), rgba(255,255,255,.8)); box-shadow: 0 20px 50px rgba(8,67,109,.1); }
.rainbow_profile_safety__card > i { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 18px; color: white; background: var(--profile-blue); font-size: 26px; }
.rainbow_profile_safety__card h2 { margin: 0 0 7px; color: var(--profile-blue); font-size: 27px; }
.rainbow_profile_safety__card p { margin: 0; color: var(--profile-muted); font-size: 17px; line-height: 1.55; }
.rainbow_profile_safety__card > a { color: white; background: var(--profile-sky); white-space: nowrap; }

.rainbow_profile_related { padding: 85px 0 100px; background: rgba(229, 244, 252, .58); }
.rainbow_profile_section_heading--center { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.rainbow_profile_section_heading--center > p { margin-right: auto; margin-left: auto; }
.rainbow_profile_related__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.rainbow_related_doctor { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid rgba(255,255,255,.95); border-radius: 22px; color: var(--profile-ink); background: rgba(255,255,255,.8); box-shadow: 0 16px 38px rgba(8,67,109,.09); transition: transform .25s ease, box-shadow .25s ease; }
.rainbow_related_doctor:hover { color: var(--profile-ink); transform: translateY(-5px); box-shadow: 0 24px 48px rgba(8,67,109,.15); }
.rainbow_related_doctor img { width: 100%; aspect-ratio: 468 / 525; object-fit: cover; object-position: center top; background: #edf7fc; }
.rainbow_related_doctor__body { display: flex; min-height: 154px; flex: 1; flex-direction: column; gap: 8px; padding: 24px 22px 26px; }
.rainbow_related_doctor__body strong { display: block; color: var(--profile-blue); font-size: 20px; line-height: 1.25; }
.rainbow_related_doctor__body span { display: block; color: var(--profile-muted); font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }

@media (max-width: 1199px) {
  .rainbow_profile_hero__card { grid-template-columns: .9fr 1.1fr; }
  .rainbow_profile_portrait { min-height: 520px; }
  .rainbow_profile_related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .rainbow_doctor_profile_page main { padding-top: 12px; }
  .rainbow_profile_hero { padding: 20px 0 52px; }
  .rainbow_profile_breadcrumb { margin-bottom: 14px; }
  .rainbow_profile_hero__card { grid-template-columns: 1fr; border-radius: 22px; }
  .rainbow_profile_portrait { min-height: 0; aspect-ratio: 468 / 525; }
  .rainbow_profile_summary { padding: 28px 22px 32px; }
  .rainbow_profile_executive_role { white-space: normal; }
  .rainbow_profile_summary h1 { font-size: 40px; }
  .rainbow_profile_speciality { font-size: 21px; }
  .rainbow_profile_actions { display: grid; grid-template-columns: 1fr; }
  .rainbow_profile_expertise { padding-bottom: 60px; }
  .rainbow_profile_expertise__layout, .rainbow_profile_expertise__list { grid-template-columns: 1fr; }
  .rainbow_profile_expertise__layout { gap: 28px; }
  .rainbow_profile_safety__card { grid-template-columns: 1fr; padding: 24px; }
  .rainbow_profile_safety__card > a { width: 100%; white-space: normal; }
  .rainbow_profile_related { padding: 64px 0 72px; }
  .rainbow_profile_related__grid { grid-template-columns: 1fr; }
  .rainbow_related_doctor__body { min-height: 0; padding: 22px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .rainbow_related_doctor, .rainbow_profile_primary { transition: none; }
}
