.fhi-doctor-profile {
  --fhi-red: #AA0A28;
  --fhi-navy: #143551;
  --fhi-ink: #102B43;
  --fhi-muted: #5D7183;
  --fhi-line: #DDE8F0;
  --fhi-soft: #F4F8FB;
  font-family: Raleway, Arial, sans-serif;
  color: var(--fhi-ink);
  background: #fff;
  overflow-x: clip;
}

.fhi-doctor-profile *, .fhi-doctor-profile *::before, .fhi-doctor-profile *::after { box-sizing: border-box; }
.fhi-doctor-profile a { color: inherit; text-decoration: none; }

.fhi-doctor-profile__hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 14% 18%, rgba(170,10,40,.09), transparent 34%), linear-gradient(135deg, #F7FAFC 0%, #EAF3F8 100%);
  padding: clamp(34px, 5vw, 68px) 24px clamp(40px, 6vw, 78px);
}

.fhi-doctor-profile__hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -34% 42%;
  height: 62%;
  background: linear-gradient(120deg, rgba(170,10,40,.12), rgba(20,53,81,.04));
  transform: skewX(-14deg);
  border-radius: 44px;
  pointer-events: none;
}

.fhi-doctor-profile__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 350px) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.fhi-doctor-profile__portrait-wrap {
  position: relative;
  max-width: 350px;
}

.fhi-doctor-profile__portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 18px -16px -16px 22px;
  border-radius: 28px;
  background: var(--fhi-red);
  opacity: .95;
}

.fhi-doctor-profile__portrait {
  position: relative;
  overflow: hidden;
  height: 380px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(16,43,67,.18);
}

.fhi-doctor-profile__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center top;
}

.fhi-doctor-profile__portrait--card-source {
  background: #EEF5F9;
}

.fhi-doctor-profile__portrait--card-source img {
  width: auto;
  min-width: 0;
  max-width: none;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: left top;
  transform: scale(1.52);
  transform-origin: left top;
}

.fhi-doctor-profile__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #6C8192;
  font-size: 13px;
  font-weight: 700;
}

.fhi-doctor-profile__crumb a:hover { color: var(--fhi-red); }

.fhi-doctor-profile__eyebrow {
  margin: 0 0 10px;
  color: var(--fhi-red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fhi-doctor-profile h1,
.fhi-doctor-profile h2,
.fhi-doctor-profile h3,
.fhi-doctor-profile p { font-family: Raleway, Arial, sans-serif; }

.fhi-doctor-profile h1 {
  max-width: 760px;
  margin: 0;
  color: var(--fhi-navy);
  font-size: clamp(29px, 2.75vw, 38px);
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -.035em;
}

.fhi-doctor-profile__lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: #4D6274;
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.75;
  font-weight: 500;
}

.fhi-doctor-profile__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.fhi-doctor-profile__fact {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(221,232,240,.9);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 34px rgba(16,43,67,.07);
}

.fhi-doctor-profile__fact svg {
  width: 24px;
  height: 24px;
  color: var(--fhi-red);
  margin-bottom: 9px;
}

.fhi-doctor-profile__fact span {
  display: block;
  margin-bottom: 5px;
  color: #758899;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fhi-doctor-profile__fact strong {
  display: block;
  color: var(--fhi-navy);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.fhi-doctor-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.fhi-doctor-profile__button,
.fhi-doctor-profile__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

.fhi-doctor-profile__button {
  gap: 10px;
  padding: 13px 24px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--fhi-red), #C41235);
  box-shadow: 0 18px 38px rgba(170,10,40,.22);
}

.fhi-doctor-profile__button span { color: #fff !important; }

.fhi-doctor-profile__whatsapp {
  padding: 12px 20px;
  color: var(--fhi-red);
  background: #fff;
  border: 1px solid rgba(170,10,40,.2);
}

.fhi-doctor-profile__button:hover,
.fhi-doctor-profile__button:focus-visible,
.fhi-doctor-profile__whatsapp:hover,
.fhi-doctor-profile__whatsapp:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(16,43,67,.14);
}

.fhi-doctor-profile__details {
  padding: clamp(42px, 6vw, 78px) 24px;
  background: #fff;
}

.fhi-doctor-profile__details-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.fhi-doctor-profile__details-head {
  position: sticky;
  top: 116px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: var(--fhi-navy);
  box-shadow: 0 24px 48px rgba(16,43,67,.14);
}

.fhi-doctor-profile__details-head .fhi-doctor-profile__eyebrow { color: #fff; opacity: .74; }

.fhi-doctor-profile h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.14;
  font-weight: 650;
  letter-spacing: -.025em;
}

.fhi-doctor-profile__sections {
  display: grid;
  gap: 14px;
}

.fhi-doctor-profile__section {
  border: 1px solid var(--fhi-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(16,43,67,.06);
  overflow: clip;
}

.fhi-doctor-profile__section summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: var(--fhi-navy);
  font-size: 18px;
  font-weight: 800;
}

.fhi-doctor-profile__section summary::-webkit-details-marker { display: none; }

.fhi-doctor-profile__section summary i {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--fhi-red);
  background: #F7E8EC;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
}

