
:root {
  --primary: #0ea7a7;
  --primary-dark: #087d92;
  --secondary: #123d71;
  --text: #163559;
  --muted: #5f7592;
  --line: #dfe8ef;
  --bg: #f8fbfd;
  --card: #ffffff;
  --shadow: 0 15px 40px rgba(18, 61, 113, 0.08);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(223,232,239,.8);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 84px;
}
.brand img { width: min(100%, 335px); height: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}
.main-nav a { color: #29496e; position: relative; }
.main-nav a:hover::after,
.main-nav a:focus::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--primary);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.call-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
}
.call-box strong { display: block; font-size: 16px; }
.call-box small { display: block; font-size: 11px; color: var(--muted); }
.call-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14,167,167,.12);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  transition: all .25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  box-shadow: 0 12px 24px rgba(8,125,146,.18);
}
.btn-outline {
  background: #fff;
  border-color: rgba(14,167,167,.35);
  color: var(--secondary);
}
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--secondary);
}
.hero {
  padding: 44px 0 28px;
  background: linear-gradient(180deg, #f9fcfd, #ffffff);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.25fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  padding: 28px 0;
}
.section-label {
  display: inline-block;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-copy h1,
.section-head h2,
.about-copy h2,
.testimonial-copy h2,
.profile-main h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--secondary);
}
.hero-copy h1 span,
.section-head h2 span,
.about-copy h2 span,
.testimonial-copy h2 span,
.profile-main h2 { color: var(--primary); }
.hero-copy p {
  max-width: 560px;
  font-size: 18px;
  color: var(--muted);
  margin: 24px 0 28px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-highlights {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-highlights div {
  min-width: 140px;
  padding-left: 16px;
  border-left: 2px solid rgba(14,167,167,.24);
}
.hero-highlights strong { display: block; font-size: 14px; color: var(--secondary); }
.hero-highlights span { display: block; color: var(--muted); font-size: 13px; }
.hero-image {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eef6f7;
  min-height: 520px;
}
.hero-image img { min-height: 520px; }
.hero-image img,
.about-image img,
.testimonial-image img { width: 100%; height: 100%; object-fit: cover; }
.section { padding: 72px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-head.two-col { align-items: center; }
.section-head p {
  max-width: 470px;
  color: var(--muted);
  font-size: 16px;
}

.speciality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.speciality-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18,61,113,.06);
}
.speciality-card img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  background: linear-gradient(180deg,#eef8f9,#f8fbff);
}
.speciality-card-copy {
  padding: 18px 18px 20px;
}
.speciality-card-copy h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--secondary);
}
.speciality-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.speciality-feature {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) 1.1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  background: linear-gradient(180deg,#fbfeff,#ffffff);
  box-shadow: 0 8px 24px rgba(18,61,113,.04);
}
.speciality-feature-media {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg,#edf8f9,#f7fbff);
}
.speciality-feature-media img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}
.speciality-feature-copy h3 {
  margin: 6px 0 10px;
  font-size: 28px;
  color: var(--secondary);
}
.speciality-feature-copy p {
  margin: 0;
  color: var(--muted);
}
.department-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.info-card {
  padding: 24px 18px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(18,61,113,.03);
}
.info-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.info-card p { margin: 0; color: var(--muted); font-size: 14px; }
.appointment-band { background: linear-gradient(180deg, #ffffff, #f8fcfe); }
.appointment-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}
.appointment-aside {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  padding: 36px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.appointment-aside h2 { margin: 0 0 14px; font-size: 44px; line-height: 1.05; }
.appointment-aside p { margin: 0 0 28px; color: rgba(255,255,255,.85); }
.contact-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-points li strong { display: block; font-size: 18px; }
.contact-points li span { font-size: 13px; color: rgba(255,255,255,.84); }
.appointment-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(18,61,113,.05);
}
.appointment-form input,
.appointment-form select,
.appointment-form textarea,
.sidebar-form input,
.sidebar-form select,
.sidebar-form textarea {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}
.appointment-form textarea,
.sidebar-form textarea { min-height: 110px; padding-top: 14px; resize: vertical; }
.appointment-form textarea { grid-column: span 2; }
.appointment-form .btn { justify-self: start; }
.about-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: center;
}
.about-copy p,
.testimonial-copy blockquote { color: var(--muted); font-size: 16px; }
.about-image,
.testimonial-image {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 340px;
  box-shadow: var(--shadow);
}
.floating-stat {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 160px;
  border-radius: 22px;
  padding: 20px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 15px 30px rgba(18,61,113,.22);
}
.floating-stat strong { display: block; font-size: 42px; line-height: 1; }
.floating-stat span { display: block; font-size: 13px; margin-top: 6px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 26px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; color: var(--secondary); font-weight: 600; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--primary); }
.doctors-section { background: linear-gradient(180deg, #fbfdfe, #fff); }
.view-link { color: var(--primary-dark); font-weight: 700; }
.doctor-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-btn {
  border: 1px solid rgba(14,167,167,.22);
  background: #fff;
  color: var(--secondary);
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}
.filter-btn.active { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.doctor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(18,61,113,.04);
}
.doctor-photo {
  display: block;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: linear-gradient(180deg, #eaf8f7, #f7fbff);
}
.doctor-photo img,
.related-thumb img,
.profile-photo-card img { width: 100%; height: 100%; object-fit: cover; }
.doctor-meta { padding: 18px 18px 20px; }
.doctor-meta h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; }
.doctor-meta p { margin: 0 0 8px; color: var(--secondary); font-weight: 600; font-size: 14px; }
.doctor-meta small { display: block; color: var(--muted); min-height: 44px; }
.profile-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--primary-dark); }
.stars { color: #f4b400; font-size: 22px; letter-spacing: 3px; margin-bottom: 12px; }
.testimonial-copy blockquote { margin: 0; font-size: 18px; line-height: 1.8; }
.patient-name { margin-top: 18px; font-weight: 700; }
.patient-name span { display: block; color: var(--muted); font-weight: 500; }
.site-footer {
  margin-top: 30px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 48px 0 28px;
}
.footer-logo { width: 210px; margin-bottom: 16px; }
.site-footer p,
.site-footer li,
.site-footer a { color: rgba(255,255,255,.86); font-size: 14px; }
.site-footer h4 { margin: 0 0 14px; font-size: 19px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom {
  padding: 16px 24px 22px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.88);
  border-top: 1px solid rgba(255,255,255,.18);
}
.inner-header { position: sticky; }
.profile-hero-section {
  padding: 48px 0 22px;
  background: linear-gradient(180deg, #fbfdff, #f7fbfd);
}
.profile-hero-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 36px;
  align-items: center;
}
.profile-photo-card {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #eaf8f7, #f7fbff);
  border: 1px solid var(--line);
  min-height: 420px;
}
.no-photo,
.doctor-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e9f6f6, #eef5fb);
  color: var(--secondary);
}
.doctor-placeholder { font-size: 54px; font-weight: 800; height: 100%; }
.doctor-placeholder.large { min-height: 420px; }
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.badge-tag {
  display: inline-flex;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  align-items: center;
  background: rgba(14,167,167,.12);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 16px;
}
.profile-main h2 {
  margin: 10px 0 14px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
}
.profile-location { margin-bottom: 18px; color: var(--muted); font-weight: 600; }
.profile-main p { font-size: 16px; color: var(--muted); max-width: 760px; }
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.compact-top { padding-top: 28px; }
.profile-info-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.profile-info-strip > div,
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18,61,113,.04);
}
.profile-info-strip > div {
  padding: 20px 18px;
}
.profile-info-strip strong { display: block; color: var(--secondary); margin-bottom: 6px; }
.profile-info-strip span { display: block; color: var(--muted); font-size: 14px; }
.profile-body-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 28px;
  align-items: start;
}
.profile-section,
.related-wrap { margin-bottom: 28px; }
.profile-section h3,
.sidebar-card h3 { margin: 0 0 14px; font-size: 28px; color: var(--secondary); }
.profile-section p { margin: 0; color: var(--muted); }
.area-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.area-tags span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  color: var(--secondary);
  font-weight: 600;
}
.service-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.service-tile img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
  background: linear-gradient(180deg,#edf8f9,#f7fbff);
}
.service-tile-copy { padding: 16px; }
.service-tile-copy h4 { margin: 0 0 8px; font-size: 18px; color: var(--secondary); }
.service-tile-copy p { margin: 0; font-size: 14px; color: var(--muted); }
.sidebar-card { padding: 24px; margin-bottom: 20px; }
.timing-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f6;
  font-size: 14px;
}
.timing-row:last-of-type { border-bottom: 0; }
.timing-row span { color: var(--muted); }
.timing-row strong { color: var(--secondary); }
.sidebar-card small { color: var(--muted); }
.sidebar-form { display: grid; gap: 12px; }
.sidebar-form .btn { width: 100%; }
.help-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.qualification-list { padding-left: 18px; color: var(--muted); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.related-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
}
.related-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 72px;
  background: linear-gradient(180deg,#ecf7f6,#f7fbff);
}
.related-card strong { display: block; line-height: 1.2; margin-bottom: 4px; }
.related-card span { display: block; color: var(--muted); font-size: 13px; }
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (max-width: 1080px) {
  .main-nav {
    position: fixed;
    inset: 84px 0 auto 0;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 18px 24px 22px;
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-120%);
    transition: .3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .main-nav a:hover::after,
  .main-nav a:focus::after { display: none; }
  .doctor-grid { grid-template-columns: repeat(3, 1fr); }
  .department-grid,
  .speciality-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-info-strip { grid-template-columns: repeat(3, 1fr); }
  .service-tile-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1200px) {
  .container { width: min(100% - 40px, 1320px); }
  .hero-image, .hero-image img { min-height: 460px; }
}
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .testimonial-grid,
  .appointment-grid,
  .profile-hero-grid,
  .profile-body-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .appointment-form { grid-template-columns: repeat(2, 1fr); }
  .container { width: min(100% - 32px, 1120px); }
  .hero-image, .hero-image img { min-height: 360px; }
  .profile-info-strip { grid-template-columns: repeat(2, 1fr); }
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
  .speciality-feature { grid-template-columns: 1fr; }
  .call-box { display: none; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1000px); }
  .site-header .header-wrap { min-height: 76px; }
  .brand img { width: 175px; }
  .section { padding: 56px 0; }
  .hero { padding-top: 24px; }
  .hero-copy h1,
  .section-head h2,
  .about-copy h2,
  .testimonial-copy h2,
  .profile-main h1 { font-size: 42px; }
  .profile-main h2 { font-size: 24px; }
  .hero-copy p { font-size: 16px; }
  .department-grid,
  .speciality-grid,
  .doctor-grid,
  .service-tile-grid,
  .related-grid,
  .appointment-form,
  .profile-info-strip { grid-template-columns: 1fr; }
  .appointment-form textarea { grid-column: auto; }
  .hero-highlights { gap: 14px; }
  .footer-grid { padding-top: 40px; }
  .profile-photo-card { min-height: 320px; }
  .service-tile img { aspect-ratio: 1.7 / 1; }
}


