.clinic-page {
  --section-ink: #181c21;
  --section-muted: #414752;
  --section-blue: #005cab;
  --section-surface: #f2f3fb;
  --section-border: #e2e8f0;
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  color: var(--section-ink);
  font: 400 16px / 1.65 Inter, system-ui, sans-serif;
}

.clinic-page :is(h1, h2, h3) {
  margin: 0;
  color: var(--section-ink);
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.clinic-page-hero {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 60px);
  border-radius: 24px;
  background: linear-gradient(135deg, #e7efff, #f2f3fb 75%);
}

.clinic-page .clinic-page-hero h1 {
  font-size: clamp(28px, 4.5vw, 50px);
  letter-spacing: -.035em;
}

.clinic-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 15px;
  color: var(--section-muted);
  font-size: 14px;
}

.clinic-breadcrumb a,
.clinic-reading a { color: var(--section-blue); }
.clinic-reading a:not(.elementor-button) { text-decoration: underline; text-underline-offset: .18em; }
.clinic-page a:focus-visible,
.clinic-page summary:focus-visible { outline: 2px solid var(--section-blue); outline-offset: 3px; }

.clinic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.clinic-page .clinic-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--section-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.clinic-page .clinic-action:hover { background: #004786; color: #fff; }
.clinic-page .clinic-action-secondary { border-color: var(--section-border); background: #fff; color: var(--section-blue); }
.clinic-page-hero .clinic-action:first-child { background: #fd6767; color: #410006; }
.clinic-page-hero .clinic-action:first-child:hover { background: #ff8583; }

.clinic-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.clinic-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--section-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(24 28 33 / 4%);
}

.clinic-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px; }
.clinic-card-body h2 { font-size: clamp(17px, 2vw, 22px); }
.clinic-card-body h2 a { color: inherit; text-decoration: none; }
.clinic-card-body h2 a:hover { color: var(--section-blue); }
.clinic-card-body p { margin: 0; color: var(--section-muted); }
.clinic-card-body .clinic-actions { margin-top: auto; padding-top: 10px; }
.clinic-card-body .clinic-action { align-self: start; }

.clinic-doctor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.clinic-doctor-card > a { display: block; }
.clinic-doctor-card > a > :is(img,div) { aspect-ratio: 4 / 5; }
.clinic-portrait-photo { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; background: #f2f3fb; }
.clinic-portrait-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 25%, #f2f7ff, #d6e3f7);
}

.clinic-portrait-placeholder span {
  position: relative;
  display: block;
  width: 36%;
  aspect-ratio: 1;
}

.clinic-portrait-placeholder span::before,
.clinic-portrait-placeholder span::after { position: absolute; content: ""; background: #98afce; }
.clinic-portrait-placeholder span::before { top: 0; left: 24%; width: 52%; aspect-ratio: 1; border-radius: 50%; }
.clinic-portrait-placeholder span::after { bottom: 0; width: 100%; height: 44%; border-radius: 70% 70% 18% 18%; }
.clinic-profile-hero { grid-template-columns: minmax(0, 1fr) minmax(150px, 310px); }
.clinic-profile-media { overflow: hidden; border-radius: 18px; }
.clinic-profile-media > :is(img, div) { aspect-ratio: 4 / 5; }
.clinic-service-team > h2 { margin-bottom: 16px; }
.clinic-specialty { margin: 12px 0 0; color: var(--section-muted); font-size: clamp(16px, 2vw, 21px); }

.clinic-reading,
.clinic-service-content .clinic-service-section {
  min-width: 0;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--section-border);
  border-radius: 16px;
  background: #fff;
}

.clinic-reading { overflow-wrap: anywhere; }
.clinic-reading h2 { font-size: clamp(21px, 2.4vw, 30px); }
.clinic-reading :is(h2, h3) + * { margin-top: 12px; }
.clinic-reading :last-child { margin-bottom: 0; }
.clinic-reading ul,
.clinic-reading ol { padding-inline-start: 1.4em; }

.clinic-service-content .clinic-service-section {
  margin-bottom: 18px;
  background: #fff !important;
}

.clinic-service-content .clinic-service-section > .elementor-background-overlay { display: none; }
.clinic-service-content .clinic-service-section > .elementor-container { min-height: 0; }
.clinic-service-content .clinic-service-section > .elementor-container > .elementor-column > .elementor-widget-wrap { padding: 0; }
.clinic-service-content .clinic-service-section .clinic-service-single-column { width: 100%; }
.clinic-service-content .clinic-service-section .elementor-widget-divider { display: none; }
.clinic-service-content .clinic-service-lead {
  max-width: 78ch;
  margin: 0 0 20px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
}
.clinic-service-content .clinic-service-lead :last-child { margin-bottom: 0; }
.clinic-service-content .clinic-service-section .elementor-widget-text-editor {
  color: var(--section-ink) !important;
  font: 400 16px / 1.65 Inter, system-ui, sans-serif !important;
  overflow-wrap: anywhere;
}
.clinic-service-content .clinic-service-section :is(.elementor-heading-title, h2, h3) {
  color: var(--section-ink) !important;
  font-family: Inter, system-ui, sans-serif !important;
}
.clinic-service-content .clinic-service-section .elementor-button {
  min-height: 44px;
  border-radius: 10px;
  background: var(--section-blue);
  color: #fff;
}
.clinic-service-content .clinic-price-table {
  width: 100%;
  margin: 16px 0 24px;
  border: 1px solid var(--section-border);
  border-collapse: collapse;
  color: var(--section-ink);
  font-size: 15px;
}
.clinic-price-table :is(th, td) { padding: 11px 14px; text-align: left; overflow-wrap: anywhere; }
.clinic-price-table thead { background: var(--section-surface); }
.clinic-price-table tbody th { font-weight: 500; }
.clinic-price-table tr > :last-child { width: clamp(98px, 25%, 240px); text-align: right; }
.clinic-price-table tbody tr { border-top: 1px solid var(--section-border); }
.clinic-price-table tbody tr:nth-child(even) { background: #f9f9ff; }

.clinic-contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 18px; }
.clinic-contact-details { display: grid; gap: 14px; }
.clinic-contact-details h2 { font-size: 20px; }
.clinic-contact-details p { margin: 8px 0; }
.clinic-hours { margin: 8px 0 0; }
.clinic-hours > div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.clinic-hours dd { margin: 0; }
.clinic-map { min-height: 360px; overflow: hidden; border: 1px solid var(--section-border); border-radius: 16px; background: var(--section-surface); }
.clinic-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

.clinic-promo-notice { margin: 0; color: var(--section-muted); }
.clinic-promo-image { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #d4e3ff, #f2f3fb); }
.clinic-promo-image span {
  display: grid;
  place-items: center;
  width: 37%;
  aspect-ratio: 1;
  border-radius: 27%;
  background: #b7c9e5;
  color: #184d80;
  font-size: clamp(34px, 7vw, 80px);
  font-weight: 700;
  transition: transform .22s ease;
}
.clinic-promo-card:hover .clinic-promo-image span { transform: scale(1.12) rotate(-5deg); }
.clinic-tag { align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: #d4e3ff; color: #004786; font-size: 13px; font-weight: 650; }
.clinic-promo-archive summary { cursor: pointer; font-weight: 650; }
.clinic-promo-archive[open] summary { margin-bottom: 16px; }

.clinic-blog-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.clinic-page .clinic-blog-date {
  margin: 8px 0 0;
  color: var(--section-muted);
  font-size: 14px;
}

.clinic-blog-copy {
  width: min(100%, 900px);
  margin-inline: auto;
  padding: clamp(18px, 4vw, 48px);
}

.clinic-blog-copy :is(h2, h3, h4) { margin: 1.45em 0 .5em; }
.clinic-blog-copy > :first-child { margin-top: 0; }
.clinic-blog-copy img { max-width: 100%; height: auto; }
.clinic-blog-copy table { display: block; max-width: 100%; overflow-x: auto; }
.clinic-blog-copy :is(th, td) {
  padding: 8px 12px;
  border: 1px solid var(--section-border);
  text-align: left;
  vertical-align: top;
}
.clinic-blog-copy th { background: var(--section-surface); }
.clinic-blog-copy li + li { margin-top: 6px; }
.clinic-blog-author { margin-top: 28px; padding: 16px; border-radius: 12px; background: var(--section-surface); }
.clinic-blog-author .elementor-author-box { display: flex; align-items: center; gap: 14px; margin: 0; }
.clinic-blog-author .elementor-author-box__avatar { flex: none; margin: 0; }
.clinic-blog-author .elementor-author-box__avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.clinic-blog-author .elementor-author-box__name { font-weight: 650; }
.clinic-blog-author p { margin: 0; }

.clinic-home-doctors .clinic-home-doctor { color: #181c21; }
.clinic-home-doctors :is(.clinic-portrait-photo, .clinic-portrait-placeholder) { aspect-ratio: 4 / 5; }
.clinic-quote-photo { object-fit: contain; object-position: center; }
.clinic-booking-call { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-block: 12px; }
.clinic-booking-call a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 10px; background: #005cab; color: #fff; text-decoration: none; }
.clinic-booking-call a:hover, .clinic-booking-call a:focus-visible { background: #004786; color: #fff; }
.stitch-mobile .clinic-home-doctor { flex: 0 0 min(256px, 80%); scroll-snap-align: start; }
.clinic-home-doctors .clinic-action { display: inline-block; padding: 7px 12px; border-radius: 8px; background: #005cab; color: white; }
.clinic-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 12px; }
.clinic-photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.clinic-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.clinic-consent input { flex: none; appearance: auto; margin-top: 2px; }
.clinic-consent a { text-decoration: underline; }
.clinic-shared-footer form { flex-wrap: wrap; }
.clinic-shared-footer .clinic-consent { flex-basis: 100%; }
.clinic-price-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.clinic-price-nav a { padding: 8px 13px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #005cab; }
.clinic-price-page section[id] { scroll-margin-top: 128px; }
.clinic-price-scroll { overflow-x: auto; }
.clinic-price-page .clinic-price-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.clinic-price-page .clinic-price-table tr > :last-child { width: auto; }
.clinic-price-page .clinic-price-table td:last-child { white-space: nowrap; }
.clinic-current-offer strong { color: #005cab; font-size: clamp(28px, 5vw, 48px); }
.clinic-current-offer del { margin-left: 10px; color: #414752; }
.clinic-reviews-list { display: grid; gap: 16px; }
.clinic-reviews-list h2 { font-size: 18px; }

@media (min-width: 768px) and (max-width: 1023px) {
  .stitch-export .stitch-header-bottom nav > :is(a, div) > a,
  .stitch-export .stitch-header-bottom nav > a { padding-inline: 7px; }
}

@media (max-width: 767px) {
  .clinic-price-page section[id] { scroll-margin-top: 78px; }
  .clinic-price-page .clinic-price-table :is(td, th) { padding-inline: 7px; }
}

@media (max-width: 1000px) {
  .clinic-doctor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .clinic-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clinic-card-body { padding: 15px; }
  .clinic-profile-hero, .clinic-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .clinic-profile-media { width: min(100%, 340px); }
}

@media (max-width: 479px) {
  .clinic-card-grid:not(.clinic-doctor-grid) { grid-template-columns: minmax(0, 1fr); }
  .clinic-doctor-card .clinic-card-body { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .clinic-promo-image span { transition: none; }
}