.fhi-doctor-profile__section[open] summary i { transform: rotate(45deg); }

.fhi-doctor-profile__section-content {
  padding: 0 22px 24px;
  color: #40586B;
  font-size: 16px;
  line-height: 1.75;
}

.fhi-doctor-profile__section-content :is(p, ul, ol, blockquote, h3, h4, h5) { margin-top: 0; }
.fhi-doctor-profile__section-content :is(p, ul, ol, blockquote) { margin-bottom: 16px; }
.fhi-doctor-profile__section-content :last-child { margin-bottom: 0; }
.fhi-doctor-profile__section-content blockquote {
  margin-left: 0;
  padding-left: 18px;
  border-left: 3px solid var(--fhi-red);
}
.fhi-doctor-profile__section-content h3,
.fhi-doctor-profile__section-content h4,
.fhi-doctor-profile__section-content h5 {
  color: var(--fhi-navy);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 750;
}
.fhi-doctor-profile__section-content ul,
.fhi-doctor-profile__section-content ol { padding-left: 22px; }
.fhi-doctor-profile__section-content li { margin-bottom: 9px; }
.fhi-doctor-profile__section-content img {
  max-width: 320px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(16,43,67,.12);
}
.fhi-doctor-profile__section-content a { color: var(--fhi-red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.fhi-doctor-profile__contact {
  padding: 0 24px clamp(48px, 7vw, 88px);
  background: linear-gradient(180deg, #fff 0%, #F5F9FC 100%);
}

.fhi-doctor-profile__contact-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--fhi-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16,43,67,.08);
}

.fhi-doctor-profile__contact h2 { color: var(--fhi-navy); }
.fhi-doctor-profile__contact p { margin: 14px 0 0; max-width: 560px; color: var(--fhi-muted); font-size: 16px; line-height: 1.7; }

.fhi-doctor-profile__contact-links {
  display: grid;
  gap: 12px;
}

.fhi-doctor-profile__contact-links a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--fhi-soft);
  transition: transform .22s ease, background .22s ease;
}

.fhi-doctor-profile__contact-links a:hover,
.fhi-doctor-profile__contact-links a:focus-visible { transform: translateX(4px); background: #EEF5F9; }
.fhi-doctor-profile__contact-links svg { grid-row: span 2; width: 24px; height: 24px; color: var(--fhi-red); }
.fhi-doctor-profile__contact-links span { color: #6B7F90; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fhi-doctor-profile__contact-links strong { min-width: 0; color: var(--fhi-navy); font-size: 16px; line-height: 1.35; font-weight: 800; overflow-wrap: anywhere; }

@media (max-width: 1024px) {
  .fhi-doctor-profile__hero-inner,
  .fhi-doctor-profile__details-inner,
  .fhi-doctor-profile__contact-inner { grid-template-columns: 1fr; }
  .fhi-doctor-profile__portrait-wrap { max-width: 300px; }
  .fhi-doctor-profile__portrait { height: 330px; }
  .fhi-doctor-profile__portrait img { min-height: 330px; }
  .fhi-doctor-profile__portrait--card-source img { min-height: 0; }
  .fhi-doctor-profile__details-head { position: static; }
}

@media (max-width: 767px) {
  .fhi-doctor-profile__hero,
  .fhi-doctor-profile__details,
  .fhi-doctor-profile__contact { padding-left: 18px; padding-right: 18px; }
  .fhi-doctor-profile h1 { font-size: 30px; }
  .fhi-doctor-profile__facts { grid-template-columns: 1fr; }
  .fhi-doctor-profile__actions { align-items: stretch; }
  .fhi-doctor-profile__button,
  .fhi-doctor-profile__whatsapp { width: 100%; }
  .fhi-doctor-profile__portrait-wrap { max-width: 245px; margin: 0 auto; }
  .fhi-doctor-profile__portrait { height: 285px; }
  .fhi-doctor-profile__portrait img { min-height: 285px; }
  .fhi-doctor-profile__portrait--card-source img { min-height: 0; }
  .fhi-doctor-profile__section summary { font-size: 16px; padding: 18px; }
  .fhi-doctor-profile__section-content { padding: 0 18px 20px; font-size: 15px; }
  .fhi-doctor-profile__contact-inner { padding: 22px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .fhi-doctor-profile *, .fhi-doctor-profile *::before, .fhi-doctor-profile *::after { transition: none !important; }
}

/* Hide WhatsApp entry points on doctor profile pages to avoid implying direct doctor messaging. */
body.single-cmsms_doctor .fhi-contact__whatsapp-icon,
body.single-cmsms_doctor .joinchat {
  display: none !important;
}