@media (max-width: 540px) {
  .brand img { width: min(100%, 220px); }
  .header-wrap { gap: 14px; }
  .hero-copy { padding: 12px 0; }
  .hero-image, .hero-image img { min-height: 240px; }
  .appointment-aside { padding: 28px 22px; }
  .appointment-form { padding: 20px; }
  .profile-hero-section { padding-top: 26px; }
}


/* Single-line desktop header */
.header-wrap { flex-wrap: nowrap; }
.brand { flex: 0 1 300px; min-width: 210px; }
.main-nav { flex: 1 1 auto; justify-content: center; min-width: 0; gap: clamp(14px, 1.35vw, 26px); }
.main-nav a,
.call-box,
.call-box strong,
.header-cta .btn { white-space: nowrap; }
.call-box span { display: flex; align-items: center; }
.header-cta { flex: 0 0 auto; flex-wrap: nowrap; }

@media (min-width: 1081px) and (max-width: 1320px) {
  .brand { flex-basis: 245px; }
  .brand img { width: 245px; }
  .main-nav { gap: 13px; font-size: 13px; }
  .header-cta { gap: 9px; }
  .call-box strong { font-size: 14px; }
  .header-cta .btn { padding: 0 15px; font-size: 13px; }
}


/* Final polish pass */
body { overflow-x: hidden; }
.site-header { box-shadow: 0 8px 30px rgba(18,61,113,.035); }
.header-wrap { min-height: 82px; }
.brand { flex: 0 0 auto; }
.brand img { width: clamp(210px, 18vw, 300px); }
.main-nav { flex-wrap: nowrap; white-space: nowrap; gap: clamp(14px, 1.6vw, 26px); }
.main-nav a, .call-box, .header-cta .btn { white-space: nowrap; }
.header-cta { flex: 0 0 auto; }
.call-box strong { line-height: 1; }
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,167,167,.11), transparent 70%);
  left: -220px;
  top: -180px;
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; min-height: 650px; }
.hero-image { min-height: 560px; }
.hero-image img { min-height: 560px; object-position: center; }
.info-card, .speciality-card, .doctor-card, .service-tile, .sidebar-card, .related-card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.info-card:hover, .speciality-card:hover, .doctor-card:hover, .service-tile:hover, .related-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14,167,167,.32);
  box-shadow: 0 18px 45px rgba(18,61,113,.1);
}
.speciality-card img { transition: transform .45s ease; }
.speciality-card:hover img { transform: scale(1.035); }
.doctor-photo img { object-position: center 18%; transition: transform .4s ease; }
.doctor-card:hover .doctor-photo img { transform: scale(1.025); }
.doctor-meta h3 { min-height: 48px; }
.doctor-meta p { min-height: 42px; }
.profile-photo-card { min-height: 520px; box-shadow: var(--shadow); }
.profile-photo-card img { object-position: center 16%; }
.profile-main h1 { font-size: clamp(42px, 5vw, 72px); }
.profile-main h2 { max-width: 820px; }
.profile-info-strip > div { min-height: 108px; }
.service-tile img { object-position: center; }
.sidebar-card { position: relative; }
.profile-sidebar .sidebar-card:nth-child(2) { position: sticky; top: 105px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(14,167,167,.35);
  outline-offset: 3px;
}
.appointment-form input:focus, .appointment-form select:focus, .appointment-form textarea:focus,
.sidebar-form input:focus, .sidebar-form select:focus, .sidebar-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14,167,167,.08);
}
.mobile-book-bar { display: none; }

@media (max-width: 1250px) {
  .header-wrap { gap: 14px; }
  .main-nav { gap: 14px; font-size: 13px; }
  .header-cta .btn { padding-inline: 16px; }
  .call-box strong { font-size: 14px; }
  .brand img { width: 235px; }
}
@media (max-width: 1080px) {
  .main-nav { white-space: normal; }
  .profile-sidebar .sidebar-card:nth-child(2) { position: static; }
  .hero-grid { min-height: auto; }
}
@media (max-width: 900px) {
  .profile-photo-card { min-height: 480px; max-width: 540px; margin: 0 auto; }
  .profile-photo-card img { object-position: center 14%; }
  .mobile-book-bar {
    position: fixed;
    display: grid;
    grid-template-columns: 1fr 1fr;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 80;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(18,61,113,.25);
  }
  .mobile-book-bar a { min-height: 52px; display: grid; place-items: center; font-weight: 800; color: #fff; }
  .mobile-book-bar a:first-child { background: var(--secondary); }
  .mobile-book-bar a:last-child { background: var(--primary); }
  body { padding-bottom: 76px; }
}
@media (max-width: 640px) {
  .header-wrap { min-height: 72px; }
  .brand img { width: 190px; }
  .hero-grid { gap: 20px; }
  .hero-image, .hero-image img { min-height: 300px; }
  .hero-copy h1 { font-size: 48px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .doctor-meta h3, .doctor-meta p { min-height: auto; }
  .profile-photo-card { min-height: 390px; }
  .profile-info-strip > div { min-height: auto; }
  .footer-grid { gap: 34px; }
}

/* Doctor image layout refinement */
.doctor-photo {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px 14px 0;
  background: linear-gradient(180deg, #edf8f7 0%, #f9fcff 100%);
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.profile-photo-card {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 18px 0;
  background: linear-gradient(180deg, #eef8f8 0%, #fafcff 100%);
}
.profile-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.doctor-meta h3 { min-height: 52px; }
.doctor-meta small { min-height: 52px; }
.service-tile img { object-position: center; }
@media (max-width: 900px) {
  .doctor-photo { aspect-ratio: 4 / 4.8; }
  .profile-photo-card { padding: 16px 16px 0; }
}
@media (max-width: 640px) {
  .doctor-photo { padding: 10px 10px 0; }
  .profile-photo-card { padding: 12px 12px 0; }
}

/* Final doctor profile image alignment fix */
.profile-photo-card,
.profile-photo-card.no-photo {
  width: 100%;
  min-height: 0 !important;
  aspect-ratio: 4 / 5;
  padding: 0 !important;
  margin: 0;
  display: block !important;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid #dcebec;
  background: #eef8f8;
  box-shadow: var(--shadow);
}

.profile-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  margin: 0;
  padding: 0;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: inherit;
}

.profile-photo-card .doctor-placeholder.large {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
}

@media (max-width: 900px) {
  .profile-photo-card,
  .profile-photo-card.no-photo {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    min-height: 0 !important;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 640px) {
  .profile-photo-card,
  .profile-photo-card.no-photo {
    min-height: 0 !important;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
  }
}
